/myflow:scope [rough idea | transcript | ticket path | notes path]from MyFlow
Begin a MyFlow workstream with right-sized, code-light scoping. Establishes a workstream ID and durable alignment artifact when needed, selects only the specialists the work requires, and offers an isolated worktree or trunk-based path.
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.
Scope is Stage 1 of MyFlow. It turns a rough request into a shared understanding of the outcome, acceptance criteria, risks, and appropriate workflow depth. It is collaborative and code-light: it reads the repository map and named evidence, but does not perform architectural reconnaissance or implementation.
Announce at start: "I'm using the scope skill to establish the outcome, risk, and right-sized path for this workstream."
For non-trivial work, Scope creates or updates:
<workstream-root>/<workstream-id>/
workstream.md
scope/<timestamp>_<topic>.md
The workstream root is the workstreams directory the artifact-store resolver reports as workstreamRoot; the resolver-selected repository map may provide a repository-specific root and branch/worktree policy.
A truly trivial, uninterrupted change may remain in conversation. It is not resumable. If it expands or pauses, create a lightweight plan before continuing.
node ../myflow/scripts/resolve-repository-map.mjs discover --cwd <git-root> from this skill folder, record the resolved map path, and read it when found. Follow its mapped operating instructions and artifact policy. If it is missing or stale for needed work, recommend onboard; do not invent repository policy.Scope may inspect a narrow source area only when it is necessary to classify material risk or choose a specialist. Deeper codebase, architecture, or external investigation belongs to the selected specialist.
Reflect the tentative understanding before detailed questions:
Here is my current frame:
- Outcome / beneficiary:
- Work type:
- Likely size and risk:
- Known constraints:
- What we still need to settle:
Ask focused questions until the work has, at minimum:
Acceptance criteria must be observable but normally do not name files, test names, commands, or a technical design. Plan later owns those details in its verification map.
Before writing a durable alignment artifact, establish a filesystem-safe workstream ID. Derive a concise kebab-case ID from the agreed topic, a ticket identifier, or an existing branch when unambiguous. Ask the developer only when it cannot be safely inferred. The ID is stable for the workstream; it is not necessarily the branch name.
Record the optional flow_item_type as feature, defect, debt, risk, or unknown in workstream.md. Use only an explicit developer, ticket, or alignment classification. Do not infer it from prose. Flow Item type describes the value-stream item; implementation risk describes delivery uncertainty. They are separate fields, and unknown is valid.
Inspect the current branch, Git root, and repository-map branch/worktree policy. Present the applicable path:
feature/<workstream-id> and a worktree path. Create it before finalizing the durable artifact. Write workstream.md and the alignment artifact directly in that worktree; do not copy artifacts between checkouts.Do not force a branch or worktree. Do not create one without confirmation. If a workstream directory already exists, read its manifest and resume or explicitly supersede it instead of silently creating a duplicate.
Read skills/myflow/templates/workstream.md relative to this skill's sibling myflow skill before creating the manifest. The manifest is the directory index: keep its current stage, authoritative artifact, stage-progress table, branch/worktree, and next action current.
Use the following risk triggers visibly:
ambiguous_intent — goal, beneficiary, success condition, or non-goals remain unclear.architecture_impact — likely changes an interface or seam, public contract, persistence, major abstraction, or cross-module flow.external_dependency — touches integration, auth, deployment, paid service, data-loss risk, or third-party API.Record meaningful decisions with provenance:
- decision: {decision}
source: user_provided | agent_inferred | deferred | evidence_confirmed
rationale: {why}
affects: scope | acceptance_criteria | risk | stage_selection | implementation
Unresolved material questions make the alignment artifact blocked; do not conceal them in prose.
Choose the smallest safe path with the developer:
| Path | Use when | Scope output / next action |
|---|---|---|
| Trivial, in-session | One reversible, known change; known validation; no new/changed interface, dependency, persistence, security, integration, or operational behavior; no expected interruption | State the outcome, acceptance check, and locked-into-existing-architecture conclusion in conversation. Implement directly only while uninterrupted. |
| Lightweight | Low-risk but worthwhile work, likely to outlive this turn, or needing implementation authority | Write alignment artifact; next action is a lightweight Plan with a design disposition. |
| Full | Uncertainty, multiple approaches, architectural impact, new pattern/dependency, multi-phase work, or meaningful external/operational risk | Write alignment artifact; select only needed specialists before a standalone Design and Plan. |
Select specialists by evidence rather than forcing a chain:
discover for unresolved requirements, which returns a requirements document in this workstream's scope/ folder for the alignment artifact to link;research for a specific codebase or external question;grill-me for a decision that may affect domain language or ADRs;prototype for uncertain behavior or UI;domain-modeling for unclear/changing terminology or boundaries; orcodebase-design for a focused technical-debt or deepening workstream.For lightweight work, record the expected Plan design disposition as locked into existing architecture or localized design. Scope does not settle code shape; it identifies why a full Design is or is not needed.
For a non-trivial workstream:
templates/alignment.md relative to this skill.<workstream-root>/<workstream-id>/scope/<timestamp>_<topic>.md.skills/myflow/templates/stage-context-checkpoint.md.workstream.md so Scope is ready or blocked, it identifies the alignment artifact as authoritative, and it records the selected next action.The alignment artifact must include: intent, desired outcome, non-goals, acceptance criteria, optional Flow Item type, risk level/triggers, classification, selected depth, decisions/provenance, open questions, selected specialists, and suggested next action.
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.
workstream.md: enter --stage Scope --activity scope --workstream <workstream-id> --repository-root <git-root>. The first entry creates the workstream. Enter a selected research or prototype interval with the same full command and --activity research or --activity prototype in place of --activity scope; it completes the open activity and reuses the open Scope attempt.accept --artifact <path>.exit --feedback <answer>.correct --action note when available, then enter --stage Scope --activity scope --workstream <workstream-id> --repository-root <git-root>. Use --new-attempt if Scope was the last completed stage. Update the outcome and re-run the affected downstream work. Do not wait for a journal episode or invent a Plan visit.Read ../myflow/references/stage-boundary.md for the question wording and choices, the correction options, and what happens when a step fails. Preserve earlier attempts and accepted artifacts as history.
Report:
At a normal stage boundary, a fresh session runs resolve-repository-map.mjs discover, reads the resolved map when found, then reads workstream.md and the authoritative alignment artifact. Store the resolved map path in the manifest and artifact frontmatter. Use handoff only for an interruption inside Scope.
research or another appropriate specialist when real assessment is needed.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.