/myflow:discover [free-text feature description | existing artifact path]from MyFlow
Extract feature intent and requirements through grill-me rounds when Scope cannot state the outcome and acceptance criteria clearly enough. Supports light ideation for a fuzzy concept and structured requirements extraction for complex work. Writes a requirements artifact into the workstream and returns to scope.
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.
You are tasked with extracting feature intent and requirements through grill-me rounds, then writing a requirements document that Scope links from its alignment artifact.
Discover operates on a spectrum: from light ideation for fuzzy concepts through structured requirements extraction for complex work. The output adjusts to the depth needed — a few crisp sections for straightforward work, a full document for high-stakes features.
$ARGUMENTS — free-text feature description, or path to an existing requirements document, ticket, or doc for refinement.
Run this block from this skill's directory and keep its full output. Every path is relative to this installed skills/discover/SKILL.md.
node ../_shared/now.mjs
echo
node ../_shared/git-context.mjs
Copy values verbatim — do not reformat the timezone offset.
No argument provided: ask for a free-text feature description, or the path to an existing requirements document, ticket, or doc to refine. Then wait for input.
Detect input shape — parse the input:
Read any other files mentioned — tickets, docs, related artifacts, explicit path:line references — FULLY before proceeding.
No exploration in Step 1. Read only the paths the developer named. Grounding starts in Step 3.
Each invocation writes a NEW timestamp-distinct artifact (Step 7). To iterate on a prior one, re-invoke discover with its path.
Before any codebase look, ask the foundational intent question. This is purely conversational — no exploration, no recommendation, no file:line citations.
Ask one open-ended intent question, following the structured-question capability in ../myflow/references/capabilities.md:
grill-me carries this rule: the developer generates the framing, so an intent question offers open shapes that route the answer, never a recommendation and never a solution shape.file:line citations — the codebase has nothing to say about intent.Capture the answer in the developer's own words. This text feeds the Problem and Intent section verbatim.
Probe-readiness check: does the stated intent support a narrow look at the code? If yes → Step 3. If not, ask one more intent question to sharpen scope, then re-check. Cap: 3 intent questions before falling through to Step 3.
Ground the rounds in concrete codebase evidence, shaped by the stated intent.
Keep the slice narrow — one component, one seam. Locate the relevant code and read what the search surfaces (≤5 files). Use the read-only exploration capability in ../myflow/references/capabilities.md.
Cap the look at two passes. Discover is not research: when a question needs a real investigation, name it for research instead.
Empty results are not fatal. If the look returns little, record "no codebase precedent" as evidence.
Build the design tree grill-me works, rooted in the developer's stated problem. Its immediate branches are the requirement categories this skill owns:
Order the branches by dependency: root → goals → constraints → solution shape → details. Mark any branch the Step 3 evidence already settles, with its file:line citation, and confirm those pre-resolutions in the first round rather than recording them silently. Expand a branch's children only once it resolves; do not present the tree unless the developer asks for it.
Run the interview as grill-me rounds: ask the whole frontier — every branch whose prerequisites are settled — in one numbered round, each question with its recommended answer, then wait for the answers before recomputing the frontier. Intent is already settled in Step 2 and carries no recommendation; every requirement branch is a proposal the developer reviews, so it does carry one. Derive each recommendation from the stated intent, the Step 3 evidence, and project conventions.
Classify each response:
Termination — depth check, not bucket-fill. Stop when every branch has a decision or a deferral, the developer's own words appear in Problem and Goals, and no decision reads "recommendation accepted" without a rationale. Do not invent questions to pad the interview, and never ask a final "looks good?" rubber-stamp question.
Read templates/frd.md (relative to this skill folder) at runtime to confirm the section list and frontmatter shape.
Compile the rounds into the document. Redistribute answers into the template's sections:
Determine metadata (from the Metadata block above): repository: ← repo: label; branch: and commit: ← matching labels; date: and last_updated: ← <iso>; author ← author:.
Write the document to:
<workstream-root>/<workstream-id>/scope/<timestamp>_requirements.md
Frontmatter status: ready. When no workstream exists yet, scope creates one first — do not invent a workstream directory here.
Report the artifact path, the requirement and decision counts, and the open questions. Then hand control back:
The `scope` skill with <workstream-root>/<workstream-id>/scope/<timestamp>_requirements.md
scope links the requirements document from the alignment artifact and owns the depth, specialist, and next-action decisions from there. Discover does not select downstream specialists itself.
Each invocation writes a fresh artifact; iterate by re-invoking discover with the prior path. The developer may also edit the document directly.
scope to size the work.Ask rounds until the tree resolves. Don't force ceremony for simple work.
When the topic involves visual questions (UI mockups, layout comparisons, architecture diagrams), offer an optional browser-based companion once during the interview:
"Some of what we're working on might be easier to explain visually. I can show mockups, diagrams, and comparisons in a browser. Want to try it?"
This offer MUST be its own message. If they decline, proceed text-only. If they accept, use the browser for the questions that benefit from visual treatment — not every question needs it.
research.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.