agentleFS
bugrackmbugrackm/My-Agent-System-and-Skills/AGENTS.md

My-Agent-System-and-Skills

AGENTS.md0 starsChanged 11 days agoMITView on GitHub

You are an AI coding agent (Claude Code, Codex CLI, Antigravity, omp, Cursor, OpenCode or similar) helping a user install parts of this repo into their own setup. Follow these steps in order. The user may speak Turkish or English; answer in their language. - Find out the client first. Ask which coding agent(s) the user wants this in (they may want more than one). Then explain the three parts in one line each and ask which ones they want:…

  • 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 35,337 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 repository3 other files it gives its agents.

The file

We split this AGENTS.md into the rules it gives an agent

9 rules. About 0 are common, 4 are distinctive, and 5 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.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Find out the client first: Ask which coding agent(s) the user wants this in (they may want more than one).

    line 10
  2. Distinctive:

    If a target file already exists, show the user a diff and ask.

    line 26
  3. Distinctive:

    Never push the vault to a public repo.

    line 33
  4. Very specific:

    No paid APIs: Don't set up API keys. Codex CLI signs in with the user's ChatGPT subscription (codex login), and the user does that …

    line 34
  5. Very specific:

    Never share one vault between brain-windows/ and brain/.

    line 44
  6. Very specific:

    Ask the user for the vault path.

    line 67
  7. Distinctive:

    Stop if that path already exists.

    line 68
  8. Very specific:

    Run merge-settings.py ... --dry-run first and show the user the output.

    line 69
  9. Very specific:

    Ask which agents to install.

    line 76

≈ “Common” is an estimate: at least 1 in 5 of the 45,344 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

AGENTS.md: installation guide for AI agents

You are an AI coding agent (Claude Code, Codex CLI, Antigravity, omp, Cursor, OpenCode or similar) helping a user install parts of this repo into their own setup. Follow these steps in order. The user may speak Turkish or English; answer in their language.

Ground rules

  • Find out the client first. Ask which coding agent(s) the user wants this in (they may want more than one). Then explain the three parts in one line each and ask which ones they want:
    • brain: persistent memory across sessions (a Markdown vault + one hook).
    • agents: global working rules and orchestration subagents.
    • skills: game-dev-director, research-report, codex-image, and the Claude Code mod context-meter.
  • Support levels. Claude Code and Codex CLI are fully wired and tested. For any other client, install what maps directly (instructions, skills, vault in protocol mode) and build the rest by following docs/PORTING.md; tell the user which parts are ported and untested.
  • Back up before you change anything in the client's config folder (~/.claude/, ~/.codex/, or the other client's): settings/hooks files, the global instruction file, the agents and skills folders.
  • Never overwrite.
    • If a target file already exists, show the user a diff and ask.
    • Hook config is only ever merged: brain/merge-settings.py for Claude Code (settings.json) and Codex (hooks.json). Never rewrite it by hand.
    • The global instruction file is only ever appended to or merged section by section, with the user's approval.
  • Privacy. The brain vault will hold personal data. If you create a git remote for it, it must be private (gh repo create <name> --private). Never push the vault to a public repo.
  • No paid APIs. Don't set up API keys. Codex CLI signs in with the user's ChatGPT subscription (codex login), and the user does that themselves.
  • Don't run interactive logins or trust prompts yourself. codex login, gh auth login, Codex's /hooks trust review and Claude Code's /plugin commands are typed by the user (in Claude Code: ! <command> for shell commands).
  • Platform. brain/ targets Linux and macOS. On native Windows with Claude Code, install brain-windows/ instead (PowerShell, copies instead of symlinks; Codex is not wired there yet). For one brain shared across Windows, Linux and macOS, run the agent inside WSL and install brain/. Never share one vault between brain-windows/ and brain/; see brain-windows/README.md.

Where things go

Claude CodeCodex CLIOther clients
Global instructions~/.claude/CLAUDE.md~/.codex/AGENTS.mdsee docs/PORTING.md
Skills (symlink each folder)~/.claude/skills/<name>~/.agents/skills/<name>see docs/PORTING.md
Subagents~/.claude/agents/*.md (copy/symlink)~/.codex/agents/*.toml via scripts/codex-agents.pysee docs/PORTING.md
Brain hooks~/.claude/settings.json via merge-settings.py~/.codex/hooks.json via merge-settings.py --client codexadapter per docs/PORTING.md, or protocol mode

$CODEX_HOME replaces ~/.codex if the user has set it.

Steps

Clone the repo to a stable location (e.g. ~/src/My-Agent-System-and-Skills) and run every command from its root. Symlinks into the clone keep everything current with git pull.

  1. Brain (if chosen): follow brain/INSTALL.md (native Windows + Claude Code: brain-windows/INSTALL.md, default vault %USERPROFILE%\Brain).
    • Ask the user for the vault path; the default is ~/Documents/Brain. Stop if that path already exists.
    • Run merge-settings.py ... --dry-run first and show the user the output.
    • Codex: after merging, the user trusts the four new hooks once with /hooks inside Codex; until then Codex skips them.
    • Fill 850-Memory/CORE.md by asking the user a few questions, or leave it for them.
    • The private git remote is optional; ask.
  2. Agents (if chosen): follow agents/INSTALL.md.
    • Ask which agents to install. Skip codex-runner unless the user runs Codex CLI as a helper from another client (it is pointless inside Codex).
    • Global instructions: if the file exists, propose the sections to add and get approval. If the brain isn't installed, drop the "Brain (optional)" section. Keep only the "Client notes" block for this client.
  3. Skills (if chosen): follow skills/INSTALL.md.
    • Skills are symlinked (or copied) into the client's skills folder.
    • context-meter is a Claude Code plugin; the user runs the /plugin install … line.

Verify and report

  • Brain: vault-doctor.py prints vault-doctor: OK (it checks whichever client the brain is wired into), and the runtime tests pass: python3 -m unittest discover -s "$BRAIN_HOME/runtime/tests".
  • Brain in a new session: ask the model which [Brain …] blocks it sees; [Brain — Last Session] and [Brain — Active Threads] must be there.
  • Agents: Claude Code /agents; Codex: ask it to spawn reviewer on a tiny task.
  • Skills: ask for a task the skill covers, or call it by name.
  • Finish with a short summary for the user:
    • what was installed, for which client, and where
    • which files were changed, and where their backups are
    • what is ported but untested (other clients)
    • anything they still need to do themselves (logins, Codex /hooks trust, /plugin install, filling CORE.md)
    • a reminder that changes take effect in a new session

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.