terraphim/terraphim-ai-gpu-experimental/terraphim-package-manager
Claude Code and agent skill by terraphim/terraphim-ai-gpu-experimental
- community
Checking that the SKILL.md file is still in the repository.
Automatically replace package manager commands (npm, yarn, pnpm) with bun using Terraphim's knowledge graph system. Use this when the user mentions package managers, installation commands, or build scripts that use npm/yarn/pnpm.
Install
npx vskill@latest install terraphim/terraphim-ai-gpu-experimental/terraphim-package-managerSKILL.md
The same SKILL.md was published earlier as terraphim/terraphim-ai/terraphim-package-manager.
Terraphim Package Manager Replacement
This skill uses Terraphim's knowledge graph to automatically replace package manager commands with preferred alternatives (e.g., npm → bun).
When to Use This Skill
Activate this skill when:
- User mentions npm, yarn, or pnpm commands
- User asks to install dependencies
- User shares package.json scripts
- User provides shell scripts with package manager commands
- User discusses build/test/dev commands
How It Works
The skill uses terraphim-tui replace command which:
- Loads a knowledge graph from markdown files
- Uses Aho-Corasick automata for fast pattern matching
- Replaces all package manager references with bun
- Preserves the rest of the text unchanged
Capabilities
Supported Replacements:
npm→bunyarn→bunpnpm→bunnpm install→bun installyarn install→bun installpnpm install→bun install
Features:
- Case-insensitive matching (NPM = npm)
- Longest match first (npm install before npm)
- Sub-100ms execution time
- Non-overlapping replacements
Instructions
Step 1: Check if terraphim-tui is available
Before using this skill, verify terraphim-tui is built:
If not found, build it:
Step 2: Identify package manager commands
Look for patterns like:
- "npm install"
- "yarn build"
- "pnpm test"
- package.json scripts with npm/yarn/pnpm
Step 3: Replace using terraphim-tui
Use the replace command:
Important: Suppress stderr with 2>/dev/null to avoid log messages.
Step 4: Present the results
Show the user:
- Original text
- Replaced text
- Brief explanation of what changed
Examples
Example 1: Simple Command Replacement
User asks: "How do I install dependencies?"
Before replacement:
After replacement:
Your response:
Example 2: Package.json Scripts
User shares:
After replacement:
Example 3: Shell Script
User provides:
After replacement:
Best Practices
- Always explain the replacement: Don't silently change commands without telling the user
- Show before and after: Let users see what was changed
- Respect user preferences: If user explicitly wants npm, don't override
- Handle errors gracefully: If terraphim-tui fails, provide the original text
- Suppress logs: Always use
2>/dev/nullto avoid log clutter
Error Handling
If terraphim-tui is not available:
- Inform the user
- Provide manual replacement guidance
- Suggest building terraphim-tui
Example error response:
Integration with Knowledge Graph
This skill leverages Terraphim's knowledge graph system defined in:
docs/src/kg/bun.md: Package manager synonymsdocs/src/kg/bun_install.md: Install command synonyms
These markdown files define semantic relationships that power the replacement logic.
Performance Notes
- Pattern matching: ~10-50ms
- Knowledge graph loading: ~100-200ms (cached after first run)
- Total execution: typically under 100ms
Related Commands
Limitations
- Requires terraphim-tui to be built
- Works best with specific command patterns
- May be aggressive with longer text containing many technical terms
- Requires knowledge graph files in docs/src/kg/
See Also
- Claude Code Hook:
examples/claude-code-hooks/README.md - Knowledge Graph:
docs/src/kg/PACKAGE_MANAGER_REPLACEMENT.md - Terraphim TUI:
crates/terraphim_tui/README.md
Security
- Security scanPassed, 90 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 repositoryCheckingexamples/claude-skills/terraphim-package-manager/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
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-gpu-experimental/terraphim-package-manager)