docs-updater
/docs-updater
Detect documentation drift and patch affected docs (candidate survey, git hook, range cursor, or detect JSON). Use in conversation when the user asks to sync or update docs after code changes. Also the loop entry skill for documentation drift automation. Interactive default is survey only; edit docs when the user explicitly requests a fix or Constraints allow edits. Not for new document creation or markdown linting.
- Author
- y-miyazaki ↗
- Repository
- terraform-aws-base ↗
- Licence
- Apache-2.0
- Last repository change
- 18.10.2026
Assessment and security
- Files in this package
- 48
- Scripts
- 10
- HTML comments
- 0
- URLs in SKILL.md
- 0
No signals detected. Repository changed on 18.10.2026, without references to retired models or APIs.
Apache-2.0, otwarta: można używać i zmieniać, z zachowaniem licencji i informacji o zmianach.
- 10 scripts in this package. Review them before installing, as Claude may execute them.
Scripts: scripts/detect_changes.sh, scripts/lib/all.sh, scripts/lib/aws.sh, scripts/lib/common.sh, scripts/lib/csv.sh, scripts/lib/json.sh, scripts/lib/repo_paths.sh, scripts/lib/terraform.sh, scripts/lib/validation.sh, scripts/lib/yaml_map_order.py
What it does and when to use it
Detect documentation drift and patch affected docs (candidate survey, git hook, range cursor, or detect JSON). Use in conversation when the user asks to sync or update docs after code changes. Also the loop entry skill for documentation drift automation. Interactive default is survey only; edit docs when the user explicitly requests a fix or Constraints allow edits. Not for new document creation or markdown linting.
Original author description
Detect documentation drift and patch affected docs (candidate survey, git hook, range cursor, or detect JSON). Use in conversation when the user asks to sync or update docs after code changes. Also the loop entry skill for documentation drift automation. Interactive default is survey only; edit docs when the user explicitly requests a fix or Constraints allow edits. Not for new document creation or markdown linting.
How it works
- Input
- Output Specification
- Execution Scope
- Reference Files Guide
- Workflow
SKILL.md preview
--- name: docs-updater description: >- Detect documentation drift and patch affected docs (candidate survey, git hook, range cursor, or detect JSON). Use in conversation when the user asks to sync or update docs after code changes. Also the loop entry skill for documentation drift automation. Interactive default is survey only; edit docs when the user explicitly requests a fix or Constraints allow edits. Not for new document creation or markdown linting. license: Apache-2.0 metadata: author: y-miyazaki version: "3.4.3" --- **UTILITY SKILL** — automated diff-sync and drift repair, not content authoring. ## Input - **Interactive / hook (required):** resolve scope per [category-detect-scope.md](references/category-detect-scope.md) — Interactive free-form → `all` (full candidate docs); git hook → `staged`; automation cursor → `range` with `--since` — triage per [common-impact-map.md](references/common-impact-map.md); validate patches per [common-checklist.md](references/common-checklist.md) - **Automation (optional):** detect JSON in prompt — from a caller or optional skill detect script; not required for interactive runs. Load [category-input-schema.md](references/category-input-schema.md) and [category-automation-envelope.md](references/category-automation-envelope.md) on that path only Path allowlist, when present, arrives in `## Constraints`. ## Output Specification Report per [common-output-format.md](references/common-output-format.md). On the automation path, also follow [common-output-format-automation.md](references/common-output-format-automation.md) and [category-automation-envelope.md](references/category-automation-envelope.md). Stay within [category-scope.md](references/category-scope.md). ## Execution Scope Target: root `*.md`, `docs/**/*.md`, nested `**/README.md` (excluding generated directories), and `mkdocs.yml` (nav section) when present. ### USE FOR: - Survey candidate documentation for drift and sync opportunities (Interactive `all`); update cross-references, tables, lists, and nav entries for changed paths - Remove dead links; update paths for renames - Apply minimal documentation patches per [common-checklist.md](references/common-checklist.md) and [category-documentation-maintenance.md](references/category-documentation-maintenance.md) ### DO NOT USE FOR: - New document creation or content improvement - Non-documentation file edits - Markdown linting - Run detection scripts for other skills or manage caller state ## Reference Files Guide - [common-checklist.md](references/common-checklist.md) (always read) - [common-output-format.md](references/common-output-format.md) (always read) - [common-impact-map.md](references/common-impact-map.md) (read on interactive path) - [category-documentation-maintenance.md](references/category-documentation-maintenance.md) (read when deduplication or same-change sync applies) - [category-scope.md](references/category-scope.md) (always read) - [category-detect-scope.md](references/category-detect-scope.md) (read on interactive path) - [category-input-schema.md](references/category-input-schema.md) (read when detect JSON is present or the optional detect script is run) - [category-automation-envelope.md](references/category-automation-envelope.md) (read on automation path) - [common-output-format-automation.md](references/common-output-format-automation.md) (read on automation path) - [common-troubleshooting.md](references/common-troubleshooting.md) (read on failure) ## Workflow Resolve whether to edit documentation files before patching: | Source | Edit docs | | ------------------------------------------------------------------ | ------------------------------------------------------------------------------------------------------------------------------------ | | Interactive / hook — default | No — survey only | | Interactive / hook — explicit fix language in the same request | Yes — examples: 修正して, "update the docs", "apply the doc patches". Do **not** treat bare `fix`/`sync` or skill name alone as edit | | Interactive / hook — follow-up after a prior survey in the session | Yes when the user explicitly asks to apply or patch listed documentation | | Automation — `## Constraints` | Per `may_edit` in [category-automation-envelope.md](references/category-automation-envelope.md) | ### Interactive / hook path 1. Resolve scope ([category-scope.md](references/category-scope.md)). Parse detect JSON when present; otherwise resolve the detect universe from the prompt ([category-detect-scope.md](references/category-detect-scope.md)), run this skill's optional detect script with the resolved `--scope` (default `all` for Interactive free-form; `staged` for git hook; `range` when the user named a SHA range), then Agent-complement beyond mechanical output; if tools for detect are unavailable, gather changed paths from git and the user request instead of silent no-op. On detect script non-zero exit, read stdout and stop. 2. IF detect reports `skip` OR no documentation impact after gathering → report skip and exit. 3. Triage affected docs per [common-impact-map.md](references/common-impact-map.md); grep before full read. 4. IF edits are not requested → emit survey shape per [common-output-format.md](references/common-output-format.md); stop — do not edit documentation files or run `git add`. 5. ELSE → apply minimal patches per [common-checklist.md](references/common-checklist.md); regenerate `docs/index.md` when `docs/` files created/deleted/renamed; stage with `git add`; emit apply shape per [common-output-format.md](references/common-output-format.md). ### Automation path When detect JSON and `## Constraints` are present: follow [category-automation-envelope.md](references/category-automation-envelope.md) for edit gate, report shape, and synthesis. Triage and patch per [common-checklist.md](references/common-checklist.md) and [category-documentation-maintenance.md](references/category-documentation-maintenance.md). Do not manage caller state. ### Error Handling | Condition | Severity | Action | | --------------------------------------------------------------- | ----------- | --------------------------------------------------------------------------------------------- | | Detect script non-zero exit or `status: "error"` (when invoked) | Fatal | Read stdout; stop — do not treat as success-path detect JSON | | No git repository | Fatal | Stop | | Empty diff / no documentation impact | Info | Report skip, exit | | Affected doc file missing | Recoverable | Skip file; note in report | | Exceeds scope (>3 H2, new top-level document, etc.) | Recoverable | Stop for file; note out of scope for new top-level authoring | | `mkdocs.yml` missing | Recoverable | Skip nav update | | Fix requested but edits not allowed | Info | Survey only; note that edits require an explicit fix request or caller permission | | Automation `write_target` mismatch | Recoverable | Survey only per [category-automation-envelope.md](references/category-automation-envelope.md) | ### Examples - Prompt: `Sync docs after the latest commit diff` - Result: Survey or apply report per [references/common-output-format.md](references/common-output-format.md); stay within UV scope gates.
Files in this package (48)
- SKILL.md 8 KB
- eval.yaml 1 KB
- assets/pr-body-template-survey.md 1 KB
- assets/pr-body-template.md 2 KB
- evals/evals.json 3 KB
- evals/files/README.stale.md 1 KB
- evals/files/detect-hook-staged.json 1 KB
- evals/tasks/docs-updater-automation-boundary.yaml 1 KB
- evals/tasks/docs-updater-automation-classification.yaml 1 KB
- evals/tasks/docs-updater-automation-denylist.yaml 1 KB
- evals/tasks/docs-updater-automation-dist01-negative.yaml 1 KB
- evals/tasks/docs-updater-automation-fixture.yaml 1 KB
- evals/tasks/docs-updater-automation-noaction.yaml 1 KB
- evals/tasks/docs-updater-automation-production-constraints.yaml 1 KB
- evals/tasks/docs-updater-automation-triage-contract.yaml 1 KB
- evals/tasks/docs-updater-automation-trigger-negative.yaml 1 KB
- evals/tasks/docs-updater-basic.yaml 1 KB
- evals/tasks/docs-updater-deletion-deadlink.yaml 1 KB
- evals/tasks/docs-updater-exceeded-scope.yaml 1 KB
- evals/tasks/docs-updater-hook-detect.yaml 2 KB
- evals/tasks/docs-updater-interactive-fix-follow-up.yaml 1 KB
- evals/tasks/docs-updater-interactive-fix-same-turn.yaml 1 KB
- evals/tasks/docs-updater-interactive-survey-default.yaml 1 KB
- evals/tasks/docs-updater-may-edit-false.yaml 1 KB
- evals/tasks/docs-updater-rename-detection.yaml 1 KB
- evals/tasks/docs-updater-skip.yaml 1 KB
- evals/tasks/docs-updater-trigger-negative.yaml 1 KB
- references/category-automation-envelope.md 4 KB
- references/category-detect-scope.md 2 KB
- references/category-documentation-maintenance.md 2 KB
- references/category-input-schema.md 3 KB
- references/category-pr-body-links.md 1 KB
- references/category-scope.md 2 KB
- references/common-checklist.md 4 KB
- references/common-impact-map.md 3 KB
- references/common-output-format-automation.md 4 KB
- references/common-output-format.md 2 KB
- references/common-troubleshooting.md 1 KB
- scripts/detect_changes.sh 19 KB
- scripts/lib/all.sh 1 KB
- scripts/lib/aws.sh 29 KB
- scripts/lib/common.sh 9 KB
- scripts/lib/csv.sh 4 KB
- scripts/lib/json.sh 8 KB
- scripts/lib/repo_paths.sh 15 KB
- scripts/lib/terraform.sh 13 KB
- scripts/lib/validation.sh 14 KB
- scripts/lib/yaml_map_order.py 6 KB
Versions
| Repository | Score | Licence |
|---|---|---|
| This page · y-miyazaki/terraform-aws-base | 100 | Apache-2.0 |
| y-miyazaki/terraform-aws-base | 100 | Apache-2.0 |
| giuseppe-trisciuoglio/developer-kit | 100 | MIT |
Identical content appears in 1 other GitHub folders. We show one copy with the highest score.
Database snapshot: 13.11.2026 · package version f9e78ddd72d9 (SHA-256 digest of the entire package)
Downloads in the last 30 days: 1 · ranking
Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.
Similar skills
- 100docs-sync
Use when the user asks to update documentation after code or configuration changes, audit documentation drift, or prepare README, API, runbook, or release docs. Changes only affected documentation and verifies examples, links, contracts, and operational steps against source code. - 90oma-docs
Check documentation references, sync docs to code changes, and detect translation drift. Use for documentation maintenance in a repository. - 100changelog
Survey and update CHANGELOG.md from unreleased commits and undocumented releases. Use in conversation when the user asks to check, review, or update the changelog. Also the loop entry skill when automation supplies commit/release detect JSON. Interactive default is survey only;… - 100changelog
Survey and update CHANGELOG.md from unreleased commits and undocumented releases. Use in conversation when the user asks to check, review, or update the changelog. Also the loop entry skill when automation supplies commit/release detect JSON. Interactive default is survey only;… - 90oma-docs
Check documentation references, sync docs to code changes, and detect translation drift. Use for documentation maintenance in a repository. - 90codex-docs-change-sync
Use when code changes may require documentation updates; maps git diff to candidate docs without auto-editing documentation.