agentleFS
funky-eyesfunky-eyes/best-copilot/AGENTS.md

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.

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
  1. Very specific:

    Before non-trivial repository tasks, read the relevant parts of .github/instructions/project.instructions.md and …

    line 17
  2. Very specific:

    When choosing a skill, read .github/instructions/skills-index.instructions.md first, then open only the selected skill under root skills/.

    line 19
  3. Very specific:

    When working in a target repository that has its own memory, progressively read that target repository's memories/repo/INDEX.md -> …

    line 20
  4. Distinctive:

    Do not commit or run destructive commands unless explicitly requested.

    line 23
  5. Distinctive:

    MUST warn the user: if impact analysis returns HIGH or CRITICAL risk before proceeding with edits.

    line 52
  6. Very specific:

    When GitNexus is selected for unfamiliar code, use gitnexus_query({query: "concept"}) to find execution flows instead of grepping.

    line 53
  7. Very specific:

    When you need full context on a specific symbol — callers, callees, which execution flows it participates in — use gitnexus_context({name: …

    line 54
  8. Distinctive:

    NEVER edit a function, class, or method without first obtaining equivalent impact/context evidence from the selected provider.

    line 58
  9. Distinctive:

    NEVER ignore HIGH or CRITICAL risk warnings from impact analysis.

    line 59
  10. Very specific:

    When GitNexus is selected, NEVER rename symbols with find-and-replace — use gitnexus_rename which understands the call graph.

    line 60
  11. Very specific:

    When GitNexus is selected, NEVER commit changes without running gitnexus_detect_changes() to check affected scope.

    line 61

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

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

  1. .github/instructions/must.instructions.md: core rules, memory layers, prompt assembly, state contracts, language policy, and verification gates.
  2. .github/instructions/skills-index.instructions.md: lightweight repo skill index.
  3. .github/instructions/project.instructions.md: repository facts, build/test commands, and high-frequency conventions.
  4. skills/target-*-bootstrap/SKILL.md: installable templates used to create target-local instructions, memory, and spec scaffolds after repo init.
  5. .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.
  6. claude-plugin/.claude-plugin/plugin.json and claude-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.md and .github/instructions/must.instructions.md.
  • For repository initialization checks, use repo-init-gate first. It should read only the target root best-copilot.md and skip repo-init-scan only when the sentinel frontmatter version matches the current contract.
  • When choosing a skill, read .github/instructions/skills-index.instructions.md first, then open only the selected skill under root skills/. Do not bulk-read skills/.
  • 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/** or spec/**; 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 root agents/; edit Claude Code adapters through root claude-agents/; edit shared installable skills through root skills/; 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 CapabilityLocal MappingBoundary
agent / handoffspawn_agent + wait_agent / send_inputUse only when the user explicitly asks for agents, delegation, or parallel agent work.
read / searchrg, sed, find, git diff, and other read-only commandsPrefer explicit user paths and index hits; avoid unbounded scanning.
editTop-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.
executeexec_commandReal command evidence must include command and result.
todoupdate_planSession plan only; does not replace formal spec/task state.
vscode_askQuestions / vscode/askQuestions / askQuestions / Asking userUse the available native ask mechanism when presentTop-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 analyze in 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_rename which understands the call graph.
  • When GitNexus is selected, NEVER commit changes without running gitnexus_detect_changes() to check affected scope.

Resources

ResourceUse for
gitnexus://repo/best-copilot/contextCodebase overview, check index freshness
gitnexus://repo/best-copilot/clustersAll functional areas
gitnexus://repo/best-copilot/processesAll execution flows
gitnexus://repo/best-copilot/process/{name}Step-by-step execution trace

CLI

TaskRead 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 -->

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.