backend-skill: Skill for Claude Code

.claude/skills/proj-sync-doc/SKILL.md

proj-sync-doc is a skill for Claude Code from zhangloveyan/backend-skill. It costs 48 tokens per session (664 once invoked), scanned A, original, MIT.

A workflow for updating requirements and technical documents from Git commits and code changes, while adding missing unit tests. Git is a system that records changes to source code.

In plain words
What is it for?
Use it after bug fixes or emergency changes to update related documents and add unit tests.
Why use it?
It helps bring documentation and tests back in line after fixes, urgent changes, or other code updates.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is zhangloveyan/backend-skill's own configuration. It tells Claude Code how to work on backend-skill 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 backend-skill configures →

Reuse

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.

Copy the file
curl -O https://raw.githubusercontent.com/zhangloveyan/backend-skill/main/.claude/skills/proj-sync-doc/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/zhangloveyan/backend-skill

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 proj-sync-doc

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhangloveyan/backend-skill/proj-sync-doc/github.svg)](https://agentmods.dev/skills/zhangloveyan/backend-skill/proj-sync-doc)
Your own site
<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.

agentmods 80×15 button for proj-sync-doc

Your own site · 80×15
<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>
Per session 48 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 664 The whole file, excluding the scripts and references it only reads on demand.
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.00048 $0.00664
Opus 5.5 $0.00019 $0.00266
Sonnet 5.5 $0.00010 $0.00133
Haiku 4.5 $0.00005 $0.00066

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

Security

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.

.claude/skills/proj-sync-doc/SKILL.md · 108 lines

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
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 · 108 lines · 48 tokens per session scan A 32dff7c82f52

Subscribe to this mod's changes

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.

Related

proj-sync-doc compared with skills from other repositories

proj-sync-doc next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
proj-sync-doczhangloveyan/backend-skillSkill10323d agoMITA48Claude Code
test-masterJeffallan/claude-skillsSkill12k7d agoMITA104Claude Code
migrate-xunit-to-xunit-v3dotnet/skillsSkill5.8kyesterdayMITA149Claude Code
go-testingGentleman-Programming/gentle-aiSkill8.4kyesterdayMITA26Claude Code, Codex
principle-test-behavior-not-implementationmichael-denyer/pstack-claudeSkill4.1kyesterdayMITA50Claude Code
dart-testdartsim/dartSkill1.2kyesterdayBSD-2-ClauseA18Claude Code, Codex
test-generatorrshankras/claude-code-apple-skillsSkill8642d agoMITA33Claude Code