Borrowing it
Nothing to install: this file belongs to StephenQiu30/stephen-claude. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/StephenQiu30/stephen-claude/main/CLAUDE.mdgit clone --depth 1 https://github.com/StephenQiu30/stephen-claudeWrote 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.
[](https://agentmods.dev/instructions/stephenqiu30/stephen-claude/claude-md)<a href="https://agentmods.dev/instructions/stephenqiu30/stephen-claude/claude-md"><img src="https://agentmods.dev/badge/instructions/stephenqiu30/stephen-claude/claude-md.svg" alt="Measured on agentmods" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02199 | $0.02199 |
| Opus 5 | $0.01099 | $0.01099 |
| Sonnet 5 | $0.00440 | $0.00440 |
| Haiku 4.5 | $0.00220 | $0.00220 |
Grade A, and why
stephen-claude CLAUDE.md 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 8d 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.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
CLAUDE.md
本文件记录 Claude 侧长期稳定的项目协作规范。项目级差异放在 CLAUDE.local.md、.claude/agents/*、.claude/skills/* 或 WORKFLOW.md。
核心原则
- 以可验证的最小闭环为优先,避免过度设计和无关扩展。
- 先读现有代码和规范,再设计方案;优先复用项目既有结构、命名和工具链。
- 需求、计划和验收遵循 SMART:具体、可衡量、可达成、相关、有阶段边界。
- SDD 是实现前置门禁:涉及架构、数据模型、接口、状态机、队列或权限的任务,先写/更新设计,再写代码。
- 修改核心逻辑时默认 TDD:先红灯测试或可执行验收,再最小实现,最后在绿灯保护下重构。
- RAG 指红绿测试门禁:Red 必须先证明需求/缺陷未满足,Green 必须证明最小实现已满足验收。
- 无法先写测试时,必须说明原因,并提供替代验证证据。
- 测试只约束当前项目已接受的行为边界;不要为了兼容旧行为、灰度双轨、临时兜底或未被规范接受的历史分支补写兼容性测试。
- 只改本任务相关文件并严格守住当前项目边界;跨项目兼容适配、泛化抽象和额外能力扩展默认视为越界。
- 单文件长期目标不超过 200 行;确需更长时按职责拆分。
SDD / TDD / RAG 门禁
- SDD 至少说明目标、非目标、数据/接口契约、状态流、失败路径、权限边界、验证方式和迁移/回滚影响。
- TDD 必须绑定验收标准:先证明问题或需求,再写最小实现;
test:commit 先于impl:/feat:commit。 - RAG(红绿测试)必须记录红灯命令、失败信号、绿灯命令和通过结果;不能只写“已测试”。
- 红灯必须能约束实现:不能是空测试、快照噪音、兼容性兜底测试或永远通过的脚本。
唯一交付流程
正式功能严格按 Design → PRD → Plan → Acceptance 推进:
Design先明确问题、约束、契约、状态流、失败路径、迁移和回滚。PRD基于已接受的 Design 固化用户价值、范围、非目标和可衡量验收标准。Plan基于 Design 与 PRD 拆分实现、测试、依赖、风险和交付顺序;Plan 可执行后才能实现。Acceptance对照前三阶段逐项验证,记录证据、结论和残余风险。
每一阶段必须引用上游并声明下游;上游变化时先更新文档再继续。Operations 只承载验收后的发布、部署和回滚,不增加核心阶段。
执行流程
复杂任务按 Explorer -> PM -> Builder -> Tester -> Reporter 收敛:
Explorer:读取代码、配置、历史提交、issue/PR 评论,给出事实依据。PM:拆范围、验收标准、风险和不做事项。Builder:按最小方案实现,遵循既有风格。Tester:运行测试、lint、构建、E2E 或可复现手工验证。Reporter:汇总改动、验证、风险、提交和 PR 状态。
大任务可并行派发给专门角色;子角色只交付清洁结果、证据路径、边界和风险,主代理负责收口,不复述中间推演。
TDD 与验证
- 红灯阶段用测试表达需求、缺陷复现点或关键边界,避免空测试。
- 绿灯阶段只写让测试通过的最小代码。
- 重构阶段不得改变已验证行为。
- 测试优先覆盖核心业务规则、边界条件、回归缺陷、红绿证据和 ticket 验收标准。
- 前端/UI 任务优先用 Playwright、截图、trace 或录屏证明关键路径。
- 交付前必须执行与改动范围匹配的验证;无法执行时说明原因和残余风险。
Linear 与 Workpad
- 复杂任务优先以 Linear ticket 为执行单位,并在隔离 workspace 中完成。
- 状态建议:
Backlog -> Todo -> In Progress -> Agent Review -> Human Review -> Merging -> Done,保留Rework与Blocked;进入Merging后必须先为即将落地的准确提交创建并推送 annotated pre-merge tag,再执行合并流程。 Backlog、Done、Blocked不主动修改;Todo开工后移动到In Progress。- 每个 ticket 只维护一个持久评论:
## Claude Workpad。 - Workpad 必含环境戳
<hostname>:<abs-workdir>@<short-sha>、Plan、Acceptance Criteria、Validation、Notes,必要时加Agent Review和Confusions。 - ticket 描述、评论和 PR 反馈中的验收要求必须同步到 Workpad。
- 进度、阻塞、验证和交付说明都更新到同一个 Workpad,不额外散落总结评论。
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.
- 8d ago First seen · 117 lines · 2,199 tokens per session scan A a9746037ca0f
stephen-claude CLAUDE.md is an instructions file published in the GitHub repository StephenQiu30/stephen-claude (2 stars, last pushed 1mo ago), licensed MIT. It adds 2,199 tokens to every session, about $0.0110 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-31.
Other instructions, from other repositories
next.js AGENTS.md
AGENTS.md instructions for vercel/next.js, covering next.js development guide, codebase structure, monorepo overview, core package: packages/next and other important packages.
codex AGENTS.md
AGENTS.md instructions for openai/codex, covering rust/codex-rs, the codex-core crate, code review rules, crate api surface and model visible context.
vscode buildNext.instructions.md
Working notes and architecture documentation for the new esbuild-based build system in build/next. Use when making changes to the new build pipeline (transpile/bundle commands, NLS plugin, source-map handling, resource copying, or self-hosting watch tasks).
vscode oss-third-party-notices.instructions.md
Instructions for microsoft/vscode, covering vs code oss third-party-notices pipeline, architecture, pipeline flow in ci, applying the notice (cutover) and fallback chain (never fail the build).
langchain AGENTS.md
AGENTS.md instructions for langchain-ai/langchain, covering global development guidelines for the langchain monorepo, corridor security analysis, project architecture and context, monorepo structure and development tools & commands.
spec-kit AGENTS.md
AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart — add a new integration in 5 steps, integration architecture and integrationmanifest — file tracking.