spec-coding-mcp: Instructions file for Claude Code

CLAUDE.md

claude is an instructions file for Claude Code from xy200303/spec-coding-mcp. It costs 821 tokens per session, scanned A, original, MIT.

Startup instructions for contributors to a project that provides extra context and workflow tools for specification-driven coding. They set rules for focused changes, checking work, and handling uncertain requirements.

In plain words
What is it for?
Following repository conventions, loading task context before coding, recording progress, validating changes, and getting guidance for engineering, interface, specification, review, or release tasks.
Why use it?
Contributors can make inconsistent changes or skip required project steps when working without shared guidance. These instructions explain when to use the project’s context, progress, and completion tools.

Instructions file for Claude Code

Written for Claude Code: the file is CLAUDE.md. Also seen: mentions CLAUDE.md.

This is xy200303/spec-coding-mcp's own configuration. It tells Claude Code how to work on spec-coding-mcp 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 spec-coding-mcp configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xy200303/spec-coding-mcp. 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/xy200303/spec-coding-mcp/main/CLAUDE.md
Clone the repo
git clone --depth 1 https://github.com/xy200303/spec-coding-mcp

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 claude

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xy200303/spec-coding-mcp/claude-md/github.svg)](https://agentmods.dev/instructions/xy200303/spec-coding-mcp/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/xy200303/spec-coding-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/xy200303/spec-coding-mcp/claude-md/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 claude

Your own site · 80×15
<a href="https://agentmods.dev/instructions/xy200303/spec-coding-mcp/claude-md"><img src="https://agentmods.dev/badge/instructions/xy200303/spec-coding-mcp/claude-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 821 This file is loaded in full into every session.
When invoked 821 The same file — it is already loaded in full.
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.00821 $0.00821
Opus 5.5 $0.00328 $0.00328
Sonnet 5.5 $0.00164 $0.00164
Haiku 4.5 $0.00082 $0.00082

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

Security

Grade A, and why

claude 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 2mo 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.

CLAUDE.md · 95 lines

What it actually says

CLAUDE.md

Project: Spec Coding MCP

项目约定(所有人适用)

  • 改动小而聚焦,不做无关重构
  • 不要猜测业务规则,不确定时先确认
  • 不要覆盖他人已做的修改
  • 提交前验证

Spec Coding MCP(可选增强)

本项目支持 spec-coding-mcp 工具提供增强开发流程。

检测方法:查看可用工具列表中是否有 spec_context。

◆ 如果你有 spec_context 工具

按以下硬性协议执行:

  1. 写任何代码前,先调用 spec_context 获取当前任务上下文。
  2. 只执行 spec/TODO 中列出的任务,不从对话历史推导。
  3. 按清单自上而下执行 → spec_checkpoint 记录进度 → 验证 → spec_done 归档。
  4. UI/UX 任务使用 ui-ux-pro-max skill。
  5. 需要原则指导时调用 spec_guidance_read。

常见错误(不要做):不调 spec_context 就写代码 / 跳过验证直接 done / 监听型 TODO 自己标完成。

◆ 如果你没有 spec_context 工具

跳过本节。按项目常规开发流程工作:读需求 → 写代码 → 测试 → 提交。 不要尝试调用 spec_context、spec_checkpoint、spec_done 等不存在的工具。

Guidance 索引(仅 MCP 用户)

需要原则时调用 spec_guidance_read:

Name 用途 何时读
engineering 工程规范、业务确认 实现/重构
ui-ux UI/UX skill 路由 前端/页面
spec-writing spec 工作流、验证器 创建/执行 spec
git-commit 安全提交流程 用户要求 commit
pr-submit PR 创建流程 用户要求 PR
quality-review 质量自检清单 done/commit/PR 前

Hard Stop(所有人适用)

Ask the user before implementing unclear or high-risk business rules involving money, permissions, state machines, concurrency, idempotency, retries, rollback, compliance, or role differences.

Boundaries(所有人适用)

  • Do not guess business rules.
  • Do not use stale conversation context over selected specs or open TODOs.
  • Do not overwrite user edits or make unrelated reshuffles.
  • Keep changes small, focused, and verified.

Shared Memory / Vault(仅 MCP 用户)

specs/ 目录作为持久化 Vault,在不同会话之间共享上下文:

specs/
├── README.md          # vault 索引与约定
├── active/            # 当前工作进行中
├── todo/              # 轻量执行清单
├── done/              # 已完成 spec + 最终行为契约
├── review/            # 源码审查任务
└── guidance/          # 可编辑 Agent 指导性提示词

无 MCP 工具时,specs/ 目录退化为普通项目文档目录。

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. 2mo ago First seen · 95 lines · 821 tokens per session scan A d16ca8c45460

Subscribe to this mod's changes

claude is an instructions file published in the GitHub repository xy200303/spec-coding-mcp (2 stars, last pushed 4mo ago), licensed MIT. It adds 821 tokens to every session, about $0.0033 per session on Opus 5.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-31.

Related

claude compared with instructions from other repositories

claude next to 6 instructions from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
claudexy200303/spec-coding-mcpInstructions file24mo agoMITA821Claude Code
vibe-coding-prompt-template backend.instructions.mdKhazP/vibe-coding-prompt-templateInstructions file3.2k1mo agoMITA139GitHub Copilot
vscode buildNext.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA9,719GitHub Copilot
next.js AGENTS.mdvercel/next.jsInstructions file143kyesterdayMITA7,461Codex, OpenCode
langchain AGENTS.mdlangchain-ai/langchainInstructions file149kyesterdayMITA4,680Codex, OpenCode
vscode oss-third-party-notices.instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA5,516GitHub Copilot
vscode copilot-instructions.mdmicrosoft/vscodeInstructions file195kyesterdayMITA3,093GitHub Copilot