terraphim/terraphim-ai/smart-commit
Claude Code and agent skill by terraphim/terraphim-ai
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Install
npx vskill@latest install terraphim/terraphim-ai/smart-commitSKILL.md
Smart Commit
Use this skill to enhance commit messages with knowledge graph concepts extracted from changed files.
When to Use
- When creating commits with meaningful domain context
- To auto-tag commits with relevant concepts
- For better commit searchability and traceability
- When following semantic commit conventions
How It Works
- Extracts diff from staged changes
- Identifies knowledge graph concepts in the diff
- Appends relevant concepts to commit message
- Maintains human-written message integrity
Usage
Enable Smart Commit
Set environment variable before committing:
One-Time Smart Commit
Manual Concept Extraction
Example Output
Before (original message):
After (with smart commit enabled):
Configuration
Environment Variables
| Variable | Default | Description | |
|---|---|---|---|
TERRAPHIM_SMART_COMMIT | 0 | Enable smart commit (set to 1) | |
TERRAPHIM_VERBOSE | 0 | Show debug output |
Concept Limit
By default, only the top 5 unique concepts are added. This keeps commit messages clean while providing useful context.
Integration
Git Hook Installation
Claude Code Integration
Smart commit works automatically when:
- The prepare-commit-msg hook is installed
TERRAPHIM_SMART_COMMIT=1is set- terraphim-agent is available
Best Practices
- Concise Messages First: Write your commit message normally
- Review Concepts: Check that extracted concepts are relevant
- Disable When Needed: Unset
TERRAPHIM_SMART_COMMITfor quick fixes - Role Selection: Concepts come from the current role's knowledge graph
Troubleshooting
| Issue | Solution | |
|---|---|---|
| No concepts added | Check TERRAPHIM_SMART_COMMIT=1 is set | |
| Wrong concepts | Try different role with --role flag | |
| Hook not running | Verify .git/hooks/prepare-commit-msg exists and is executable | |
| Agent not found | Build with cargo build --release -p terraphim_agent |
Related Skills
pre-llm-validate- Validate input before LLM callspost-llm-check- Validate LLM outputs against checkliststerraphim-hooks- Full hooks documentation
Security
- Security scanPassed, 100 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/smart-commit/skill.md
Popularity
- Repository stars
- 35
- Repository forks
- 3
- 7-day trend score
- 18
Stars and forks are for the whole GitHub repository, not this skill alone. Refreshed 18 Mar 2026, 7 months ago.
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/terraphim/terraphim-ai/smart-commit)