Loading skill
Install any skill in seconds. Free to start, no credit card required.
Get Started Free →Manage git commits for autonomous coding. Use when committing feature implementations, creating descriptive commits, managing git workflow, or handling version control.
.claude/skills/majiayu000-ac-commit-manager/SKILL.md| Test case | Without → With | Effect | Δ tokens | Δ turns |
|---|---|---|---|---|
| case-21 | ✗→✓ | ▲ Improved | -11% | 0% |
| case-20 | ✗→✓ | ▲ Improved | -32% | 0% |
| case-01 | ✗→✓ | ▲ Improved | 533% | 0% |
| case-02 | ✗→✓ | ▲ Improved | 52% | 0% |
| case-03 | ✗→✓ | ▲ Improved | 173% | 0% |
Manage git commits for completed feature implementations.
Creates well-structured git commits after each feature completion, ensuring proper version control and clear project history.
pythonfrom scripts.commit_manager import CommitManager manager = CommitManager(project_dir) result = await manager.commit_feature("auth-001")
1. VALIDATE → Ensure changes are safe to commit
2. STAGE → Stage relevant files
3. MESSAGE → Generate descriptive commit message
4. COMMIT → Create the commit
5. VERIFY → Verify commit was created
6. TAG → Optional: tag milestone commitsfeat(auth): implement user registration (#auth-001)
- Add registration endpoint with email/password
- Implement password hashing with bcrypt
- Add input validation for email format
- Create user model and database migration
Test: All 5 acceptance criteria passing
Coverage: 92%
Feature: auth-001
Status: passesjson{ "success": true, "commit_hash": "abc123def456", "feature_id": "auth-001", "message": "feat(auth): implement user registration", "files_changed": [ "src/auth/register.py", "src/models/user.py", "tests/test_auth_001.py" ], "stats": { "insertions": 145, "deletions": 12, "files_changed": 3 } }
Based on feature category:
feat: New featuresfix: Bug fixesrefactor: Code refactoringtest: Test additions/changesdocs: Documentationchore: Maintenance tasksperf: Performance improvementspython# Run validation before commit validation = await manager.pre_commit_check() if validation.can_commit: await manager.commit_feature(feature_id)
Checks include:
Each feature gets exactly one commit:
json{ "require_tests_pass": true, "require_lint_pass": true, "auto_stage_tests": true, "message_template": "{{type}}({{scope}}): {{description}}", "protected_files": [".env", "credentials.*"], "sign_commits": false }
python# Rollback last commit await manager.rollback_last_commit() # Rollback to specific feature await manager.rollback_to_feature("auth-003")
ac-code-validator for pre-commit checksac-task-executorac-state-tracker with commit infoSee scripts/commit_manager.py for full implementation.
Other measured skills in the registry, with their headline benchmark lift.