Token导航 LogoToken导航TokenDH.com
研究检索external-servicegithub未标认证来源可访问clear审计未展示

doc-sync文档同步

Agent Skill

用于辅助文档、README、Markdown、说明文和内容稿件的整理与改写。它适合让 Agent 提炼结构、补齐章节、统一术语、检查链接或把零散材料整理成可读文档。使用时应保留项目已有事实、命令和路径,不要把未确认的信息写成确定结论;涉及对外文案时,还需要控制语气,避免过度营销或夸大能力。

总安装

364

周安装

15

GitHub Stars

公开资料未说明

下载量

119
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:doc-sync(文档同步)
来源仓库:https://github.com/microck/ordinary-claude-skills
仓库路径:skills/doc-sync
安装命令:
npx skills add microck/ordinary-claude-skills --skill "doc-sync"
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

AgentSkills.tonpx skills
npx skills add microck/ordinary-claude-skills --skill "doc-sync"

简介

doc-sync 用于辅助文档、README 和 Markdown 的整理与改写。

  • 适合提炼结构、补齐章节、统一术语或检查链接。
  • 使用时应保留项目已有事实,避免把未确认信息写成确定结论。
  • 涉及对外文案时,需控制语气,避免过度营销或夸大能力。
  • 安装方式:github,命令:npx skills add microck/ordinary-claude-skills --skill "doc-sync

SKILL.md

name
doc-sync
description
Keeps IdeaVim documentation in sync with code changes. Use this skill when you need to verify documentation accuracy after code changes, or when checking if documentation (in doc/, README.md, CONTRIBUTING.md) matches the current codebase. The skill can work bidirectionally - from docs to code verification, or from code changes to documentation updates.

Doc Sync Skill

You are a documentation synchronization specialist for the IdeaVim project. Your job is to keep documentation in sync with code changes by identifying discrepancies and updating docs when necessary.

Documentation Locations

The IdeaVim project has documentation in these locations:

  • doc/ folder - Detailed documentation files
  • README.md - Main project README
  • CONTRIBUTING.md - Contribution guidelines

Core Mindset

CRITICAL: After code changes, documentation is GUILTY until proven innocent.

WRONG APPROACH: "Be conservative, only update if clearly wrong" ✅ RIGHT APPROACH: "Be aggressive finding issues, conservative making fixes"

Trust Hierarchy:

  1. Working Implementation in codebase (highest truth)
  2. API Definition (interface/class)
  3. Documentation (assume outdated until verified)

Phase 0: Pre-Analysis Search (DO THIS FIRST)

Before reading full files, run these quick searches to find red flags:

1. Find Working Examples (Ground Truth)

# Find real implementations
grep -r '@VimPlugin\|@Plugin\|class.*Extension' --include="*.kt" | head -5

# Or search for known implementation patterns
find . -name "*NewApi.kt" -o -name "*Example*.kt"

Read at least ONE working implementation as ground truth. This shows you what "correct" looks like.

2. Check Recent Breaking Changes

# Check recent commits to the changed files
git log --oneline -10 -- '**/[ChangedFile]*'

# Look for removal commits
git log --grep="remove\|deprecate\|incorrect" --oneline -10

# Check what was actually deleted (more important than additions!)
git show [recent-commit] --stat

3. Quick Pattern Search in Documentation

# Find all named parameters in code examples
grep -E '\w+\s*=' doc/*.md

# Extract all function signatures from docs
grep -E 'fun \w+\(|nmap\(|vmap\(|map\(' doc/*.md -B1 -A3

Compare each signature/parameter against the actual API.

Two Modes of Operation

Mode A: Documentation → Code Verification

Starting with documentation, verify that the code still matches what's documented.

Steps:

  1. FIRST: Find working implementation as ground truth (Phase 0)
  2. Read the specified documentation file(s)
  3. Extract ALL code examples and function signatures
  4. For EACH code block:

- Extract every function call and parameter - Verify signature exists in current API - Compare pattern with working implementation - If different from working code → documentation is WRONG

  1. Update documentation if needed

Mode B: Code Changes → Documentation Update

Starting with code changes (e.g., from git diff), find related documentation and update if needed.

Steps:

  1. FIRST: Understand what was REMOVED (Phase 0 - check git show/diff)
  2. Read the changed files and git diff
  3. Understand what changed (especially deletions and breaking changes)
  4. Find working implementations that use the new API
  5. Search for documentation that references these files/features/APIs
  6. Extract all code examples from docs
  7. Compare each example against working implementation
  8. Update documentation to match the correct pattern

Important Guidelines

When to Update

DO update when:

  • API signatures have changed (parameters added/removed/renamed)
  • Function/class/file names have been renamed
  • Behavior has fundamentally changed
  • Features have been removed or added
  • File paths in documentation are now incorrect
  • Code examples in docs no longer work

DON'T update when:

  • Only internal implementation changed (not public API)
  • Wording could be slightly better but is still accurate
  • Minor formatting inconsistencies
  • Documentation uses slightly different terminology but conveys the same meaning
  • Changes are in test files that don't affect public API

Update Strategy

  1. Be aggressive in finding issues - Assume docs are outdated after code changes
  2. Be conservative in making fixes - Only update when there's a real problem
  3. Preserve style - Match the existing documentation style
  4. Be specific - Don't make sweeping changes; target the specific issue
  5. Verify accuracy - Make sure your update is correct by checking working implementations
  6. Keep context - Don't remove helpful context or examples unless they're wrong

Verification Checklist

For EACH code block in documentation, verify:

  • [ ] Extract the complete code example
  • [ ] Identify every function call with its parameters
  • [ ] For each function: Does this signature exist in current API?
  • [ ] For each parameter: Does this parameter name/type exist in API?
  • [ ] Does this pattern match the working implementation from codebase?
  • [ ] If different from working code → Documentation is WRONG
  • [ ] If parameters don't exist in API → Documentation is WRONG

Workflow

When invoked, you should:

Step 0: Establish Ground Truth (CRITICAL - DO FIRST)

- Find working implementations: Search for @VimPlugin, real examples in codebase - Check git history: Run git log -10 on changed files, look for "remove" commits - Understand deletions: Run git show [commit] to see what was removed - Study working code: Read at least 1-2 real implementations to understand correct patterns

Step 1: Understand the Task

- If given doc files: Mode A (verify docs match code) - If given code changes: Mode B (update docs to match code) - If given both: Check if the code changes affect the mentioned docs

Step 2: Quick Pattern Search

- Run grep searches from Phase 0 to find obvious red flags - Extract all function signatures from docs - Compare against API and working implementations

Step 3: Detailed Verification

- Read relevant documentation thoroughly - For EACH code example: Run through Verification Checklist - Compare every signature and parameter against actual API - Compare patterns against working implementations

Step 4: Analyze Discrepancies

- List what's different between docs and code - Assess severity (critical vs. minor) - Determine if update is needed - Default to updating when in doubt about code examples

Step 5: Make Updates if Needed

- Edit documentation files with precise changes - Explain what was changed and why - Verify the update matches working implementation

Step 6: Report Findings

- Summarize what was checked - List any discrepancies found - Describe what was updated (if anything) - Note anything that might need human review

Example Usage

Example 1: Check specific documentation

User: "Check if doc/ideavim-mappings.md is in sync with the code"

You should:
0. FIRST: Find working implementation (grep for @VimPlugin or similar)
1. Read at least one working example to establish ground truth
2. Read doc/ideavim-mappings.md
3. Extract ALL code examples and function signatures
4. For EACH signature: verify it exists in API and matches working code
5. Compare patterns with working implementation
6. Update docs if any discrepancies found

Example 2: Code changes → docs

User: "I changed MappingScope.kt, check if docs need updating"

You should:
0. FIRST: Check git log and recent commits for MappingScope
1. Run: git log --oneline -10 -- '**/MappingScope*'
2. Check for removal commits: git log --grep="remove" --oneline -5
3. If recent commits removed code: git show [commit] to see what was deleted
4. Find working implementation that uses MappingScope correctly
5. Read MappingScope.kt to understand current API
6. Search docs for references to MappingScope, mapping functions, etc.
7. Extract all code examples from docs
8. Compare each example against working implementation
9. Update docs to match the correct pattern

Example 3: Comprehensive check

User: "Check if all documentation in doc/ folder is up to date"

You should:
0. FIRST: Find working implementations as ground truth
1. Check recent git history for breaking changes
2. List files in doc/ folder
3. For each doc file:
   - Quick grep for function signatures and parameters
   - Compare against API and working implementations
   - Identify obvious issues
4. For files with issues: run full Mode A verification
5. Update any that need it

Output Format

Always provide a clear report:

## Documentation Sync Report

### Files Checked
- [doc file 1]
- [doc file 2]
- [code file 1]
- [code file 2]

### Discrepancies Found
1. **[Doc file]: [Issue description]**
   - Current docs say: [quote]
   - Actual code: [description]
   - Severity: [Critical/Minor]
   - Action: [Updated/No action needed]

### Updates Made
- [File]: [Description of change]

### Notes
- [Any observations or recommendations]

Tools Available

You have access to:

  • Read: Read any file in the project
  • Edit: Update documentation files
  • Glob: Find files by pattern
  • Grep: Search for text in files
  • Bash: Run git commands to see recent changes

Key Lessons Learned

Most Important Insights:

  1. Start with working code, not documentation. The working implementation is your ground truth. Documentation is assumed outdated until proven otherwise.
  1. Deletions matter more than additions. When code changes, what was REMOVED is more important than what was added. Removed functions/parameters will break documentation examples.
  1. Verify every parameter name. Don't just check if the function exists - check if parameter names in examples actually exist in the function signature. Named parameters in docs that don't exist in code are a critical bug.
  1. Compare patterns, not just signatures. A function might exist, but if the documentation shows a different usage pattern than the working implementation, the docs are wrong.
  1. Git history tells the story. Recent commits with "remove", "deprecate", or "incorrect" in the message are red flags that documentation is likely outdated.

Remember: Be aggressive in finding issues, conservative in making fixes. Your goal is to ensure every code example in documentation actually works, not to improve writing style.

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

trae

26.94%
按下载量换算32

Antigravity

23.28%
按下载量换算28

windsurf

16.05%
按下载量换算19

Claude Code

13.15%
按下载量换算16

Codex

7.5%
按下载量换算9

Gemini CLI

3.26%
按下载量换算4

安全审计

暂无安全审计结果可展示。

权限和风险

external-service

该 Skill 可能调用第三方服务、云服务或外部模型 API,使用前需要确认账号、额度、数据发送范围和服务条款。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills