/repo-harness:harness-setupfrom repo-harness
Analyzes a repository to build or extend its development harness: README, AGENTS.md, skills, Makefile, and docs. Runs discovery and inventory scans before generating artifacts.
Ships in repo-harness. 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.
One execution sequence. Work items apply based on what the repo needs — there is no upfront routing decision.
Check for an argument before doing anything else:
| Argument | Mode |
|---|---|
interactive | Pause after each section for review before proceeding |
one-shot | Generate all sections without pausing (prepend verification warning to each file) |
| (none) | Ask: "Interactive (I pause after each section) or one-shot (generate all at once, with a verification warning)?" |
Carry the chosen mode through all steps — do not ask again.
Load references/before-after-probe.md and record current agent behavior before making any changes.
Run the scan for a quick artifact overview (optional but fast):
bash .agents/skills/harness-setup/scripts/scan.sh
Then load and run both prompts in references/discovery.md, followed by the prompt in references/inventory.md. Capture all output before creating any files.
Multi-pass analysis: Run every analysis prompt twice independently — without referencing your first pass on the second run. Resolve disagreements before proceeding.
From the combined discovery and inventory output, determine which work items apply and which sub-path each takes:
| Work item | Applies when | Reference |
|---|---|---|
| M0: README scope and accuracy | Always | references/readme.md |
M1: CLAUDE.md shim + .claude/skills/ symlinks | Claude Code is a target (see gate below) — skip entirely otherwise | references/claude.md |
| M2: AGENTS.md + INVARIANTS.md | Missing, mixes concerns, or no INVARIANTS.md | references/agents.md |
| M3: Module-level AGENTS.md | Root AGENTS.md over line budget, or high-risk dirs undocumented | references/agents.md |
| M4: Skills | Always — ask whether any task type warrants a new skill (developer may decline); consolidate from non-canonical locations whenever they exist | references/skills.md |
| M5: Makefile | Missing targets or no Makefile | references/makefile.md |
| M6: docs/ | Any of ARCHITECTURE.md, DECISIONS.md, SETUP.md, TESTING.md, CONTRIBUTING.md missing | references/docs.md |
M1 gate — is Claude Code a target? The CLAUDE.md shim and .claude/skills/ symlinks are Claude-Code-specific compatibility artifacts, not part of the portable harness — Copilot, Cursor, and Codex read AGENTS.md and .agents/skills/ natively and need neither. Decide before running M1:
CLAUDE.md or a .claude/ directory already exists → Claude Code is a target; run M1.CLAUDE.md shim and .claude/skills/ symlinks only if so — other tools read AGENTS.md and .agents/skills/ natively and need neither." If they decline, skip M1 entirely (no shim, no symlinks) and record the decision in the plan. Carry the answer through; do not ask again.Run order: M0 → M2 → M1 → M3 → M4 → M5 → M6
Plan before changes: Write out which work items apply, which sub-path each takes, and in what order. Present for confirmation before making any changes. If your tool supports a planning mode (e.g., Claude Code /model opusplan), use it for Steps 2–3, then switch to execution mode.
Load references/bootstrap.md — shared conventions (identifier-grounding, interaction pattern, execution mode) that apply to every work item.
Work through the plan in order. For each work item:
Never delete a file before confirming its content is preserved or no longer needed.
Load references/validation.md and run both prompts. Run the Before/After Probe again.
Load references/review-panel.md and run all four reviewers. Each reads fresh — do not carry forward context from previous steps. Surface findings inline; do not write to a file.
CHANGELOG.md (opens in a new tab)README.md (opens in a new tab)assets/AGENTS.md.template (opens in a new tab)assets/ARCHITECTURE.md.template (opens in a new tab)assets/CLAUDE.md.template (opens in a new tab)assets/CONTRIBUTING.md.template (opens in a new tab)assets/DECISIONS.md.template (opens in a new tab)assets/INVARIANTS.md.template (opens in a new tab)assets/Makefile.template (opens in a new tab)assets/README.md.template (opens in a new tab)assets/SETUP.md.template (opens in a new tab)assets/TESTING.md.template (opens in a new tab)assets/module-AGENTS.md.template (opens in a new tab)evals/evals.json (opens in a new tab)references/agents.md (opens in a new tab)references/before-after-probe.md (opens in a new tab)references/bootstrap.md (opens in a new tab)references/claude.md (opens in a new tab)references/discovery.md (opens in a new tab)references/docs.md (opens in a new tab)What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
repo-setup, harness, project-scaffolding, repository-analysis
Other plugins' skills for the same job
npx claudepluginhub adobe/ai-repo-harness-guide --plugin repo-harness2 skills in this plugin