| name | workflow-orchestration |
| description | Repo-adapted execution workflow for non-trivial bear-cli tasks. Trigger for tasks with 3+ steps, architectural decisions, bug investigations, or when user asks for plan-first or verification-heavy execution. Skip for trivial one-step edits or pure Q&A. |
Workflow Orchestration (bear-cli)
Intent
Use a consistent execution loop that balances speed with correctness:
- plan first for non-trivial work
- re-plan when assumptions break
- prove behavior before marking done
- keep scope minimal and deterministic
Fit To This Repo
This skill maps to the existing BEAR context flow:
- use
docs/context/state.md for session handoff updates
- use
roadmap/board.md, roadmap/scope.md, and minimap item files when roadmap queue/status changes
- do not introduce parallel trackers like
tasks/todo.md or tasks/lessons.md unless the user explicitly asks
- stay within v1-preview guardrails in
docs/context/architecture.md and docs/context/roadmap.md
Trigger Rules
Use this skill when any condition is true:
- The task likely needs 3+ implementation or verification steps.
- The task includes architecture/refactor seams or behavior-parity risk.
- The user reports a bug, failing test, or CI failure.
- The user explicitly asks for plan-first or orchestration workflow.
Skip this skill when:
- The task is a trivial one-liner with no meaningful verification risk.
- The task is pure discussion/Q&A with no implementation.
- The user explicitly asks to avoid planning overhead.
Workflow
- Load minimal context:
- read
docs/context/CONTEXT_BOOTSTRAP.md
- load only task-relevant docs from the routing map
- Plan:
- write a short checkable execution plan in chat (or planning tool when available)
- include verification steps, not only implementation steps
- Execute:
- implement the minimal-impact root-cause fix
- keep
kernel/ deterministic (no agent/LLM logic in core)
- Re-plan on breakage:
- if an assumption fails, stop and re-plan before continuing
- Verify before done:
- run smallest meaningful test slice first, then broader gates as needed
- for substantial changes, prefer completion evidence:
bear check --all --project <repoRoot>
bear pr-check --all --project <repoRoot> --base <ref>
- Close loop:
- update
docs/context/state.md (Last Updated, Current Focus, Next Concrete Task, short Session Notes)
- update the minimap roadmap files only when queue/status/parked planning changed:
roadmap/board.md
roadmap/scope.md
- relevant
roadmap/features/*.md or roadmap/ideas/*.md
- summarize verification evidence and any residual risk
Quality Bar
Before marking complete, ask:
- Is this the simplest defensible solution?
- Did I verify behavior instead of assuming it?
- Is there a cleaner design than the current approach?
- Did I minimize blast radius and preserve existing contracts?
Constraints
- no assumption of autonomous subagents
- avoid over-engineering simple fixes
- prefer focused diffs and explicit evidence
- if user corrections occur, capture prevention guidance in
docs/context/state.md notes unless a different location is requested