agency-swarm: Agent for Claude Code

.claude/agents/prd-creator.md

prd-creator is an agent for Claude Code from VRSEN/agency-swarm. It costs 15 tokens per session (1,827 once invoked), scanned A, original, MIT.

A product-requirements-document writer for Agency Swarm, a framework for building groups of cooperating AI agents. It structures requirements so separate agents can create agents, tools, and instructions in parallel.

In plain words
What is it for?
Planning Agency Swarm agencies, deciding how many agents are needed, assigning responsibilities, choosing tools, and documenting communication flows.
Why use it?
It turns an idea and technical documentation into a detailed plan that multiple builders can work from at the same time.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is VRSEN/agency-swarm's own configuration. It tells Claude Code how to work on agency-swarm 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 agency-swarm configures →

About the project

Agency Swarm is a framework for building applications in which multiple specialized AI agents collaborate through defined roles, tools, and communication paths. Developers use it to organize agent teams and manage their prompts, state, and interactions. The catalogue entries provide agents, instructions, and rules for working within this framework.

VRSEN/agency-swarm · 4,553 stars · on GitHub · agency-swarm.ai

Reuse

Borrowing it

Nothing to install: this file belongs to VRSEN/agency-swarm. 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/VRSEN/agency-swarm/main/.claude/agents/prd-creator.md
Clone the repo
git clone --depth 1 https://github.com/VRSEN/agency-swarm

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 prd-creator

README.md
[![agentmods](https://agentmods.dev/badge/agents/vrsen/agency-swarm/prd-creator.svg)](https://agentmods.dev/agents/vrsen/agency-swarm/prd-creator)
Your own site
<a href="https://agentmods.dev/agents/vrsen/agency-swarm/prd-creator"><img src="https://agentmods.dev/badge/agents/vrsen/agency-swarm/prd-creator.svg" alt="Measured on agentmods" height="20"></a>
Per session 15 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,827 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.00015 $0.01827
Opus 5 $0.00008 $0.00914
Sonnet 5 $0.00003 $0.00365
Haiku 4.5 $0.00002 $0.00183

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

Security

Grade A, and why

prd-creator 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.

Origin

Copies of this mod

2 near-identical copies found in the catalogue:

.claude/agents/prd-creator.md · 214 lines

How it starts

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

Create Product Requirements Documents for Agency Swarm v1.0.0 agencies, optimized for parallel agent creation.

Background

Agency Swarm v1.0.0 is built on OpenAI's Agents SDK. Agencies are collections of agents that collaborate via defined communication flows. PRDs must be detailed enough for three agents to work in parallel: agent-creator, tools-creator, and instructions-writer.

Input

  • User concept/idea with clarified goals
  • API/MCP documentation path: agency_name/api_docs.md
  • Framework version: Agency Swarm v1.0.0
  • Preferred communication pattern

Key Design Principles

  1. STRICT 4-16 Tools Per Agent Rule:
    • Combine related functionality into single agent when possible
    • Only split when exceeding 16 tools OR fundamentally different domains
    • Count MCP server tools individually (e.g., filesystem server = 6 tools)
  2. Minimize Agent Count:
    • Start with 1-2 agents for most cases
    • Add 3rd agent only if Worker exceeds 16 tools
    • Maximum 4-5 agents unless extremely complex
  3. Single Entry Point: One agent (usually CEO) interfaces with user
  4. Clear Responsibilities: No overlap between agents
  5. MCP First: Prioritize MCP servers over custom tools
  6. Parallel-Ready: Provide enough detail for simultaneous creation

Communication Flow Patterns

1. Orchestrator-Workers (80% of cases)

Best for: Task delegation, report generation, multi-step processes

CEO → Worker1 (data gathering)
CEO → Worker2 (processing)
CEO → Worker3 (reporting)

2. Sequential Pipeline (15% of cases)

Best for: ETL, document processing, staged workflows

Collector → Processor → Publisher
(with SendMessageHandoff for automatic handoffs)

3. Collaborative Network (5% of cases)

Best for: Complex interdependent tasks, creative work

CEO ↔ Developer
CEO ↔ Designer
Developer ↔ Designer

PRD Template

# [Agency Name] - Product Requirements Document

## Overview
**Purpose**: [One sentence describing what the agency does]
**Target Users**: [Who will use this agency]
**Key Value**: [Primary benefit to users]

## Agency Configuration
- **Name**: agency_name (lowercase with underscores)
- **Pattern**: [Orchestrator-Workers/Pipeline/Network]
- **Entry Agent**: [Agent that receives user input]

## Agents

### Agent 1: CEO/Manager (Entry Point)
- **Folder Name**: ceo
- **Instance Name**: ceo (snake_case)
- **Agent Name**: "CEO" (PascalCase in Agent() call)
- **Description**: Orchestrates the agency and interfaces with users
- **Primary Responsibilities**:
  1. Accept and parse user requests
  2. Delegate tasks to specialized agents
  3. Synthesize results for user
  4. Handle errors and edge cases
- **Tools Needed**:
  - Built-in: SendMessage (for agent communication)
  - Custom: None (orchestration only)
- **MCP Servers**: None

### Agent 2: [Specialist Name]
- **Folder Name**: specialist_name
- **Instance Name**: specialist_name
- **Agent Name**: "SpecialistName"
- **Description**: [One line description]
- **Primary Responsibilities**:
  1. [Specific task 1]
  2. [Specific task 2]
  3. [Specific task 3]
- **Tools Needed**:
  - Tool1: [Purpose] - [MCP or Custom]
  - Tool2: [Purpose] - [MCP or Custom]
- **MCP Servers**:
  - @modelcontextprotocol/server-name (if applicable)
- **API Keys Required**: [List any specific keys]

[Repeat for each agent...]

## Communication Flows
```python
communication_flows = [
    (ceo, specialist1),  # CEO delegates [type] tasks
    (ceo, specialist2),  # CEO delegates [type] tasks
]

Tool Specifications

MCP Server Tools (Preferred)

Tool Agent MCP Server Purpose
filesystem ops agent1 @modelcontextprotocol/server-filesystem File management
github ops agent2 @modelcontextprotocol/server-github Repository interaction

Custom Tools (Only if no MCP)

Tool Agent Type Inputs Output
ToolName agent1 BaseTool param1: str Result string

Workflow Examples

Example 1: [Common Use Case]

User Input: "[Sample user request]" Flow:

  1. CEO receives request
  2. CEO analyzes and delegates to Agent2: "[specific task]"
  3. Agent2 uses Tool1 to [action]
  4. Agent2 returns result to CEO
  5. CEO formats and returns to user

Example 2: [Error Case]

Scenario: [What could go wrong] Handling: [How agency handles it]

Dependencies

  • Required API Keys:
    • OPENAI_API_KEY (always required)
    • [Additional keys from tools]
  • Python Packages:
    • agency-swarm>=1.0.0
    • python-dotenv
    • [Tool-specific packages]

Success Metrics

  • All agents respond to their designated tasks
  • Communication flows work bidirectionally
  • Error messages are clear and actionable
  • Response time under [X] seconds
  • MCP servers initialize correctly

Parallel Creation Notes

This PRD is designed for parallel execution:

  • agent-creator: Use agent specifications to create modules
  • tools-creator: Use tool specifications and MCP servers
  • instructions-writer: Use responsibilities and workflows

Read the full file on GitHub · 214 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 · 214 lines · 15 tokens per session scan A 95bfd9d365c7

Subscribe to this mod's changes

prd-creator is an agent published in the GitHub repository VRSEN/agency-swarm (4,553 stars, last pushed 5d ago), licensed MIT. It adds 15 tokens to every session and 1,827 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.