Skip to content
Back to skills

Documentation Sync Engine

ASecurity

Canonical orchestrator that runs the fast stale-doc detector and dispatches to per-domain doc-sync skills for the affected canonical paths.

  • 8 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 2, 2026
ai-agentsapidocumentation

Works with

  • api

Security analysis

A100/100

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

Scanned September 2, 2026

npx -y skills add Eliyce/paqad-ai --skill documentation-sync-engine --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Documentation Sync Engine?

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

Security grade badge for Documentation Sync Engine
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/eliyce-documentation-sync-engine/badge)](https://www.skillsdirectory.com/skills/eliyce-documentation-sync-engine)

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: documentation-sync-engine
description: Canonical orchestrator that runs the fast stale-doc detector and dispatches to per-domain doc-sync skills for the affected canonical paths.
model_tier: medium
triggers:
  - workflow:
      - feature-development
      - bug-fix
      - refactor
      - migration
cacheable: false
cache_key_inputs: []
output_format: markdown
input_schema:
  changed_files:
    type: path[]
    required: true
    description: Changed source or doc files from the current diff.
  detector_script_path:
    type: path
    required: true
    description: Path to the canonical stale doc detector used by diff-doc-sync.
  target_domains:
    type: string[]
    required: false
    description: Optional restriction to specific domains (api, integration, module, error, glossary). Empty means all.
---

## What It Does

Acts as the canonical entry point for post-implementation documentation sync. Runs `diff-doc-sync` first to narrow to actually-stale canonical doc paths, then dispatches each path to the domain-specific maintainer (api, integration, error catalog, canonical, or glossary). Aggregates the results into a single report so the caller does not have to invoke five skills sequentially.

The point is to give callers one place to ask "sync the docs after this change" and get consistent, deduplicated output every time.

## Use This When

Use this after implementation lands (or just before handoff) on `feature-development`, `bug-fix`, `refactor`, or `migration` workflows. Skip when `differential_refresh` is disabled in the project profile and the team prefers running the per-domain skills directly.

## Inputs

- Read the changed file list at `changed_files`.
- Use the detector at `detector_script_path` (via `diff-doc-sync`) to produce the stale canonical doc set.
- Read `references/orchestration-rules.md` before dispatching so the routing rules and execution order stay consistent across runs.
- When `target_domains` is non-empty, intersect the dispatched set with the requested domains.

## Procedure

1. Invoke `diff-doc-sync` with the changed file list to produce the candidate stale doc set (JSON array).
2. Pipe that array's paths into `scripts/route-paths.sh` to assign each path a delegate domain (`api | integration | error | glossary | canonical`); see `assets/routing-table.txt` for the mapping.
3. Apply `target_domains` filtering if provided.
4. Invoke each delegate skill once with only its domain's paths.
5. Aggregate delegate outputs and format per `assets/output.template.md`.
6. Validate with `scripts/lint-output.sh`.

## Output Contract

- Return a heading named `Documentation Sync`.
- Provide a `Stale Doc Set` line: `Detected: {N} | Routed: {M} | Skipped (target_domains filter): {K}`.
- For each domain that ran, emit a third-level heading `### {domain}` and list the paths the delegate updated, plus any consistency warnings the delegate raised.
- Provide a `Known Drift` aggregated section pulling from delegates' deferred-drift notes.
- When the stale set is empty, return `Documentation Sync: no canonical docs require update.` exactly.

See `assets/output.template.md` for the canonical shape; `scripts/lint-output.sh` enforces it.

## Escalate / Stop Conditions

- Stop when `diff-doc-sync` cannot run (missing detector, missing changed-files list).
- Warn when any delegate reports a consistency warning; surface every such warning in the consolidated report rather than swallowing it.
- Do not invent doc paths the detector did not report as stale.
- Do not re-route a path between delegates — the per-domain table in `references/orchestration-rules.md` is the only routing source of truth.

## Resources

- `references/orchestration-rules.md`
- `scripts/route-paths.sh`
- `scripts/lint-output.sh`
- `assets/output.template.md`
- `assets/routing-table.txt`
- `agents/openai.yaml`

Files in this skill

  • SKILL.md3.8 KB
  • agents/openai.yaml192 B
  • assets/output.template.md559 B
  • assets/routing-table.txt437 B
  • references/orchestration-rules.md2.7 KB
  • scripts/lint-output.sh1.4 KB
  • scripts/route-paths.sh888 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.