Skip to content
Skillpedia
General coding11k Β· #11644

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.md

Copy 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

Use this skill to help me: https://github.com/TencentCloud/Octop/blob/main/src/octop/infra/agents/experts/library/engineering/skills/debug/SKILL.md Read the SKILL.md file at that link and follow its instructions for my task.
Want your AI to find skills like this on its own?Install the free Skillpedia MCP: one line, and it searches 15,000+ skills before each task.Install in 1 minute β†’

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

  1. Share error messages exactly β€” Don't paraphrase. The exact text matters.
  2. Mention what changed β€” Recent deploys, dependency updates, and config changes are top suspects.
  3. 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

Is this skill useful?

0

Sign in to vote.

Comments

  • …

More skills from this repository

Similar skills