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:
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,117 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 repository40 other files it gives its agents.
- AGENTS.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- android-accessibility-proSkill
- android-adaptive-layout-proSkill
- android-compose-proSkill
- android-coroutines-proSkill
- android-design-system-proSkill
- android-gradle-architecture-proSkill
- android-library-proSkill
- android-memory-storage-proSkill
- android-modularization-proSkill
- app-intents-proSkill
- beta-deployment-proSkill
- coredata-swift6-proSkill
- cross-platform-parity-proSkill
- flaky-tests-proSkill
- foundation-models-proSkill
- instruments-profiling-proSkill
- linting-proSkill
- localization-proSkill
- motion-design-proSkill
- r8-shrink-proSkill
- store-compliance-proSkill
- swift-accessibility-proSkill
- swift-adaptive-layout-proSkill
- swift-concurrency-proSkill
- swiftdata-proSkill
- swift-design-system-proSkill
- swift-docc-proSkill
- swift-error-handling-proSkill
- swift-library-proSkill
- swift-logging-proSkill
- swift-memory-storage-proSkill
- swift-modularization-proSkill
- swift-package-proSkill
- swift-testing-proSkill
- swiftui-proSkill
- visionos-proSkill
- xcode-security-proSkill
- xml-to-compose-migration-proSkill
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
- Very specific: line 45
Existing files are never overwritten on install: If you already have .github/copilot-instructions.md or GEMINI.md, install skips and prints …
- Very specific: line 51
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, …
- Very specific: line 59
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 …
≈ “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.
Files
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 allPer-agent file shape:
| Agent | Token | File(s) written | Format |
| Claude Code | claude | .claude/rules/, .claude/skills/, .claude/settings.json, CLAUDE.md | Native — per-rule files + skill directories |
| GitHub Copilot | copilot | .github/instructions/<name>.instructions.md, .github/copilot-instructions.md | Per-rule path-specific instructions; each rule's globs becomes applyTo (brace lists expanded), and copilot-instructions.md is a short pointer |
| Cursor | cursor | .cursor/rules/<name>.mdc | Per-rule files (1:1 with .claude/rules/*.md, just renamed) |
| Gemini CLI | gemini | GEMINI.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 tools | codex | AGENTS.md, .claude/rules/ | Same index as Gemini |
| Kiro | kiro | .kiro/steering/<name>.md | Per-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 Studio | android-studio | AGENTS.md, .claude/rules/, .agents/skills/<name>/, .aiexclude | Same 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/*.mdsource-of-truth (gated by--platform/--apple-language/--features). Output is deterministic — the Gemini/Codex indexes and the per-rule files (Copilot withapplyTo, Cursor.mdc, Kiro steering with its rewritteninclusion/fileMatchPatternfrontmatter) all produce the same bytes given the same inputs — so--upgradecan 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.mdformat from.agents/skills/, soandroid-studiomirrors 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.mdorGEMINI.md, install skips and prints a notice.--upgradedoes the 3-way diff like any other tracked file. --upgrade --applyopts in / out of agents. Pass--agentson the command line to opt into a new agent (its files show up as additions). Pass--agents <fewer>+--pruneto drop an agent (its files appear as orphans and get deleted).- The manifest tracks per-agent.
selection.agents_input/selection.agents_resolvedand per-filetype: 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/:
| Tool | Approach |
ruler | Reads 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-rules | Manages 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-sync | npm-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.
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.

