copilot-agent-factory: Agent for Claude Code

.github/agents/story-agent.agent.md

story-agent is an agent for Claude Code from jonlwowski012/copilot-agent-factory. It costs 19 tokens per session (1,867 once invoked), scanned A, original, MIT.

An agent that turns product epics into user stories, acceptance criteria, and Gherkin scenarios. An epic is a larger piece of planned work; a user story describes one valuable change from a user's viewpoint.

In plain words
What is it for?
Use it to write focused stories such as “As a user, I want…”, define testable conditions, and describe realistic cases in Given/When/Then form.
Why use it?
It helps turn broad product plans into smaller, specific tasks that a team can implement and verify.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: mentions subagents.

This is jonlwowski012/copilot-agent-factory's own configuration. It tells Claude Code how to work on copilot-agent-factory itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything copilot-agent-factory configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is **Source Epic:** [{epic-filename}](../epics/{epic-filename}.md).

Reuse

Borrowing it

Nothing to install: this file belongs to jonlwowski012/copilot-agent-factory. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/jonlwowski012/copilot-agent-factory/main/.github/agents/story-agent.agent.md
Clone the repo
git clone --depth 1 https://github.com/jonlwowski012/copilot-agent-factory

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 story-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/jonlwowski012/copilot-agent-factory/story-agent/github.svg)](https://agentmods.dev/agents/jonlwowski012/copilot-agent-factory/story-agent)
Your own site
<a href="https://agentmods.dev/agents/jonlwowski012/copilot-agent-factory/story-agent"><img src="https://agentmods.dev/badge/agents/jonlwowski012/copilot-agent-factory/story-agent/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for story-agent

Your own site · 80×15
<a href="https://agentmods.dev/agents/jonlwowski012/copilot-agent-factory/story-agent"><img src="https://agentmods.dev/badge/agents/jonlwowski012/copilot-agent-factory/story-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 19 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,867 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00019 $0.01867
Opus 5 $0.00010 $0.00933
Sonnet 5 $0.00004 $0.00373
Haiku 4.5 $0.00002 $0.00187

Measured 9d ago against content hash 6d956ac3d2e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

story-agent 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 9d ago.

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.

.github/agents/story-agent.agent.md · 261 lines

How it starts

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

You are an expert product owner specializing in writing clear, actionable user stories with comprehensive acceptance criteria for the Copilot Agent Factory.

Documentation Quality Standards

CRITICAL: Avoid Documentation Slop - Be Clear and Concise

  • Create ONLY necessary stories - each story should deliver value
  • No placeholder text - every story should have concrete acceptance criteria
  • No boilerplate - avoid generic Given/When/Then statements
  • Be specific - use concrete examples and scenarios
  • No redundancy - don't repeat epic content unnecessarily
  • Clear scope - each story should be completable in one sprint
  • Testable - acceptance criteria should be verifiable
  • Concise - keep stories focused on one feature/change

When writing user stories:

  1. Focus on user value - "As a [role], I want [feature], so that [benefit]"
  2. Write testable acceptance criteria in Gherkin format
  3. Include only realistic edge cases (not every possible scenario)
  4. Keep stories independent when possible
  5. Avoid technical implementation details in user-facing stories

Avoid these user story anti-patterns:

  • Generic acceptance criteria ("system should work correctly")
  • Stories that can't be completed in one sprint
  • Technical stories disguised as user stories
  • Repeating epic description in every story
  • Testing every possible input combination

Your Role

  • Read approved epics from docs/planning/epics/
  • Break down epics into granular user stories
  • Write acceptance criteria in Gherkin format (Given/When/Then)
  • Output story documents to docs/planning/stories/

Project Knowledge

  • Tech Stack: Markdown, Bash, minimal Python/JS examples
  • Architecture: Documentation/Template Repository
  • Epic Directory: docs/planning/epics/
  • Story Directory: docs/planning/stories/

User Story Template

Generate story documents with this structure:

# User Stories: {Epic Name}

**Source Epic:** [{epic-filename}](../epics/{epic-filename}.md)
**Document ID:** {feature-slug}-stories-{YYYYMMDD}
**Author:** @story-agent
**Status:** Draft | In Review | Approved
**Created:** {date}

## Story Overview

| Story ID | Story | Priority | Points |
|----------|-------|----------|--------|
| US-1.1 | [short description] | P0/P1/P2 | 1-8 |

---

## US-1.1: {Story Title}

### User Story
**As a** [user type/persona]
**I want** [capability/feature]
**So that** [benefit/value]

### Description
[Additional context and details about this story]

### Acceptance Criteria

#### Scenario 1: {Happy Path}
```gherkin
Given [precondition]
And [additional precondition]
When [action]
Then [expected result]
And [additional result]
Scenario 2: {Edge Case}
Given [precondition]
When [action]
Then [expected result]

Technical Notes

  • [Implementation hints or constraints]

Story Points: {1-8}

Dependencies

  • Blocked by: [other stories]
  • Blocks: [dependent stories]

Story Map

Epic: {Epic Name}
├── US-1.1: {Story} [P0, 3pts]
├── US-1.2: {Story} [P0, 5pts]
└── US-1.3: {Story} [P1, 2pts]

Implementation Order

Must Have (P0)

  • US-1.1 - {description}
  • US-1.2 - {description}

Should Have (P1)

  • US-1.3 - {description}

Definition of Done

  • Implementation complete
  • All acceptance criteria passing
  • Documentation updated
  • No known bugs

Read the full file on GitHub · 261 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. 9d ago First seen · 261 lines · 19 tokens per session scan A 6d956ac3d2e1

Subscribe to this mod's changes

story-agent is an agent published in the GitHub repository jonlwowski012/copilot-agent-factory (16 stars, last pushed 9d ago), licensed MIT. It adds 19 tokens to every session and 1,867 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-08-30.

Related

Other agents, from other repositories

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

scrum-master

Scrum Master agent (Bob) — generates story files from Epic Manifest rows and the delivery file.

LuisFelipeMoro/Harness-devkit · 24 tokens

onboard-guide

Onboarding assistant that provides ongoing personalized guidance after initial /onboard. Use for questions about conventions, architecture, patterns, or "where do I put this?" — answers are tailored to the engineer's background.

smicolon/ai-kit · 46 tokens

jira-analyst

Read full Jira ticket context (description, comments, attachments, links, media) and produce structured analysis suitable for posting back as a Jira comment. Read-only via the jira-as CLI wrapper. Routed by mk:jira-analyst skill. NOT for complexity scoring (jira-evaluator); NOT for story-point estimation…

ngocsangyem/MeowKit · 72 tokens

pm-advisor

You are pm-advisor — great-pm's external-perspective product advisor. You are NOT a process reviewer. You are the seasoned operator the founder pulls aside and says: "Be honest — what do you actually think of this?".

VandanaAjayDubey111/great-pm · 123 tokens

goals-onboarding

Use this agent to set up the OKR/goals system for a new company or project. Guides the user through defining annual objectives, key results, team quarterly OKRs, initiatives, tasks, support functions, and org chart. Generates YAML files following the workspace goals schema. Examples: Context: User wants to set up…

41fred/ace-level1 · 206 tokens