sunrain520/spec-first/spec-ideate

Claude Code and agent skill by sunrain520/spec-first

Trust tier 2
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Generate and evaluate grounded ideas. Use when the user asks for ideas, improvements, surprising options, or AI-generated directions before choosing one to develop; use spec-brainstorm to refine the user's own idea.

Install

npx vskill@latest install sunrain520/spec-first/spec-ideate

Semi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard

SKILL.md

The same SKILL.md was published earlier as sunrain520/spec-first/spec-ideate.

Generate Improvement Ideas

Note: Use the current date from the active host context. Use this when weighting external sources and dating artifacts.

spec-ideate precedes spec-brainstorm.

  • spec-ideate answers: "What are the strongest ideas worth exploring?"
  • spec-brainstorm answers: "What exactly should one chosen idea mean?" and writes a requirements-only unified plan under docs/plans/.
  • spec-plan answers: "How should it be built?"

This workflow produces a ranked ideation artifact — written to docs/ideation/ when present, else a spec-first temp path (see Phase 4). It does not produce requirements, plans, or code.

Workflow Contract Summary

  • 输入: 一个希望获得改进方向的主题、范围、约束或用户提供的 research artifact。
  • 输出: 有证据基础、经过批判和排序的 ideation artifact,包含候选、拒绝理由、限制与推荐探索方向。
  • 硬出口: 主题或目标 repo 无法确定、证据不足以支撑 basis、请求实际需要产品收敛/规划/实现时停止并路由 owning workflow。
  • 权威: source 与研究证据约束 idea basis;LLM 负责生成、批判和排序;workflow 不产生 requirements、implementation、commit 或 landing 权限。
  • 消费者: 用户、spec-brainstorm、产品/技术 owner 与后续 strategy 讨论。

Interaction Method

Use the platform's blocking question tool: AskUserQuestion in Claude Code (call ToolSearch with select:AskUserQuestion first if its schema isn't loaded), request_user_input in Codex. Fall back to numbered options in chat only when no blocking tool exists in the harness or the call errors (e.g., Codex edit modes) — not because a schema load is required. Never silently skip the question.

Ask one question at a time. Prefer concise single-select choices when natural options exist.

Focus Hint

<focus_hint> #<invocation arguments supplied by the current host> </focus_hint>

Interpret any provided argument as optional context. It may be:

  • a concept such as DX improvements
  • a path such as skills/
  • a research artifact to draw on — a file of gathered evidence (social-research report, survey export, analytics dump) at any path, inside or outside the repo (handled in Phase 1's user-supplied research subsection)
  • a constraint such as low-complexity quick wins
  • a volume hint such as top 3, 100 ideas, or raise the bar

If no argument is provided, proceed with open-ended ideation.

Core Principles

  1. Ground before ideating - Scan the actual codebase first. Do not generate abstract product advice detached from the repository.
  2. Generate many -> critique all -> explain survivors only - The quality mechanism is explicit rejection with reasons, not optimistic ranking. Do not let extra process obscure this pattern.
  3. Route action into brainstorming - Ideation identifies promising directions; spec-brainstorm defines the selected one precisely enough for planning. Do not skip to planning from ideation output.

Dispatch Authorization Boundary

在派发 grounding、research、evidence、ideation、basis-verification 或 recovery worker 前,记录:

yaml
worker_dispatch_authorization: authorized | missing
capability_probe: not_applicable | attempted | unavailable
worker_dispatch_capability: available | missing | unknown
worker_context_isolation: isolated | inherited | unknown
worker_model_override: supported | unsupported | unknown
worker_bounded_parallelism: supported | unsupported | unknown

workflow invocation does not authorize dispatch。Depth、mode、agent-count preview、用户请求外部/Slack/issue research、权限设置或 callable tool 都不构成派发授权。只有当前用户或可见 upstream handoff 明确请求 subagent、delegated work、persona 或 parallel work 时才可派发。缺授权时不得探测 tool schema,固定为 capability_probe: not_applicable + worker_dispatch_capability: unknown,inline 或 serial 执行相同 grounding/lens/rubric contracts 并记录 dispatch_authorization_missing。只有授权后才把 current-session registry/schema 作为 provider_untrusted evidence 检查:确认缺失时记录 subagent_capability_missing;surface 不可用、schema 不完整或候选不唯一时记录 worker_capability_unproven,均使用同一 fallback。隔离、模型覆盖和有界并发只取 live facts;required isolation 未满足时保持依赖 gate 打开,model unknown 时继承,parallelism unknown 时串行。记录 worker_dispatch_outcome。Fallback 必须保留 topic-axis 与 six-frame category coverage,但不得声称 agent diversity、independent basis verification、fresh-context 或 multi-agent coverage。

Model Tiers

Sub-agent dispatch is tiered by task shape, never hardcoded to a model name:

  • Extraction tier — evidence scouts and other retrieval/quoting work. Request the cheapest capable tier only when worker_model_override: supported. "Capable" is part of the spec — escalate to the generation tier when the repo is large or the stack obscure.
  • Generation tier — evidence-driven ideation frames and basis verification. Request the balanced mid-tier only when worker_model_override: supported. If the override is unsupported or unknown, omit it and inherit rather than guessing.
  • Ceiling tier — ceiling ideation frames, cross-cutting synthesis, and final arbitration. Inherit the orchestrator's model by omitting the model parameter.

Degradation rule. When authorized dispatch exists but worker_model_override is unsupported or unknown, dispatch everything on the inherited model and keep the read budgets and dossier caps. When dispatch is unauthorized, missing, or unknown, run the same roles inline or serially with those budgets and the claim limitation above.

Two overrides raise the whole ideation fleet to the ceiling tier: surprise-me mode (subject discovery is judgment-heavy and is the mode's whole value) and the go deep depth override (Phase 0.5).

Execution Flow

Phase 0: Resume and Scope

Refine-vs-generate check (run before anything else in this phase). If the user already holds one idea and asks to refine, converge, scope, or turn it into requirements, that is spec-brainstorm's work, not ideation: stop and point the user to spec-brainstorm; do not run brainstorm-flavored questioning or requirement convergence inside this workflow. This workflow starts only when the user wants candidate directions generated and evaluated.

When the subject, mode, and format are already clear from the prompt, resolve this phase in one pass and move on — the gates below exist for ambiguity, not ceremony.

0.0 Resolve Output Mode

Determine OUTPUT_FORMAT for the ideation artifact this run might persist. Output mode is exclusive — the ideation doc is written as either HTML (.html) OR markdown (.md), never both. Precedence: in-prompt request > user-stated preference > config > default (html), with a hard pipeline-mode override.

Unlike spec-plan and spec-brainstorm (which default to md), spec-ideate defaults to `html` — ideation artifacts are read mainly by humans weighing candidate directions, and a rich self-contained HTML file (with illustrative diagrams for the top candidates) makes the ideas easier to approach.

Read config. The repo root is pre-resolved at skill load: !git rev-parse --show-toplevel

If the line above is an absolute path, use it as <repo-root>. If it is empty, shows an error, or still shows a backtick command string (a harness that did not run the pre-resolution), resolve <repo-root> at runtime by running git rev-parse --show-toplevel with the shell tool. Then read <repo-root>/.spec-first/config.local.yaml with the native file-read tool. If the root cannot be resolved (not a git repo) or the file does not exist, fall through to the defaults below.

Resolution steps:

  1. In-prompt request. Reason over the user's prompt for this run for a request about this document's output format, expressed either as the output: shorthand or in plain language ("give me this as markdown", "I want a webpage"). On an explicit format, match it case-insensitively to md/html, and ignore the output: shorthand token when reading the rest of the prompt as the focus hint. Distinguish a request about the document's format from a format named as subject matter: "ideate on an HTML export feature" is the work, not a doc-format request — do not switch on it.
  • output: alone (no value) → no-op, fall through to step 2.
  • output:<unknown> (e.g., output:pdf) → drop the token, fall through to step 2, and remember to emit a one-line note above the post-ideation menu after final resolution: Ignored unknown output: value '<value>' — using <resolved_format> instead. where <resolved_format> is the value OUTPUT_FORMAT actually resolved to after the remaining precedence steps. Do not hardcode a format in the note — that misleads users when config or the default differs from what you assume.
  1. User-stated preference. If this prompt holds no format request, honor an output-format preference (markdown vs HTML) the user established earlier — earlier in this session, in your memory, or written into their active instructions — that is already in your context (match md/html case-insensitively). A remembered preference is more current than the rarely-edited config, so it overrides the config in step 3. Do not open or search instruction files to find it — act only on a preference already present in your context; if none is, fall through to the config.
  2. Config. If steps 1-2 did not resolve and the config file read above has an active (non-commented) ideate_output: key whose value matches md or html (case-insensitive), use it. Missing, invalid, or commented values fall through silently. Critical: lines starting with # are YAML comments and must be ignored — the shipped config template includes a commented example like # ideate_output: md to document the option, and matching that as an active setting would silently override the default on every run without the user having opted in.
  3. Default. Otherwise OUTPUT_FORMAT=html.
  4. Pipeline override. When invoked from any pipeline or disable-model-invocation context, force OUTPUT_FORMAT=md regardless of steps 1-4 — automated downstream consumers parse markdown reliably and HTML in pipeline runs is unnecessary friction.

Token-parsing convention: only literal-prefix flag tokens (output:, mode: where applicable) are consumed and stripped. Other <word>:<word> tokens — including conventional commit prefixes like feat:, fix:, chore: that may appear inside a focus hint — pass through verbatim.

Defer loading the format-rendering reference. The deliverable is written at Phase 4 (after generation), so references/ideation-sections.md and the format-rendering references (markdown-rendering.md / html-rendering.md) are only needed then — loading them at Phase 0.0 would carry them through the entire grounding and ideation dispatch for no benefit. Resolve OUTPUT_FORMAT now, but load the section contract and the matching rendering reference at write time (see references/post-ideation-workflow.md §4.1).

The output: preference does NOT auto-propagate to spec-brainstorm on handoff (Phase 5) — spec-brainstorm re-resolves its own brainstorm_output config independently. Asymmetric output (ideation.html + unified-plan markdown) is acceptable; users who want HTML for both set both keys in .spec-first/config.local.yaml.

0.1 Check for Recent Ideation Work

Look in docs/ideation/ for ideation documents (*.md or *.html) created within the last 30 days.

Treat a prior ideation doc as relevant when:

  • the topic matches the requested focus
  • the path or subsystem overlaps the requested focus
  • the request is open-ended and there is an obvious recent open ideation doc
  • the issue-grounded status matches: do not offer to resume a non-issue ideation when the current argument indicates issue-tracker intent, or vice versa — treat these as distinct topics

If a relevant doc exists, ask whether to:

  1. continue from it
  2. start fresh

If continuing:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
100
Repository forks
12
Repository npm downloads, 7 days
135
7-day trend score
37

Stars and forks are for the whole GitHub repository, not this skill alone. Downloads are for the repository's npm package. Refreshed 3 Sep 2026, 2 months ago.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/sunrain520/spec-first/spec-ideate/badge)](https://verified-skill.com/skills/sunrain520/spec-first/spec-ideate)

Something wrong with this skill or its page? Tell us.