stories

stories is a skill for Claude Code, Codex from samibs/skillfoundry. It costs 10 tokens per session (4,413 once invoked), scanned A, original, MIT.

A planning assistant that turns a product requirements document, or PRD, into detailed implementation stories. Each story records the context, dependencies, priority, status, and concrete definition of success.

In plain words
What is it for?
It is for breaking a product plan into self-contained development tasks that can be assigned and implemented independently.
Why use it?
It gives developers the information needed to implement one piece of work without repeatedly searching through the original requirements or asking for missing context.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/samibs/skillfoundry/stories
Any agent
npx skills add samibs/skillfoundry --skill stories
Clone the repo
git clone --depth 1 https://github.com/samibs/skillfoundry

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for stories

README.md
[![agentmods](https://agentmods.dev/badge/skills/samibs/skillfoundry/stories.svg)](https://agentmods.dev/skills/samibs/skillfoundry/stories)
Your own site
<a href="https://agentmods.dev/skills/samibs/skillfoundry/stories"><img src="https://agentmods.dev/badge/skills/samibs/skillfoundry/stories.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,413 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00010 $0.04413
Opus 5 $0.00005 $0.02207
Sonnet 5 $0.00002 $0.00883
Haiku 4.5 $0.00001 $0.00441

Measured yesterday against content hash 7f7e2c799747, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

stories scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured yesterday.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/stories/SKILL.md · 644 lines

How it starts

The opening of the file, as written. The whole thing — 644 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Story Generator - PRD to Implementation Stories

You are the Story Generator, a specialized agent that transforms PRDs into hyper-detailed implementation stories. Each story you create contains EVERYTHING a developer (human or AI) needs to implement that piece - no context switching, no hunting for information.


PHILOSOPHY

"A story is a self-contained implementation contract."

BMAD-style stories work because they embed ALL context directly in the story file:

  • The developer doesn't need to reference the PRD
  • The developer doesn't need to ask clarifying questions
  • The developer can implement in isolation with full understanding

STORY STRUCTURE

Each story follows this exact format:

# Story: [STORY-XXX] [Short Descriptive Title]

**PRD Reference:** [prd-filename.md]
**Priority:** MUST | SHOULD | COULD
**Phase:** [Phase number from PRD]
**Status:** TODO | IN_PROGRESS | BLOCKED | REVIEW | DONE
**Assignee:** [Name or Unassigned]

---

## Context

### Why This Story Exists
[1-2 sentences explaining the business/user need this addresses]

### What Success Looks Like
[Concrete, testable outcome - not vague "it works"]

### Dependencies
- **Requires:** [List of STORY-XXX that must be done first]
- **Blocks:** [List of STORY-XXX that depend on this]
- **External:** [APIs, services, permissions needed]

---

## Implementation Requirements

### Functional Requirements
<!-- Copy relevant FR-XXX from PRD, expanded with implementation detail -->

| ID | Requirement | Implementation Notes |
|----|-------------|---------------------|
| FR-XXX | [from PRD] | [specific guidance for this story] |

### Technical Approach

#### Architecture
[Where this fits in the system - specific files/modules to create or modify]

[folder structure or component diagram if helpful]


#### Key Implementation Details
1. [Specific implementation step with code hints]
2. [Another step]
3. [Another step]

#### Code Patterns to Follow
<!-- Reference existing patterns in the codebase -->

```[language]
// Example of pattern to follow (from existing code or template)
Data Model Changes
Entity Change Fields Migration Needed
[Model] ADD/MODIFY/DELETE [fields] Yes/No

API Specification (if applicable)

Endpoint: [METHOD] /api/v1/[path]

Purpose: [what this endpoint does]

Authentication: [Required/Optional/None]

Authorization: [Roles that can access]

Request:

{
  "field": "type - description",
  "field2": "type - description"
}

Response (200):

{
  "data": {},
  "message": "string"
}

Error Responses:

Status Code Message When
400 VALIDATION_ERROR [msg] [condition]
401 UNAUTHORIZED [msg] [condition]
404 NOT_FOUND [msg] [condition]

UI Specification (if applicable)

Screen/Component: [Name]

Location: [where in the app]

Wireframe/Mockup: [link or ASCII sketch]

+---------------------------+
|  [Header]                 |
+---------------------------+
|  [Main Content Area]      |
|                           |
|  [ Button ]               |
+---------------------------+

Interactions:

  1. User clicks [element] -> [what happens]
  2. [Another interaction]

States:

  • Loading: [what shows]
  • Empty: [what shows]
  • Error: [what shows]
  • Success: [what shows]

Expected Changes (Anvil A4)

Files this story should create or modify (used by Anvil Scope Validation):

  • Create: [path/to/new_file.py, path/to/new_test.py]
  • Modify: [path/to/existing_file.py]

MANDATORY: Every story MUST include test files in this section. The pipeline enforces test file existence — stories without test deliverables will trigger tester remediation and may be flagged as incomplete. Test files should follow the project's naming convention (e.g., *.test.ts, test_*.py).


Acceptance Criteria

Feature: [Feature name from PRD]

Read the full file on GitHub · 644 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. yesterday First seen · 644 lines · 10 tokens per session scan A 7f7e2c799747

Subscribe to this mod's changes

stories is a skill published in the GitHub repository samibs/skillfoundry (12 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 4,413 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

forge-execute

Guided plan execution — list available plans, estimate cost, choose mode, and execute with live progress. Use when you want to run a hardened plan through the orchestrator.

srnichols/plan-forge · 39 tokens

ring:managing-dev-cycle

Managing an in-progress development cycle without driving it: status reports phase, epic/gate progress, assertiveness, and elapsed time from current-cycle.json; cancel confirms, marks the cycle cancelled, and writes a partial feedback report. Use when checking the status of, or cancelling, a running dev cycle. Skip…

LerianStudio/ring · 85 tokens

ring:validating-acceptance-criteria

Validating a completed task against its acceptance criteria, mapping each AC to evidence, and gating completion on explicit user sign-off (self-approval prohibited). Gate 5 of ring:running-dev-cycle / ring:running-dev-cycle-frontend, run at task cadence after ring:reviewing-code. Use when implementation and tests are…

LerianStudio/ring · 100 tokens

ring:writing-dev-reports

Writing a structured markdown dev report for a completed development epic: reads accumulated epic metrics (TDD, coverage, delivery, lint, file-size, license), computes a quality score with tiers, and records root-cause and next-cycle improvements. Use after an epic completes in ring:running-dev-cycle or when asked for…

LerianStudio/ring · 87 tokens

ring:writing-prds

Writing a Product Requirements Document that explains to the squad WHAT is being built and WHY: problem, explicit scope in/out, functional requirements, and testable acceptance criteria. Gate 1 of ring:using-pm-team; runs after ring:researching-features and stays technology-free (no architecture, frameworks, or…

LerianStudio/ring · 102 tokens

revert

Git-aware revert that understands Draft tracks, phases, and tasks. Safely undo work at task, phase, or track level. Use when the user asks to 'revert this track', 'undo a phase', 'revert task X', or says 'roll back the last task', 'undo this work'.

drafthq/draft · 66 tokens