doc77 CLAUDE.md

doc77 CLAUDE.md is an instructions file for coding agents from xyy277/doc77. It costs 3,818 tokens per session, scanned A, original, MIT.

A project instruction file for doc77 that guides skill selection, terminology, and documentation language. It explains when to use skills and how to write technical and public documents.

In plain words
What is it for?
Use it when working on doc77 tasks that involve selecting skills, writing documentation, or following its English-and-Chinese language rules.
Why use it?
It gives coding agents consistent rules for choosing tools and writing project documentation. This reduces unclear terminology and inconsistent language.

Instructions file

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 instructions/xyy277/doc77/claude-md
Clone the repo
git clone --depth 1 https://github.com/xyy277/doc77

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 doc77 CLAUDE.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/xyy277/doc77/claude-md.svg)](https://agentmods.dev/instructions/xyy277/doc77/claude-md)
Your own site
<a href="https://agentmods.dev/instructions/xyy277/doc77/claude-md"><img src="https://agentmods.dev/badge/instructions/xyy277/doc77/claude-md.svg" alt="Measured on agentmods" height="20"></a>
Per session 3,818 This file is loaded in full into every session.
When invoked 3,818 The same file — it is already loaded in full.
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.03818 $0.03818
Opus 5 $0.01909 $0.01909
Sonnet 5 $0.00764 $0.00764
Haiku 4.5 $0.00382 $0.00382

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

Security

Grade A, and why

doc77 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 4d 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 · 259 lines

How it starts

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

CLAUDE.md

Skill 选择策略

  • 简单任务 — 如单行修复、小改动、纯问答、明确单一操作等,直接执行,无需调用 skill
  • 复杂任务 — 如新功能开发、重构、bug 诊断、多文件改动、需要设计评审等,自动选择合适的 skill 来处理(如 brainstorming → writing-plans → test-driven-development 等),即使用户没有明确指定 skill

文档语言规范

本项目所有文档遵循以下语言规范:

  • 专业名词 / 技术术语:使用 英文 原文(如 Node.js, Express, SQLite, MCP, SDK, API, CLI, SSE, JSON-RPC, TypeScript 等)
  • 其余说明文字:使用 中文

术语对照示例

英文术语 说明
Node.js 运行时,不翻译
Express Web 框架,不翻译
SQLite 数据库,不翻译
MCP (Model Context Protocol) 协议名称,保留英文
SDK 软件开发工具包,保留英文缩写
CLI 命令行接口,保留英文缩写
API 应用程序接口,保留英文缩写
SSE (Server-Sent Events) 服务端推送事件,保留英文缩写
JSON-RPC 协议,保留英文
TypeScript 编程语言,不翻译
Shadow / Shadow Copy 影子备份,可保留英文并附中文说明
Pre-flight Check 飞行前检查
Rollback 回滚
GC (Garbage Collection) 垃圾回收
safeMove 安全移动(函数名保留英文)
batch_operations 批量操作(函数名保留英文)
session_id 会话标识符(字段名保留英文)

编写原则

  1. 技术名词首次出现时,可附中文注释说明,后续统一使用英文术语
  2. 代码、命令、配置项、字段名、表名保持英文原文
  3. 结构化内容(表格、列表)中的术语使用英文,描述性文字使用中文
  4. 标题可根据内容性质使用中英混合

公开文档语言规范

项目支持多语言推广。公开文档的语言遵循以下规则:

  • 英文(默认/权威版本)README.mdCHANGELOG.mdpackage.json#description
  • 中文翻译README.zh-CN.md,通过顶部语言切换 badge 关联
  • 内部设计文档docs/design/docs/planning/):保持中文(面向中文开发团队)

隐私与安全规范

严禁将包含隐私数据的文件提交到 Git 仓库。 以下文件一律默认保留在本地,不得 git addgit commitgit push

  • 包含 token、API key、secret、password、access_key、private key 等认证凭据的任何文件
  • 环境变量文件:.env.env.local.env.development.env.production 等(.env.example 模板文件除外)
  • 证书与密钥:*.pem*.key*.pfx*.p12*.cert*.crt
  • 任何 OAuth、AWS、GitHub token 等第三方服务凭据

原则

  1. 默认本地 — 不确定是否包含敏感数据时,默认不提交

  2. 模板替代 — 如需共享配置结构,提供 .example 模板文件(值用占位符)

  3. 提交前隐私检查(强制) — 每次 git commit 前,必须对 git diff --cached 的内容执行隐私泄露扫描,检查是否包含以下敏感信息:

    类型 检测模式
    Token / API Key sk-ghp_gho_xox[bprs]-AKIAeyJ(JWT) 等前缀
    Password / Secret password\s*[:=]secret\s*[:=]passwd
    手机号 1[3-9]\d{9}(中国手机号)
    邮箱 \S+@\S+\.\S+(非示例/占位邮箱,如 [email protected] 除外)
    私钥 -----BEGIN.*PRIVATE KEY----------BEGIN RSA PRIVATE KEY-----
    内网地址 192\.168\.10\.\d{1,3}\.\d{1,3}\.\d{1,3}172\.(1[6-9]|2\d|3[01])\.

Read the full file on GitHub · 259 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. 4d ago First seen · 259 lines · 3,818 tokens per session scan A a654ed5c8235

Subscribe to this mod's changes

doc77 CLAUDE.md is an instructions file published in the GitHub repository xyy277/doc77 (8 stars, last pushed 16d ago), licensed MIT. It adds 3,818 tokens to every session, about $0.0191 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.