Agent skill
troubleshoot
Investigate runtime or production issues from logs, errors, or unexpected behavior (Marcus + Alex workflow)
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/other/other/troubleshoot-g-zenr-relay-api
SKILL.md
Troubleshoot: $ARGUMENTS
Unlike /fix-issue (code-level bugs), /troubleshoot investigates runtime/production problems from symptoms.
Step 1 — Gather Symptoms
Identify what's happening:
- What errors are users seeing? (status codes, error messages)
- When did it start? (after a deploy, config change, or spontaneously?)
- Is it affecting all requests or specific endpoints?
- Is the health endpoint responding? What status?
Step 2 — Check Infrastructure
# Is the process running? Hit the health endpoint (see project config for URL)
# Check external resource connectivity via device/info endpoint
# Check recent logs — look for ERROR and WARNING entries
Common infrastructure issues:
See the Troubleshooting table in the project config for common symptoms, likely causes, and checks.
Step 3 — Check Configuration
Read the config file and verify env vars are set correctly. See the Environment Variables table in the project config for all settings and their defaults. Common misconfigurations:
- Mock mode accidentally enabled in production
- Resource identifiers don't match actual hardware
- API key not set when it should be
- Rate limit too restrictive
Step 4 — Check Application Logs
Look for patterns in log output:
- Audit logger entries — are state changes being logged?
WARNINGlevel — resource disconnection, degraded modeERRORlevel — communication failures, unhandled exceptions- Startup messages — did all components initialize?
Step 5 — Reproduce Locally
# Start in mock/dev mode to isolate hardware vs software issues (see dev run command in project config)
# Hit the failing endpoint
- If it works in mock mode → hardware/external resource issue
- If it fails in mock mode → software bug → switch to
/fix-issue
Step 6 — Resolution
- If config issue → fix env vars, restart
- If hardware/resource issue → check connection, permissions, drivers
- If software bug → use
/fix-issueto fix the code - If performance issue → use
/optimizeto profile and fix
Step 7 — Document
Log the incident:
- What happened, when, how long it lasted
- Root cause identified
- Fix applied
- Prevention steps (monitoring, alerting, tests)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?