firebase/style-and-commit
Ensure code is styled and commits follow Conventional Commits.
npx skills add https://github.com/firebase/firebase-ios-sdk --skill style-and-commit
When you are asked to commit changes, you MUST use the [Conventional
Commits](https://www.conventionalcommits.org/) specification.
<type>[optional scope]: <description>
[optional body]
[optional footer(s)]
Before staging and committing files, you MUST ensure that all repository
formatting and styling guidelines are met by running the unified pre-commit
script:
pre_commit.sh script. Depending on where this skill isinstalled, it will be at one of these paths:
./.agents/skills/style_and_commit/scripts/pre_commit.sh (Local Repo)~/.gemini/config/skills/style_and_commit/scripts/pre_commit.sh (Global)Execute the path that exists. This script automatically:
shellcheck on any modified shell scriptserror, fix the issues, and re-run the script until it succeeds.
git add ...) andcommit using git commit -m "...".
feat: A new featurefix: A bug fixdocs: Documentation only changesstyle: Changes that do not affect the meaning of the code (white-space,formatting, missing semi-colons, etc)
refactor: A code change that neither fixes a bug nor adds a featureperf: A code change that improves performancetest: Adding missing tests or correcting existing testsbuild: Changes that affect the build system or external dependencies(example scopes: gulp, broccoli, npm)
ci: Changes to our CI configuration files and scripts (example scopes:Travis, Circle, BrowserStack, GitHub Actions)
chore: Other changes that don't modify src or test filesrevert: Reverts a previous commitcontextual information and is contained within parenthesis, e.g.,
feat(parser): add ability to parse arrays.
with previous behavior.
unrelated changes (e.g. CI changes and Dependency updates), you should
create separate commits for each logical change unless the user explicitly
asks for a single commit.
GitHub Actions), use fix as the commit type and ci as the scope (e.g.
fix(ci): <description>), rather than using ci as the type.
Take firebase/style-and-commit from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.