stories

stories is a command for Claude Code from samibs/skillfoundry. It costs 0 tokens per session (4,393 once invoked), scanned A, original, MIT.

A story-writing command that turns product requirements documents (PRDs) into detailed, self-contained implementation stories.

In plain words
What is it for?
Use it to create stories with context, priorities, dependencies, statuses, acceptance criteria, and the information needed for isolated implementation.
Why use it?
It reduces the need for developers to hunt through separate documents or repeatedly ask for missing context.

Command for Claude Code

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 commands/samibs/skillfoundry/stories
Clone the repo
git clone --depth 1 https://github.com/samibs/skillfoundry

Made for: Claude Code.

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/commands/samibs/skillfoundry/stories.svg)](https://agentmods.dev/commands/samibs/skillfoundry/stories)
Your own site
<a href="https://agentmods.dev/commands/samibs/skillfoundry/stories"><img src="https://agentmods.dev/badge/commands/samibs/skillfoundry/stories.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 4,393 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.00000 $0.04393
Opus 5 $0.00000 $0.02197
Sonnet 5 $0.00000 $0.00879
Haiku 4.5 $0.00000 $0.00439

Measured yesterday against content hash b36fb5b4c2c5, 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.

.claude/commands/stories.md · 638 lines

How it starts

The opening of the file, as written. The whole thing — 638 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 · 638 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 · 638 lines · 0 tokens per session scan A b36fb5b4c2c5

Subscribe to this mod's changes

stories is a command published in the GitHub repository samibs/skillfoundry (12 stars, last pushed today), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 4,393 tokens. 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.