debug
What it does
This skill guides a step-by-step investigation of a software bug. It is for developers and support staff who face an error or a behavior that does not match what they expect.
When to use it
- βWhen you have an error message or stack trace and do not know the cause.
- βWhen something works in staging but fails in production.
- βWhen something broke right after a deploy and you need to find out why.
Skill link
https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/debug/SKILL.mdCopy it and paste it into your AI (Claude, ChatGPT or Cursor), asking it to follow the instructions.
How to use
The easiest way: copy the message and paste it into your AI. It reads the skill and follows the instructions.
Ready-to-paste message
For Claude Code, Codex or Cursor: run it in your project folder and the skill gets installed.
Download the SKILL.md and drop it into your agentβs skills folder.
Example of what to ask your AI
βOur app works in staging but crashes in production with this error message. Help me find the cause.β
5 new skills a week. 1 minute to read.
How it works
The agent confirms what should happen compared with what does happen, narrows down the component or code path, and forms hypotheses to test. It traces the cause and then proposes a fix.
Technical content (original SKILL.md)
Original text by the author, straight from GitHub.
/debug
If you see unfamiliar placeholders or need to check which tools are connected, see CONNECTORS.md.
Run a structured debugging session to find and fix issues systematically.
Usage
/debug $ARGUMENTS
How It Works
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
β DEBUG β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ€
β Step 1: REPRODUCE β
β β Understand the expected vs. actual behavior β
β β Identify exact reproduction steps β
β β Determine scope (when did it start? who is affected?) β
β β
β Step 2: ISOLATE β
β β Narrow down the component, service, or code path β
β β Check recent changes (deploys, config changes, dependencies) β
β β Review logs and error messages β
β β
β Step 3: DIAGNOSE β
β β Form hypotheses and test them β
β β Trace the code path β
β β Identify root cause (not just symptoms) β
β β
β Step 4: FIX β
β β Propose a fix with explanation β
β β Consider side effects and edge cases β
β β Suggest tests to prevent regression β
βββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββββ
What I Need From You
Tell me about the problem. Any of these help:
- Error message or stack trace
- Steps to reproduce
- What changed recently
- Logs or screenshots
- Expected vs. actual behavior
Output
## Debug Report: [Issue Summary]
### Reproduction
- **Expected**: [What should happen]
- **Actual**: [What happens instead]
- **Steps**: [How to reproduce]
### Root Cause
[Explanation of why the bug occurs]
### Fix
[Code changes or configuration fixes needed]
### Prevention
- [Test to add]
- [Guard to put in place]
If Connectors Available
If ~~monitoring is connected:
- Pull logs, error rates, and metrics around the time of the issue
- Show recent deploys and config changes that may correlate
If ~~source control is connected:
- Identify recent commits and PRs that touched affected code paths
- Check if the issue correlates with a specific change
If ~~project tracker is connected:
- Search for related bug reports or known issues
- Create a ticket for the fix once identified
Tips
- Share error messages exactly β Don't paraphrase. The exact text matters.
- Mention what changed β Recent deploys, dependency updates, and config changes are top suspects.
- Include context β "This works in staging but not prod" or "Only affects large payloads" narrows things fast.
FAQ
What does the agent check first?
It reproduces the problem and checks recent changes such as deploys, configuration changes and dependency updates.
Does it only look at the code?
No. It also reviews logs and error messages to narrow the problem down.
Does it stop at finding the cause?
No. The skill covers the fix as well as the diagnosis.
Details
Original description by the author
Structured debugging session β reproduce, isolate, diagnose, and fix. Trigger with an error message or stack trace, "this works in staging but not prod", "something broke after the deploy", or when behavior diverges from expected and the cause isn't obvious.
repo: TencentCloud/Octop
Popularity
- GitHub stars
- 11k
- Ranking position
- #11644
- License
- MIT
- Updated
- 11/2/2026
Comments
- β¦
More skills from this repository
polite-greeting
11kHelps your agent open a conversation with a short, friendly and polite greeting, then move quickly to what you need.
medical-source-failover
11kHelps your agent find trusted Chinese medical guidelines, drug information and public health documents when a main source is blocked, slow or hard to read.
cowork-plugin-customizer
11kHelps your agent tailor an existing Claude plugin to an organization's tools and workflows, by replacing placeholders and adjusting skills and settings.
create-cowork-plugin
11kHelps your agent build a new Claude plugin from scratch through guided questions, covering skills, agents, hooks and a ready-to-install package.
Similar skills
diffs
394kLets your agent produce a real, shareable diff of edits as a viewer link or image file, instead of a hand-written summary.
coding-agent
394kHelps your agent hand a larger coding job to Codex, Claude Code, or OpenCode as a background worker, then check on its progress.
gh-issues
394kHelps your agent find GitHub issues, pick the ones to work on, and open pull requests with fixes, including follow-up on review comments.