/myflow:design [alignment artifact path | research artifact path]from MyFlow
Resolve material architectural decisions for a MyFlow workstream and write a standalone design artifact only when Scope or Plan requires structural design. Use after Scope and selected research/specialists, before Plan.
Ships in MyFlow. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Design is the collaborative architectural step within Plan. It is required when work changes a module's interface or seam, introduces a dependency or pattern, has multiple credible approaches, or otherwise needs a durable structural decision. It is not mandatory for a lightweight plan locked into existing architecture.
A design artifact records the chosen solution shape and its consequences. It does not implement product code or generate a second executable plan.
node ../myflow/scripts/resolve-repository-map.mjs discover --cwd <git-root> from this skill folder, read its selected map when found, and record the resolved path. Then read the workstream's workstream.md and the supplied alignment/research artifact fully.workstreams directory the artifact-store resolver reports as workstreamRoot.lightweight work and no material architectural question remains, do not manufacture a design artifact. State the locked/localized design disposition for Plan and hand on to the plan skill with <alignment-path>.Gather only the evidence needed to resolve the architecture question.
Identify the affected modules, interfaces, seams, dependencies, and relevant repository precedents. Use codebase-design as the vocabulary for this step: module, interface, seam, adapter, depth, leverage, and locality.
Name the patterns and ADRs in the repository map that this change uses, extends, or conflicts with. A conflict is a design question, not a detail: settle it here or return it to its owning stage.
Select domain-modeling, prototype, or targeted research only when the evidence shows it is needed.
Present genuine alternatives and trade-offs to the developer. Do not ask for confirmation of an obvious existing pattern; record the evidence instead.
Settle one direction, its change boundaries, operational consequences, verification intent, and independently verifiable implementation slices.
Offer an ADR for a decision that qualifies, following the rules below.
Read templates/design.md relative to this skill and write:
<workstream-root>/<workstream-id>/design/<timestamp>_<topic>.md
Update workstream.md: Plan is in progress, the design artifact is the current authoritative planning input, and the next action is Plan.
Present a fresh-session command:
The `plan` skill with <design-artifact-path>
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 and syncs the workstream; never write lifecycle JSONL directly.
enter --stage Plan --activity design --workstream <workstream-id> --repository-root <git-root>. A resumed design activity in the same Plan attempt does not create another stage attempt.accept --artifact <path>.exit and the stage question; entering the planning activity completes the design activity.correct --action note when available, then enter Plan/design with --stage Plan --activity design. For a finding detected in Verify, use --owning-stage Plan --owning-activity design in the note; Design is not a canonical stage. The complete Verify-to-Plan/design commands are in ../myflow/references/stage-boundary.md. If the outcome changed, record why and enter Scope instead. A journal error does not prevent the return. Re-run downstream work affected by the change.Read ../myflow/references/stage-boundary.md for the question wording and choices, the correction options, and what happens when a step fails. Keep earlier attempts and accepted artifacts as history.
Design owns architectural decision records. Offer one only when all three are true:
If any of the three is missing, skip the ADR. The design artifact already records the decision; an ADR is for the decision a reader will meet in the code long after this workstream closes.
Write it to the ADR location the repository map names. When the map names none, ask before creating one, and record the missing mapping for onboard to refresh. ADR-FORMAT.md in this skill folder holds the format, the numbering rule, and what qualifies; use it when the developer confirms it as the repository's format.
A ready design artifact contains:
If a decision changes the Scope outcome or acceptance criteria, return to Scope. If it only changes implementation sequencing, Plan owns the adjustment.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub don-smith/myflow --plugin myflow21 skills in this plugin
/closeUse after a passing MyFlow Verify report to make proportionate closeout decisions, preserve continuity, and decide delivery with the developer./codebase-designShared vocabulary for designing deep modules. Use when the user wants to design or improve a module's interface, find deepening opportunities, decide where a seam goes, make code more testable or AI-navigable, or when another skill needs the deep-module vocabulary./code-reviewUse when reviewing a branch, commit range, pull request, or work-in-progress change against its specification and repository standards.