brainstorm
Evaluate the codebase and suggest ideas to explore with /feature-interview
- License 许可
- MIT
- 最近更新
- 2026-11-10
- Stars
- ★ 1
- Forks
- 0
01 前言 Front Matter
- name
- brainstorm
- type
- planning
- version
- v0.5
- description
- Evaluate the codebase and suggest ideas to explore with /feature-interview
- visual_tier
- prototype
- argument-hint
- [optional: focus area] [--dump]
- context_intake
- scoped
- required_conventions
- [ "alignment-page", "interrogation-page" ]
03 SKILL.md 正文
Brainstorm
Evaluate the current codebase and generate actionable suggestions that the user can take into /feature-interview for human/agent alignment, planning-destination triage, and follow-up specification or roadmap work.
This skill runs a three-stage flow by default: a stage-zero HTML interrogation loop elicits the ideation frame, then the agent generates the idea set, then an always-on HTML alignment page presents that idea set as a review/approval hub with a copyable /feature-interview handoff per idea. Writing the legacy tasks/ideas.md dump is opt-in (--dump flag plus the alignment page's artifact-destination gate).
Follow-up Skill Availability Gate
Before listing any /feature-interview prompts, verify that feature-interview is available through at least one of these signals:
.agents/project.jsonhasenabled_skills.feature-interview..agents/project.jsonhas an enabled pack that providesfeature-interview; usescripts/pack.sh which feature-interviewwhen available to identify the provider.- A local or global skill file exists, such as
.claude/skills/feature-interview/SKILL.md,.codex/skills/feature-interview/SKILL.md,~/.claude/skills/feature-interview/SKILL.md, or~/.codex/skills/feature-interview/SKILL.md.
If feature-interview is unavailable, the first line of the displayed output and the first line appended for this run in tasks/ideas.md must be:
npx skillpacks install feature-interview
Then tell Claude users to run /reload-skills, then /clear or restart if /feature-interview remains invisible after install. Put this prerequisite before any brainstorm suggestion or /feature-interview <topic> prompt.
Process
0. Product-Path Scope Resolution
Resolve research scope by product path before using code or app structure as a hint:
- If
$ARGUMENTSnames a non-archivedresearch/{slug}/directory or a product-path ID whosescope_pathpoints there, use that path. Treat{slug}as the product/app name, not the ICP, audience, or segment label. - If
$ARGUMENTSnames onlyresearch/_archive/{slug}/or a manifest entry withstatus: archivedor legacystatus: abandoned, stop and warn that the path is archived; do not write or update scoped outputs there. - Read
research/.progress.yamlwhen present. Normalize legacyactive_pathtoactive_pathson read and write backactive_pathson manifest updates. Treat legacyabandonedasarchived; excludearchived,abandoned,deferred,revisit_candidate,promoted, and anyscope_pathunderresearch/_archive/from active target selection. - If active product paths exist in the manifest, use those paths. If multiple active paths exist, ask which one to target unless this skill explicitly supports cross-path output.
- If no active manifest target exists, list non-archived product directories under
research/, excludingresearch/_archive/and dot directories. Auto-select only when exactly one exists; ask when multiple exist. - If no product directories exist, use flat
research/single-product mode. - Detect monorepo/app/package structure only as a secondary hint. Suggest creating a missing
research/{slug}/product path when code clearly exposes an app, but do not require code or monorepo detection before usingresearch/{slug}/.
When product path {slug} is active, read and write research under research/{slug}/, specs under specs/{slug}/, and treat top-level research/*.md files as flat-mode documents or cross-path summaries.
- Understand the project: Read CLAUDE.md, README, package config, and key source files to understand what the project does, its architecture, tech stack, and current state.
- Check existing plans and research: Read
tasks/roadmap.md,tasks/todo.md,tasks/manual-todo.md,tasks/record-todo.md,tasks/recurring-todo.md(when they exist), and specs fromspecs/(orspec.md) if they exist to understand work already planned, in progress, or deferred as advisory records — avoid suggesting things already covered. Readresearch/competitive-analysis.md(orresearch/{slug}/competitive-analysis.md) if it exists — competitor gaps, market white space, and positioning weaknesses are high-signal inputs for ideation. Readresearch/customer-feedback.md(orresearch/{slug}/customer-feedback.md) if it exists — "Wrong" and "New" findings are highest-signal ideation input (real user feedback that contradicts assumptions or reveals unmet needs). Readresearch/metrics.md(orresearch/{slug}/metrics.md) if it exists — instrumentation gaps can generate ideas for tooling or observability improvements.
2. Stage-zero interrogation loop
This skill cannot generate the idea set until the confidence gate passes. Before brainstorming, elicit the ideation frame in HTML interrogation rounds (see ## Interrogation Page / INTERROGATION-PAGE.md in this skill's directory). Terminal questioning is the degraded fallback only when an HTML page cannot be opened.
-
Surface an Ideation Frame Manifest (interrogation round 1). Present what you think the project is and how you intend to brainstorm it, as confirm/correct/flag controls in
interrogation/brainstorm-r1-{branch}.html, alongside the first genuinely open questions (each markeddata-open-input) placed only where no assumption is derivable. Tag each assumption[from prompt],[from repo],[from research],[from codebase], or[inferred]. Cover:- project identity and current state
- the ideation focus and which dimensions are in or out of scope (strategic/product, improvement, hygiene, market-fit)
- effort and risk appetite (quick wins vs. larger bets) and any horizon constraints
- areas explicitly off-limits and hard non-goals
- what counts as a high-value idea for this project (success criteria for the brainstorm)
- the target audience or product-path scope the ideas should serve
- the riskiest assumptions about where the real opportunity lies
Set
data-interrogation-round="1",data-interrogation-gate="continue", and the answer sidecarresearch/_working/interrogation-brainstorm-r1.yaml(orresearch/{slug}/_working/interrogation-brainstorm-r1.yamlin product-path mode), open the page, and stop for the compiled round YAML. -
Adaptive follow-ups (rounds 2..N). Seed each round from the prior round's compiled answers: drill into corrections, resolve contradictions, and cover any frame area still open. Do not re-ask what a prior round already settled.
-
Confidence gate / coverage checkpoint. When every frame area is covered or explicitly waived, set
data-interrogation-gate="coverage-checkpoint", render the coverage checkpoint, and advance to idea generation. If the user flags a gap, raise the round number and continue the loop.
3. Generate the idea set
Only after the confidence gate passes, analyse the codebase across these dimensions, scoped by the elicited ideation frame:
Strategic / Product
- New features: Capabilities that would make the project significantly more useful or valuable to its users — think beyond what exists today
- New workflows: End-to-end flows or automation that the project could enable but doesn't yet
- Product line expansion: If the project's core could serve adjacent use cases, new audiences, or spin off complementary products — suggest them
- Integration opportunities: External tools, services, platforms, or APIs that would multiply the project's value
Improvement
- Missing capabilities: Features the project's architecture is set up for but doesn't yet offer
- Pain points: Rough edges, inconsistencies, or manual steps that could be automated
- Performance opportunities: Obvious bottlenecks or low-hanging optimisations
- Developer experience: Build times, debugging ergonomics, onboarding friction
Hygiene
- Technical debt: Areas where the code has outgrown its original design
- Testing gaps: Untested critical paths or missing test infrastructure
- Security hardening: Areas where security posture could be improved
Market Fit (only when research/icp.md (or research/{slug}/icp.md), research/mvp-gap.md (or research/{slug}/mvp-gap.md), or research/competitive-analysis.md (or research/{slug}/competitive-analysis.md) exist)
- ICP alignment: Features that directly address ICP pain points but are missing or incomplete
- Journey gaps: Steps in the user or customer journey where the product loses them
- Unaddressed MVP gaps: Gaps from
research/mvp-gap.md(orresearch/{slug}/mvp-gap.md) not yet tracked in roadmap or todo - Competitive white space: Features or capabilities that no competitor offers well — opportunities from
research/competitive-analysis.md(orresearch/{slug}/competitive-analysis.md) market gaps - Competitor leapfrog: Specific competitor weaknesses you could exploit, or table-stakes features competitors have that you lack
- Positioning plays: Ideas that would sharpen differentiation against the competitive landscape
A focus area in
$ARGUMENTS(anything other than the--dumpflag and a product-path slug) narrows the dimensions to that area; otherwise cover all dimensions. The elicited frame from step 2 always takes precedence over the raw argument.
4. Build the alignment page
After the idea set is generated, present it in the always-on alignment page (step described under ## Alignment Page). The page is the durable hub; do not treat a chat dump as the primary surface.
Output
The alignment page (alignment/brainstorm-{topic}.html) is the primary, durable artifact — the idea set, its motivating evidence, the review gates, and the per-idea /feature-interview handoffs all live there. Keep it open after confirmation as a working hub: copy each idea's /feature-interview <topic> prompt and its additional context into /feature-interview one at a time.
Writing the legacy tasks/ideas.md dump is opt-in, controlled in two layers that must agree before the file is written:
- Flag:
--dumpin$ARGUMENTSpre-sets the intent to also append the approved ideas totasks/ideas.md. - Gate: the alignment page's artifact-destination gate confirms the
tasks/ideas.mdwrite at approval time. Default is no dump.
Only when --dump is set and the destination gate approves it (or the user selects the dump option at that gate) append the approved idea set to tasks/ideas.md during the confirmed-page write step — do not overwrite existing content. When product-path scope is active, prefix each suggestion with the app name.
Each idea — rendered on the page and in any dump — is grouped by effort level (hours / days / weeks) and includes:
- A specific, actionable title
- A one-line description with the concrete codebase signal (file, pattern, or metric) that motivates it
- The
/feature-interview <topic>prompt plus the additional context to paste alongside it
Constraints
- Each suggestion must be specific and actionable — not vague aspirations like "improve testing."
- Include the concrete signal from the codebase that motivates each suggestion (file, pattern, or metric).
- Provide the
/feature-interview <topic>prompt the user can copy-paste to kick off planning. - Limit to 3–5 suggestions per effort level to avoid overwhelming the user.
- Do not suggest changes that conflict with patterns established in CLAUDE.md.
- Do not repeat work already tracked in
tasks/roadmap.md,tasks/todo.md,tasks/manual-todo.md,tasks/record-todo.md,tasks/recurring-todo.md, orspecs/(orspecs/{slug}/).
Interrogation Page
Before producing research, run the stage-zero interrogation loop following INTERROGATION-PAGE.md in this skill's directory. Build one HTML page per round at interrogation/brainstorm-r{N}-{branch}.html, starting with the assumptions manifest as round 1, and loop until the confidence gate passes. This skill cannot advance to stage one (the framework/scope alignment page) until the confidence gate passes with at least one completed interrogation round and every interview area covered or waived. Each round page must contain at least one genuinely open input (data-open-input).
Alignment Page
By default, this skill reports results inline and writes only its normal durable artifacts (for example tasks/*.md, reports, queues, benchmark notes, status docs, or other skill-specific files). Do not build an alignment page automatically. Create alignment/brainstorm-{topic}.html only when the user explicitly requests an alignment page or when you explicitly identify a concrete clarification/review need that cannot be handled cleanly inline; when you create one, follow ALIGNMENT-PAGE.md in this skill's directory.
Default Shipping Contract
Follow the shared shipping contract convention in CLAUDE.md.
04 同仓库更多 Skills
source-checkout-allowed
Valid source-checkout-only fixture.
deck-install-valid
Valid deck install fixture.
codex-pack-guard-valid
Valid Codex Pack Availability Guard fixture.
codex-missing-skill-valid
Valid Codex missing skill fallback fixture.
codex-base-skill-fallback-valid
Valid Codex base skill fallback fixture.
claude-pack-guard-valid
Valid Claude Pack Availability Guard fixture.