claude-anvil / repoindex
CLAUDE.md2 starsChanged 5 months agoMITView on GitHub
A Claude Code plugin that provides MCP-driven agents for the repoindex local git catalog. The plugin orchestrates multi-step workflows via three specialized agents; all metadata access goes through the repoindex MCP server. Prerequisite: repoindex CLI installed (pip install repoindex[mcp]), database populated (repoindex refresh --external), and the repoindex MCP server configured in ~/.claude.json. The plugin is agent-first. Claude Code's built-in MCP support is the primary interface for reading repoindex data; agents orchestrate multi-step workflows on top of those tools, and five…
- Installs packages
In this repository11 other files it gives its agents.
- bookwright/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
- crier/CLAUDE.mdCLAUDE.md
- kdp/CLAUDE.mdCLAUDE.md
- locksmith/CLAUDE.mdCLAUDE.md
- mf/CLAUDE.mdCLAUDE.md
- papermill/CLAUDE.mdCLAUDE.md
- pub-pipeline/CLAUDE.mdCLAUDE.md
- research-agent/CLAUDE.mdCLAUDE.md
- vista/CLAUDE.mdCLAUDE.md
- worldsmith/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
3 rules. About 0 are common, 1 is distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈1
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 25
All three agents use the repoindex MCP tools:
- Very specific: line 44
Commit messages use conventional prefixes: feat(repoindex):, fix(repoindex):, docs(repoindex):
- Very specific: line 55
All joins go through repo_id foreign key.
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
What This Is
A Claude Code plugin that provides MCP-driven agents for the repoindex local git catalog. The plugin orchestrates multi-step workflows via three specialized agents; all metadata access goes through the repoindex MCP server.
Prerequisite: repoindex CLI installed (pip install repoindex[mcp]), database populated (repoindex refresh --external), and the repoindex MCP server configured in ~/.claude.json.
Architecture
The plugin is agent-first. Claude Code's built-in MCP support is the primary interface for reading repoindex data; agents orchestrate multi-step workflows on top of those tools, and five slash commands plus a workflows router skill provide quick entry points for recurring tasks.
Three agents:
repo-doctor(sonnet): fixed triage workflow. "What needs attention across my repos?" Runs a health check across dirty repos, unpushed commits, quality gaps, stale repos, and publication gaps. Produces a prioritized action list.repo-polish(inherit): single-repo release preparation. Audits a repo, generates boilerplate viarepoindex ops generate, writes prose (README, descriptions) with AI judgment, re-audits.repo-explorer(sonnet): open-ended analysis. "Which of my Python repos are on PyPI?" Cross-references tables with custom SQL and narrative synthesis.
Tool access
All three agents use the repoindex MCP tools:
get_manifest(): database overviewget_schema(table?): SQL DDL introspectionrun_sql(query): read-only SQL queriestag(repo, action, tag): manage user-assigned tagsexport(output_dir, query?): produce arkiv archivesrefresh(sources?): trigger metadata refresh
repo-polish also uses Bash for repoindex ops generate commands (write operations that don't have MCP equivalents).
Design principle
Delegate deterministic work to the CLI (ops generate for citation files, licenses, GitHub topic sync). Use AI judgment only for prose (README writing, description copywriting, topic suggestions).
Editing Conventions
- Agent frontmatter needs
name,description(with<example>blocks),tools,model,color - The
descriptionfield contains trigger phrases for auto-detection; be specific - Tools are listed by name; MCP tools use the
mcp__repoindex__*prefix - Commit messages use conventional prefixes:
feat(repoindex):,fix(repoindex):,docs(repoindex):
SQL Data Model (for reference when editing agents)
Four tables in ~/.repoindex/index.db:
- repos: core identity (
name,path), git status (is_clean,ahead,behind), metadata (language,description,keywords), boolean flags (has_readme,has_license,has_ci,has_citation,has_codemeta,has_funding,has_contributors,has_changelog), and forge metadata abstracted across GitHub/Gitea (forge_owner,forge_name,forge_description,forge_id,stars,topics,is_archived) - publications: registry packages (
pypi/cran/zenodo/npm/cargo/docker/rubygems/go),publishedflag,downloads_total/downloads_30d,doi - events: git activity (
commit/git_tag/branch/merge) with timestamps - tags: classification tags, auto-derived from metadata. Source attribution:
user,implicit,github,gitea,pyproject,pypi,cran,zenodo,go,npm
All joins go through repo_id foreign key.
Migration Note
Earlier versions had CLI-reference skills (repoindex, repo-polish) and a /repo-query slash command. With the repoindex MCP server providing full CLI parity, those were removed:
- CLI reference: covered by MCP tool descriptions plus
get_schema() /repo-query: covered byrun_sqldirectlyrepo-polishskill: converted to an agent
The current surface (v2.x) is three agents (repo-doctor, repo-polish, repo-explorer), a workflows router skill, and five slash commands (/repo-week, /repo-status, /repo-audit, /repo-sprint, /repo-mirror). /repo-status is a live command, not a removed one.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

