best-copilot
CLAUDE.md12 starsChanged 6 months agoApache-2.0View on GitHub
best-copilot is a multi-runtime agent-team workflow plugin for Claude Code, Codex, and GitHub Copilot CLI. It is not a compiled application — all artifacts are Markdown (agents, skills, instructions) and JSON (manifests). There is no build step, no test suite, and no linter beyond JSON/YAML validation. The project serves three runtimes from shared sources using an adapter pattern: Key rule: shared behavior stays in skills/, incompatible runtime metadata stays in agents/, claude-agents/, .codex-plugin/, or .agents/. Never mix them. Shared behavior…
In this repository41 other files it gives its agents.
- AGENTS.mdAGENTS.md
- .claude/CLAUDE.mdCLAUDE.md
- brainstormingSkill
- change-verificationSkill
- context-packet-fastpathSkill
- core-workflow-contractSkill
- developer-workflowSkill
- development-branch-closeoutSkill
- dispatching-parallel-agentsSkill
- evolution-loopSkill
- executing-plansSkill
- frontend-designer-workflowSkill
- frontend-design-guardrailsSkill
- quality-assurance-workflowSkill
- repo-init-gateSkill
- repo-init-manual-fallbackSkill
- repo-init-officialSkill
- repo-init-scanSkill
- root-cause-fixer-workflowSkill
- root-cause-investigationSkill
- search-fastpathSkill
- security-reviewer-workflowSkill
- senior-project-expertSkill
- senior-project-expert-workflowSkill
- spec-execution-fastpathSkill
- specification-writer-workflowSkill
- spec-review-gauntletSkill
- structured-reviewSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- target-instructions-bootstrapSkill
- target-memory-bootstrapSkill
- target-spec-bootstrapSkill
- td-java-coding-guidelinesSkill
- td-python-coding-guidelinesSkill
- technical-architect-workflowSkill
- test-driven-developmentSkill
- verification-before-completionSkill
- web-experience-auditSkill
- workspace-isolationSkill
- writing-plansSkill
The file
We split this CLAUDE.md into the rules it gives an agent
10 rules. About 0 are common, 4 are distinctive, and 6 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
6
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 63
After editing agents/skills/instructions, reinstall the plugin or run /reload-plugins in Claude Code before testing.
- Very specific: line 64
When plugin.json version changes, update the init contract version in best-copilot.md, all repo-init-* skills, the best-copilot.md sample …
- Distinctive: line 68
When installed in another repository, persistent state goes to that target repo — never to this plugin package:
- Distinctive: line 91
MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- Very specific: line 92
When GitNexus is selected for unfamiliar code, use gitnexus_query({query: "concept"}) to find execution flows instead of grepping.
- Very specific: line 93
When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use gitnexus_context({name: …
- Distinctive: line 97
NEVER edit a function, class, or method without first obtaining equivalent impact/context evidence from the selected provider.
- Distinctive: line 98
NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- Very specific: line 99
When GitNexus is selected, NEVER rename symbols with find-and-replace — use gitnexus_rename which understands the call graph.
- Very specific: line 100
When GitNexus is selected, NEVER commit changes without running gitnexus_detect_changes() to check affected scope.
≈ “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
best-copilot is a multi-runtime agent-team workflow plugin for Claude Code, Codex, and GitHub Copilot CLI. It is not a compiled application — all artifacts are Markdown (agents, skills, instructions) and JSON (manifests). There is no build step, no test suite, and no linter beyond JSON/YAML validation.
Validation Commands
| Check | Command | ||
| Validate all JSON manifests | ruby -rjson -e 'JSON.parse(File.read("plugin.json")); JSON.parse(File.read(".codex-plugin/plugin.json")); JSON.parse(File.read("claude-plugin/.claude-plugin/plugin.json")); JSON.parse(File.read(".claude-plugin/marketplace.json")); JSON.parse(File.read("settings.json")); JSON.parse(File.read("marketplace.json")); JSON.parse(File.read(".github/plugin/marketplace.json")); JSON.parse(File.read(".agents/plugins/marketplace.json")); puts "json ok"' | ||
| Validate YAML frontmatter in all agents/skills | `ruby -ryaml -e 'Dir["{agents,skills,claude-agents}/**/*.{md,agent.md}"].sort.uniq.each { | f | s=File.read(f); next unless s.start_with?("---"); YAML.safe_load(s.split("---",3)[1], permitted_classes: [Symbol]); }; puts "frontmatter ok"'` |
| List skills | find skills -maxdepth 3 -name SKILL.md | sort | ||
| List Copilot agents | find agents -maxdepth 1 -name '*.agent.md' | sort | ||
| List Claude agents | find claude-agents -maxdepth 1 -name '*.md' | sort | ||
| Verify Claude plugin inventory | claude --plugin-dir /absolute/path/to/best-copilot/claude-plugin plugin details best-copilot (should show 8 agents, 39 skills) | ||
| Check for leftover placeholders | rg --hidden -n "legacy-template-name|project-specific-name|internal-host" . | ||
| Whitespace issues | git diff --check |
Architecture
Multi-Runtime Adapter Pattern
The project serves three runtimes from shared sources using an adapter pattern:
- Shared layer —
skills/core-workflow-contract/SKILL.md: cross-role contracts (source priority, dispatch packets, review/verification gates, memory/spec rules, closeout). Role-specific behavior lives inskills/*-workflow/SKILL.md. - Copilot CLI layer —
agents/*.agent.md: Copilot-specific metadata (model names,user_invocable,agents,handoffs). Skills loaded from rootskills/. - Claude Code layer —
claude-agents/*.md: Claude-specific metadata (Claude model aliasesopus/sonnet/haiku, agent-team rules, read-only restrictions). Skills exposed viaclaude-plugin/skills -> ../skillssymlink. Agents viaclaude-plugin/agents -> ../claude-agentssymlink. - Codex layer —
.codex-plugin/plugin.json,.agents/plugins/marketplace.json, andplugins/best-copilot/: Codex plugin/marketplace metadata. The installable Codex subpackage has its own.codex-plugin/plugin.jsonandskills -> ../../skills;.agents/skills -> ../skillsexposes the same skills for direct repo-scoped Codex use.
Key rule: shared behavior stays in skills/, incompatible runtime metadata stays in agents/, claude-agents/, .codex-plugin/, or .agents/. Never mix them.
Reliability Gates
Shared behavior in skills/core-workflow-contract/SKILL.md and .github/instructions/must.instructions.md requires explicit assumptions/tradeoffs, the simplest viable approach, surgical diffs, read-before-write evidence for code edits, goal-driven verification, and done/verified/left checkpoints for multi-step work. Target bootstrap templates must carry the same gates.
Agent Team (8 roles)
Senior Project Expert owns orchestration (intent, scope, dispatch, fan-in, closeout). Seven specialists own their domain: Technical Architect (SDD design, implementation), Developer (frozen slices), Frontend Designer (UI), Specification Writer (requirements/specs), Quality Assurance Expert (verification/merge readiness), Security Reviewer (auth/deps/release surface), Root Cause Fixer (failure triage).
Skill Loading
- Claude agents declare
skills:in frontmatter — onlycore-workflow-contract+ matching role workflow are preloaded. Senior Project Expert also preloadsrepo-init-gate;repo-init-scanis loaded only when the sentinel gate fails. In shell-capable Claude Code, the preferred failed-gate path is the bundledrepo-init-gate/scripts/run-preflight.shhelper, which preserves the sentinel fast path and directly runs the scan bootstrap on failure. - Focused skills (e.g.,
structured-review,test-driven-development) are on-demand via namespaced slash commands such as/best-copilot:skill-namewhen installed as a plugin. - Codex loads bundled skills through the plugin or
.agents/skills; invoke@best-copilotor a bundled$skillexplicitly when a workflow must be used. Codex subagent workflows require explicit spawn/delegation instructions and are not automatic on plugin install. - In agent teams, teammate
skills:frontmatter is ignored — spawn prompts must name skills explicitly or the teammate returnsNEEDS_CONTEXT missing_required_skill. - A
Skill(...) Successfully loadedline means Claude loaded instructions; it does not mean the workflow ran. Repo init is complete only after the target files are created or verified on disk and the preflight/scan path reportsrequired_artifacts_verified: yes,sentinel_written: yes, andnext_task_ready: yes.
Code Intelligence MCP
Structural code intelligence is capability-aware and optional. Choose by current tool inventory in this order: codebase-memory-mcp graph tools, GitNexus (mcp__gitnexus__*), CodeGraph (mcp__codegraph__*), language-server navigation/diagnostics, then built-in Read/Grep/Glob plus shell rg. Use the selected provider for symbol discovery, call-chain/context tracing, impact assessment, and review scope; record missing chain evidence when native search is the only option. A local binary or plugin inventory entry is not enough, and absent tools must not be called.
Init Gate (mandatory preflight)
Before any substantive target-repository work: repo-init-gate reads the target root best-copilot.md sentinel. If frontmatter version: "0.8.0" matches, skip repo-init-scan. Otherwise run the preflight/scan bootstrap path, which orchestrates official init (/init or copilot init), normalizes facts into .github/instructions/project.instructions.md, and bootstraps missing scaffolds. Work is fail-closed until init is verified.
Editing Conventions
- Edit Codex install metadata in
.codex-plugin/and.agents/, Copilot agents inagents/*.agent.md, Claude agents inclaude-agents/*.md, shared skills inskills/. .github/instructions/**contains repo-level rules:must.instructions.md(core rules),project.instructions.md(project facts),skills-index.instructions.md(skill routing).- After editing agents/skills/instructions, reinstall the plugin or run
/reload-pluginsin Claude Code before testing. Copilot CLI reads from its installed plugin cache; Codex local plugin tests should restart the thread/session after marketplace or plugin changes. - When
plugin.jsonversion changes, update the init contract version inbest-copilot.md, allrepo-init-*skills, thebest-copilot.mdsample intarget-instructions-bootstrap/SKILL.md,.codex-plugin/plugin.json, and all marketplace metadata.
Target Repository Integration
When installed in another repository, persistent state goes to that target repo — never to this plugin package:
.github/instructions/project.instructions.md— project factsmemories/repo/**— persistent task recoveryspec/**— requirements, design, tasksbest-copilot.md— init sentinel (frontmatterversion: "0.8.0")
Bootstrap skills (target-instructions-bootstrap, target-memory-bootstrap, target-spec-bootstrap) create these scaffolds on first use.
<!-- gitnexus:start -->Code Intelligence — Provider Fallback
Use the highest exposed provider in this order: codebase-memory-mcp graph tools, GitNexus, CodeGraph, language-server tooling, then native Read/Grep/Glob and rg. Use it for symbol discovery, context and caller/callee tracing, impact analysis, change-scope review, and semantic refactoring when available. Record the selected provider and any missing chain evidence. Do not call absent tools or block solely because a provider is unavailable.
GitNexus — Fallback Provider
This project is indexed by GitNexus as best-copilot (1294 symbols, 1301 relationships, 0 execution flows). Use its MCP tools when codebase-memory-mcp is not exposed.
If any GitNexus tool warns the index is stale, run
npx gitnexus analyzein terminal first.
Always Do
- When GitNexus is selected, run impact analysis before editing a symbol. Before modifying a function, class, or method, run
gitnexus_impact({target: "symbolName", direction: "upstream"})and report the blast radius (direct callers, affected processes, risk level) to the user. - When GitNexus is selected, run
gitnexus_detect_changes()before committing to verify your changes only affect expected symbols and execution flows. - MUST warn the user if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- When GitNexus is selected for unfamiliar code, use
gitnexus_query({query: "concept"})to find execution flows instead of grepping. It returns process-grouped results ranked by relevance. - When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use
gitnexus_context({name: "symbolName"}).
Never Do
- NEVER edit a function, class, or method without first obtaining equivalent impact/context evidence from the selected provider.
- NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- When GitNexus is selected, NEVER rename symbols with find-and-replace — use
gitnexus_renamewhich understands the call graph. - When GitNexus is selected, NEVER commit changes without running
gitnexus_detect_changes()to check affected scope.
Resources
| Resource | Use for |
gitnexus://repo/best-copilot/context | Codebase overview, check index freshness |
gitnexus://repo/best-copilot/clusters | All functional areas |
gitnexus://repo/best-copilot/processes | All execution flows |
gitnexus://repo/best-copilot/process/{name} | Step-by-step execution trace |
CLI
| Task | Read this skill file |
| Understand architecture / "How does X work?" | .claude/skills/gitnexus/gitnexus-exploring/SKILL.md |
| Blast radius / "What breaks if I change X?" | .claude/skills/gitnexus/gitnexus-impact-analysis/SKILL.md |
| Trace bugs / "Why is X failing?" | .claude/skills/gitnexus/gitnexus-debugging/SKILL.md |
| Rename / extract / split / refactor | .claude/skills/gitnexus/gitnexus-refactoring/SKILL.md |
| Tools, resources, schema reference | .claude/skills/gitnexus/gitnexus-guide/SKILL.md |
| Index, status, clean, wiki CLI commands | .claude/skills/gitnexus/gitnexus-cli/SKILL.md |
<!-- gitnexus:end -->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.

