Repo Harness Architecture
Update architecture documentation and diagrams without reinitializing your repository.
Installation
- Make sure Claude is on your device and in your terminal.
Skills load from
~/.claude/skills/when Claude Code starts up — so you need it on your machine first. If you don't have it yet, install it once with the command below, then runclaudein any terminal to verify.One-time setupnpm i -g @anthropic-ai/claude-codeAlready have it? Skip ahead.
- Paste into Claude Code or into your terminal.
This copies the whole skill folder into
~/.claude/skills/repo-harness-architecture-ancienttwo/— the SKILL.md plus any scripts, reference docs, or templates the skill ships with. Safe default: works for every skill.Faster alternative (instruction-only skills)
Skips the clone and grabs only the SKILL.md file. Don't use this if the skill ships Python scripts, reference markdowns, or asset templates — they won't be downloaded and the skill will fail when it tries to load them.
Quick install (SKILL.md only)Sign up to copy - Restart Claude Code.
Quit and reopen Claude Code (or any other agent that loads from
~/.claude/skills/). New skills are picked up on startup. - Just ask Claude.
Skills auto-activate when your request matches the skill's description — no slash command needed. Trigger phrases live in the skill's own frontmatter; you can read them in the “What this skill does” section above.
Prefer to read the source first? Open on GitHub.
When Claude uses it
Resolves repo-harness architecture drift requests and updates architecture docs or diagrams without running full init, migrate, or upgrade.
What this skill does
repo-harness-architecture
Use this command when the harness already exists and the user wants a focused architecture documentation, drift-request, or diagram pass.
Protocol
- Confirm the target repo path and architecture scope.
- Inspect
docs/architecture/index.mdand pending files underdocs/architecture/requests/. - When the scope maps to repo code or config, resolve the capability with:
repo-harness run capability-resolver match --repo <repo> --path <path> --format json
- Update the smallest relevant architecture artifact:
- umbrella status in
docs/architecture/index.md - module or snapshot docs under
docs/architecture/ - Mermaid fenced block in the relevant module or snapshot Markdown when a visual flow materially helps
- optional human-readable diagram artifact under
docs/architecture/diagrams/
- umbrella status in
- Use Markdown Mermaid as the semantic diagram source; use
mermaidonly for optional human-readable HTML renderings grounded in observed repo files. - Archive handled requests with:
repo-harness run archive-architecture-request --request <request> --status <resolved|superseded|rejected|no-change> --artifact <path> --note <text>- For
resolved, the livePendingrequest must declare> **Architecture Module**:and that exact existing module path must be supplied as an--artifact.
- Verify with:
repo-harness run check-architecture-syncrepo-harness run capability-resolver validate --repo <repo> --format textrepo-harness run check-task-workflow --strictwhen repo workflow surfaces changed
Failure Modes
- If no pending architecture request exists, report
no-changeand do not invent one. - If capability resolution is ambiguous, stop at the matching paths and ask for a narrower scope.
- If
check-architecture-sync.shblocks in strict mode, resolve or archive the pending request card for the touched capability before finishing the worktree. - If diagram rendering fails, keep the Mermaid Markdown source and report the render failure.
Boundaries
- Does not run
repo-harness adopt. - Does not install or refresh the full harness.
- Does not let hooks rewrite architecture prose; hooks only record drift requests.
- Does not vendor
mermaid; it remains an external installed skill for optional human-readable HTML. - Keeps
docs/architecture/requests/pending-only by archiving handled requests.
Related skills
Claude API Helper
anthropics
Build, debug, and optimize Claude API applications with caching and model migration support.
Documentation Co-Authoring
anthropics
Guide structured workflows for writing docs, proposals, and technical specs collaboratively.
PPTX Text Extractor
axoviq-ai
Extract text and speaker notes from PowerPoint presentations.
Memory Search
davila7
Search conversation history and recall previous discussions, decisions, and context.