Agent skill

Spec Strategy

by leo-kuang-ai in leo-kuang-ai/spec-first

Create or update STRATEGY.md. An agent skill from leo-kuang-ai/spec-first.

MITAuto-check passedProduct & Project Management

Install Spec Strategy

skills CLI
$ npx skills add leo-kuang-ai/spec-first --skill spec-strategy -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install leo-kuang-ai/spec-first spec-strategy --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/leo-kuang-ai/spec-first.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/spec-strategy .claude/skills/spec-strategy && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
spec-strategy
GitHub stars
107
Token cost
~1.6k tokens
SKILL.md length
931 words
Files
11 (incl. references)
Skills in repo
35
Repo updated
First seen
Licence
MIT

At a glance

Create or update STRATEGY.md. An agent skill from leo-kuang-ai/spec-first.

  • Works in 4 steps: Route by File State → First-Run Interview → Update Run → …
  • Starting a product
  • SKILL.md covers Interaction Method, Focus Hint, Core Principles and Execution Flow, plus 2 more sections
  • Runs Shell scripts from its folder

What it does

Spec Strategy is an agent skill from leo-kuang-ai/spec-first. Create or update STRATEGY.md. Use when starting a product, changing direction or roadmap, or when spec-ideate, spec-brainstorm, or spec-plan need upstream product grounding.

Its SKILL.md is about 1.6k tokens, which your agent loads only when the skill is triggered. The skill folder holds 17 other files, including reference files (for example `evals/cases/existing-asks-which-section.yaml`, `evals/cases/features-route-to-brainstorm.yaml` and `evals/cases/first-run-interview-asks.yaml`).

It sits in Product & Project Management, covering Brainstorming. The repository describes itself as: 仓库原生 AI Coding Harness —— 把一次性 AI 对话变成可治理、可验证、可沉淀的工程闭环 · spec-first.cn. The licence is MIT.

When your agent uses it

  • Starting a product
  • Changing direction
  • Spec-brainstorm
  • Spec-plan need upstream product grounding

Example prompts

  • “/spec-strategy”

Requirements

  • A Bash shell

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Route by File State
  2. First-Run Interview
  3. Update Run
  4. Downstream Handoff

What it can do on your machine

Read from SKILL.md and the folder at commit 74655dc. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Shell), which the agent can run.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Spec Strategy loads about 1.6k tokens when it runs, and up to ~5k if it reads all its reference files. Until then it costs about 47 tokens; SKILL.md has 931 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~47
When it runs · the whole SKILL.md, loaded when a task matches
~1.6k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from leo-kuang-ai/spec-first at commit 74655dc, republished under its MIT licence (© leo-kuang-ai). 931 words, ~1,595 tokens.

Download SKILL.mdSave it as .claude/skills/spec-strategy/SKILL.md (or your agent's skills folder). This skill also uses 10 other files; get the full folder from GitHub.
name
spec-strategy
description
Create or update STRATEGY.md. Use when starting a product, changing direction or roadmap, or when spec-ideate, spec-brainstorm, or spec-plan need upstream product grounding.
argument-hint
[optional: section to revisit, e.g. 'metrics' or 'approach']

Product Strategy

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

spec-strategy produces and maintains STRATEGY.md - a short, durable anchor document that captures what the product is, who it serves, how it succeeds, and where the team is investing. It lives at the repo root as a canonical, well-known file (peer of README.md). Downstream skills (spec-ideate, spec-brainstorm, spec-plan) read it as grounding when it exists.

The document is short and structured on purpose. Good answers to a handful of sharp questions produce a better strategy than any amount of prose. This skill asks those questions, pushes back on weak answers, and writes the doc.

Interaction Method

Default to 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 free-form responses for the substantive sections (problem, approach, persona); reserve single-select for routing decisions (which section to revisit). Each option label must be self-contained.

Focus Hint

Interpret the user's current request as an optional focus: a section name to revisit (metrics, approach, tracks) or a scope hint. With no focus, proceed open-ended and let the file state decide the path.

Core Principles

  1. Anchor, not plan. Strategy is what the product is and why. Features belong in spec-brainstorm; schedules belong in the issue tracker. Do not let either creep into the doc. When declining such creep, name the destination explicitly (spec-brainstorm for features, the issue tracker for schedules) — a bare refusal or a generic "put it elsewhere" leaves the owner without a route.
  2. Rigor in the questions, not the headings. The section headers are plain English. The interview questions enforce strategy discipline.
  3. Short is a feature. The template is constrained. Adding sections costs more than it looks like. Push back on expansion.
  4. Durable across runs. This skill is rerunnable. On a second run it updates in place, preserves what is working, and only challenges sections that look stale or weak.

Execution Flow

Phase 0: Route by File State

Read STRATEGY.md using the native file-read tool.

  • File does not exist -> First run. Go to Phase 1.
  • File exists and argument names a specific section -> Targeted update. Go to Phase 2.
  • File exists, no argument -> Ask which section(s) to revisit, then Phase 2.

Announce the path in one line: "Strategy doc not found - let's write it." or "Found existing strategy - let's review and update."

Phase 1: First-Run Interview

Read references/interview.md. This load is non-optional - the pushback rules, anti-pattern examples, and quality bar for each section live there. Improvising from memory produces a passive transcription instead of a strategy doc.

Run the interview in the section order of the final document:

  1. Target problem
  2. Our approach
  3. Who it's for
  4. Key metrics
  5. Tracks
  6. Milestones (optional)
  7. Not working on (optional)
  8. Marketing (optional)

For each section, ask the opening question, apply the pushback rules, and capture the final answer in the user's own language. Do not skip the pushback step - it is the core of the skill. Two rounds of pushback per section maximum; capture what the user has given after that and note the section is worth revisiting on the next run.

When all required sections (1-5) are captured, read references/strategy-template.md, fill it in, and present the full draft in chat before writing. Offer one round of edits. Then write to STRATEGY.md.

Show full SKILL.md (321 more words)Show less
Phase 2: Update Run

Read the existing STRATEGY.md thoroughly. Summarize current state in 3-5 lines so the user sees what is on file.

If the argument named a specific section, jump to that section in references/interview.md. Preserve all other sections exactly. Apply pushback as if this were a first run - do not rubber-stamp existing weak content just because it is already written.

If no specific target, ask the user which section to revisit using the blocking question tool. Options:

  • "Target problem"
  • "Our approach"
  • "Who it's for"
  • "Metrics, tracks, or other"

For each revisited section, re-interview with full pushback. For sections the user confirms are still accurate, leave them untouched. Update the last_updated value in the YAML frontmatter to today's ISO date.

Write the updated doc back to STRATEGY.md.

Phase 3: Downstream Handoff

After writing, note in one line where the file lives and that spec-ideate, spec-brainstorm, and spec-plan will pick it up as grounding on their next run.

If no downstream skill has run yet on this repo, suggest spec-ideate or spec-brainstorm skills as a next step.

What This Skill Does Not Do

  • Does not update the issue tracker or reconcile in-flight work. Strategy is the doc; execution lives elsewhere.
  • Does not prioritize the backlog. Prioritization is a separate workflow.
  • Does not write product requirements or implementation plans - those are spec-brainstorm and spec-plan.
  • Does not compute metric values. It records which metrics matter and where they live, not what they read today.

Learn More

The "Target problem / Our approach / Tracks" structure is informed by Richard Rumelt's Good Strategy Bad Strategy - specifically his kernel of diagnosis, guiding policy, and coherent action. The interview questions in references/interview.md are designed to push past the patterns he calls "bad strategy": fluff, goals dressed up as strategy, and feature lists in place of a guiding choice. The book is the recommended follow-up reading if the distinction between a slogan and a strategy is not yet sharp.

© leo-kuang-ai, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 10 other files (references) in skills/spec-strategy of leo-kuang-ai/spec-first.

  • SKILL.md
  • evals/cases/existing-asks-which-section.yaml
  • evals/cases/features-route-to-brainstorm.yaml
  • evals/cases/first-run-interview-asks.yaml
  • evals/cases/targeted-update-metrics.yaml
  • evals/cases/update-reads-existing-doc.yaml
  • evals/eval.yaml
  • evals/fixtures/repos/existing-strategy/STRATEGY.md
  • evals/fixtures/scripts/asks-a-question.sh
  • references/interview.md
  • references/strategy-template.md

Open the folder on GitHubat commit 74655dc

Compare with similar skills

Spec Strategy next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Spec Strategy compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Spec Strategy this skillleo-kuang-ai/spec-first107—~1.6kAutomated safety check: PassMIT
Spec Workflowhashgraph-online/awesome-codex-plugins1.3k—~2.1kAutomated safety check: PassApache-2.0
Trellis Brainstormanjiemo/SunnyBeach1787 repos~4kAutomated safety check: PassApache-2.0
YC Office Hoursgarrytan/gstack136k—~4.2kAutomated safety check: PassMIT
Bmad Product Briefaj-geddes/claude-code-bmad-skills488—~1.7kAutomated safety check: NotesCustom licence
Idea Teammajiayu000/spellbook287—~1.4kAutomated safety check: PassMIT

Similar skills

  • Spec Workflow

    hashgraph-online/awesome-codex-plugins

    This skill should be used when the user asks to "create a spec", "write requirements", "design a feature", "plan implementation", "use EARS notation", "create user stories", "break down tasks"…

    1.3k GitHub stars~2.1k tokensUpdated yesterday
    Product & Project ManagementAuto-check passed
  • Trellis Brainstorm

    anjiemo/SunnyBeach

    Guides collaborative requirements discovery before implementation.

    178 GitHub starsUsed in 7 repos~4k tokens
    Product & Project ManagementAuto-check passed
  • YC Office Hours

    garrytan/gstack

    Runs a YC-style office hours session that pressure-tests a product idea before any code and ends in a design document instead of an implementation.

    136k GitHub stars~4.2k tokensUpdated today
    Product & Project ManagementAuto-check passed
  • Bmad Product Brief

    aj-geddes/claude-code-bmad-skills

    Lean facilitator for creating, updating, and validating a product brief — the Analysis-phase foundation of the BMAD Method.

    488 GitHub stars~1.7k tokensUpdated 3 mo ago
    Product & Project ManagementAuto-check: notes
  • Idea Team

    majiayu000/spellbook

    想法群聊室主持人 — 把一句话想法丢给多角色 AI 团队(调研员/反方/类比者)做查漏补缺。每个角色有自己的 voice,他们互相 @ 接话;你随时插话。这是创意扩展工具,不打分、不否决、不堵路。Use when 用户说"组个团队聊一下"、"开会讨论这个想法"、"找几个角度看看"、"群聊一下 X"、"team review X",或调用插件命令 /idea-coach:idea-team。Do…

    287 GitHub stars~1.4k tokensUpdated 3 days ago
    Product & Project ManagementAuto-check passed
  • Idea Refinement

    addyosmani/agent-skills

    Guides a conversation that takes a vague idea through divergent and convergent thinking and ends in a markdown one-pager covering scope and assumptions.

    105k GitHub starsUsed in 6 repos~2k tokens
    Agent WorkflowsAuto-check passed

More from leo-kuang-ai/spec-first

All 35 skills in this repo
  • Spec App Consistency Audit

    leo-kuang-ai/spec-first

    Audit mobile App PRD/Figma/local-source consistency across page routes, KMP/Clean Architecture, components, analytics, i18n, engineering quality, and industry lenses before runtime validation; use…

    107 GitHub stars~4.6k tokensUpdated 2 days ago
    Auto-check passed
  • Spec Handoff

    leo-kuang-ai/spec-first

    Create a durable cross-session handoff or resume from a user-selected continuity source.

    107 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Spec Pov

    leo-kuang-ai/spec-first

    Give a decisive, project-grounded verdict on an external input — judged against the current project, not in the abstract.

    107 GitHub stars~4.5k tokensUpdated 2 days ago
    Auto-check passed
  • Spec Resolve PR Feedback

    leo-kuang-ai/spec-first

    Resolve PR review feedback by evaluating validity and fixing issues with conflict-aware resolver dispatch.

    107 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check: notes
  • Spec Riffrec Feedback Analysis

    leo-kuang-ai/spec-first

    Analyze explicit Riffrec product-feedback captures, including riffrec-.zip, the Riffrec session.json + events.json + recording.webm + voice.webm bundle, or media/notes the user identifies as a…

    107 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • Spec Compound

    leo-kuang-ai/spec-first

    Document a recently solved problem or durable project vocabulary in docs/solutions/ or CONCEPTS.md.

    107 GitHub stars~18k tokensUpdated 2 days ago
    Auto-check passed

Questions about Spec Strategy

What does Spec Strategy do?

Create or update STRATEGY.md. An agent skill from leo-kuang-ai/spec-first. Spec Strategy is an agent skill from leo-kuang-ai/spec-first.md.

When should I use Spec Strategy?

Spec Strategy fits situations like: starting a product; changing direction; spec-brainstorm; spec-plan need upstream product grounding.

How do I install Spec Strategy in Claude Code?

Run `npx skills add leo-kuang-ai/spec-first --skill spec-strategy -a claude-code`. Or copy the skill folder (skills/spec-strategy in leo-kuang-ai/spec-first) into .claude/skills/spec-strategy in your project. Claude Code loads it when a task matches its description.

How do I install Spec Strategy in Codex?

Run `npx skills add leo-kuang-ai/spec-first --skill spec-strategy -a codex`. Or copy the skill folder (skills/spec-strategy in leo-kuang-ai/spec-first) into .agents/skills/spec-strategy in your project. Codex loads it when a task matches its description.

Can I use Spec Strategy in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add leo-kuang-ai/spec-first --skill spec-strategy -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/spec-strategy, .gemini/skills/spec-strategy, .github/skills/spec-strategy and .opencode/skills/spec-strategy in your project.

What does Spec Strategy need to run?

Going by SKILL.md and its folder, Spec Strategy needs a shell for the scripts in its folder. Our summary lists: A Bash shell.

Does Spec Strategy access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Spec Strategy safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Spec Strategy use?

Spec Strategy is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Spec Strategy use?

About 1.6k tokens (SKILL.md is roughly 6.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 3.4k tokens, read only when the agent opens those files.

What are the alternatives to Spec Strategy?

Skills that share tags, products or a category with Spec Strategy: Spec Workflow (hashgraph-online/awesome-codex-plugins, 1.3k stars), Trellis Brainstorm (anjiemo/SunnyBeach, 178 stars), YC Office Hours (garrytan/gstack, 136k stars) and Bmad Product Brief (aj-geddes/claude-code-bmad-skills, 488 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Spec Strategy?

leo-kuang-ai (a GitHub user) maintains it in leo-kuang-ai/spec-first, which has 107 GitHub stars. The repository holds 35 skills in this directory. The repository was last updated on October 8, 2026.

Source: leo-kuang-ai/spec-first on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.