foundry_create_spec

foundry_create_spec is a command for Cursor from cafreeman/foundry-mcp. It costs 0 tokens per session (1,603 once invoked), scanned A, original, MIT.

A command for creating a comprehensive feature specification through a collaborative design process. A feature specification explains a proposed capability and how it should be built.

In plain words
What is it for?
Use it to discover project context, review existing specifications, validate feature scope, and document a new feature in the project's established format.
Why use it?
It helps define the problem, users, requirements, scope, and implementation guidance before development starts, while checking for duplicate or conflicting specifications.

Command for Cursor

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/cafreeman/foundry-mcp/foundry_create_spec
Clone the repo
git clone --depth 1 https://github.com/cafreeman/foundry-mcp

Made for: 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 foundry_create_spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/cafreeman/foundry-mcp/foundry_create_spec.svg)](https://agentmods.dev/commands/cafreeman/foundry-mcp/foundry_create_spec)
Your own site
<a href="https://agentmods.dev/commands/cafreeman/foundry-mcp/foundry_create_spec"><img src="https://agentmods.dev/badge/commands/cafreeman/foundry-mcp/foundry_create_spec.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 1,603 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.01603
Opus 5 $0.00000 $0.00801
Sonnet 5 $0.00000 $0.00321
Haiku 4.5 $0.00000 $0.00160

Measured 3d ago against content hash aa089d3a718a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

foundry_create_spec 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 3d 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.

.cursor/commands/foundry_create_spec.md · 194 lines

How it starts

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

Create Spec With Foundry

Overview

Create a comprehensive feature specification with detailed implementation guidance through collaborative design process.

Context Gathering & Project Discovery

Project Foundation Analysis:

  1. Load Project Context: Review project vision, tech stack, and summary to understand domain and constraints
  2. Existing Spec Review: List current specs to avoid duplication and ensure consistent naming patterns
  3. Feature Scope Validation: Confirm proposed feature aligns with project vision and technical architecture

Duplicate Prevention & Naming:

  • Scan existing spec names and feature areas to avoid conflicts or overlaps
  • Ensure new feature name follows project conventions and semantic clarity
  • Validate that feature scope is appropriately focused and doesn't duplicate existing functionality

Comprehensive Feature Definition Process

Phase 1: Feature Discovery & Requirements

Problem Statement & User Value:

  • What specific user pain point or business need does this feature address?
  • How do users currently handle this need, and what are the limitations?
  • What would success look like from both user and business perspectives?
  • How does this feature support the overall project vision and roadmap?

User Stories & Workflows:

  • Who are the primary users of this feature and what are their technical skill levels?
  • What are the key user workflows and interaction patterns?
  • What are the most important requirements from a user experience perspective?
  • How will users discover, learn, and adopt this feature?

Technical Requirements & Constraints:

  • How does this feature integrate with existing system architecture?
  • What are the performance, security, or compliance requirements?
  • Are there specific technology or platform constraints to consider?
  • What external dependencies or third-party integrations are needed?

Phase 2: Technical Design & Planning

Architecture & Integration:

  • How does this feature connect to existing components and data models?
  • What new APIs, database changes, or infrastructure components are needed?
  • How will this feature handle errors, edge cases, and recovery scenarios?
  • What are the scalability and maintenance considerations?

Read the full file on GitHub · 194 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. 3d ago First seen · 194 lines · 0 tokens per session scan A aa089d3a718a

Subscribe to this mod's changes

foundry_create_spec is a command published in the GitHub repository cafreeman/foundry-mcp (4 stars, last pushed 5mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,603 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-31.