agentleFS
leo-kuang-aileo-kuang-ai/leo-skills/.claude/skills/spec-strategy/SKILL.md

spec-strategy

Skill0 starsChanged 3 months agoMITView on GitHub

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.

The file

Show its rules and text

We split this skill into the rules it gives an agent

16 rules. About 0 are common, 7 are distinctive, and 9 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈7

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 9

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Ask one question at a time.

    line 21
  2. Very specific:

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

    line 38
  3. Very specific:

    Read references/interview.md.

    line 48
  4. Distinctive:

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

    line 50
  5. Distinctive:

    Not working on (optional)

    line 58
  6. Very specific:

    When all required sections (1-5) are captured, read references/strategy-template.md, fill it in, and present the full draft in chat before …

    line 63
  7. Very specific:

    Read the existing STRATEGY.md thoroughly.

    line 67
  8. Very specific:

    If the argument named a specific section, jump to that section in references/interview.md.

    line 69
  9. Distinctive:

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

    line 71
  10. Very specific:

    Write the updated doc back to STRATEGY.md.

    line 80
  11. Very specific:

    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 …

    line 84
  12. Very specific:

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

    line 86
  13. Distinctive:

    Does not update the issue tracker or reconcile in-flight work.

    line 90
  14. Distinctive:

    Does not prioritize the backlog.

    line 91
  15. Very specific:

    Does not write product requirements or implementation plans - those are spec-brainstorm and spec-plan.

    line 92
  16. Distinctive:

    Does not compute metric values.

    line 93

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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.
  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.

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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.