/autonomous-fleet:doc-syncfrom autonomous-fleet
[Tier 1 · highest cross-agent merge-success category (documentation) · safe to run unattended] Bring a repo's documentation back into alignment with its actual code: README, docs/, AGENTS.md/CLAUDE.md, API references, setup/usage instructions, code comments that have drifted, and inline examples that no longer run. Use when docs are stale, after a refactor or dependency change, when onboarding docs are wrong, or for a periodic documentation-truth pass. This is a documentation mission ONLY — it does not change application behaviour or logic; it makes the docs match the code as it actually is. Runs fully autonomously via the autonomous-fleet-core engine. Trigger on: "sync the docs", "our README is out of date", "docs don't match the code", "update documentation", "fix onboarding/setup instructions", "documentation audit".
Ships in autonomous-fleet. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Before executing, activate these skills and read their full instructions:
autonomous-fleet-core — read references/engine.md and references/composition.md when coordinatingautonomous-fleet-adapter-orca, autonomous-fleet-adapter-claude-code, autonomous-fleet-adapter-grok, or autonomous-fleet-adapter-codexFollow the core and your adapter in full, then apply the mission parameters below.
Do not load a second mission skill in the same run. For chained missions, use fleet-program.
Activate only when the trigger applies. Do not load unrelated catalog skills.
| Skill | Activate when | If unavailable |
|---|---|---|
skill-creator | Editing or validating skills in the autonomous-fleet repo itself | Run ./scripts/validate-skills.sh (framework clone only) |
Inject per role on DISPATCH (workers load these; coordinator does not):
| Role | Skills | If unavailable |
|---|---|---|
| @codex (write doc fixes) | — | Repo README + manifests only |
| @claude (audit, fresh review, integrator) | — | Repo README + manifests only |
Record in <LEDGER_DIR>/doc-sync-readiness.md under Recommended next missions and in DECISIONS.md.
Do not start another mission in the same run.
| Finding type | Route to |
|---|---|
| Code bug (doc reveals wrong behaviour) | bug-batch |
| Undertested area flagged during audit | test-coverage |
| Broken setup/deps (not doc wording) | dependency-update |
Empirical note: Documentation, CI, and build-update tasks show the highest merge-success rate among AI-agent PRs (arXiv 2601.15195 — Ehsani et al., MSR 2026, AIDev dataset of ~33k PRs). This mission is safe to run unattended.
Make the repository's documentation TRUE to its current code. Find every place docs and code disagree and fix the DOCS (never bend the code to match stale docs). Scope includes: README, everything under docs/, AGENTS.md / CLAUDE.md / CONTRIBUTING, API/reference docs, setup & install & usage instructions, configuration docs, and code-level doc comments + inline examples that have drifted or no longer run. Out of scope: any change to application behaviour, logic, APIs, or tests' meaning. If a doc reveals an actual code bug, do NOT fix the code — record it in DECISIONS.md as a finding for a separate mission.
<LEDGER_DIR>/doc-sync-progress.md. Per-task flags: WRITTEN=<t/f> PR_OPEN=<t/f> REVIEWED=<t/f> MERGED=<t/f>. Plus a DRIFT INDEX: every doc-vs-code discrepancy found in T-AUDIT, each OPEN | CLOSED via PR#n.
T-AUDIT [@claude] — read the code and the docs together; produce a complete DRIFT INDEX:
every discrepancy with the doc location and the code truth it should reflect, grouped by doc
area (README / setup / API / AGENTS.md / comments / examples). Also flag broken links, dead
example commands, and instructions that no longer work. Output <LEDGER_DIR>/doc-sync-audit.md.
Independent — this is the only discovery task; freeze it, then fix.
T-FIX… [per doc area, loop] — each doc area is one PR. @codex rewrites that area to match the code (run any example/command to verify it actually works) → fresh build-blind @claude reviews the PR (doc matches code, examples run, links resolve) → @claude merges. Parallelize across non-overlapping doc files; serialize edits to the same file. Update the DRIFT INDEX as items close.
PR sizing (issue #100 — the seam that decides spam vs blob):
docs/<file>.md), one docs/ subdirectory, one docs-site content
section (e.g. one docs-site/src/content/docs/<chapter>.md — but if the
site copy is GENERATED from docs/, fix the source and re-run the sync;
never hand-edit the generated copy), or one code module's
comments/docstrings. Group the frozen DRIFT INDEX rows by that unit.DRIFT INDEX row schema (frozen at T-AUDIT; the reviewer verifies against THESE columns):
| ID | Doc file:line | Doc says | Code truth | Fix area | State |
|---|---|---|---|---|---|
| D-001 | CONTRIBUTING.md:11 | "Ruby 1.9+" | CI tests 2.7/3.0/3.1 (cite code file:line) | contributing | OPEN → CLOSED via PR#n |
T-FINAL [@claude] — verify every DRIFT-INDEX item is CLOSED, all example commands run,
all internal links resolve, no stale instruction remains. Output <LEDGER_DIR>/doc-sync-readiness.md
starting with fleet-outcome YAML (drift_open, code_bug_findings in metrics; see
autonomous-fleet-core/references/fleet-outcome.md), then drift summary + Recommended next
missions. Ship as the final PR.
After ledger init, SET_GOAL per autonomous-fleet-core/references/runtime-goals.md. Record
## Runtime goal in <LEDGER_DIR>/doc-sync-progress.md. GOAL_COMPLETE only after ## DONE below.
Mission doc-sync DONE: <LEDGER_DIR>/doc-sync-progress.md all task flags true,
<LEDGER_DIR>/doc-sync-readiness.md with fleet-outcome.status done and mission metrics satisfied,
the readiness fleet-outcome validates (python3 <SUBSTRATE>/validate_fleet_outcome.py per the engine's SUBSTRATE RESOLUTION; skip recorded in the readiness doc when SUBSTRATE=none), all PRs merged into BASE.
Every DRIFT-INDEX item CLOSED, every task WRITTEN=t PR_OPEN=t REVIEWED=t MERGED=t,
<LEDGER_DIR>/doc-sync-readiness.md exists, all examples run and links resolve. Then send the FINAL
report.
What SKILL.md sets; muted values are Claude Code's defaults
Generated from the plugin's indexed repository (ravidsrk/autonomous-fleet) — no native marketplace selected
npx claudepluginhub p/ravidsrk-autonomous-fleet12 skills in this plugin
/adversarial-review-and-fix[Tier 2 · moderate autonomy · full review gate · the proven two-phase workhorse] Run a rigorous CODE-GROUNDED adversarial architecture review of a repo, FREEZE it as the source of truth, then close every confirmed finding one at a time until done. Use for a security/architecture/ reliability hardening pass, a pre-production audit-and-remediate, or "review the whole app and fix everything." Phase 0 reviews the actual source (not existing docs) and a skeptic narrows out false findings; Phase 1 fixes the confirmed set with full safety rails. Runs via the autonomous-fleet-core engine. Trigger on: "adversarial review and fix", "audit and remediate", "review the whole app and fix the issues", "harden this before production", "find and fix the architecture problems"./autonomous-fleetEntry point for the autonomous-fleet multi-agent engineering framework. Use whenever the user wants fully-autonomous coding runs, multi-agent orchestration, PR-per-task pipelines, or mentions autonomous-fleet — even if they have not named a specific mission yet. Routes to one mission or to fleet-program for sequential chains, loads autonomous-fleet-core plus a runtime adapter, and runs unattended on the current repo. Install from github.com/ravidsrk/autonomous-fleet. Trigger on: "use autonomous-fleet", "run autonomous fleet", "autonomous multi-agent run", "fleet mission", "which fleet mission should I use".