using-user-stories

using-user-stories

Document and track feature implementation with user stories. Workflow for authoring stories, building features, and marking acceptance criteria as passing.

5bintang
1fork
Diperbarui 1/21/2026
SKILL.md
readonlyread-only
name
using-user-stories
description

Document and track feature implementation with user stories. Workflow for authoring stories, building features, and marking acceptance criteria as passing.

Working with User Stories

Document and track feature implementation with user stories. Workflow for authoring stories, building features, and marking acceptance criteria as passing.

User stories document what features should do and track implementation status. When AI agents work through user stories systematically, they produce better results and leave a clear trail of what was done.


Workflow

When working on features:

  1. Author/Update: Create or modify user story features before building
  2. Build & Test: Implement until tests pass
  3. Mark Passing: Set passes: true when verified

When to Create User Stories

Create user stories when:

  • Starting a new feature or flow
  • Fixing a bug that should have test coverage
  • Implementing requirements from a design or spec
  • Breaking down a large feature into testable increments

Writing Effective Steps

Steps should be:

  • Verifiable: Each step can be checked by running the app or tests
  • Imperative: Written as commands ("Navigate to", "Click", "Verify")
  • Specific: Include URLs, button names, expected values

Good:

{
  "description": "User deletes a chat",
  "steps": [
    "Navigate to /chats",
    "Click the menu button on a chat",
    "Click 'Delete' option",
    "Confirm deletion in dialog",
    "Verify chat is removed from list"
  ],
  "passes": false
}

Avoid vague steps:

{
  "description": "User deletes a chat",
  "steps": ["Delete a chat", "Check it worked"],
  "passes": false
}

Documenting Work Done

When completing a feature:

  1. Verify all steps work manually or via tests
  2. Update passes: true in the user story
  3. Commit both the implementation and the updated story

This creates a log of completed work that future agents can reference.


Using with AI Agents

AI agents can read user stories to:

  • Understand what features need to be built
  • Know the exact acceptance criteria
  • Find features that still need work (passes: false)
  • Log their progress by marking features as passing

For automated agent loops, see the Ralph Agent Loop recipe.


Verifying Stories

Run the verification script to check all stories have valid format:

bun run user-stories:verify

This validates:

  • All files are valid JSON
  • Each feature has required fields
  • Steps are non-empty strings
  • Shows pass/fail counts per file

You Might Also Like

Related Skills

fix

fix

243Kdev-testing

Use when you have lint errors, formatting issues, or before committing code to ensure it passes CI.

facebook avatarfacebook
Ambil
peekaboo

peekaboo

179Kdev-testing

Capture and automate macOS UI with the Peekaboo CLI.

openclaw avataropenclaw
Ambil
frontend-testing

frontend-testing

128Kdev-testing

Generate Vitest + React Testing Library tests for Dify frontend components, hooks, and utilities. Triggers on testing, spec files, coverage, Vitest, RTL, unit tests, integration tests, or write/review test requests.

langgenius avatarlanggenius
Ambil
frontend-code-review

frontend-code-review

127Kdev-testing

Trigger when the user requests a review of frontend files (e.g., `.tsx`, `.ts`, `.js`). Support both pending-change reviews and focused file reviews while applying the checklist rules.

langgenius avatarlanggenius
Ambil
code-reviewer

code-reviewer

92Kdev-testing

Use this skill to review code. It supports both local changes (staged or working tree) and remote Pull Requests (by ID or URL). It focuses on correctness, maintainability, and adherence to project standards.

google-gemini avatargoogle-gemini
Ambil
session-logs

session-logs

90Kdev-testing

Search and analyze your own session logs (older/parent conversations) using jq.

moltbot avatarmoltbot
Ambil