terraphim/terraphim-ai/smart-commit

Claude Code and agent skill by terraphim/terraphim-ai

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install terraphim/terraphim-ai/smart-commit

SKILL.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

  1. Extracts diff from staged changes
  2. Identifies knowledge graph concepts in the diff
  3. Appends relevant concepts to commit message
  4. Maintains human-written message integrity

Usage

Enable Smart Commit

Set environment variable before committing:

bash
export TERRAPHIM_SMART_COMMIT=1
git commit -m "Your message"
One-Time Smart Commit
bash
TERRAPHIM_SMART_COMMIT=1 git commit -m "Your message"
Manual Concept Extraction
bash
# Extract concepts from staged diff
git diff --cached | terraphim-agent hook --hook-type prepare-commit-msg --input '{"diff": "..."}'
# Or directly validate the diff
git diff --cached | terraphim-agent validate --json

Example Output

Before (original message):

feat: add user authentication

After (with smart commit enabled):

feat: add user authentication
Concepts: authentication, security, user, login, session

Configuration

Environment Variables
VariableDefaultDescription
TERRAPHIM_SMART_COMMIT0Enable smart commit (set to 1)
TERRAPHIM_VERBOSE0Show 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
bash
# Install prepare-commit-msg hook
./scripts/install-terraphim-hooks.sh
# Or manually
cp scripts/hooks/prepare-commit-msg .git/hooks/
chmod +x .git/hooks/prepare-commit-msg
Claude Code Integration

Smart commit works automatically when:

  1. The prepare-commit-msg hook is installed
  2. TERRAPHIM_SMART_COMMIT=1 is set
  3. terraphim-agent is available

Best Practices

  1. Concise Messages First: Write your commit message normally
  2. Review Concepts: Check that extracted concepts are relevant
  3. Disable When Needed: Unset TERRAPHIM_SMART_COMMIT for quick fixes
  4. Role Selection: Concepts come from the current role's knowledge graph

Troubleshooting

IssueSolution
No concepts addedCheck TERRAPHIM_SMART_COMMIT=1 is set
Wrong conceptsTry different role with --role flag
Hook not runningVerify .git/hooks/prepare-commit-msg exists and is executable
Agent not foundBuild with cargo build --release -p terraphim_agent

Related Skills

  • pre-llm-validate - Validate input before LLM calls
  • post-llm-check - Validate LLM outputs against checklists
  • terraphim-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

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/terraphim/terraphim-ai/smart-commit/badge)](https://verified-skill.com/skills/terraphim/terraphim-ai/smart-commit)

Something wrong with this skill or its page? Tell us.