Skip to content
Back to skills

Canonical Doc Sync

ASecurity

Synchronize implementation changes back into canonical documentation.

  • 8 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added September 2, 2026
ai-agentsdocumentation

Security analysis

A100/100

Pro scans all 6 files and shows the line behind each finding

Scanned September 2, 2026

npx -y skills add Eliyce/paqad-ai --skill canonical-doc-sync --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Canonical Doc Sync?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Canonical Doc Sync
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eliyce-canonical-doc-sync/badge)](https://www.skillsdirectory.com/skills/eliyce-canonical-doc-sync)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: canonical-doc-sync
description: Synchronize implementation changes back into canonical documentation.
model_tier: medium
triggers:
  - workflow:
      - feature-development
      - bug-fix
      - refactor
      - migration
cacheable: true
cache_key_inputs:
  - docs/**/*.md
  - src/**/*.ts
output_format: markdown
input_schema:
  changed_files:
    type: path[]
    required: true
    description: Changed implementation or doc files.
  canonical_doc_paths:
    type: path[]
    required: true
    description: Canonical docs to review for drift.
---

## What It Does

Updates canonical project documentation after implementation changes so specs, module docs, and registries remain aligned with the actual behavior that shipped or is about to ship.

## Use This When

Use this after code changes are understood and before handoff closes, especially when multiple doc surfaces must be updated together to avoid drift.

## Inputs

- Read the changed files, existing canonical docs, and any generated inventories for the affected area.
- Read the module docs and global registries that should reflect the change.
- Read `references/drift-triage.md` before deciding what to update immediately versus defer explicitly.

## Procedure

1. Run `scripts/list-canonical-docs.sh` to enumerate the canonical doc surfaces that exist in this project.
2. Identify which of those are now stale relative to the implementation change.
3. Update behavior docs, module docs, and registries together — never patch only one surface.
4. Prefer generated inventories or script output for routes, events, and error codes when available.
5. Format per `assets/output.template.md` and validate with `scripts/lint-output.sh`.

## Output Contract

- Match `assets/output.template.md`: `## Updated Docs` (backticked .md paths + summary) and `## Known Drift` (backticked paths + reason, or the literal `none`).
- Output must pass `scripts/lint-output.sh` (exit 0).

## Escalate / Stop Conditions

- Ask when docs disagree with implementation and the product decision is unclear.
- Warn when generated sources are missing and a manual sync would be speculative.
- Do not silently skip a stale canonical doc that is still user-facing or operationally important.

## Resources

- `references/drift-triage.md`
- `scripts/list-canonical-docs.sh`
- `scripts/lint-output.sh`
- `assets/output.template.md`
- `runtime/templates/runner-scripts/extract-events.sh.hbs`
- `agents/openai.yaml`

Files in this skill

  • SKILL.md2.4 KB
  • agents/openai.yaml137 B
  • assets/output.template.md352 B
  • references/drift-triage.md232 B
  • scripts/lint-output.sh1.3 KB
  • scripts/list-canonical-docs.sh672 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.