plan
Produce the accepted, executable implementation plan for a MyFlow workstream. Accepts an alignment artifact for lightweight work or a standalone design artifact for structural work.
- License 许可
- MIT
- 所属仓库
- don-smith/myflow
- 最近更新
- 2026-10-23
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- plan
- description
- Produce the accepted, executable implementation plan for a MyFlow workstream. Accepts an alignment artifact for lightweight work or a standalone design artifact for structural work.
- argument-hint
- [alignment artifact path | design artifact path]
02 资源文件 1
- 参考文档templates/full-plan.md2.6 KB
03 SKILL.md 正文
Plan
Plan turns settled Scope and design decisions into the authority for autonomous implementation. Every non-trivial workstream has a durable executable plan. It may be lightweight, but it must state the design disposition, phases, verification map, and rehydration information.
Plan is collaborative. Do not edit product source code.
Input and preconditions
- Run
node ../myflow/scripts/resolve-repository-map.mjs discover --cwd <git-root>from this skill folder, read its selected map whenfound, and record the resolved path. Then readworkstream.mdand the supplied alignment or design artifact fully. - Follow the artifact's workstream ID and resolve the workstream root: the map when it names one, otherwise the
workstreamsdirectory the artifact-store resolver reports asworkstreamRoot. - Read all linked specialist artifacts whose findings affect decisions, phase boundaries, or verification.
- Stop and return to Scope when intent, acceptance criteria, non-goals, or risk classification changed. Stop and return to Design when a material architectural choice remains unresolved.
Determine the planning path
Lightweight path
Use the lightweight path when the alignment artifact selects lightweight and its design disposition is either:
- locked into existing architecture — an existing module/pattern is named and interfaces, dependencies, data model, operational behavior, and patterns remain unchanged; or
- localized design — the few relevant technical choices can be settled directly in the plan without a structural design artifact.
Read ../myflow/templates/lightweight-plan.md relative to this skill. Write one concise phase unless evidence justifies more. Do not inflate it into a full design.
Full path
Use the full path when Scope selected full or a standalone design artifact is supplied. Read templates/full-plan.md relative to this skill. The plan consumes the design's settled direction and slices; it may clarify execution order and verification, but does not reopen architectural choices.
If Plan discovers that a supposedly lightweight change needs a new seam, public interface, dependency, persistence/schema change, new pattern, or structural decision, promote it to Design and update the workstream manifest before continuing.
Create the executable plan
-
Reconfirm the outcome-level acceptance criteria with the developer.
-
Record the design disposition. This is mandatory even for the lightweight path.
-
Define independently verifiable phases. Each phase must have:
- an outcome, affected files/modules, and executable change description;
- automated success criteria and required repository checks;
- manual verification criteria, owner, or an explicit
not requiredstatement; and - a boundary that permits one atomic commit after automated criteria are green.
-
Build the verification map. Connect every applicable acceptance criterion to observable behavior or seam, test level, test location/name or command, and status. List intentional exclusions with a reason and follow-up.
-
Include repository-map delivery constraints: branch/integration policy, required checks, documentation, migration, and manual-verification policy where applicable.
-
Resolve all material questions before marking the plan
ready. -
Write the plan under:
<workstream-root>/<workstream-id>/plan/<timestamp>_<topic>.md -
Update
workstream.md: Plan isready, Implement is the current stage, the plan is authoritative, and its next action is:The `implement` skill with <plan-path> -
Present the plan and ask for acceptance. Only an accepted,
readyplan authorizes autonomous implementation.
Stage boundary
Record this stage with node ../myflow/scripts/stage-boundary.mjs, run from this skill's folder. Pass --repository-root <git-root> on every subcommand — the same <git-root> resolved in step 1 — because the command otherwise records against its own working directory, which on an install is the skill folder rather than the target repository. It derives every idempotency key, writes the private stage feedback, and syncs the workstream; never write lifecycle JSONL directly.
- Before planning work:
enter --stage Plan --activity planning --workstream <workstream-id> --repository-root <git-root>. This opens the Plan attempt when design did not, and completes an open design activity. - When the developer accepts the ready plan:
accept --artifact <path>. - Before leaving Plan: ask the stage question, then
exit --feedback <answer>. - When planning finds a changed outcome or architecture, record the finding and affected evidence in the plan and workstream manifest. Use
correct --action notewhen the journal is available, thenenterthe owning stage. After passing Verify, a planned next slice enters Plan again and accepts its detailed plan before Implement. Use--new-attemptwhen the preceding completed attempt was also Plan. Never treat a journal error as a reason to skip needed work.
Read ../myflow/references/stage-boundary.md for the question wording and choices, the correction options, and what happens when a step fails. Preserve all earlier attempts and accepted artifacts as history.
Review and correction
Planning review checks that the plan faithfully realizes Scope/design decisions, phases are independently executable, and the verification map covers acceptance criteria. Code-quality review of implemented code belongs to Verify through code-review.
- Implementation gap → return to Implement, then re-Verify.
- Incorrect or unexecutable plan → return to Plan.
- Architectural decision changed → return to Design.
- Outcome or acceptance criterion changed → return to Scope.
Guardrails
- Do not require a standalone Design for a lightweight workstream.
- Do not accept a plan without a design disposition or verification map.
- Do not make product source edits or run implementation as part of Plan.
- Do not assume artifact paths, commands, manual verification, or integration policy; read the resolver-selected repository map.
- Do not leave manual verification implicit. Keep it visible for Verify even when it does not block a phase commit.
04 同仓库更多 Skills
clean-support
Use when the clean-stage fixture skill needs a supporting skill to reference.
clean-stage
Use when exercising the structural skill lint against a tree that satisfies every rule.
verify
Use after Implement to verify an accepted MyFlow plan, collect review evidence, and produce a workstream-aware Verify report.
technical-writing
Layered technical-writing standard: Diátaxis structure, Google developer style sentences, STE instruction rules, Global English syntax. Use when writing or reviewing docs, RFCs, readmes, PR descriptions, or commit messages.
tdd
Use during design and planning to shape testable interfaces, seams, and verification strategy; use during implementation when a plan needs a test-first behavior cycle
story
Tell a repository's artifact-backed story, answer a question with a dated chapter, or refresh stale story pages.