claude-code-android-command
v1.0.0
Published
Claude Code custom commands for Android development workflow
Maintainers
Readme
Claude Code Android Commands
Custom Claude Code commands for Android development workflow with Gradle and Spotless.
Quick Install
Run this command in your Android project root:
npx claude-code-android-commandThat's it! The .claude/commands folder will be automatically created in your project.
Available Commands
/commit
Commit code with formatting check (no push).
Steps:
- Run
./gradlew spotlessCheckto verify code formatting - If spotlessCheck fails, run
./gradlew spotlessApplyto fix formatting automatically - Run
git statusandgit diffto see changes - Commit all changes with a descriptive message
Usage:
/commit/cp
Commit and push code with formatting check.
Steps:
- Run
./gradlew spotlessCheckto verify code formatting - If spotlessCheck fails, run
./gradlew spotlessApplyto fix formatting automatically - Run
git statusandgit diffto see changes - Commit all changes with a descriptive message
- Push to remote
Usage:
/cp/pr
Commit, push, and create pull request to main branch.
Steps:
- Check current branch with
git branch --show-current - If on
mainbranch, create a new feature branch with a descriptive name - Run
./gradlew spotlessCheckto verify code formatting - If spotlessCheck fails, run
./gradlew spotlessApplyto fix formatting automatically - Run
git statusandgit diffto see changes - Commit all changes with a descriptive message
- Push to remote with
-uflag to set upstream - Create a pull request to
mainbranch usinggh pr create
Usage:
/prManual Installation
If you prefer manual installation:
git clone https://github.com/Nghicv/claude-code-android-command.git
cp -r claude-code-android-command/.claude .
rm -rf claude-code-android-commandRequirements
- Node.js (for npx installation)
- Gradle with Spotless plugin configured in your Android project
- Git
- GitHub CLI (
gh) for/prcommand
What Gets Installed?
your-project/
└── .claude/
└── commands/
├── commit.md
├── cp.md
└── pr.mdThese commands become available as project-specific skills in Claude Code.
Notes
- ✅ Optimized for Android projects using Spotless for code formatting
- ✅ All commands include automatic formatting fixes before committing
- ✅ Safe to run multiple times (existing files will be overwritten)
- ✅ Works with any Android project structure
Examples
After installation, in Claude Code:
User: /commit
Claude: [Runs spotlessCheck, applies formatting if needed, shows diff, and commits]
User: /pr
Claude: [Checks branch, formats code, commits, pushes, and creates PR with description]License
MIT
Repository
https://github.com/Nghicv/claude-code-android-command
