Fans out parallel agents to map a repo, research competitors, ideate across value lenses, dedup, spec, and rank a product roadmap. Use when asked what to build next or for gap/competitor analysis.
Ships in feature-discovery. 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; scripts run unread.
Turns "what should we build next?" into a grounded, ranked roadmap by fanning out many agents instead of one agent guessing. The whole run is a deterministic Workflow script, so every invocation follows the same pipeline rather than being re-improvised.
Distinct from brainstorm. pm:brainstorm goes deep on one known-ish feature
(interactive Q&A, a single spec doc). This goes wide across the whole product and
returns a ranked roadmap of many candidate features. Reach for brainstorm to design
how to build a chosen feature; reach for this to discover what to build.
Use it when the user wants ideas that are researched, deduped, specced, and pressure-tested, not a quick off-the-cuff list. It is deliberately heavyweight (roughly 35-40 agents at exhaustive depth), so for a casual "give me three ideas" just answer directly.
The Workflow engine runs five phases - you do not run these yourself, the engine does (see scripts/feature-discovery.workflow.js):
internal scope, so ideation never re-proposes
what exists.depth: quick).product, scope (default mixed), and depth (default
exhaustive) from the user's request. If the user gave none and the intent is
clearly the full run, default to a repo-mapped product with mixed +
exhaustive; otherwise ask for the three values before launching.Workflow({
scriptPath: "${CLAUDE_SKILL_DIR}/scripts/feature-discovery.workflow.js",
args: { product: "one-line description of your product", scope: "mixed", depth: "exhaustive" }
})
It runs in the background and returns { report, meta, counts }, where report
is finished Markdown.error key - currently invalid-args, product-mapping-failed,
competitor-research-failed, empty-ideation, empty-shortlist,
empty-validated-results, or synthesis-failed, though the script may add others
later - treat it as a failed run: say so plainly
with the error code and offer to rerun. Any error key short-circuits processing;
never extract report or counts from an error result, including codes not listed
here.report, then report the counts funnel (raw ideas / shortlisted / specced) so
the user can see how the funnel narrowed.report as an Artifact for readability.report to .dev/feature-discovery/<date>-roadmap.md
with Write (create the directory if needed; never write under .claude/).
Treat the report as a working artifact - do not write it unless the user asks.args)| key | values | default | effect |
|---|---|---|---|
product | free text | (mapped from repo) | One-line description of the product. If omitted, the mapper infers it from the code, README, and docs. |
scope | mixed | internal | competitor | mixed | Where ideas come from. internal skips competitor research; competitor still maps the product but tells ideators to hunt for capabilities rivals have that it lacks. |
depth | exhaustive | quick | exhaustive | exhaustive = 4 competitor tracks, 7 lenses, top 8-12. quick = 2 tracks, 4 lenses, top 5-6, for a faster first pass. |
The lens list (ALL_LENSES) lives at the top of the script; add or reword entries
to change ideation coverage. Competitor segments are planned dynamically from the
product, so no market list is hardcoded. The phase wiring and schemas do not need
to change.
Adapted from the open-source
feature-discovery-skill by
Fabian Hug (0xfabs), MIT licensed, as a fork rather than a verbatim port. Beyond
packaging, frontmatter, script path, and result handling, the bundled engine
(scripts/feature-discovery.workflow.js) also adds: argument validation, schema
bounds (min/max item counts, required fields) on the segment/shortlist/spec/verdict
schemas, hard-fail guards for empty ground/ideation/shortlist/validation/synthesis
results, character-budgeted (and per-record-compacted) competitor research, and
partial-fan-out coverage reporting (competitor tracks, ideation lenses, spec/validate
pairs) so silent data loss surfaces in the report instead of being hidden.
What SKILL.md sets; muted values are Claude Code's defaults
/feature-discovery:feature-discovery [product one-liner] [scope: internal|competitor|mixed] [depth: quick|exhaustive]from feature-discovery
npx claudepluginhub rube-de/cc-skills --plugin feature-discoveryOther plugins' skills for the same job