Proj Sync Doc logo

Proj Sync Doc

Community
zhangloveyan
proj-sync-doc

基于 Git 提交和代码变更点同步需求/技术文档并补单元测试。用于修复或紧急改动后补文档、对齐代码与文档时使用。

Overview

Publisherzhangloveyan
Repositorybackend-skill
Skill nameproj-sync-doc
Stars
102
Forks
31
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by zhangloveyan on GitHub. Read the source before you install it.

Installation

Install the Proj Sync Doc AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/zhangloveyan/backend-skill/tree/main/.claude/skills/proj-sync-doc
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/zhangloveyan/backend-skill.git /tmp/backend-skill
mkdir -p .claude/skills
cp -r /tmp/backend-skill/.claude/skills/proj-sync-doc .claude/skills/proj-sync-doc
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Proj Sync Doc in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Proj Sync Doc on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Proj Sync Doc is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

文档与单测同步

触发词

  • "同步文档"
  • "根据 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: 用户确认

  • 输出“改动点清单”并请求用户确认
  • 用户未确认:停止文档更新,仅保留清单
markdown
## 改动点清单(待确认)
1. {改动点}(涉及:{文件/模块})
2. ...

Step 4: 同步需求/技术文档

  • 仅在用户确认后执行
  • 遵循项目文档命名与更新规则
  • 按影响点原地更新 docs/req 与 docs/design

Step 5: 同步单元测试

  • 按变更点补充/调整单元测试
  • 优先覆盖新增分支、边界条件、异常路径

Step 6: 总结

  • 列出已更新的文档与测试文件
  • 提示用户检查与确认

命令模板(可选)

bash
# 最近提交
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

Frequently asked questions

What does the Proj Sync Doc AI skill do?

基于 Git 提交和代码变更点同步需求/技术文档并补单元测试。用于修复或紧急改动后补文档、对齐代码与文档时使用。

Why use Proj Sync Doc on TypingMind?

Because you install it once and use it with any model. Proj Sync Doc is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Proj Sync Doc in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/zhangloveyan/backend-skill/tree/main/.claude/skills/proj-sync-doc. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Proj Sync Doc?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Proj Sync Doc?

As many as you like. As long as a model supports skills, you can use Proj Sync Doc with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Proj Sync Doc AI skill free?

Yes. It is published on GitHub by zhangloveyan under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇