本文へ移動
cccskills
無料GitHub で公開

documentation-sync

After any significant code change — new feature, API modification, config change, or architectural refactor — run this skill to identify which documentation files are now stale and update them. Keeps docs and code from drifting apart.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md4.9 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

<!-- TÜRKÇE AÇIKLAMA ─────────────── Bu skill, kodda yapılan önemli değişikliklerden sonra hangi dokümantasyon dosyalarının eskidiğini tespit edip günceller. README, API docs, .env.example, CHANGELOG ve mimari diyagramlar incelenerek eski bilgiler düzeltilir. "Docs ile kod arasındaki uçurum" problemini kapatır. NE ZAMAN: API eklendiğinde/değiştiğinde, yeni env variable eklendiğinde, büyük refactor sonrası, merge öncesi veya sonrası. ÇIKTI: Güncellenmiş doc dosyaları + değişim özet raporu. -->

Documentation Sync Skill

When to Trigger

Run after:

  • A public API endpoint is added, changed, or removed
  • A CLI command or flag is modified
  • A new environment variable or config key is introduced
  • A major component or module is refactored
  • A new npm/pip/etc. package is added or removed from dependencies
  • Any README.md reference becomes inaccurate

Step-by-Step Process

1. Identify What Changed

Review the git diff of the work just completed:

git diff main --name-only          # Files changed vs main
git diff HEAD~1 --name-only        # Files changed in last commit

Categorize changes:

  • API changes → affects docs/api/, OpenAPI/Swagger specs, README.md
  • Config changes → affects .env.example, docs/configuration.md
  • Dependency changes → affects README.md (setup section), docs/getting-started.md
  • Architecture changes → affects docs/architecture.md, diagrams
  • New features → affects docs/features/, changelogs

2. Audit Existing Docs

For each affected category, check whether corresponding docs exist:

docs/
  api/             ← REST/GraphQL endpoint docs
  architecture.md  ← System design, component diagram
  configuration.md ← All env vars and config options
  getting-started.md ← Local setup guide
  features/        ← Per-feature descriptions
CHANGELOG.md       ← Version history
README.md          ← Project overview + quickstart

For each doc file that touches the changed area, read it and flag stale sections.

3. Update Docs — Priority Order

Update in this order (highest impact first):

A. README.md

  • Setup instructions still accurate?
  • Tech stack section reflects current stack?
  • Any removed features still mentioned?

B. .env.example / Configuration Docs

For every new env variable added to code, add a corresponding entry:

# Description of what this does
NEW_VAR_NAME=example_value

Document in docs/configuration.md:

| Variable | Required | Default | Description |
|----------|----------|---------|-------------|
| NEW_VAR_NAME | Yes | — | What it controls |

C. API Docs

For every endpoint change, update the relevant doc:

### POST /api/resource

**Changed in:** <date or version>
**Description:** ...
**Request Body:** ...
**Response:** ...
**Breaking Change:** Yes/No

D. CHANGELOG.md

Append an entry under ## [Unreleased]:

### Added
- <new feature description>

### Changed
- <what was modified and why>

### Fixed
- <bug fixed>

### Removed
- <what was removed>

Follow Keep a Changelog format.

E. Architecture Docs

If a new service, module, or significant component was added:

  • Update the component list in docs/architecture.md
  • Note any new external dependencies or integrations
  • If a diagram exists (Mermaid, Draw.io), update it

4. Verify Internal Links

After editing, do a quick check for broken internal references:

# Find markdown links pointing to non-existent files
grep -r "\[.*\](.*\.md)" docs/ README.md | grep -v "http"

Manually verify the top 5 most-used internal links still resolve.

5. Report Changes

Output a summary:

## Documentation Sync Complete

**Files Updated:**
- README.md — updated setup section
- docs/configuration.md — added NEW_VAR_NAME
- CHANGELOG.md — added unreleased entry

**Files That May Need Manual Review:**
- docs/architecture.md — diagram may be outdated (manual update needed)

**No changes needed:**
- docs/api/ — no endpoint changes detected

Rules

  • Never delete documentation without confirming with the user. Archive or mark as deprecated instead.
  • Don't invent information. If you're unsure what a config variable does, write # TODO: document this and flag it.
  • Keep CHANGELOG.md under [Unreleased] until an explicit version bump/release.
  • Every new env variable must appear in .env.example — no exceptions.
  • Docs first is fine, but docs-never is not. Even minimal docs are better than none.

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Before committing to an implementation plan, run this skill to stress-test the proposed architecture. Catches over-engineering, circular dependencies, missing failure modes, security gaps, and scalability cliffs — before any code is written. Acts as a "second eye" on the plan.

日本語の概要は準備中です。原文の説明を表示しています。

omergocmen/vibe-coder-kit932026年6月4日 更新

Systematic code review skill covering both requesting a review (pre-commit checklist) and receiving and responding to review feedback. Checks code quality, security, test coverage, architectural alignment, and documentation before any code is committed.

日本語の概要は準備中です。原文の説明を表示しています。

omergocmen/vibe-coder-kit932026年6月4日 更新

Periodically scan project dependencies for security vulnerabilities, outdated packages, and unused dependencies. Produces a prioritized action report. Run before every major release and at least once per month.

日本語の概要は準備中です。原文の説明を表示しています。

omergocmen/vibe-coder-kit932026年6月4日 更新

github

無料

Manages all git operations (commit, push, branch management, PR creation) in a standardized, safe, and consistent way. Automatically runs the code-review skill before any commit. Enforces Conventional Commits standard. Handles the full lifecycle: branch → review → commit → push → PR.

日本語の概要は準備中です。原文の説明を表示しています。

omergocmen/vibe-coder-kit932026年6月4日 更新

When something breaks in production: triage the severity, gather evidence, identify root cause, deploy a fix or mitigation, and write a post-mortem. Provides a calm, structured process for high-stress moments.

日本語の概要は準備中です。原文の説明を表示しています。

omergocmen/vibe-coder-kit932026年6月4日 更新

Use this skill whenever you learn something important during a conversation: a key architectural decision, a project-specific convention, a bug root-cause, a 3rd-party API quirk, or any fact that would help a future agent avoid re-doing the same research. Writes structured entries to the project's knowledge base so that context persists across conversations and agents.

日本語の概要は準備中です。原文の説明を表示しています。

omergocmen/vibe-coder-kit932026年6月4日 更新

omergocmen のスキルをすべて見る

このスキルの問題を報告する