Claude Code tools installer — skills, hooks, MCP servers, and project-specific extensions.
ARCHITECTURAL DECISION (v2.0.0+): xtrm-tools supports Claude Code exclusively. Hook translation for Gemini CLI and Qwen CLI was removed.
MIGRATION NOTICE (v2.1.20+): Core logic has moved to Pi Extensions. See the Pi Extensions Migration Guide.
This repository contains production-ready extensions to enhance Claude's capabilities with prompt improvement, task delegation, development workflow automation, and quality gates. The xtrm CLI provides a robust, modular "Plug & Play" installation engine for project-specific tools.
# Install globally (one-time)
git clone https://github.com/Jaggerxtrm/xtrm-tools.git
cd xtrm-tools/cli
npm install && npm run build
npm link
# Initialize a project and register gitnexus MCP
xtrm project init- Project Skills & Hooks
- Global Skills
- Installation
- CLI User Guide
- Configuration
- Version History
- License
Project skills are modular, plug-and-play tool packages extending Claude's capabilities for specific workflows. They install into your project's .claude/ directory and include specific hooks enforcing local workflow rules and quality gates.
The foundational operating manual for an xtrm-equipped session.
- Invocation: Activates automatically at session start via hook.
- Purpose: Orients the agent on how to work within the xtrm stack: applying prompt improvement, using the beads issue-tracking gate, enforcing PR workflows, and combining the full toolset (gitnexus, Serena, TDD guard, quality gates, delegation).
- Core Workflow: Provides the authoritative guide on feature-branch usage, requiring PRs for merges (with
--squash), and stopping dangerous git commands on protected branches.
- tdd-guard: Enforces Test-Driven Development by blocking implementation until failing tests exist. Now covers Serena edit tools via bridge behavior.
- using-quality-gates: Unified PostToolUse code quality hooks — runs linting, type checking, and formatting (Python + TypeScript with strict mypy/ruff rules) on every edit.
Task intake and service routing for Docker service projects.
- Invocation:
/scope "task description"or automatic via SessionStart hook. - Purpose: Gives Claude persistent, service-specific expertise without re-explaining architecture. Emits structured scope plans and detects codebase drift via PostToolUse hooks.
Main Guard (main-guard.mjs)
- Trigger: PreToolUse (Write|Edit|MultiEdit|Serena edit tools|Bash)
- Purpose: Enforces PR-only merge workflow with full git protection. Blocks direct commits and dangerous
git checkout/git pushcommands on protected branches (main/master). - Post-Push (
main-guard-post-push.mjs): After pushing a feature branch, reminds to usegh pr merge --squashand sync local viagit reset --hard origin/main.
GitNexus Graph Context (gitnexus-hook.cjs)
- Trigger: PostToolUse (with Serena support and dedup cache)
- Purpose: Enriches tool output with knowledge graph context via
gitnexus augment. - Note:
gitnexus-impact-reminderwas removed as impact analysis enforcement is now native.
Beads Issue Tracking Gates
- Trigger: PreToolUse, PostToolUse, Stop, PreCompact, SessionStart
- Purpose: Ensures all work is tracked to a
bdissue. Blocks file edits without an active claim. - Compaction: Newly added
PreCompactandSessionStarthooks preservein_progressbeads state across/compactevents. Hook blocking messages are quieted and compacted to save tokens.
Global skills are reusable workflows installed to the user-level Claude environment (not tied to one repo).
Maintains Single Source of Truth (SSOT) documentation system with drift detection.
- Invocation:
/document [task] - Purpose: Creates, updates, and validates SSOT documentation. Auto-generates INDEX blocks for rapid navigation. A Stop hook fires at session end to detect stale memories based on the
tracks:frontmatter field.
Proactively delegates tasks to cost-optimized agents before working in main session.
- Invocation:
/delegate [task]or/delegating [task] - Purpose: Routes simple deterministic tasks (tests, typos, formatting, docs) to GLM/Gemini/Qwen, and complex reasoning tasks to multi-agent orchestration. Interactive 2-step menu helps select the backend. Avoids main session token usage.
Orchestrates task handoff and "handshaking" between Gemini and Qwen CLI agents.
- Invocation:
/orchestrate [workflow-type] [task] - Purpose: Facilitates multi-model collaboration, adversarial reviews, and deep cross-validation of complex logic. Workflows include collaborative design, adversarial security review, troubleshooting, and single handshakes.
npx -y github:Jaggerxtrm/xtrm-tools install allnpm install -g github:Jaggerxtrm/xtrm-tools@latest
xtrm install all # Install to all global targets
xtrm project init # Setup current project (runs gitnexus analyze + bd init)
xtrm install project all # Install all project-specific skillsxtrm <command> [options]
| Command | Description |
|---|---|
install all |
Non-interactive global install to all detected targets (installs gitnexus globally) |
install basic |
Interactive global installation |
install project <name> |
Install specific project skills (e.g., tdd-guard, service-skills-set) |
project init |
Onboarding: runs gitnexus analyze, registers MCP, and runs bd init |
status |
Read-only diff view showing what would change (with inline sync prompt) |
clean |
Removes orphaned hooks, stale wrappers, and dead skills from your system |
reset |
Clear saved CLI preferences |
Unified CLI sync configures core servers securely.
Core Servers:
- serena: Code analysis (requires
uvx) - context7: Documentation lookup (requires
CONTEXT7_API_KEY) - github-grep: Code search
- deepwiki: Technical documentation
- gitnexus: Knowledge graph code intelligence (registered during
xtrm project init)
Configured via ~/.config/xtrm-tools/.env. Run xtrm install basic to sync interactively.
| Version | Date | Highlights |
|---|---|---|
| 2.1.20 | 2026-03-16 | xtrm clean command, compact hook messages, pruneStaleWrappers fixes |
| 2.1.18 | 2026-03-16 | PreCompact / SessionStart hooks to preserve in_progress beads state |
| 2.1.16 | 2026-03-15 | Removed deprecated skill-suggestion, gitnexus-impact-reminder hooks |
| 2.1.14 | 2026-03-15 | Rewrote gitnexus-hook as PostToolUse with Serena; added using-xtrm skill |
| 2.1.9 | 2026-03-15 | main-guard enforced PR-only workflow, --squash requirement, npm publish |
See CHANGELOG.md for full history.
MIT License - See LICENSE file for details.