.wai/resources/agent-config/skills/commit/SKILL.md
Create logical, well-described git commits for session changes. Reviews changes, groups them logically, writes descriptive commit messages, and requires confirmation before committing.
npx skillsauth add charly-vibes/wai commitInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Create git commits for changes made during this session.
git add -A or git add .# Show all changes
git status
# Review each file
git diff path/to/file1
git diff path/to/file2
Present a structured description:
I've made changes to the following files:
1. src/components/Login.tsx
- Added OAuth provider selection
- Implemented token refresh logic
- Added error boundary for auth failures
2. src/utils/auth.ts
- Created validateToken helper
- Added token expiry checking
3. tests/auth.test.ts
- Added tests for new OAuth flow
- Added tests for token validation
These changes can be grouped into logical commits:
Commit 1: "Add OAuth provider selection to login"
- src/components/Login.tsx
- src/utils/auth.ts
Commit 2: "Add token validation and refresh"
- src/utils/auth.ts (additional changes)
- tests/auth.test.ts
Shall I proceed with these commits?
Do not proceed until the user confirms or provides guidance.
For each approved commit:
# Add specific files only
git add src/components/Login.tsx
git add src/utils/auth.ts
# Create commit with descriptive message
git commit -m "add(auth): OAuth provider selection in login
Added UI for selecting OAuth provider (Google, GitHub, Microsoft).
Implemented provider-specific configuration and redirect handling.
- LoginForm component now displays provider buttons
- auth.ts handles provider-specific OAuth flows
- Error states for unsupported providers"
# Verify
git log --oneline -1
Continue with remaining logical groups of changes.
<type>(<scope>): <short description>
<detailed description of what and why>
- Bullet points for key changes
- Focus on the 'why' not just the 'what'
Types: add, update, fix, refactor, docs, test, chore
git add -A
git commit -m "updates"
git add src/auth/oauth.ts
git add src/auth/providers.ts
git commit -m "add(auth): OAuth provider abstraction
Created provider interface and implementations for Google, GitHub.
Each provider handles its own authorization URLs and token exchange.
- BaseProvider interface defines contract
- GoogleProvider and GitHubProvider implementations
- Provider registry for runtime selection"
Before each commit:
testing
Compare original and distilled prompts to verify the distillation is faithful and lossless. Checks completeness, accuracy, and appropriate conciseness.
development
Implement features following Test-Driven Development methodology. Red-Green-Refactor cycle with phased approach and verification at each step.
development
Orchestrate multi-agent code review with three waves - parallel analysis, cross-validation, and convergence check. Simulates specialist reviewers and synthesizes findings.
development
Apply Steve Yegge's Rule of 5 iterative review to any artifact - code, plans, research, issues, specs, or documents. Five stages from draft through excellence.