Automated summary
Generates a product specification document (PRODUCT_SPEC.md) through guided Q&A, ideal for starting a greenfield project.
Strengths
- Structures brainstorming into clear stages (problem, users, experience, features, data).
- Automatically captures deferred requirements into DEFERRED.md without breaking flow.
- Prevents accidental overwrites with automatic backup and user choice.
- Includes directory guard to avoid running in wrong context.
Limitations
- Requires the PROMPT.md file in the skill directory to function.
- Only generates PRODUCT_SPEC.md; technical specs must be handled separately (suggests /technical-spec next).
- Output quality heavily depends on the clarity of user responses during Q&A.
Use this skill at the very beginning of a new project to quickly formalize the product vision with a structured approach.
Do not use it if you already have a detailed product spec or if you're working on a single feature rather than a full product.
Security analysis
SafeThe skill uses Bash only for file existence checks and running a local codex CLI if available. No destructive commands, no network calls, no data exfiltration. All file writes are constrained to the current directory and controlled by user Q&A answers.
No concerns found
How this analysis is madeExamples
I'm starting a new project for a grocery delivery app. Generate a product specification.I want to create a product spec for my task manager app. Let's begin the Q&A.Start a product specification for a fitness tracking platform that includes social features.name: product-spec description: Generate PRODUCT_SPEC.md through guided Q&A. Use as the first step when starting a new greenfield project. allowed-tools: Read, Write, AskUserQuestion, Bash
Generate a product specification document for the current project.
Workflow
Copy this checklist and track progress:
Product Spec Progress:
- [ ] Step 1: Directory guard
- [ ] Step 2: Project root confirmation
- [ ] Step 3: Check for existing PRODUCT_SPEC.md
- [ ] Step 4: Conduct guided Q&A with user
- [ ] Step 5: Write PRODUCT_SPEC.md
- [ ] Step 6: Handle deferred decisions
- [ ] Step 7: Review and refine with user
- [ ] Step 8: Suggest next step (/technical-spec)
Directory Guard
- If
.toolkit-markerexists in the current working directory → STOP: "You're in the toolkit repo. Run this from your project directory instead:cd ~/Projects/your-project && /product-spec"
Project Root Confirmation
Before generating any files, confirm the output location with the user:
Will write PRODUCT_SPEC.md to: {absolute path of cwd}/
Continue? (Yes / Change directory)
If the user says "Change directory", ask for the correct path and instruct them to cd there first.
Existing File Guard (Prevent Overwrite)
Before asking any questions, check whether PRODUCT_SPEC.md already exists in the current directory.
- If it does not exist: continue normally.
- If it exists: STOP and ask the user what to do:
- Backup then overwrite (recommended): read the existing file and write it to
PRODUCT_SPEC.md.bak.YYYYMMDD-HHMMSS, then write the new document toPRODUCT_SPEC.md - Overwrite: replace
PRODUCT_SPEC.mdwith the new document - Abort: do not write anything; suggest they rename/move the existing file first
- Backup then overwrite (recommended): read the existing file and write it to
Process
Read .claude/skills/product-spec/PROMPT.md and follow its instructions exactly:
- Ask the user to describe their idea
- Work through each question category (Problem, Users, Experience, Features, Data)
- Make recommendations with confidence levels
- Generate the final PRODUCT_SPEC.md document
Output
Write the completed specification to PRODUCT_SPEC.md in the current directory.
After writing PRODUCT_SPEC.md, verify the file exists and is non-empty by reading the first few lines. If the file was not created successfully, report the error and retry.
Deferred Requirements Capture (During Q&A)
IMPORTANT: Capture deferred requirements interactively during the Q&A process, not after.
When to Trigger
During the Q&A, watch for signals that the user is deferring a requirement:
- "out of scope"
- "not for MVP" / "post-MVP"
- "v2" / "version 2" / "future"
- "later" / "eventually"
- "maybe" / "nice to have"
- "we'll skip that for now"
- "not right now"
- "that's a separate thing"
Capture Flow
When you detect a deferral signal, immediately use AskUserQuestion:
Question: "Would you like to save this to your deferred requirements?"
Header: "Defer?"
Options:
- "Yes, capture it" — I'll ask a few quick questions to document it
- "No, skip" — Don't record this
If user selects "Yes, capture it":
Ask these clarifying questions (can be combined into one AskUserQuestion with multiple questions):
-
What's being deferred? "In one sentence, what's the requirement or feature?" (Pre-fill with your understanding from context)
-
Why defer it? Options: "Out of scope for MVP" / "Needs more research" / "V2 feature" / "Resource constraints" / "Other"
-
Notes for later? "Any context that will help when revisiting this?" (Optional — user can skip)
Write to DEFERRED.md Immediately
After collecting answers, append to DEFERRED.md right away (don't wait until end).
If file doesn't exist, create it:
# Deferred Requirements
> Captured during specification Q&A. Review when planning future versions.
## From PRODUCT_SPEC.md ({date})
| Requirement | Reason | Notes |
|-------------|--------|-------|
| {user's answer} | {selected reason} | {notes or "—"} |
If file exists, append:
| {user's answer} | {selected reason} | {notes or "—"} |
(If appending to a different spec's section, add a new section header first.)
Continue Q&A
After capturing (or skipping), continue the spec Q&A where you left off. Don't break the flow.
Cross-Model Review (Automatic)
After writing PRODUCT_SPEC.md, run cross-model review if Codex CLI is available:
- Check if Codex CLI is installed:
codex --version - If available, run
/codex-consulton the generated document - Present any findings to the user before proceeding
Consultation invocation:
/codex-consult --research "product requirements, user stories" PRODUCT_SPEC.md
If Codex finds issues:
- Show critical issues and recommendations
- Ask user: "Address findings before proceeding?" (Yes/No)
- If Yes: Apply suggested fixes
- If No: Continue with noted issues
If Codex unavailable: Skip silently and proceed to Next Step.
Error Handling
| Situation | Action |
|-----------|--------|
| PROMPT.md not found at .claude/skills/product-spec/PROMPT.md | Stop and report "Skill asset missing — reinstall toolkit or run /setup" |
| DEFERRED.md write fails (permissions or disk) | Output deferred items to terminal, warn user, continue with spec generation |
| Codex CLI invocation fails or times out | Log the error, skip cross-model review, proceed to Next Step |
Next Step
When complete, inform the user:
PRODUCT_SPEC.md created at ./PRODUCT_SPEC.md
Deferred Requirements: {count} items captured to DEFERRED.md
Cross-Model Review: PASSED | PASSED WITH NOTES | SKIPPED
Next: Run /technical-spec
From the file to a first result
The download contains exactly the content displayed on this page. This copy may differ from the latest version in the source repository.
View the source and supporting filesThis download contains SKILL.md only. Any scripts, references, templates and dependencies are not included. Get the required files from the source, preserving their directory structure, before continuing.
1. Download the file
Download SKILL.mdFrom the root of a test project, save the file as .skill-downloads/product-specification-generator-mm5t89ro/SKILL.md, or use the command below. This folder is for inspecting the skill before installation.
Command for macOS/Linux or WSL: requires a POSIX shell and curl. On Windows without WSL, use the download button and create the folder manually.
mkdir -p '.skill-downloads/product-specification-generator-mm5t89ro' && curl --fail --show-error --location 'https://skills-guides.com/api/skills/product-specification-generator-mm5t89ro/download' --output '.skill-downloads/product-specification-generator-mm5t89ro/SKILL.md.part' && mv '.skill-downloads/product-specification-generator-mm5t89ro/SKILL.md.part' '.skill-downloads/product-specification-generator-mm5t89ro/SKILL.md'2. Check prerequisites
Read SKILL.md before using it. If it references scripts or external services, inspect them and prepare the required access in your test environment.
Tools declared by the author (check availability in your agent): Read, Write, AskUserQuestion, Bash
No recognized prerequisites section in this file. This does not mean it is self-contained: libraries, tools and access requirements may be mentioned elsewhere in the content or source repository.
The platforms on this page are catalog indications. The paths below follow tool documentation; they do not prove this skill has been run in those tools. No minimum tool version is confirmed for this listing.
3. Load the skill
After inspection, copy the complete folder into your project using one of the commands below, then open a new tool session. The command stops if a folder with the same name already exists: compare the files before replacing it.
Claude Code
test -f '.skill-downloads/product-specification-generator-mm5t89ro/SKILL.md' && test -s '.skill-downloads/product-specification-generator-mm5t89ro/SKILL.md' && mkdir -p '.claude/skills' && test ! -e '.claude/skills/product-spec' && cp -R '.skill-downloads/product-specification-generator-mm5t89ro' '.claude/skills/product-spec'OpenSkills
OpenSkills must already be installed. The local install/read procedure is checked with OpenSkills 1.5.0, which requires Node.js ≥ 20.6.0. Catalog slugs are not resolved automatically.
Official OpenSkills installationopenskills install './.skill-downloads/product-specification-generator-mm5t89ro'openskills read 'product-specification-generator-mm5t89ro'Reading should display the installed file content and its base directory. It does not run the skill or install its dependencies.
For an agent that reads AGENTS.md, then sync the index. This command changes AGENTS.md: review the diff before using it.
openskills syncManual method or another tool: attach SKILL.md to a conversation, or open it in an agent that can read files. Include any required supporting resources. No universal folder is recognized by every tool.
4. Try a first task
Use a short, synthetic input: an API endpoint, a small document or an interface brief. In a new conversation, attach the file or give the agent its path, then adapt this request:
Read .skill-downloads/product-specification-generator-mm5t89ro/SKILL.md and apply its instructions to this example: [describe a test input]. Identify any missing files, dependencies or access. Produce the result requested by the skill without inventing data or running unreviewed scripts.Expected result: output matching the skill instructions, or a precise list of missing prerequisites. A read confirmation alone does not validate a first use. If an external resource is unavailable, that path remains untested.
React Hook Form Best Practices
Development
Master React Hook Form: avoid anti-patterns, manage subscriptions, and handle reset, dirty state, and controlled inputs correctly.
Emotion to Mantine Migration
Development
Migrate Emotion styled-components to Mantine components with style props and CSS modules. Use when converting .styled.tsx files or removing @emotion imports.
Scope Creep Detector
Development
Analyzes git diffs against a stated intent to detect scope creep, unrelated files, broad PRs, and oversized changes, then suggests keep, split, or justify actions.