plugins/debugging/skills/trace-analysis/SKILL.md
Analyze distributed traces and performance issues with Sentry
npx skillsauth add coalesce-labs/catalyst trace-analysisInstall 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.
Investigate distributed traces, transaction performance, and slow requests using Sentry.
/trace-analysis <trace-id-or-query>
Examples:
/trace-analysis "a4d1aae7216b47ff8117cf4e09ce9d0a"
/trace-analysis "slow API requests to /checkout"
/trace-analysis "traces with >5 second response time"
/trace-analysis "performance issues in payment service"
/trace-analysis "Analyze trace abc123def456: where's the bottleneck?"
/trace-analysis "Why are checkout API requests slow today?"
/trace-analysis "Compare performance of payment service vs order service"
/trace-analysis "Find traces with slow database queries in user service"
Analysis includes:
Trace Overview:
Span Breakdown:
Transaction: POST /api/checkout (2.4s)
├─ Authentication (45ms)
├─ Database Query: SELECT users (120ms)
├─ External API: Payment Gateway (1.8s) ⚠️ SLOW
├─ Database Query: INSERT orders (230ms)
└─ Email Service (180ms)
Performance Insights:
Recommendations:
/trace-analysis "Find common bottlenecks across all slow checkout traces today"
/trace-analysis "Map service call chain for failed transactions"
/trace-analysis "Traces that resulted in errors: what went wrong before?"
# Enable debugging plugin (if not already)
/plugin enable catalyst-debugging
# Combine trace and error analysis
> "Show me the trace for the transaction that caused error ISSUE-456"
After identifying bottleneck:
/catalyst-dev:create-plan "Optimize the slow payment gateway call identified in trace analysis"
/trace-analysis "transactions with >2s response time in last hour"
> "Drill into the slowest trace: which span is the problem?"
> "Why is the database query taking 800ms?"
/catalyst-dev:create-plan "Add database index for user lookups based on trace analysis"
> "After deploy, compare trace durations before and after"
Plugin uses ~20k tokens. Disable after analysis:
/plugin disable catalyst-debugging
See also: /catalyst-debugging:debug-production-error, /catalyst-debugging:error-impact-analysis
development
Migrate a single-harness repo to the dual-harness layout so both Claude Code and Codex load the same instructions and skills — AGENTS.md as the portable canonical doc, a thin CLAUDE.md `@AGENTS.md` bridge, and a `.agents/skills` dir with a `.claude/skills` symlink onto it. Use when asked to migrate to dual-harness, make this repo work in both Claude and Codex, or for agent metadata cleanup.
tools
Goal-driven senior-engineer pipeline-unstick sweep (CTL-1176 rung 3). Given the stuck/failed/needs-human set (or ONE ticket handed by the recovery router), its GOAL is to get the pipeline MOVING again — not to fix one ticket's review findings (that is phase-remediate). It runs AFTER the eyes (diagnostician evidence) and the hands (deterministic unstuck-sweep seams) have already tried, and it CONSUMES their output from a recovery-pass.json brief rather than re-diagnosing or redoing their narrow work. It acts like a senior engineer with full tool access — it resolves merge conflicts, rebases, force-pushes, merges green PRs, and re-dispatches stalled phases AUTONOMOUSLY — and escalates to the operator ONLY for a genuine value judgment / something that degrades other functionality / a real cost-benefit trade-off / a serious architecture change / an ADR conflict. On escalation it AUTHORS the operator inbox row + the push notification (executive-voiced). Dispatched as a `claude --bg` job by phase-agent-dispatch via slash command, AND invocable bare by the operator as a sweep — hence `user-invocable: true`. Ships behind CATALYST_RECOVERY_PASS (off by default — no live behavior change until shadow/enforce).
tools
Diagnose and fix Catalyst setup issues. Validates tools, database, config, OTel, direnv, and thoughts. Automatically fixes what it can — creates directories, initializes the database, sets WAL mode, runs migrations. Use for new installs, upgrades, or when something isn't working.
tools
--- name: phase-triage description: Phase agent that triages a Linear ticket — expands acronyms, classifies (feature/bug/docs/refactor/chore), identifies genuine blockers (a semantic second-pass over the backlog — NOT a prose scrape; CTL-838), estimates scope, writes triage.json, and posts a triage analysis comment to Linear. Triage completion is signaled by that comment plus the local triage.json — there is no `triaged` label. Emits phase.triage.complete.<TICKET> on success and phase.triage.fai