architecture-guard
Detects pattern drift against architecture decisions. Read-only enforcer. Invoked by Impetus — do not invoke directly.
- License 许可
- Apache-2.0
- 最近更新
- 2026-11-09
- Stars
- ★ 0
- Forks
- 0
01 前言 Front Matter
- name
- doc-sync
- namespace
- aiwg
- platforms
- [ "all" ]
- commandHint
- { "category": "utilities", "allowedTools": "Task, Read, Write, Bash, Glob, Grep, Edit", "argumentHint": "<direction> [--dry-run] [--scope <path>] [--incremental] [--parallel N]", "orchestration": true }
- description
- Synchronize documentation and code with bounded, scope-first drift checks
02 资源文件 2
03 SKILL.md 正文
Doc Sync
Detect and resolve documentation drift without front-loading a full repository audit. Treat standard Claude Code Sonnet context as the baseline.
Triggers
Users may say:
- "doc sync"
- "sync docs"
- "fix doc drift"
- "reconcile docs"
- "update docs to match code"
- "update code to match docs"
- "check for documentation drift"
Parameters
direction is required:
code-to-docs: update docs to match codedocs-to-code: identify code gaps against docsfull: bidirectional reconciliation with human review for conflicts
Options:
--dry-run: report only, no file edits--scope <path>: limit the audit to a subtree or file group--incremental: start from changed files since the last sync, then current git changed files if no last-run record exists--parallel N: cap concurrent auditors; default2, maximum4
Artifact root resolution
Treat every .aiwg/... path below as a logical artifact path. Before reading
or writing sync state, working evidence, or reports, run aiwg artifacts path
from the active workspace and use the returned absolute directory as
AIWG_ARTIFACT_ROOT. Never write these payloads to a literal project-local
.aiwg/ when AIWG_ARTIFACTS_PATH or .aiwg-location redirects the corpus.
Context Budget Rules
- Start with
git status --short,git diff --name-only, andgit diff --cached --name-only. - If no
--scopeor--incrementalis supplied, derive a candidate scope from changed files and ask before expanding to the full repo. - Use inventories (
rg --files,find, git path lists) before reading file bodies. - Dispatch auditors only for domains implicated by the scoped files.
- Each auditor returns at most 10 findings and 600 words to the parent context.
Detailed evidence goes under
$AIWG_ARTIFACT_ROOT/working/doc-sync/. - Do not preload other skills into auditor agents.
- For combined doc-sync, blog, and commit requests, keep blog/release coverage
as one scoped lane and return a handoff summary for
commit-and-push.
Workflow
- Parse direction and options.
- Build the cheap scope inventory from git path lists.
- Select relevant lanes only: CLI/API docs, provider docs, skill/agent catalogs, README/changelog/release/blog material, or config/schema docs.
- Run bounded auditors for selected lanes only.
- Write
$AIWG_ARTIFACT_ROOT/reports/doc-sync-{timestamp}.mdwith scope, findings, auto-fixable items, human-review items, and changed files. - If not
--dry-run, apply high-confidence fixes only. - Validate modified files with targeted checks.
- Record
$AIWG_ARTIFACT_ROOT/reports/doc-sync-last-run.json. - Return report path, files changed, validation commands, and remaining review items.
Output Contract
Return:
- report path
- scope audited
- files changed
- validation commands run
- remaining human-review items
- recommended handoff skill, if any
04 同仓库更多 Skills
upstream-fix
Traces quality failures upstream to spec, rule, or workflow root cause. Proposes fixes at the right level.
triage
Dedup gate + batch-classify observations into five classes, enrich ARTIFACTs, batch-approve, delegate to intake/decision or queue.
sprint-planning
Sprint planning — story selection, team composition, Gherkin specs, and visual companion plan gate for developer sign-off.
sprint-manager
Sole writer of stories/index.json and sprints/index.json — validates state transitions, activates sprints, manages epic membership.
sprint-dev
Sprint execution — dependency-driven story development, post-merge AVFL, and team review.
retro
Sprint retrospective — transcript audit engine (dynamic Workflow), story verification, findings document, and sprint closure.