Skip to content

About

Production-ready Android Engineering Rules for Cursor and other AI coding assistants. Build consistent, scalable, and maintainable Android apps with Kotlin, MVI, Clean Architecture, XML, and Koin.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

Repository files navigation

OrbitalSonic AI Workflow

Company template for Cursor, Claude Code, and Android Studio Gemini. Single source of truth for Clean Architecture Android apps (XML + View Binding or Jetpack Compose via uiFramework, MVI, Koin module / lazyModule).

Apps copy these folders into the project root — do not fork rules/skills inside an app.

Tool Copy this folder
Cursor .cursor/
Claude Code .claude/
Android Studio Gemini .agents/

Keep .cursor/, .claude/, and .agents/ in sync. If you change a rule or skill in one, update the twins. Skill names differ only by prefix: Cursor /sonic-…, Claude Code /sonicc-…, Gemini @sonicg-…. Android Studio loads skills from .agents/skills (not .skills or .gemini).

What’s in this repo

Path Role
.cursor/rules/ Company law (architecture, naming, invariants)
.cursor/skills/ Cursor playbooks (/sonic-skill-name)
.claude/rules/ Same law, Claude Code format
.claude/skills/ Claude Code playbooks (/sonicc-skill-name)
.agents/rules/ Same law, Gemini format
.agents/skills/ Gemini playbooks (@sonicg-skill-name)
MUST_READ_BEFORE_SKILL_CHANGES.md How to edit this template

Full skill map and rules index:

How teammates use this in an app

  1. Copy .cursor/, .claude/, and/or .agents/ into the Android app root.
  2. Open the app in Cursor, run claude at the repo root, or open the app in Android Studio (Gemini Agent).
  3. Cursor: type /sonic (for example /sonic-setup-new-project). Claude Code: type /sonicc (for example /sonicc-setup-new-project). Android Studio Gemini: type @sonicg (for example @sonicg-setup-new-project). Cursor skills say Sonic Cursor Skill:; Claude skills say OrbitalSonic Claude Skill:; Gemini skills say OrbitalSonic Gemini Skill:. Do not pick Figma plugin skills (“Created by Figma”) for Android screens.
  4. After setup, obey .cursor/project-settings.json (or the twin under .claude/ / .agents/) — especially uiFramework.

Gemini localization (sonicg-localize)

Use this from Android Studio Gemini Agent after .agents/ is in the app root. Invoke @sonicg-localize (type @sonicg). Cursor and Claude twins are /sonic-localize and /sonicc-localize. Description starts with OrbitalSonic Gemini Skill:.

  1. Gemini finds LanguageDataSource.kt and lists language codes.
  2. You confirm languages, then complete vs missing-only localization.
  3. It snapshots source strings once, then translates each locale in parallel (one worker per language, disjoint values-* folders), preserves placeholders/XML, and reports files created/modified.

Typical feature flow

Cursor: /sonic-… · Claude Code: /sonicc-… · Gemini: @sonicg-… (same steps)

  1. /sonic-setup-new-project or /sonicc-setup-new-project or @sonicg-setup-new-project (greenfield) · /sonic-setup-old-project or /sonicc-setup-old-project or @sonicg-setup-old-project (existing app)
  2. /sonic-setup-design-system or /sonicc-setup-design-system or @sonicg-setup-design-system — Figma tokens/themes in :core-ui
  3. /sonic-figma-to-xml or /sonicc-figma-to-xml or @sonicg-figma-to-xml if xml; /sonic-figma-to-compose or /sonicc-figma-to-compose or @sonicg-figma-to-compose if compose
  4. /sonic-create-mvi or /sonicc-create-mvi or @sonicg-create-mvi — Intent / State / Effect / ViewModel + Fragment or *Screen
  5. /sonic-create-clean-architecture or /sonicc-create-clean-architecture or @sonicg-create-clean-architecture — only when new domain / data is required
  6. /sonic-review-complete or /sonicc-review-complete or @sonicg-review-complete before PR

Shortcut: /sonic-create-screen / /sonicc-create-screen / @sonicg-create-screen runs steps 3–5 in one invoke.

How to change this template

Read MUST_READ_BEFORE_SKILL_CHANGES.md before editing anything under .cursor/, .claude/, or .agents/.

Hard rules:

  • Do not invent local rules inside an app — update this repo, then copy into apps.
  • Do not delete rule meaning; prefer move / merge / link.
  • Update related skills/rules in the same change (Cursor sonic- ↔ Claude sonicc- ↔ Gemini sonicg-).
  • New product skills: learn from the reference apps, show a plan, wait for acceptance.

Repo

https://github.com/orbitalsonic/AndroidPilot

License

Copyright OrbitalSonic. Licensed under the Apache License, Version 2.0 — see LICENSE.

About

Production-ready Android Engineering Rules for Cursor and other AI coding assistants. Build consistent, scalable, and maintainable Android apps with Kotlin, MVI, Clean Architecture, XML, and Koin.

Topics

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages