Back to Skills

git-storytelling-commit-strategy

verified

Use when planning commit strategies or determining when to commit changes. Helps developers commit early and often to tell the story of their development process.

View on GitHub

Marketplace

han

TheBushidoCollective/han

Plugin

jutsu-git-storytelling

Technique

Repository

TheBushidoCollective/han
60stars

jutsu/jutsu-git-storytelling/skills/commit-strategy/SKILL.md

Last Verified

January 24, 2026

Install Skill

Select agents to install to:

Scope:
npx add-skill https://github.com/TheBushidoCollective/han/blob/main/jutsu/jutsu-git-storytelling/skills/commit-strategy/SKILL.md -a claude-code --skill git-storytelling-commit-strategy

Installation paths:

Claude
.claude/skills/git-storytelling-commit-strategy/
Powered by add-skill CLI

Instructions

# Git Storytelling - Commit Strategy

This skill helps you understand and implement effective commit strategies that tell the story of your development process through small, focused commits.

## Key Concepts

### Commit Early, Commit Often

The practice of making small, frequent commits throughout development rather than large, infrequent commits. This approach:

- Creates a detailed history of your thought process
- Makes it easier to understand changes
- Simplifies debugging and reverting changes
- Enables better code reviews
- Tells the story of how the solution evolved

### Atomic Commits

Each commit should represent a single logical change:

- One feature addition
- One bug fix
- One refactoring
- One documentation update

This makes the git history navigable and meaningful.

### The Story Arc

Your commits should read like a story:

1. **Setup**: Initial project structure, dependencies
2. **Development**: Incremental feature additions
3. **Refinement**: Bug fixes, optimizations
4. **Polish**: Documentation, cleanup

## Best Practices

### DO Commit When

✅ You've completed a logical unit of work (even if small)
✅ Tests pass for the changes made
✅ You're about to switch tasks or take a break
✅ You've refactored code to be clearer
✅ You've fixed a bug (one commit per bug)
✅ You've added a new file or module
✅ You've updated documentation
✅ You're at a stable checkpoint

### DON'T Commit When

❌ Code doesn't compile or has syntax errors
❌ Tests are failing (unless documenting a known issue)
❌ You have unrelated changes mixed together
❌ You have debugging code or temporary comments
❌ You have secrets or sensitive data

## Commit Message Patterns

### Good Commit Messages

```
feat: add user authentication with JWT

Implement JWT-based authentication system with:
- Login endpoint
- Token generation
- Token validation middleware

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude <noreply@anthropic.com>
```

```
fix: resolve me

Validation Details

Front Matter
Required Fields
Valid Name Format
Valid Description
Has Sections
Allowed Tools
Instruction Length:
12646 chars

Issues Found:

  • name_directory_mismatch