terraphim-hooks
OfficialAutomated text replacement with Terraphim hooks.
Authorterraphim
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Terraphim hooks solve manual text editing by applying knowledge-graph-based transformations to commands and messages.
Core Features & Use Cases
- Terraphim hooks intercept text at key points (CLI commands, commit messages) and apply transformations using Aho-Corasick automata built from knowledge graph definitions.
- Key Components: PreToolUse hooks, Git hooks.
- Use Case: Example transformation of npm install to bun install in a PreToolUse scenario to streamline tooling across environments.
Quick Start
Follow these steps to set up terraphim-hooks and run basic replacements:
- Create a knowledge-graph directory at ~/.config/terraphim/docs/src/kg
- Create replacement rules such as bun install.md with content describing the replacement and its synonyms
- Configure Claude Code hooks to invoke the terraphim-agent on PreToolUse events
- Run terraphim-agent replace against sample inputs to verify changes
Dependency Matrix
Required Modules
None requiredComponents
Standard package💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: terraphim-hooks Download link: https://github.com/terraphim/terraphim-skills/archive/main.zip#terraphim-hooks Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.