Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

doc-sync

БесплатноБез исполняемых скриптовНе проверен

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…

JetBrainsот JetBrains★ 10 295 звёзд на GitHub18 установок в других каталогах

Об этом скилле

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: 0. FIRST: Find working implementation as ground truth (Phase 0)

  1. Read the specified documentation file(s)
  2. Extract ALL code examples and function signatures
  3. 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
  4. 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: 0. FIRST: Understand what was REMOVED (Phase 0 - check git show/diff)

  1. Read the changed files and git diff
  2. Understand what changed (especially deletions and breaking changes)
  3. Find working implementations that use the new API
  4. Search for documentation that references these files/features/APIs
  5. Extract all code examples from docs
  6. Compare each example against working implementation
  7. 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 i
Полный SKILL.md на GitHub

Установить doc-sync в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

FAQ

Что делает скилл doc-sync?

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?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл doc-sync запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить doc-sync с