skills/using-xtrm/SKILL.md
Behavioral operating manual for an xtrm-equipped Claude Code session. Covers when to use which tool, how to handle questions and triggers, workflow examples, and skill routing. Reference material (hook list, gate rules, full bd commands, git workflow) lives in CLAUDE.md. Injected automatically at session start via additionalSystemPrompt.
npx skillsauth add jaggerxtrm/jaggers-agent-tools using-xtrmInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Gates, commands, and git workflow are in CLAUDE.md. This is the behavioral layer: triggers, patterns, examples.
bd prime # load workflow context + active claims
bd memories <today's topic> # retrieve relevant past context
bv --robot-triage # graph-ranked picks, quick wins, unblock targets
bd update <id> --claim # claim before any edit
Use
bv --robot-nextfor the single top pick. Usebv --robot-triage --format toonto save context tokens. Never run barebv— it launches an interactive TUI.
xt claude / xt pi sessions use clean git worktrees. Git does not copy ignored dependency artifacts such as node_modules/, .venv/, build caches, or generated outputs. If a repo's lint/tests need those files, run the repo's normal bootstrap inside the worktree (make bootstrap, just setup, npm ci, uv sync, etc.). Do not track dependency directories to make worktrees pass.
| Situation | Action |
|-----------|--------|
| User prompt contains ? | bd memories <keywords> before answering — check stored context first |
| "What should I work on?" | bv --robot-triage — ranked picks with dependency context |
| "What was I working on?" | bd list --status=in_progress |
| Unfamiliar area of code | gitnexus_query({query: "concept"}) before opening any file |
| About to edit a symbol | gitnexus_impact({target: "name", direction: "upstream"}) |
| Before git commit | gitnexus_detect_changes({scope: "staged"}) to verify scope |
| Reading code | get_symbols_overview → find_symbol — never read whole files |
| Task is tests | use /test-planning
| Task is docs updates | use /sync-docs
| Session end (issue closed) | Memory gate fires — evaluate bd remember for each closed issue |
? PromptsWhen the user's message contains a question, check stored context before answering:
bd memories <keywords from question> # search project memory
bd recall <key> # retrieve specific memory if key is known
Example — user asks "why does the quality gate run twice?":
bd memories "quality gate"
# → "quality-check.cjs and quality-check.py are separate hooks —
# JS/TS and Python each get their own PostToolUse pass"
If it's a code question, also run:
gitnexus_query({query: "<topic>"}) # find relevant execution flows
Fixing a bug:
bd ready # find the issue
bd update bd-xyz --claim # claim it
gitnexus_impact({target: "parseComposeServices", direction: "upstream"})
# → 2 callers, LOW risk — safe to edit
get_symbols_overview("hooks/init.ts") # map file
find_symbol("parseComposeServices", include_body=True) # read just this
replace_symbol_body("parseComposeServices", newBody) # Serena edit
bd close bd-xyz --reason="Fix YAML parse edge case" # close issue
xt end # push, PR, merge, cleanup
Exploring unfamiliar code:
gitnexus_query({query: "session claim enforcement"})
# → beads-gate-core.mjs, resolveClaimAndWorkState, decideCommitGate
gitnexus_context({name: "resolveClaimAndWorkState"}) # callers + callees
get_symbols_overview("hooks/beads-gate-core.mjs") # map the file
find_symbol("resolveClaimAndWorkState", include_body=True) # read only this
Persisting an insight:
bd remember "quality-check runs twice: separate .cjs (JS) and .py (Python) hooks"
# retrievable next session:
bd memories "quality check"
bd recall "quality-check-runs-twice-..."
| Task type | Apply |
|-----------|-------|
| analyze / investigate / why | <thinking> block + structured <outputs> |
| implement / build / fix | 1-2 <example> blocks + <constraints> |
| refactor / simplify | <constraints> (preserve behavior, tests pass) + <current_state> |
Vague prompt (under 8 words, no specifics)? Ask one clarifying question before proceeding.
| Need | Use |
|------|-----|
| Code read / edit | Serena — get_symbols_overview → find_symbol → replace_symbol_body |
| Blast radius before edit | gitnexus-impact-analysis |
| Navigate unfamiliar code | gitnexus-exploring |
| Trace a bug | gitnexus-debugging |
| Safe rename / refactor | gitnexus-refactoring |
| Docs maintenance | sync-docs |
| Docker service project | using-service-skills |
| Build / improve a skill | skill-creator |
development
Operational service-knowledge system for a project's services. One skill that creates, discovers, activates, updates, and scopes per-service expert skill packages (SKILL.md + diagnostic scripts + references), kept in sync with the code via a GitNexus-aware drift engine. Use when onboarding to a service, routing a task to the right expert, scaffolding a missing skill, or syncing a skill after the implementation drifted. Triggers: /service-skills, /creating-service-skills, /using-service-skills, /updating-service-skills, /scope, or any task that touches a registered service territory.
development
Bootstrap a complete security pipeline (Dependabot + OSV + Semgrep + gitleaks + pre-commit hooks + Codex review) on any GitHub repo. Designed for free user-private repos where GitHub Advanced Security is unavailable. Reusable across Python/TypeScript/Go/Rust stacks.
testing
Merges queued PRs from xt worktree sessions in the correct order (FIFO), maintaining linear history by rebasing remaining PRs after each merge. Use this skill whenever the user has multiple open PRs from xt worktrees, asks to "merge my PRs", "process the PR queue", "drain the queue", "merge worktree branches", or says "what PRs do I have open". Also activate after any xt-end completion when other PRs are already open, or when the user asks "can I merge yet" or "is CI green". Handles the full sequence: list → sort → CI check → merge oldest → rebase cascade → repeat until queue is empty.
testing
Autonomous session close flow for xt worktree sessions. Use this skill whenever the user says "done", "finished", "wrap up", "close session", "ship it", "I'm done", "ready to merge", or similar. Also activate when all beads issues in the session are closed, or when the user explicitly runs /xt-end. This skill is designed for headless/specialist use: it must make deterministic decisions, auto-remediate common anomalies, and avoid clarification questions unless execution is truly blocked.