agentleFS
vndeevndee/engineering-skills/.claude/skills/product-spec/SKILL.md

product-spec

Skill3 starsChanged 9 months agoMITView on GitHub

Use when starting a new feature, product, or project — before any architecture or code, to define what to build and why

8 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 6 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Core principle: If you can't explain what the user does and why they care, you're not ready to code.

    line 12
  2. Very specific:

    Before invoking system-design or any scaffold skill

    line 18
  3. Distinctive:

    When requirements are ambiguous or incomplete

    line 19
  4. Distinctive:

    If you can't write AC, the story is too vague — break it down

    line 69
  5. Distinctive:

    Every feature should have at least one user-facing metric and one technical metric.

    line 95
  6. Distinctive:

    Don't pretend you have all the answers.

    line 117

“Common” is measured: kept by at least 6 in 10 of the 6 edited versions of this file we could read. “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 Specification

Overview

Transform a vague idea into an actionable product spec with user stories, acceptance criteria, and success metrics. This is the first step before any engineering work.

Core principle: If you can't explain what the user does and why they care, you're not ready to code.

When to Use

  • Starting a new product or feature
  • User says "build X" without detailed requirements
  • Before invoking system-design or any scaffold skill
  • When requirements are ambiguous or incomplete

Spec Structure

1. Problem Statement

What problem are we solving? Who has this problem? How do they currently solve it?

## Problem
[Who] struggles with [what] because [why].
Currently they [workaround], which causes [pain].

Ask these questions before writing:

  • Who is the user? (persona, not "everyone")
  • What's the trigger? (when do they need this?)
  • What's the current workaround? (proves the problem exists)
  • What happens if we don't build this? (priority check)

2. Solution Overview

One paragraph. What are we building and how does it solve the problem?

## Solution
Build [what] that allows [who] to [do what], resulting in [outcome].

3. User Stories

## User Stories

### Must Have (P0)
- As a [user], I want to [action] so that [benefit]
  - AC: Given [context], when [action], then [result]
  - AC: Given [context], when [edge case], then [graceful handling]

### Should Have (P1)
- As a [user], I want to [action] so that [benefit]

### Nice to Have (P2)
- As a [user], I want to [action] so that [benefit]

Rules for good user stories:

  • Written from user's perspective, not developer's
  • Each has measurable acceptance criteria
  • P0 = launch blocker, P1 = fast follow, P2 = backlog
  • If you can't write AC, the story is too vague — break it down

4. Scope & Non-Goals

## Scope
What's IN this version:
- Feature A
- Feature B

What's explicitly OUT:
- Feature C (future consideration)
- Feature D (different problem)

Non-goals are as important as goals. They prevent scope creep and keep the agent focused.

5. Success Metrics

## Success Metrics
- [Metric]: [Target] (e.g., "User activation: 40% of signups complete onboarding")
- [Metric]: [Target] (e.g., "API latency: p95 < 200ms")
- [Metric]: [Target] (e.g., "Error rate: < 0.1%")

Every feature should have at least one user-facing metric and one technical metric.

6. Technical Constraints

## Constraints
- Stack: [Go/Python/React]
- Auth: [JWT/OAuth/API key]
- Data: [estimated volume, growth rate]
- Integrations: [external services]
- Compliance: [GDPR, SOC2, etc.]

7. Open Questions

## Open Questions
- [ ] How do we handle [edge case]?
- [ ] What's the migration path for existing users?
- [ ] Do we need admin tooling for this?

Don't pretend you have all the answers. Surface unknowns early.

Quick Reference: Story Quality Check

BadGood
"User can manage data""User can export last 30 days of transactions as CSV"
"System should be fast""Search returns results in < 200ms for 95th percentile"
"Handle errors gracefully""When payment fails, show retry button with error reason"
"Admin dashboard""Admin can view daily active users and revenue by plan tier"
No acceptance criteriaGiven/When/Then for each story

Anti-Patterns

  • Solution-first thinking — describing implementation before understanding the problem
  • Developer stories — "As a developer, I want a REST API" is not a user story
  • Scope creep in P0 — if everything is P0, nothing is P0
  • Vague acceptance criteria — "works correctly" is not testable
  • Missing non-goals — leads to unbounded scope

Chains

  • Next: Invoke system-design for architecture decisions
  • Then: Invoke superpowers:writing-plans to create implementation plan
  • Then: Invoke scaffold skills (go-scaffold, py-scaffold, react-scaffold)

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.