ワンクリックで
commit-and-push
// Commit code changes and push via Git. Use when the user asks to commit, push, or save their work to the repository.
// Commit code changes and push via Git. Use when the user asks to commit, push, or save their work to the repository.
| name | commit-and-push |
| description | Commit code changes and push via Git. Use when the user asks to commit, push, or save their work to the repository. |
| argument-hint | commit message or description of changes |
You are committing and pushing code changes for Low Budget Voice Recognition Input.
This project is not yet under git as of milestone 2. Before doing anything else:
git -C /home/yhh/AndroidStudioProjects/LowBudgetVoiceRecognitionInput rev-parse --is-inside-work-tree 2>/dev/null
If this returns nothing or an error:
git init, add a .gitignore for Android Studio, make an initial commit).git init — confirm the intended remote (likely github.com:hiroshiyui/LowBudgetVoiceRecognitionInput.git based on the existing GitHub presence) and the initial branch name.Once the repo exists, the rest of this skill applies.
--signoff so the user's identity is attached.feat:, fix:, etc.) — plain English subject lines.Add ... — new feature, file, or moduleFix ... — bug fixUpdate ... — dependency or content updateRemove ... — deletion of code or filesRefactor: ... — code restructuringStyle: ... — formatting or cosmetic changesUpgrade ... — dependency version upgradesBump version to X.Y.Z — version bumpsRelease X.Y.Z — release commits (handled by /release-engineering)git status and git diff to understand what will be committed.git add -A. Be careful not to stage:
.env, signing keys, local.properties if it contains paths)app/build/, .gradle/, .idea/)app/src/main/assets/models/ or downloaded to filesDir won't be in the tree, but double-check nothing slipped in)--signoff. Pass the message via HEREDOC for proper formatting:
git commit --signoff -m "$(cat <<'EOF'
Subject line here
Optional body explaining why.
Co-Authored-By: Claude <noreply@anthropic.com>
EOF
)"
origin (typically GitHub). If a gitlab mirror remote is added later, push there only on explicit request.To be established once the repo is initialized. Suggested defaults (mirroring the user's other Android projects):
master — main/stablecurrent — active developmentm3-model-downloader)Never force-push to master or current without explicit user approval.
Review code for quality, correctness, and security vulnerabilities. Use when the user asks to review code, audit for security issues, or check for bugs and anti-patterns.
Writing/updating project documentation (README, PLAN, PRIVACY-POLICY, NOTICES, changelogs). Use when the user asks to update docs, write changelogs, or modify store listings.
Release engineering tasks — version bumping, building release APKs, tagging releases, writing changelogs. Use when the user asks to prepare a release, bump version, tag, or build for distribution.