Agentic Hub Docs
Portal & Workflows

Workflows

Workflow Architecture

28 workflows organized in 4 layers. Design principle: Composable & Atomic (SC5) — each does ONE thing, complex operations compose atomics.

Created: A122 (2026-03-21). Updated: A132 (2026-03-29), A139 (2026-03-31), A146 (2026-04-01).

System Map — 4 Layers

┌───────────────────────────────────────────────────────────────┐
│  ⚡ ATOMIC — do one thing, no side effects                    │
│                                                               │
│  /commit       commit & push (conventional commits)           │
│  /log          log file + D1 log + D1 velocity                │
│  /ongoing      add/update/remove ongoing.md entries           │
│  /discuss      discussion mode (no execution)                 │
│  /status       read-only daily pulse                          │
│  /hub-clean    data hygiene: logs, tasks, git                 │
│  /hub-archive  archive done tasks + old logs + reports        │
│  /hub-compact  compress: stale models, clarity, merge/retire  │
│  /remind       quick add to agent-notes.md                    │
└───────────────────────────────────────────────────────────────┘

┌───────────────────────────────────────────────────────────────┐
│  🔵 TASK LIFECYCLE — track work from start to finish          │
│                                                               │
│  /task start   config → folder? → D1? → comments? → go       │
│  /task save    /commit → D1 sync → audit comment → /log       │
│  /task done    mark done + ongoing + D1 + audit (atomic)      │
│  /task archive move to archive                                │
│  /task spawn   full work package for later                    │
│  /task delegate  light handoff for another session            │
└───────────────────────────────────────────────────────────────┘

┌───────────────────────────────────────────────────────────────┐
│  🟠 SESSION LIFECYCLE — capture, assess, transition           │
│                                                               │
│  /session save     full reasoning trail (by topic)            │
│  /session summary  quick session status (chat)                │
│  /session health   subjective quality gauge                   │
│                    → if <60%: suggest /handoff                 │
│  /session quality  rate smoothness + hypotheses               │
│  /handoff          save state → next-session.md               │
│                    → consider /task spawn                      │
│                    → suggest /wrapup                           │
└───────────────────────────────────────────────────────────────┘

┌───────────────────────────────────────────────────────────────┐
│  🎯 ORCHESTRATOR — compose atomics into sequences             │
│                                                               │
│  /wrapup session                                              │
│    0.5  handoff check   (if degraded → /handoff first)        │
│    1.   /session save   (if discussion)                       │
│    2.   /learn          (if learnings)                         │
│    3.   /learn scan     (if KB-worthy)                        │
│    4.   /hub-evolve     (if hub changed)                      │
│    5.   /task done|save (always)                              │
│    6.   /log            (always)                              │
│    7.   /commit         (always)                              │
│    8.   wellness check  (always)                              │
│                                                               │
│  /wrapup day                                                  │
│    → run /wrapup session for each active task                  │
└───────────────────────────────────────────────────────────────┘

Additional Workflows (cross-cutting)

WorkflowLayerPurpose
/learnKnowledgeExtract & store session learnings → rules/memory/KB
/learn scanKnowledgeScan workspace for KB-worthy content
/hub-evolveMaintenanceSync docs/architecture after hub changes
/hub-auditMaintenanceQuality inspection against principles
/claraDispatchSweep inbox, classify, route to workspaces
/researchThinkingResearch topic, produce report
/clarityAssessmentMeasure context crystallization
/visionAlignmentCheck vision chain alignment
/distillKnowledgeProcess long-form content into structured knowledge
/ingestCaptureRoute Smart Todo items into hub
/write-blogThinkingCreate blog post from session insights
/problemCaptureDump, triage, and map problems (AC13)
/focusThinkingProblem-first laser focus prioritization
/worthitThinkingChallenge ideas before building (做得到 ≠ 该做)
/pullallOperationsGit pull all workspaces + submodules
/pushallOperationsGit push all workspaces + submodules

Composition Map — Who Calls Who

/wrapup ─────┬─ /session save
             ├─ /learn
             ├─ /learn scan
             ├─ /hub-evolve
             ├─ /task done ─── /ongoing
             ├─ /log
             └─ /commit

/handoff ────┬─ /task spawn   (if scope grew)
             └─ suggests → /wrapup

/task save ──┬─ /commit
             └─ /log

Strategic Workflows

Alignment — Three Zoom Levels

ZoomWorkflowCadenceQuestion
🔭 LIFE/vision alignQuarterlyStress? Energy? Life balance?
📅 WEEK/claraWeeklyWhich tasks this week? Triage inbox?
🎯 WORK/visionPer-taskDoes this serve the vision chain?

Assessment

WorkflowScopeOutput
/clarityProject/domainHow crystallized is the context?
/hub-auditHub systemQuality inspection against principles
/statusDailyRead-only pulse check

Hub Maintenance Cycle (CE10 Closed Loop)

/hub-evolve  →  /hub-compact  →  /hub-audit  →  /hub-evolve
   (sync)         (compress)       (validate)      (repeat)

Decision Flow — "What Do I Call?"

Session ending?
├─ YES → Context degraded?
│         ├─ YES → /handoff → /wrapup
│         └─ NO  → /wrapup

└─ NO  → What am I doing?
          ├─ Working        → /task save  or  /commit
          ├─ Need direction → /vision align (life) | /clara (week) | /vision (task)
          ├─ Quick pulse    → /status
          ├─ Discussion     → /discuss
          ├─ Problem dump   → /problem
          └─ Process inbox  → /clara

Task Start Decision Matrix

Local FolderD1 RecordAction
Resume — read README, go
Resume + create D1 record
Fresh start with D1 context
Fully new — ask user

On this page