Automatically replace package manager commands (npm, yarn, pnpm) with bun using Terraphim's knowledge graph system...
This skill uses Terraphim's knowledge graph to automatically replace package manager commands with preferred alternatives (e.g., npm โ bun).
Activate this skill when:
The skill uses terraphim-tui replace command which:
Supported Replacements:
npm โ bunyarn โ bunpnpm โ bunnpm install โ bun installyarn install โ bun installpnpm install โ bun installFeatures:
Before using this skill, verify terraphim-tui is built:
ls -lh target/release/terraphim-tui
If not found, build it:
cargo build --release -p terraphim_tui
Look for patterns like:
Use the replace command:
terraphim-tui replace "TEXT_TO_REPLACE" 2>/dev/null
Important: Suppress stderr with 2>/dev/null to avoid log messages.
Show the user:
User asks: "How do I install dependencies?"
Before replacement:
npm install
After replacement:
bun install
Your response:
To install dependencies with bun:
\`\`\`bash
bun install
\`\`\`
I've replaced `npm install` with `bun install` using Terraphim's knowledge graph.
User shares:
{
"scripts": {
"install": "npm install",
"build": "yarn build",
"test": "pnpm test"
}
}
After replacement:
{
"scripts": {
"install": "bun install",
"build": "bun build",
"test": "bun test"
}
}
User provides:
#!/bin/bash
npm install
npm run build
npm test
After replacement:
#!/bin/bash
bun install
bun run build
bun test
2>/dev/null to avoid log clutterIf terraphim-tui is not available:
Example error response:
I don't have terraphim-tui available to perform automatic replacement.
To use bun instead of npm, manually replace:
- npm โ bun
- npm install โ bun install
- npm run โ bun run
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 synonymsThese markdown files define semantic relationships that power the replacement logic.
# Replace text
terraphim-tui replace "TEXT" 2>/dev/null
# Replace with role
terraphim-tui replace "TEXT" --role "Terraphim Engineer" 2>/dev/null
# Replace with output format
terraphim-tui replace "TEXT" --format markdown 2>/dev/null
examples/claude-code-hooks/README.mddocs/src/kg/PACKAGE_MANAGER_REPLACEMENT.mdcrates/terraphim_tui/README.md