Borrowing it
Nothing to install: this file belongs to zhangloveyan/backend-skill. 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/zhangloveyan/backend-skill/main/.claude/skills/proj-sync-doc/SKILL.mdgit clone --depth 1 https://github.com/zhangloveyan/backend-skillWrote 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/skills/zhangloveyan/backend-skill/proj-sync-doc)<a href="https://agentmods.dev/skills/zhangloveyan/backend-skill/proj-sync-doc"><img src="https://agentmods.dev/badge/skills/zhangloveyan/backend-skill/proj-sync-doc/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.
<a href="https://agentmods.dev/skills/zhangloveyan/backend-skill/proj-sync-doc"><img src="https://agentmods.dev/badge/skills/zhangloveyan/backend-skill/proj-sync-doc.svg" alt="Reviewed on agentmods" width="80" 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.00048 | $0.00664 |
| Opus 5.5 | $0.00019 | $0.00266 |
| Sonnet 5.5 | $0.00010 | $0.00133 |
| Haiku 4.5 | $0.00005 | $0.00066 |
Grade A, and why
proj-sync-doc 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.
What it actually says
文档与单测同步
触发词
- "同步文档"
- "根据 git 提交补文档"
- "对齐文档"
- "补单元测试"
执行流程
Step 0: 选择范围 → Step 1: 提取变更 → Step 2: 归类影响 → Step 3: 用户确认 → Step 4: 同步需求/技术文档 → Step 5: 同步单元测试 → Step 6: 总结
强制规则
- 发现文档与现有代码不一致时,以现有代码业务逻辑为准
- 提取改动点后必须与用户确认,未确认不得修改文档
Step 0: 选择范围
- 优先让用户指定提交范围或提交 ID
- 未指定时,先展示最近提交列表并询问范围
- 允许选择“未提交变更”作为范围
Step 1: 提取变更
- 获取提交、文件列表、关键 diff
- 聚焦业务逻辑、接口、数据结构相关变更
Step 2: 归类影响
- 需求文档:用户可感知行为、流程、功能边界变化
- 技术文档:接口入参/出参/错误码、数据结构、核心逻辑变化
- 单元测试:Service/Controller/Mapper 等逻辑调整需补测
Step 3: 用户确认
- 输出“改动点清单”并请求用户确认
- 用户未确认:停止文档更新,仅保留清单
## 改动点清单(待确认)
1. {改动点}(涉及:{文件/模块})
2. ...
Step 4: 同步需求/技术文档
- 仅在用户确认后执行
- 遵循项目文档命名与更新规则
- 按影响点原地更新
docs/req与docs/design
Step 5: 同步单元测试
- 按变更点补充/调整单元测试
- 优先覆盖新增分支、边界条件、异常路径
Step 6: 总结
- 列出已更新的文档与测试文件
- 提示用户检查与确认
命令模板(可选)
# 最近提交
git log -n 10 --oneline
# 单个提交变更
git show <hash> --stat
git show <hash>
# 提交范围对比
git diff --name-status <from>..<to>
git diff <from>..<to>
# 未提交变更
git diff --name-status
git diff
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.
- 2mo ago First seen · 108 lines · 48 tokens per session scan A 32dff7c82f52
proj-sync-doc is a skill published in the GitHub repository zhangloveyan/backend-skill (103 stars, last pushed 23d ago), licensed MIT. It adds 48 tokens to every session and 664 once invoked, about $0.0002 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-30.
proj-sync-doc compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| proj-sync-doczhangloveyan/backend-skill | Skill | 103 | 23d ago | MIT | A | 48 | Claude Code |
| test-masterJeffallan/claude-skills | Skill | 12k | 7d ago | MIT | A | 104 | Claude Code |
| migrate-xunit-to-xunit-v3dotnet/skills | Skill | 5.8k | yesterday | MIT | A | 149 | Claude Code |
| go-testingGentleman-Programming/gentle-ai | Skill | 8.4k | yesterday | MIT | A | 26 | Claude Code, Codex |
| principle-test-behavior-not-implementationmichael-denyer/pstack-claude | Skill | 4.1k | yesterday | MIT | A | 50 | Claude Code |
| dart-testdartsim/dart | Skill | 1.2k | yesterday | BSD-2-Clause | A | 18 | Claude Code, Codex |
| test-generatorrshankras/claude-code-apple-skills | Skill | 864 | 2d ago | MIT | A | 33 | Claude Code |