venthezone/pi-dots/decision-commits
Claude Code and agent skill by venthezone/pi-dots
- community
- ext:[{"type":"hook","description":"Pre/post lifecycle hooks"}]
Checking that the SKILL.md file is still in the repository.
Write commit messages that capture judgment and decision-making, not just change descriptions. Use when the user wants to elevate their commit history from a log to a record of reasoning, trade-offs, and context.
Install
npx vskill@latest install venthezone/pi-dots/decision-commitsSemi-extensibleMentions customization, but needs skill-specific knowledge. Read the extensible skills standard
SKILL.md
The same SKILL.md was published earlier as venthezone/pi-dots/decision-commits.
Decision Commits
Philosophy: Commit history isn't just a log—it's a record of judgment. A good commit message doesn't just describe what changed; it explains why it changed, what decisions were made, and what alternatives were considered.
When to Use
- The user wants to write better commit messages
- Reviewing or rewriting commit history for clarity
- Creating commit templates or guidelines for a team
- When commit messages feel like trivia instead of reasoning
- Establishing a culture of decision capture in commit logs
Core Principles
1. The Commit as Decision Record
Every commit should answer:
- What problem was being solved?
- Why this solution over alternatives?
- What trade-offs were made?
- Who (or what context) benefited?
2. Three-Part Structure
Summary (≤50 chars): What changed (imperative mood)
Body (optional): The why and how
- Problem context
- Considered alternatives
- Trade-offs and rationale
- Who approved / was consulted
Footer (optional): References, breaking changes, co-authors
3. Information Hierarchy
Front-load the decision:
- ❌ Bad: "Add caching to user service"
- ✅ Better: "feat(service): add in-memory cache to user service
We had 3 options:
- Redis cluster (cost, infrastructure)
- LRU in-process cache (simple, same-process)
- No cache (keep it simple, accept DB load)
Chose #2 because:
- Current load: 50 RPS, well within Node memory limits
- Redis infra overhead not justified yet
- Allows easy refactor to distributed cache later (see REFACTOR.md)
Cache invalidates on user update events.
Co-authored-by: @teammate <email>"
Framework: DARE Methodology
For each commit, consider:
D — Describe the Problem Context
What was happening? What symptoms or metrics indicated a problem?
A — Alternatives Considered
What other approaches were evaluated? Why were they rejected?
R — Reasoning & Trade-offs
Why was this particular solution chosen? What costs are being paid now vs later?
E — Evidence & Impact
How do we know this is an improvement? What's measured? Who benefits?
Decision Capture Templates
Template 1: Feature Addition
Template 2: Refactoring
Template 3: Bug Fix
Template 4: Research/Spike
Examples: Bad vs Good
Example 1: API Change
❌ Weak:
✅ Decision-focused:
Example 2: Refactoring
❌ Weak:
✅ Decision-focused:
Integration with Git Workflow
Commit Templates
Add to .gitmessage:
Pre-commit Hook
Use commitlint with custom rules:
- Require body for
feat,refactor,fixunless summary ≤ 30 chars AND scope present - Disallow vague words: "stuff", "things", "various", "update"
- Require
PROBLEM:orWHY:section for non-trivial changes
Example .commitlintrc.json:
Conventional Commits with Decision Weight
Enhance conventional commits with decision clarity:
| Type | Required Body? | Must Capture Decision? | |
|---|---|---|---|
feat | Yes (if > trivial) | Yes — problem, alternatives, rationale | |
fix | Yes | Yes — root cause, verification | |
refactor | Yes | Yes — why refactor, risk mitigation | |
docs | No | No (unless architectural docs) | |
chore | No | No | |
test | No | No | |
spike | Yes | Yes — question, findings, decision |
Decision Capture in Pull Requests
Use commits as building blocks for PR description:
- Each commit should be a self-contained decision unit
- PR description aggregates the decisions:
``` This PR comprises N commits, each capturing a specific decision:
- Commit abc123: "feat(auth): switch to JWTs" — Problem X, chose Y
- Commit def456: "refactor: extract token service" — Enabled by abc123
- Commit ghi789: "test: add JWT revocation tests" — Verification of abc123
```
- Link related decisions:
`` See also: #issue456 (future work deferred in commit abc123) ``
Code Review Lens
When reviewing commits, ask:
- [ ] Does the message explain why or just what?
- [ ] Are alternatives documented (so we don't re-litigate)?
- [ ] Are trade-offs explicit?
- [ ] Would someone 6 months from now understand the reasoning?
- [ ] Does the commit stand alone as a decision record?
If answer is "no" to any, request clarification in review.
Long-term Benefits
Onboarding
New team members read commit history to understand why the code is this way, not just what it does.
Incident Post-mortems
When something breaks, commit decisions reveal the assumptions at the time.
Architecture Evolution
See how and why architectural decisions changed over time.
Reducing Bus Factor
Decision capture distributes context beyond the original author.
Related Skills
git-workflow— Git operations, branching, PRs (use together!)write-a-skill— Create skills (meta)improve-codebase-architecture— Architecture decision recordsrequest-refactor-plan— Refactor planning with decision rationale
Quick Reference Card
Remember: A commit without judgment is just a changelog entry. A commit with judgment is an institutional memory. Write for the future reader.
Security
- Security scanPassed, 95 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpi-dotfiles-niche-skills/skills/decision-commits/SKILL.md
Popularity
- Repository stars
- 42
- Repository forks
- 1
- 7-day trend score
- 19
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Extension points
hookPre/post lifecycle hooks
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/venthezone/pi-dots/decision-commits)