diff-doc-sync
Lists only the canonical docs the current diff made stale. Use when implementation or validation is done, the changed files are known, and only the stale doc set is needed.
- License 许可
- MIT
- 所属仓库
- Eliyce/paqad-ai
- 最近更新
- 2026-11-13
- Stars
- ★ 8
- Forks
- 0
01 前言 Front Matter
- name
- diff-doc-sync
- metadata
- { "cacheable": "true", "model_tier": "fast", "paqad-meta": "skill.meta.yaml", "output_format": "json" }
- description
- Lists only the canonical docs the current diff made stale. Use when implementation or validation is done, the changed files are known, and only the stale doc set is needed.
02 资源文件 6
- 参考文档agents/openai.yaml125 B
- 资产文件assets/output.template.json82 B
- 参考文档references/diff-sync-rules.md174 B
- 脚本scripts/detect-stale-docs.sh1.3 KB
- 脚本scripts/lint-output.sh1.2 KB
- 参考文档skill.meta.yaml546 B
03 SKILL.md 正文
What It Does
Narrows documentation follow-up to only the canonical docs made stale by the current diff, avoiding full documentation refreshes when differential_refresh is enabled.
Use This When
After implementation or validation when you already know which files changed and only want the stale canonical documentation set.
Inputs
- Read the changed file list from
changed_files. Fill it from theChanged fileslist in the header of.paqad/session/review-digest.md(runpaqad-ai review digestto refresh it), or straight from git:git status --porcelainplusgit diff --name-only $(git merge-base HEAD main)..HEAD. - Read
references/diff-sync-rules.mdfor project-specific override rules before deciding whether a doc can be safely skipped.
Procedure
- Pipe the changed file list into
scripts/detect-stale-docs.sh: it cross-references against existing canonical docs and emits candidate paths. - Drop any paths that
references/diff-sync-rules.mddeclares safe to skip in this scenario. - Format as a JSON array exactly matching
assets/output.template.json(sorted, duplicate-free). - Validate with
scripts/lint-output.sh: it enforces JSON shape, sortedness, dedupe, and.mdsuffix.
Output Contract
- Match
assets/output.template.json: a JSON array of canonical doc paths.[]exactly when none are stale. - Output must pass
scripts/lint-output.sh(exit 0).
Escalate / Stop Conditions
- Ask when the changed file list is missing or incomplete.
- Warn when the stale doc detector is unavailable or returns non-canonical paths.
- Do not widen the result to a full documentation workflow unless the detector evidence requires it.
Resources
references/diff-sync-rules.mdscripts/detect-stale-docs.shscripts/lint-output.shassets/output.template.jsonagents/openai.yaml
04 同仓库更多 Skills
sample-skill
Sample bundled skill fixture
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
processing-invoices
Turns a supplier invoice into one ledger line. Use when a supplier invoice arrives and needs booking.
understand-idea
Chat and Claude Code: Step 1 of the discover journey: clarifies the goal, who benefits, success and constraints into the idea block. Use when the journey directs it to step 1, not directly.
size-work
Chat and Claude Code: Suggest a size for a ticket from comparable finished work, as a labelled suggestion the team still owns. Use it when someone asks "how big is this?", "roughly how much work is ABC-12?", or wants a backlog item sized. It finds the team's sizing scale at first use, picks two to five of the closest finished tickets with links, and gives a size or range with the drivers behind it and a confidence of low, medium or high, lowered and explained when the area's documents are template text. Every result is labelled a suggested size, never a date or a commitment. It writes nothing into the size field unless the user says "set it", and it refuses to overwrite an existing size unless the user asks to replace it. Produces the sizing block of the record.
refine-ticket
Chat and Claude Code: Improve one or more existing tracker tickets without losing the author's intent. Use it when someone wants a ticket read, diagnosed and tidied up ("this ticket is vague", "fix up ABC-12", "split this, it's too big"). It reads each ticket in full and snapshots it with its last-updated time, says what is wrong with evidence, and proposes a field-by-field before and after change set limited to summary, description, labels, parent, links and new child tickets on a split. It writes nothing until an explicit "apply it" bound to that exact change set, re-checks the ticket for conflicting edits just before writing, never replaces rich descriptions with plain text, never deletes or closes a ticket, and reads each ticket back after applying. Produces the existing and changes blocks of the record.