git-commits
Git Commits
This is a strict guideline. Follow these rules exactly.
How to format and create git commits, branches, and PRs when helping developers.
🚨 Pre-Commit Gates
Before generating commit messages, run the pre-commit-check skill against all staged files. This covers:
- Security — credentials, secrets,
.envfiles (delegates tosecurity-checklist) - Code quality — DRY, naming, error handling, dead code (references
core-principles) - Breakage risks — build, tests, Lambda invocations, missing env vars
Do not proceed to commit grouping until all three gates pass.
After running the gates, briefly confirm the result and which path was used:
- "Pre-commit check passed (via
pre-commit-checkskill) — no security issues, code quality OK, build verified."
More from loxosceles/ai-dev
static-frontend-hosting
S3 + CloudFront + Lambda@Edge for low-cost global hosting with edge authentication. Apply when setting up frontend hosting infrastructure.
65github-actions-oidc-aws
Secure GitHub Actions to AWS authentication using OIDC without long-lived credentials. CRITICAL PATTERN. Apply when setting up CI/CD pipelines that deploy to AWS.
54code-review
Multi-perspective code review strategy covering architecture, security, performance, and quality. Follow when reviewing code or analyzing changes.
52frontend-code-quality
Essential guidelines for clear, maintainable frontend code. Follow when writing or reviewing frontend components, composables, or pages.
52command-execution
Guidelines for executing commands and running scripts. Follow when running shell commands, installing packages, or using project scripts.
52cdk-bootstrap-configuration
CDK synth-time configuration pattern without context caching. Apply when working on CDK infrastructure code or adding new configuration parameters.
51