OpenSwarm: Command for Claude Code

.cursor/commands/create-prd.md

create-prd is a command for Claude Code, Cursor from VRSEN/OpenSwarm. It costs 0 tokens per session (1,069 once invoked), scanned A, original, MIT.

A guided command for writing a Product Requirements Document (PRD), a document that describes what a software project should contain and do. It covers an agency's agent roles, communication, tools, and outside services.

In plain words
What is it for?
Use it to define an agency's purpose, agent responsibilities, communication flows, required tools, and external integrations before development.
Why use it?
It turns a broad idea for a group of software agents into a written plan. It also helps identify which connections or custom API tools the agents may need.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

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

About the project

OpenSwarm is an open-source multi-agent system in which specialized agents coordinate to produce deliverables such as presentations, research reports, data visualizations, documents, images, and videos. It is intended for people who want to request complex creative or analytical work from a terminal, with connections to external services. Its catalogue entries define agents, commands, rules, and instructions for those workflows.

VRSEN/OpenSwarm · 2,873 stars · on GitHub

Reuse

Borrowing it

Nothing to install: this file belongs to VRSEN/OpenSwarm. 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/OpenSwarm/main/.cursor/commands/create-prd.md
Clone the repo
git clone --depth 1 https://github.com/VRSEN/OpenSwarm

Made for: Claude Code, Cursor.

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

README.md
[![agentmods](https://agentmods.dev/badge/commands/vrsen/openswarm/create-prd/github.svg)](https://agentmods.dev/commands/vrsen/openswarm/create-prd)
Your own site
<a href="https://agentmods.dev/commands/vrsen/openswarm/create-prd"><img src="https://agentmods.dev/badge/commands/vrsen/openswarm/create-prd/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 create-prd

Your own site · 80×15
<a href="https://agentmods.dev/commands/vrsen/openswarm/create-prd"><img src="https://agentmods.dev/badge/commands/vrsen/openswarm/create-prd.svg" alt="Reviewed on agentmods" width="80" 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 1,069 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.00000 $0.01069
Opus 5.5 $0.00000 $0.00428
Sonnet 5.5 $0.00000 $0.00214
Haiku 4.5 $0.00000 $0.00107

Measured 1mo ago against content hash 6e51c2069a14, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

create-prd 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 1mo 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

1 near-identical copy found in the catalogue:

.cursor/commands/create-prd.md · 137 lines

How it starts

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

PRD Creation - Product Requirements Document for Agency Swarm

Your task is to create a Product Requirements Document (PRD) that defines the agency structure, agent roles, and tool specifications.


Step 1: Ask Questions

Ask the user for:

  • Agency Name
  • Purpose: What does the agency do?
  • Agent Roles: What roles are needed?
  • Communication Flows: How do agents communicate?
  • Tools per Agent: What actions should each agent perform?
  • External Integrations: What APIs or services will be used?

Step 2: Research

Search for available MCP servers for the systems user wants to connect to.

MCP Search Priority:

  1. Check official registry: https://github.com/mcp
  2. Search using web search: mcp server <system name>
  3. If not MCP server is found, search for API documentation and create a custom tool that wraps the API call.

Common MCP Servers:

  • @modelcontextprotocol/server-filesystem - File operations
  • @modelcontextprotocol/server-github - GitHub
  • @modelcontextprotocol/server-slack - Slack
  • @modelcontextprotocol/server-postgres - PostgreSQL
  • @modelcontextprotocol/server-sqlite - SQLite
  • @modelcontextprotocol/server-puppeteer - Web automation
  • @modelcontextprotocol/server-brave-search - Web search

Built-in Tools:

  • WebSearchTool - Built-in web search (use this instead of MCP for web search)

For each integration:

  • Document MCP server package name if found
  • Note required API keys and how to obtain them
  • If no MCP exists, note that custom tool will be needed

Step 3: Create PRD

Create ./prd.txt using this template:

# [Agency Name]

---

- **Purpose:** [High-level description: what the agency achieves, target market, value proposition]

- **Communication Flows:**
  - **Between Agents:**
    - [Description of protocols and flows between agents, shared resources, data exchange]
    - **Example Flow:**
      - **[Agent A] -> [Agent B]:** [Trigger conditions, interaction description, expected outcomes]
      - **[Agent B] -> [Agent C]:** [Trigger conditions, interaction description, expected outcomes]
  - **Agent to User Communication:** [How agents communicate with users, interfaces, channels]

---

## [Agent Name]

### Role within the Agency

[Description of realistic job role and responsibilities - model after actual professions]

### Tools

- **[ToolName]:**
  - **Description**: [What this tool does and when it's used - must be a real-world task]
  - **Inputs**:
    - [name] (type) - description
  - **Validation**:
    - [Condition] - description
  - **Core Functions:** [Main functions the tool performs]
  - **APIs**: [List of APIs used, if any]
  - **Output**: [Expected output format - string or JSON object]
- **MCP Name**: [MCP server package name if found]
  - **URL**: [Url of the server’s github / official page]
  - **Authentication**: [How the MCP is authenticated]
  - **Allowed Tools**: [Which tools to allow]

---

[...repeat for each agent]

Read the full file on GitHub · 137 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. 1mo ago First seen · 137 lines · 0 tokens per session scan A 6e51c2069a14

Subscribe to this mod's changes

create-prd is a command published in the GitHub repository VRSEN/OpenSwarm (2,873 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,069 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-08-30.