agentleFS
kelvinkosbabkelvinkosbab/AppBootstrapAI/docs/agents.md

AppBootstrapAI

AGENTS.md8 starsChanged 12 days agoMITView on GitHub

install.sh has a --agents flag for picking which agent(s) you want — additive, default claude. The bundle generates the right file shape for each agent from the same source .claude/rules/. Per-agent file shape: How it works:

The file

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

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

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

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Existing files are never overwritten on install: If you already have .github/copilot-instructions.md or GEMINI.md, install skips and prints …

    line 45
  2. Very specific:

    If you'd rather keep a single source-of-truth and let another tool fan out to a wider set of agents (Cline, Goose, Roo, Windsurf, Amp, …

    line 51
  3. Very specific:

    Use a sync tool when you need agents that install.sh --agents doesn't cover, or when you want a single watch-and-rebuild loop instead of …

    line 59

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

Using with non-Claude AI agents

install.sh has a --agents flag for picking which agent(s) you want — additive, default claude. The bundle generates the right file shape for each agent from the same source .claude/rules/.

# Default — Claude Code only (today's behavior)
/path/to/AppBootstrapAI/install.sh .

# GitHub Copilot — writes .github/instructions/<name>.instructions.md per rule (applyTo-scoped)
/path/to/AppBootstrapAI/install.sh . --agents copilot

# Cursor — writes per-rule .cursor/rules/<name>.mdc files
/path/to/AppBootstrapAI/install.sh . --agents cursor

# Kiro — writes per-rule .kiro/steering/<name>.md files
/path/to/AppBootstrapAI/install.sh . --agents kiro

# Mixed team — install for Claude + Copilot + Cursor in one go
/path/to/AppBootstrapAI/install.sh . --agents claude,copilot,cursor

# Gemini in Android Studio — AGENTS.md index, Android skills in .agents/skills/, .aiexclude
/path/to/AppBootstrapAI/install.sh . --agents android-studio

# Everything — claude + copilot + cursor + gemini + codex + kiro + android-studio
/path/to/AppBootstrapAI/install.sh . --agents all

Per-agent file shape:

AgentTokenFile(s) writtenFormat
Claude Codeclaude.claude/rules/, .claude/skills/, .claude/settings.json, CLAUDE.mdNative — per-rule files + skill directories
GitHub Copilotcopilot.github/instructions/<name>.instructions.md, .github/copilot-instructions.mdPer-rule path-specific instructions; each rule's globs becomes applyTo (brace lists expanded), and copilot-instructions.md is a short pointer
Cursorcursor.cursor/rules/<name>.mdcPer-rule files (1:1 with .claude/rules/*.md, just renamed)
Gemini CLIgeminiGEMINI.md, .claude/rules/A short index (about 13 KB for an Apple install): each rule's paths and its 2 to 5 always-on musts (must: in the rule's frontmatter), plus which .claude/rules/ file to read in full before editing a matching file
Codex CLI / AGENTS.md-aware toolscodexAGENTS.md, .claude/rules/Same index as Gemini
Kirokiro.kiro/steering/<name>.mdPer-rule steering files; each rule's globs becomes inclusion: fileMatch + fileMatchPattern, so a rule loads only when a matching file is open
Gemini in Android Studioandroid-studioAGENTS.md, .claude/rules/, .agents/skills/<name>/, .aiexcludeSame index as Codex (AGENTS.md; a GEMINI.md in the same directory wins). The Android and cross-platform skills are mirrored to .agents/skills/ (Studio skills), and .aiexclude hides keystores, local.properties, service-account JSON, and build output

How it works:

  • Same source, multiple targets. Every agent gets content derived from the same .claude/rules/*.md source-of-truth (gated by --platform / --apple-language / --features). Output is deterministic — the Gemini/Codex indexes and the per-rule files (Copilot with applyTo, Cursor .mdc, Kiro steering with its rewritten inclusion/fileMatchPattern frontmatter) all produce the same bytes given the same inputs — so --upgrade can diff cleanly.
  • Only matching rules load. An always-loaded file is paid for on every request, so no agent gets the full rule set up front. Gemini and Codex have no path scoping, so their index always carries each rule's musts and relies on the agent reading the full rule for the rest; it's about 13 KB instead of the 180 KB the full rule text used to be.
  • Skills go to Claude Code and Android Studio. Android Studio reads the same SKILL.md format from .agents/skills/, so android-studio mirrors the Android and cross-platform skills there. Other agents get rules only.
  • Existing files are never overwritten on install. If you already have .github/copilot-instructions.md or GEMINI.md, install skips and prints a notice. --upgrade does the 3-way diff like any other tracked file.
  • --upgrade --apply opts in / out of agents. Pass --agents on the command line to opt into a new agent (its files show up as additions). Pass --agents <fewer> + --prune to drop an agent (its files appear as orphans and get deleted).
  • The manifest tracks per-agent. selection.agents_input / selection.agents_resolved and per-file type: agent-file-<name> entries so the upgrade flow knows which files came from which agent.

Alternative: external sync tools

If you'd rather keep a single source-of-truth and let another tool fan out to a wider set of agents (Cline, Goose, Roo, Windsurf, Amp, Antigravity, Factory Droid, etc.), point one of these at .claude/:

ToolApproach
rulerReads from a unified source (you can point it at .claude/rules/) and applies the same rules to every supported agent's expected path on ruler apply. Maintains the per-tool path matrix for you.
block/ai-rulesManages rules, commands, and skills across Claude, Cline, Codex, Copilot, Cursor, Firebender, Gemini, Goose, Kilocode, Roo. Installs via curl to ~/.local/bin/ai-rules.
lbb00/ai-rules-syncnpm-installable CLI; similar fan-out model.

Use a sync tool when you need agents that install.sh --agents doesn't cover, or when you want a single watch-and-rebuild loop instead of explicit --upgrade --apply runs.

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.