/eng:sync-core-repo-docsfrom eng
Create or audit a repo's three core doc files — README.md, the agent instructions file (AGENTS.md or CLAUDE.md), and REVIEW.md — in that dependency order. If a file is missing, generate it from the codebase; if it exists, audit it against the current code and apply targeted fixes after confirmation. README.md gets a developer from clone to running the project; AGENTS.md captures coding guidance for the agent (delegating to /init or claude-md-improver); REVIEW.md holds guidance for code reviewers, human or automated, without duplicating AGENTS.md. Target files with --readme, --claude, and --review, or run all three. Use whenever the user wants to set up, bootstrap, scaffold, refresh, audit, update, or sync a repo's docs, or says things like "create a README", "is my README still accurate", "write a CLAUDE.md", "write an AGENTS.md", "audit our docs", or "get this repo ready for contributors" — even when only one file is named. Prefer it over claude-md-improver when README or REVIEW are also in scope.
Ships in eng. 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.
Create or audit the three documentation files that orient a developer (and a coding agent) to a repository:
The instructions file is AGENTS.md, with CLAUDE.md as a symlink to it or a one-line @AGENTS.md import. A repo that has only a CLAUDE.md keeps it: audit and edit that file in place rather than introducing AGENTS.md. Everywhere below, "AGENTS.md" means whichever of the two the repo actually uses; --claude keeps its name and targets that file.
For each file: if it's missing, create it from the actual codebase; if it exists, audit it for accuracy and propose targeted fixes. Creating a file is a normal write; changing an existing file is gated behind a confirmation checkpoint, because the user may have written something deliberately that looks wrong from the outside.
Always process the files in this sequence — README.md → AGENTS.md → REVIEW.md — because each settles facts the next one reuses:
Finish one file — including its confirmation checkpoint — before starting the next. That way later files build on the approved version of earlier ones, not a draft.
Flags choose which files to process:
--readme → README.md only--claude → AGENTS.md only--review → REVIEW.md onlyFlags combine (--readme --review does both). With no flags, process all three. Whatever the subset, always run it in the canonical order above — flag order on the command line is irrelevant.
Each step below is one of two paths, decided by whether the file already exists at the repo root:
Create path (file absent):
Audit path (file present):
Edit — change only what's inaccurate.Read the relevant reference file before doing a README or REVIEW step; they hold the structure and the audit lens for each.
Read references/readme-guidance.md first. The README's job is orientation — a newcomer should come away understanding what the project is and how to get it running (a debug build for an app; install-and-use for a library or tool). Judge it by whether the information needed for orientation is present, accurate, and findable — not by whether it follows a particular structure. The guidance file holds the orientation checklist and how create and audit differ.
Create: Inspect the repo to learn what a newcomer actually needs — language/runtime and version, package manager, build/test/run commands (from package.json, *.csproj/build scripts, Makefile, pyproject.toml, etc.), required tooling, environment/config, and whether any deeper docs exist to link. Then write a README that covers the orientation checklist, arranged however suits the repo, including only the items that apply (don't invent a docs or configuration section the repo has no use for).
Audit: Verify the existing README against the repo — do the documented prerequisites, setup steps, and commands still work and match reality, and do referenced docs/paths still exist? Surface anything stale, broken, or misleading that would leave a newcomer stuck. A missing optional section is not automatically a defect — judge gaps by whether they actually impair orientation. Do not restructure or reformat an existing README — match its existing structure and only fix accuracy. Larger formatting changes are out of scope unless the user asks.
AGENTS.md is the agent's working context: build/test commands, architecture, conventions, and non-obvious gotchas — concise, project-specific, every line earning its place. Reuse the facts settled in Step 1 (purpose, commands, structure) rather than rediscovering them.
Create (file absent): Analyze the codebase and write a fresh AGENTS.md — replicating what Claude Code's /init would do (this is descriptive, not an instruction to invoke the slash command). If the claude-md-improver skill (from the claude-md-management plugin) is installed, you may hand off to it after creation to refine the result. Keep it concise and actionable: commands that copy-paste cleanly, real paths, a brief architecture map, and the gotchas a new session would otherwise stumble on. Skip generic best-practice advice — it isn't project-specific and wastes the context window.
Audit (file present): Do what the claude-md-improver skill does. If that skill is installed, invoke it. If it isn't, follow its workflow inline: score the file (commands, architecture clarity, non-obvious patterns, conciseness, currency, actionability), output a quality report, stop for confirmation, then apply targeted additions/fixes — flagging stale commands, deleted-file references, outdated tech versions, and undocumented gotchas. Don't pad the file with obvious or generic content.
Either way, this step keeps the skill's standard rhythm: for an existing file, report → confirm → apply.
Read references/review-guidance.md first. REVIEW.md is reviewer-facing guidance for whoever reviews a change — a human or an automated code review agent: what to scrutinize in this codebase, security-sensitive surfaces, invariants that must hold, and known false-positive patterns reviewers should not flag.
The defining constraint: REVIEW.md must not duplicate AGENTS.md. They serve different moments — AGENTS.md guides writing code, REVIEW.md guides reviewing it. Before writing or accepting any REVIEW.md content, check it against the AGENTS.md settled in Step 2 and drop anything already covered there. If --review ran alone and Step 2 didn't execute this session, read the existing AGENTS.md from disk to perform this check. The guidance file explains how to keep the two cleanly separated.
Create: Derive review priorities from the codebase — trust boundaries, auth/crypto/input-handling code, concurrency, money/units math, and other places where a subtle change does real damage — and write REVIEW.md per the recommended structure.
Audit: Verify the existing REVIEW.md still matches the code (do the referenced risk areas and files still exist?) and, critically, check for overlap that has crept in against the current AGENTS.md. Report → confirm → apply.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub esond/skills --plugin eng7 skills in this plugin
/clean-unused-cpm-packagesRemove unused PackageVersion entries from `Directory.Packages.props` files in a .NET repo using Central Package Management (CPM). Scans every `.csproj`, `.props`, and `.targets` file for PackageReference includes, computes which PackageVersion IDs aren't referenced anywhere, removes the unused entries with line-targeted edits that preserve formatting and comments, then verifies with `dotnet restore`. Use this skill whenever the user wants to clean up, prune, or remove unused entries from `Directory.Packages.props`, or says things like "clean up CPM", "remove unused packages from central package management", "the props file has stale entries", "prune Directory.Packages.props", or "dead packages in the central versions file" — even if they don't literally say "CPM". Trigger proactively when the user mentions `Directory.Packages.props` alongside cleanup, removal, dead, stale, or unused. Refuses to run on repos without a `Directory.Packages.props` (CPM not in use)./inline-reviewFind and address inline code-review comments left in the code, marked with the `rev:` prefix (e.g. `// rev:`, `# rev:`, `-- rev:`). These are a manual code review done inline instead of on GitHub — each comment is a question, suggestion, concern, or change request about the nearby code. Use this skill whenever the user asks you to address, handle, resolve, go through, or respond to their inline review comments, rev comments, or `rev:` comments — even when phrased tersely, like "address my rev comments", "handle the reviews", "go through the rev: notes", "I left some inline comments", "respond to my review", or just "address these" right after leaving such comments. Trigger whenever the request references `rev:` comments in the code./pr-review-resolverAddress outstanding review feedback on a GitHub pull request: unresolved review threads, submitted review bodies, and general PR comments. Triages each critically, fixes what it agrees with, and pushes back on the rest. Use whenever the user wants to address, fix, resolve, or work through PR review comments or feedback, even if they just say "handle the PR comments", "fix what the reviewers said", or "go through the PR", or pastes a PR URL and asks you to act on the feedback there./reorganize-branch-commitsReorganize the commits on a non-default git branch into a clean, logical history by rewriting the branch — `git reset` + re-commit by default, `git rebase -i` when commit boundaries already align. Propose groupings based on the actual work done (features, refactors, tests, fixes, docs), get explicit user approval, back the branch up, then rewrite history. Use this skill whenever the user wants to tidy up, clean up, reorganize, restructure, squash, or curate commits on a feature branch — even if they phrase it as "my branch is a mess", "squash this down", "combine these commits", "fix up the commit log before I open a PR", or "make the commits presentable for review". Trigger proactively when the user is about to open or push a PR and the branch has scrappy/WIP/"fix" commits to collapse. Refuses to operate on default or release-shaped branches (main, master, develop, trunk, production, release, or the repo default) — a feature-branch-only tool./righting-software-system-designOpt-in, collaborative system-design workflow based on Juval Löwy's iDesign methodology in *Righting Software*. Conducts a multi-phase interview (framing → use cases → volatility analysis → components → call-chain validation → report) that surfaces unknown-unknowns and produces a written recommendation at `decompositions/{system-name}/report.md`. **Run only when the user explicitly invites this workflow** — not for general architecture questions, lightweight design conversations, or quick "where should X live?" questions. Valid triggers: the user names the skill directly, references *Righting Software* / Juval Löwy / iDesign / "The Method" / volatility-based decomposition and asks to run a full session, asks for a "deep" or "structured" or "Löwy-style" system design session, or accepts a prior suggestion to run it. Wait for an explicit yes before entering Phase 0. The skill is interrogative — a back-and-forth interview that challenges each volatility candidate and proposes ones the user hasn't considered./sync-core-docsCreate or audit a repo's README.md, AGENTS.md/CLAUDE.md, and REVIEW.md docs.