Reusable agent instruction files for Android repositories, designed to work with Codex, Claude, and Cursor workflows.
This guide is for Linux, macOS, and Windows users working on Android projects (usually in Android Studio).
When installed into an Android project root, this kit adds:
AGENTS.md(repo-level Android coding standards).claude/CLAUDE.md.claude/skills/android-agent-standards/SKILL.md.codex/skills/android-agent-standards/SKILL.md.cursor/rules/jetpack-compose-standards.mdc.cursor/rules/planning-large-changes.mdc.github/pull_request_template.md- project maintenance docs:
VERSIONCHANGELOG.mdCONTRIBUTING.md
- Installer scripts:
install-to-project.sh(Linux/macOS)install-to-project-mac.sh(macOS wrapper)install-to-project-windows.ps1(Windows PowerShell)
- Audit scripts:
doctor.sh(Linux/macOS)doctor-mac.sh(macOS wrapper)doctor-windows.ps1(Windows PowerShell)
- Uninstall scripts:
uninstall-from-project.sh(Linux/macOS)uninstall-from-project-mac.sh(macOS wrapper)uninstall-from-project-windows.ps1(Windows PowerShell)
AGENTS.md at the repository root is the single global source of truth for agent rules.
- Linux (Ubuntu 22.04+ recommended), macOS, or Windows 10/11
- Linux/macOS:
bash,cp,mkdir,grep(normally preinstalled) - Windows: PowerShell 5.1+ (PowerShell 7+ recommended)
gitinstalled- An existing Android project (Gradle-based)
- Android Studio (recommended for editing/building the app)
Install missing essentials on Ubuntu:
sudo apt update
sudo apt install -y gitInstall developer tools on macOS:
xcode-select --installInstall git on Windows (PowerShell):
winget install --id Git.Git -e --source wingetIn this environment, the kit is located at:
/home/rhymezxcode/android-agent-project-kitIf you prefer to reference it as /android-agent-project-kit, create a symlink once:
sudo ln -s /home/rhymezxcode/android-agent-project-kit /android-agent-project-kitThen either path can be used.
- Go to your Android project root (the folder that contains
settings.gradle,settings.gradle.kts, orgradlew). - Run the installer for your OS.
Linux:
/home/rhymezxcode/android-agent-project-kit/install-to-project.sh /path/to/your/android-projectmacOS:
/home/rhymezxcode/android-agent-project-kit/install-to-project-mac.sh /path/to/your/android-projectWindows (PowerShell):
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\install-to-project-windows.ps1" -TargetDir "C:\path\to\your\android-project"If you created the symlink:
/android-agent-project-kit/install-to-project.sh /path/to/your/android-projectmacOS with symlink:
/android-agent-project-kit/install-to-project-mac.sh /path/to/your/android-projectIf you are already inside the target project root:
/home/rhymezxcode/android-agent-project-kit/install-to-project.sh .On macOS:
/home/rhymezxcode/android-agent-project-kit/install-to-project-mac.sh .On Windows (inside project root):
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\install-to-project-windows.ps1"Linux/macOS (install-to-project.sh, install-to-project-mac.sh):
# Only Codex + Cursor files, no git exclude updates
/home/rhymezxcode/android-agent-project-kit/install-to-project.sh \
--target /path/to/project \
--tools codex,cursor \
--no-exclude
# Preview actions only
/home/rhymezxcode/android-agent-project-kit/install-to-project.sh \
--target /path/to/project \
--dry-run
# Backup existing files before overwrite
/home/rhymezxcode/android-agent-project-kit/install-to-project.sh \
--target /path/to/project \
--backup-existingWindows (install-to-project-windows.ps1):
# Only Codex + Cursor files, no git exclude updates
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\install-to-project-windows.ps1" `
-TargetDir "C:\path\to\project" `
-Tools "codex,cursor" `
-NoExclude
# Preview actions only
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\install-to-project-windows.ps1" `
-TargetDir "C:\path\to\project" `
-DryRun
# Backup existing files before overwrite
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\install-to-project-windows.ps1" `
-TargetDir "C:\path\to\project" `
-BackupExistingCopy everything from the kit into your Android project root:
cp -R /home/rhymezxcode/android-agent-project-kit/. /path/to/your/android-project/Use manual copy only if you do not want the script behavior (for example, local git excludes automation).
install-to-project.sh, install-to-project-mac.sh, and install-to-project-windows.ps1:
- Creates required directories under target project (
.claude,.codex,.cursor,.github). - Copies all instruction/template files.
- If target is a git repository, appends local ignore entries to
.git/info/excludefor:AGENTS.md.claude/.codex/.cursor/.github/pull_request_template.md
This keeps helper files local by default so they do not get committed unless you decide otherwise.
Supported install flags:
--tools/-Tools: install only selected tool surfaces (claude,codex,cursor,githuborall)--dry-run/-DryRun: print actions without changing files--no-exclude/-NoExclude: skip.git/info/excludeupdates--backup-existing/-BackupExisting: create timestamped.bakcopies before overwrite
From the target project root:
ls -la AGENTS.md .claude .codex .cursor .github/pull_request_template.mdCheck local excludes:
cat .git/info/excludeCheck git status:
git status --shortIf excludes were added correctly, those helper files should not appear in default git status.
Use doctor scripts to verify expected files and .git/info/exclude entries:
Linux/macOS:
/home/rhymezxcode/android-agent-project-kit/doctor.sh /path/to/your/android-projectmacOS wrapper:
/home/rhymezxcode/android-agent-project-kit/doctor-mac.sh /path/to/your/android-projectWindows:
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\doctor-windows.ps1" -TargetDir "C:\path\to\your\android-project"Doctor options:
--tools/-Tools: validate only selected tool surfaces--no-exclude-check/-NoExcludeCheck: skip.git/info/excludechecks
- Open your Android project in Android Studio.
- Ensure hidden directories are visible in Project view (
.claude,.codex,.cursor,.github). - Keep
AGENTS.mdat repo root so coding agents can discover project instructions. - Continue normal Android workflows (
Run,Debug,Gradle Sync, tests) as usual.
Note: This kit only adds AI-agent guidance files. It does not change app runtime behavior by itself.
The kitβs Compose standards now enforce a measurement-first workflow for screenshot/Figma-driven UI:
- measure exact bounds, paddings, gaps, and icon/text sizes before coding
- detect transparent padding in assets before scaling
- use ratio-based constants tied to the design frame
- verify with a reference-size preview and screenshot comparison before delivery
This kit includes a cross-platform installer smoke workflow:
.github/workflows/installer-smoke-tests.yml- Runs on Linux, macOS, and Windows
- Verifies install, doctor, reinstall idempotency, selective tool installs, dry-run behavior, and uninstall cleanup
After install, update project-specific details in:
AGENTS.md(module names, build/test commands, team process).github/pull_request_template.md(your tracker fields/checklist)
Keep the Android standards sections intact unless your team intentionally uses different conventions.
To refresh an existing project with latest kit content, re-run the installer:
/home/rhymezxcode/android-agent-project-kit/install-to-project.sh /path/to/your/android-projectOn macOS:
/home/rhymezxcode/android-agent-project-kit/install-to-project-mac.sh /path/to/your/android-projectOn Windows:
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\install-to-project-windows.ps1" -TargetDir "C:\path\to\your\android-project"Re-running is safe and idempotent for local excludes (it avoids duplicate lines).
Default behavior is local-only (via .git/info/exclude).
If you want to commit these files:
- Edit
.git/info/exclude - Remove the related lines
- Run
git add AGENTS.md .claude .codex .cursor .github/pull_request_template.md
Permission denied when running installer:
chmod +x /home/rhymezxcode/android-agent-project-kit/install-to-project.sh
chmod +x /home/rhymezxcode/android-agent-project-kit/install-to-project-mac.sh
chmod +x /home/rhymezxcode/android-agent-project-kit/doctor.sh
chmod +x /home/rhymezxcode/android-agent-project-kit/doctor-mac.sh
chmod +x /home/rhymezxcode/android-agent-project-kit/uninstall-from-project.sh
chmod +x /home/rhymezxcode/android-agent-project-kit/uninstall-from-project-mac.shPowerShell script is blocked on Windows:
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\install-to-project-windows.ps1" -TargetDir "C:\path\to\your\android-project"No such file or directory for /android-agent-project-kit:
- Use full path:
/home/rhymezxcode/android-agent-project-kit - Or create the symlink shown above
Files not visible in Android Studio:
- Enable hidden files/folders in your project view
Files still showing in git status:
- Confirm target is a git repo (
.git/exists) - Confirm exclude entries exist in
.git/info/exclude
Linux/macOS:
/home/rhymezxcode/android-agent-project-kit/uninstall-from-project.sh /path/to/your/android-projectmacOS wrapper:
/home/rhymezxcode/android-agent-project-kit/uninstall-from-project-mac.sh /path/to/your/android-projectWindows:
powershell -ExecutionPolicy Bypass -File "C:\path\to\android-agent-project-kit\uninstall-from-project-windows.ps1" -TargetDir "C:\path\to\your\android-project"Uninstall options:
--tools/-Tools: remove only selected tool surfaces--keep-agents/-KeepAgents: keep rootAGENTS.md--dry-run/-DryRun: preview actions without modifying files--no-exclude-cleanup/-NoExcludeCleanup: keep existing.git/info/excludeentries untouched
After installation, run your project checks to confirm a clean baseline:
./gradlew testFor larger apps, run the module-specific commands your team normally uses.