skills/repo-docs-align/SKILL.md
Sync repo docs (AGENTS, README, ADRs, specs, runbooks, doc comments) ↔ code/workflow. Triggers—big change, drift, docs-align/AGENTS prompts, plan, governance. Repo-native tools, any stack.
npx skillsauth add bjornmelin/dev-skills repo-docs-alignInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Use this skill to turn repo-doc drift into a grounded plan; when asked or clearly right, verified doc-align implementation.
Read before authority or compression calls:
Bundled resources:
scripts/new_repo_docs_align_artifact.py - scaffold hidden artifacts under .agents/<skill-name>/YYYY-MM/MM-DD/NN/ (<skill-name> = installed skill dir name)templates/drift-map.mdtemplates/reviewed-surfaces.mdtemplates/exec-plan.mdtemplates/retrospective.md[blocked].[blocked].100%); score options; record rubric + scores in plan/synthesis.9.0+ on winning path under that rubric when scoring applies.request_user_input when available:
0.0-10.0 scores (weighted totals OK)update_plan for nontrivial runs - workstream explicit + checkable.request_user_input for major authority, scope, artifact decisions repo evidence cannot settle. No broad free-form batches.web.* or MCP research when repo/docs evidence thin, stale, or task asks external verification.1-3 focused subagents; no nested subagents unless user asks.spawn_agent call: set model + reasoning_effort.references/subagent-orchestration.md.Extract:
plan-only, plan-then-execute, or audit-onlyAGENTS.md, README, ADRs, specs, runbooks, requirements docs, code commentsUser asked specific response format → preserve exactly.
Repo dirty or branch-specific → anchor on current worktree:
git status --shortgit diff --name-onlyInspect smallest high-signal set first:
AGENTS.mdAGENTS.mdREADME.md + docs indexesdocs/README.md, requirements.md, release indexes, execution catalogs, machine-readable ledgers when presentrg/repo-native search map likely impacted docs before edit. Parallelize independent read-only discovery before synthesis. Delegation: lightweight explorer subagents for repo mapping only after evidence targets known.
Many docs → prioritize via docs hubs, status ledgers, execution catalogs, changed functionality; prioritization ≠ coverage limit.
Prefer repo-native or user-named skills first. Adapt; don’t assume stack.
Examples:
$agents-md-maintainer before finalizing any AGENTS.md edit.$technical-writing when drafting/rewriting ADRs, specs, runbooks, migration docs, internal guides.$caveman-compress only when surface fits references/adaptive-compression.md.$hard-cut + $clean-code when simplifying stale doc structure or removing superseded guidance.$github, $vercel, $expo, $sentry, Context7, built-in web search) only when repo context or user request makes them relevant.Named skill/plugin unavailable → note briefly; closest valid fallback.
Compare current docs to:
Good delegation:
AGENTS.md + scoped guidance driftweb.* where search neededClassify each finding:
update-in-placecreate-canonical-docmark-supersededdelete-stale-guidanceleave-unchangedNo new docs until existing authority doc confirmed not owning concern. Don’t stop at first matching doc. Follow authority chain across README hubs, AGENTS, requirements, ADRs, specs, runbooks, setup, release docs, prompt catalogs, nearby comments/docstrings until related doc set aligned. Map every proposed doc/comment change to exact file, path, or code-comment surface. No named target → not grounded yet.
Authority matrix in references/doc-surfaces-and-authority.md.
Rules:
AGENTS.md durable repo guidance only — no task logs or branch narration.Future-session handoff → create/update one canonical plan/checklist with only fitting sections:
Execution-oriented, not diary. If the repo already has an execution catalog, prompt ledger, or trigger-prompt system, update that canonical surface, not parallel plan file.
Non-canonical artifacts from this skill default:
.agents/<skill-name>/YYYY-MM/MM-DD/NN/When this skill is installed as repo-docs-align, that resolves to .agents/repo-docs-align/YYYY-MM/MM-DD/NN/.
Use this hidden work area for things like:
drift-map.mdreviewed-surfaces.mdexec-plan.mdretrospective.mdRules:
01, 02, 03 same-day repeats.agents/ or min .agents/<skill-name>/.agents/<skill-name>/Deterministic scaffolding for hidden work area:
python3 scripts/new_repo_docs_align_artifact.py \
--dir <repo-root> \
--artifacts drift-map,reviewed-surfaces,exec-plan,retrospective
Run exact command from installed skill directory. Script resolves bundled templates relative to itself; shorter relative path unambiguous install-wide.
--artifacts = only files needed. --force = only when intentionally refreshing existing artifact file.
After drift map + authority are grounded:
Do not rewrite unrelated docs for imperfection alone.
Follow references/adaptive-compression.md.
Default:
When compressing:
Verify:
Changed AGENTS.md → brief $agents-md-maintainer pass before closeout.
Default order unless user asked for a different format:
UNVERIFIED.development
Repo/monorepo modernization: dependency upgrades, security fixes, deprecation cleanup, framework migrations, dependency-native refactors, and verified hard-cut simplification.
development
Use this skill for Browser Web Animations API: Element.animate(), Animation, KeyframeEffect, playback control, generated keyframes, cancel/finish, commitStyles, and cleanup. Trigger on Element.animate, WAAPI, Web Animations API, KeyframeEffect, Animation object, commitStyles. Do not use for near-miss tasks outside these boundaries; route to adjacent motion or platform skills when they own the implementation.
tools
Use this skill for Three.js, React Three Fiber, Drei, Canvas/createRoot lifecycle, loaders, GLTF, useFrame, disposal, SSR/client boundaries, DPR, and browser proof. Trigger on Three.js, THREE, @react-three/fiber, @react-three/drei, R3F Canvas, useFrame, GLTF, WebGLRenderer. Do not use for near-miss tasks outside these boundaries; route to adjacent motion or platform skills when they own the implementation.
development
Use this skill for Tailwind CSS v4 transition, animation, duration, easing, motion-safe/motion-reduce, @theme motion tokens, and static class safety. Trigger on Tailwind animation, transition-all, motion-safe, motion-reduce, @theme, animate-, duration-. Do not use for near-miss tasks outside these boundaries; route to adjacent motion or platform skills when they own the implementation.