agent-loop-ext
Crash-resilient external agent loop with state persistence and CI/CD integration
Synchronize documentation and code with bounded, scope-first drift checks
$ npx -y skills add jmagly/aiwg --skill doc-sync --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/doc-syncContext preview
The summary Claude sees to decide when to auto-load this skill.
Synchronize documentation and code with bounded, scope-first drift checks
namespace: aiwg name: doc-sync description: Synchronize documentation and code with bounded, scope-first drift checks commandHint: argumentHint: "<direction> [--dry-run] [--scope <path>] [--incremental] [--parallel N]" allowedTools: Task, Read, Write, Bash, Glob, Grep, Edit category: utilities orchestration: true platforms: [all]
Detect and resolve documentation drift without front-loading a full repository audit. Treat standard Claude Code Sonnet context as the baseline.
Users may say:
`direction` is required:
Options:
git changed files if no last-run record exists
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.
`git diff --cached --name-only`.
changed files and ask before expanding to the full repo.
bodies.
Detailed evidence goes under `$AIWG_ARTIFACT_ROOT/working/doc-sync/`.
as one scoped lane and return a handoff summary for `commit-and-push`.
1. Parse direction and options. 2. Build the cheap scope inventory from git path lists. 3. Select relevant lanes only: CLI/API docs, provider docs, skill/agent catalogs, README/changelog/release/blog material, or config/schema docs. 4. Run bounded auditors for selected lanes only. 5. Write `$AIWG_ARTIFACT_ROOT/reports/doc-sync-{timestamp}.md` with scope, findings, auto-fixable items, human-review items, and changed files. 6. If not `--dry-run`, apply high-confidence fixes only. 7. Validate modified files with targeted checks. 8. Record `$AIWG_ARTIFACT_ROOT/reports/doc-sync-last-run.json`. 9. Return report path, files changed, validation commands, and remaining review items.
Return:
Reusable project context and specialist workflows for the AI tools you already use. Plan software, coordinate specialist reviews, prepare campaigns, investigate incidents, organize research, curate media, and maintain operational knowledge.
Repo: jmagly/aiwg
Crash-resilient external agent loop with state persistence and CI/CD integration
Detect requests for iterative autonomous agent loops and route to the appropriate loop executor
Automatically execute tests when code-generating agents modify source files, enforcing the execute-before-return pattern
Enable agent loops to learn from similar past tasks and share patterns across loops
Query and manage the executable feedback debug memory
Execute tests on generated code and iterate until passing