best-copilot
AGENTS.md12 starsChanged 6 months agoApache-2.0View on GitHub
This file is the local repository entry for this checkout. The plugin package supports Codex, Copilot CLI, and Claude Code: Codex install metadata lives in .codex-plugin/ and .agents/, Codex custom agent adapters live in .codex/agents/, Copilot installable agents live in root agents/, Claude Code agent adapters live in root claude-agents/, shared installable skills live in root skills/, role-specific workflow skills live in skills/*-workflow/, and repository instructions live in .github/instructions/**. Platform, system, and explicit user instructions have higher priority than repository…
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about code style.
Of the AGENTS.md files we read, the 33,398 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository2 other files it gives its agents.
- .claude/CLAUDE.mdCLAUDE.md
- CLAUDE.mdCLAUDE.md
The file
We split this AGENTS.md into the rules it gives an agent
11 rules. About 0 are common, 4 are distinctive, and 7 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.
7
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 17
Before non-trivial repository tasks, read the relevant parts of .github/instructions/project.instructions.md and …
- Very specific: line 19
When choosing a skill, read .github/instructions/skills-index.instructions.md first, then open only the selected skill under root skills/.
- Very specific: line 20
When working in a target repository that has its own memory, progressively read that target repository's memories/repo/INDEX.md -> …
- Distinctive: line 23
Do not commit or run destructive commands unless explicitly requested.
- Distinctive: line 52
MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.
- Very specific: line 53
When GitNexus is selected for unfamiliar code, use gitnexus_query({query: "concept"}) to find execution flows instead of grepping.
- Very specific: line 54
When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use gitnexus_context({name: …
- Distinctive: line 58
NEVER edit a function, class, or method without first obtaining equivalent impact/context evidence from the selected provider.
- Distinctive: line 59
NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.
- Very specific: line 60
When GitNexus is selected, NEVER rename symbols with find-and-replace — use gitnexus_rename which understands the call graph.
- Very specific: line 61
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 43,423 AGENTS.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
Repository Entry
This file is the local repository entry for this checkout. The plugin package supports Codex, Copilot CLI, and Claude Code: Codex install metadata lives in .codex-plugin/ and .agents/, Codex custom agent adapters live in .codex/agents/, Copilot installable agents live in root agents/, Claude Code agent adapters live in root claude-agents/, shared installable skills live in root skills/, role-specific workflow skills live in skills/*-workflow/, and repository instructions live in .github/instructions/**. Platform, system, and explicit user instructions have higher priority than repository files; when there is no conflict, read the entries below.
This project provides plugins for Codex, Claude Code, and GitHub Copilot. As such, the .github, .agents, .codex-plugin, .claude, and .claude-plugin directories, along with AGENTS.md and CLAUDE.md, are used by this project itself rather than by the plugins it generates or manages. Unless explicitly required, do not modify the contents of these directories or files.
Required Entries
.github/instructions/must.instructions.md: core rules, memory layers, prompt assembly, state contracts, language policy, and verification gates..github/instructions/skills-index.instructions.md: lightweight repo skill index..github/instructions/project.instructions.md: repository facts, build/test commands, and high-frequency conventions.skills/target-*-bootstrap/SKILL.md: installable templates used to create target-local instructions, memory, and spec scaffolds after repo init..codex-plugin/plugin.json,.agents/plugins/marketplace.json,.agents/skills, and.codex/agents/*.toml: Codex plugin manifest, local/repo marketplace metadata, repo-scoped skills, and Codex custom agent adapters.claude-plugin/.claude-plugin/plugin.jsonandclaude-agents/*.md: Claude Code plugin manifest and lowercase-hyphen subagent adapters.
Local Conventions
- Before non-trivial repository tasks, read the relevant parts of
.github/instructions/project.instructions.mdand.github/instructions/must.instructions.md. - For repository initialization checks, use
repo-init-gatefirst. It should read only the target rootbest-copilot.mdand skiprepo-init-scanonly when the sentinel frontmatter version matches the current contract. - When choosing a skill, read
.github/instructions/skills-index.instructions.mdfirst, then open only the selected skill under rootskills/. Do not bulk-readskills/. - When working in a target repository that has its own memory, progressively read that target repository's
memories/repo/INDEX.md -> current-workstreams.md -> linked_spec/linked_memory. - This plugin checkout does not keep active target-project
memories/**orspec/**; installed projects should be initialized through the bootstrap skills. - Edit Codex install metadata through
.codex-plugin/and.agents/; edit Codex custom agent adapters through.codex/agents/; edit Copilot installable agents through rootagents/; edit Claude Code adapters through rootclaude-agents/; edit shared installable skills through rootskills/; edit repository instructions through.github/instructions/**. - Do not commit or run destructive commands unless explicitly requested.
- Detect the user's primary language and answer in that language unless the user asks otherwise.
Runtime Adapter
| Copilot Capability | Local Mapping | Boundary |
| agent / handoff | spawn_agent + wait_agent / send_input | Use only when the user explicitly asks for agents, delegation, or parallel agent work. |
| read / search | rg, sed, find, git diff, and other read-only commands | Prefer explicit user paths and index hits; avoid unbounded scanning. |
| edit | Top-level session uses apply_patch | .github/instructions/**, .codex/agents/**, root agents/, root skills/, AGENTS.md, and bootstrap skill template changes are handled inline by the top-level session. |
| execute | exec_command | Real command evidence must include command and result. |
| todo | update_plan | Session plan only; does not replace formal spec/task state. |
vscode_askQuestions / vscode/askQuestions / askQuestions / Asking user | Use the available native ask mechanism when present | Top-level session and PM/coordinator only. In VS Code, if vscode_askQuestions appears in the latest tool inventory, call that exact tool before abstract vscode/askQuestions / askQuestions; in Copilot CLI, use Asking user when available. Specialists must not invoke native ask and should return NEEDS_USER_INPUT to PM when present or BLOCKED missing_top_level_question otherwise. Plain prose questions cannot replace native confirmation gates. If native ask is unavailable, continue only with a single safe interpretation or report a blocked/partial state. |
<!-- 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.

