An Agent Skill that analyzes codebases and breaks down goals into implementable user stories with clear acceptance criteria.
Compatible with any LLM that supports the Agent Skills Standard - Claude Code, OpenCode, Cursor, and any other AI coding assistant that implements the skills protocol.
- Automatic Codebase Analysis - Understands your project architecture and patterns
- Atomic User Stories - Breaks goals into 2-4 hour implementable chunks
- Dependency Ordering - Stories ordered so earlier ones enable later ones
- Clear Acceptance Criteria - Every story has verifiable completion criteria
- Dynamic File Naming - Generates descriptive filenames based on your goal
- Multiple Output Formats - Choose between JSON (default) or Gherkin (BDD)
- Plan Mode Compatible - Works safely without making code changes
- Universal Compatibility - Works with any LLM supporting Agent Skills
Works with any AI assistant:
git clone https://github.com/felipereisdev/user-stories-skill.gitThen configure your AI assistant to load skills from the cloned directory.
# Clone into your global skills
mkdir -p ~/.claude/skills
ln -s "$(pwd)/user-stories" ~/.claude/skills/user-stories# Clone into your global skills
mkdir -p ~/.codex/skills
ln -s "$(pwd)/user-stories" ~/.codex/skills/user-stories# Clone into your Cursor skills directory
mkdir -p ~/.cursor/skills
ln -s "$(pwd)/user-stories" ~/.cursor/skills/user-storiesInvoke the skill with your goal and optional format:
# JSON format (default)
/user-stories "implement user authentication with JWT"
# Gherkin format (BDD)
/user-stories "implement user authentication with JWT" --format=gherkin# JSON format (default)
/user-stories "implement user authentication with JWT"
# Gherkin format (BDD)
/user-stories "implement user authentication with JWT" --format=gherkin# JSON format (default)
@user-stories "implement user authentication with JWT"
# Gherkin format (BDD)
@user-stories "implement user authentication with JWT" --format=gherkin# JSON format (default)
/user-stories "implement user authentication with JWT"
# Gherkin format (BDD)
/user-stories "implement user authentication with JWT" --format=gherkinCreates .context/[goal-slug]-plan.md with structured user stories.
[
{
"id": "US-001",
"title": "Create user model and database schema",
"description": "As a developer, I want...",
"acceptanceCriteria": [...],
"priority": 1,
"complexity": "M",
"dependencies": [],
"filesToTouch": [...],
"notes": "..."
}
]# Complexity: M
# Dependencies: []
# Files: prisma/schema.prisma, src/models/User.ts
Feature: Create user model and database schema
As a developer
I want a user model with authentication fields
So that I can securely store login data
Scenario: Prisma schema has all required fields
Given the Prisma configuration exists
When I define the User model in schema.prisma
Then it should have fields: id, email, password_hash, name, created_at, updated_at
Scenario: Database migration is created
Given the User model is defined
When I run prisma migrate dev
Then a migration SQL file should be generated| Goal | Generated File | Format |
|---|---|---|
| "implement JWT authentication" | .context/jwt-authentication-plan.md |
JSON (default) |
| "implement JWT authentication --format=gherkin" | .context/jwt-authentication-plan.md |
Gherkin |
| "create Stripe payment API" | .context/stripe-payment-api-plan.md |
JSON (default) |
| "add image upload feature" | .context/image-upload-feature-plan.md |
JSON (default) |
- JSON: Best for technical planning, estimation, and integration with tools
- Gherkin: Best for BDD workflows, test automation, and stakeholder communication
This skill follows the Agent Skills Standard, making it compatible with any AI assistant that supports:
- Tool Calling: Read, Grep, Glob, Write, Bash
- Subagents: Forked execution for safe analysis
- Skill Discovery: Automatic loading from skills directories
Read- Codebase explorationGrep- Pattern searchingGlob- File discoveryWrite- Plan generationBash- Directory operations
Runs in context: fork with agent: Explore for safe, read-only analysis.
See the example output files for reference:
- JSON Format:
example-output.md - Gherkin Format:
example-gherkin-output.md
Contributions welcome! Please feel free to submit a Pull Request.
- Fork the repository
- Create your feature branch (
git checkout -b feature/amazing-feature) - Commit your changes (
git commit -m 'Add amazing feature') - Push to the branch (
git push origin feature/amazing-feature) - Open a Pull Request
This project is licensed under the MIT License - see the LICENSE file for details.
- Inspired by Agile/Scrum best practices and Polyscope's autopilot mode
- Built following the Agent Skills Standard
- Compatible with Claude Code, OpenCode, Cursor, and any Agent Skills-compatible AI
- Community-driven development
If your favorite AI assistant doesn't support Agent Skills yet, open an issue or reach out to their team! This skill is designed to work with any tool that implements the standard.
β Star this repo if it helps you plan better!
Made with β€οΈ for the AI coding community