ovh/shai/debugging

Claude Code and agent skill by ovh/shai

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Systematically diagnose and fix bugs using logs, stack traces, and targeted experiments

Install

npx vskill@latest install ovh/shai/debugging

SKILL.md

Debugging

Purpose

Provide a structured approach to diagnosing and fixing bugs in the SHAI codebase.

Debugging Workflow

1. Reproduce the Issue
  • Identify the exact command or action that triggers the bug.
  • Note the expected vs. actual behavior.
  • Check if the issue is reproducible or intermittent.
2. Gather Information
  • Run with RUST_BACKTRACE=1 to get full stack traces.
  • Check logs for error messages or warnings.
  • Use git log --oneline -10 to see recent changes that might have introduced the bug.
  • Run git diff to check for uncommitted changes.
3. Isolate the Problem
  • Narrow down the failing component:

```bash # Run specific tests cargo test -p shai-core -- <test_name>

# Run with backtrace RUST_BACKTRACE=1 cargo test -p shai-core -- <test_name> -- --nocapture ```

  • Add temporary dbg!() or eprintln!() statements to trace execution flow.
  • Use cargo expand to debug macro-generated code:

``bash cargo expand -p shai-core --tests 2>/dev/null | less ``

4. Formulate and Test Hypotheses
  • State your hypothesis clearly: "The bug is caused by X because Y."
  • Write a minimal reproduction test case.
  • Fix the root cause, not just the symptom.
  • Verify the fix doesn't break other tests: cargo test.
5. Verify the Fix
  • Run the full test suite.
  • Test edge cases around the fix.
  • Check for similar patterns elsewhere in the codebase that might have the same bug.

Common Issues in This Project

Tool Registration Failures
  • Check shai-core/src/tools/mod.rs for proper module declarations and re-exports.
  • Verify the #[tool] macro is correctly applied.
MCP Connection Issues
  • Check the MCP configuration format.
  • Verify the MCP server is running and accessible.
  • Inspect the SSE/stdio transport layer for connection errors.
Prompt Template Errors
  • Check shai-core/src/runners/coder/prompt.rs for template variable mismatches.
  • Ensure all {{PLACEHOLDER}} variables are properly resolved.

Guidelines

  • Always start with reproduction — a bug you can't reproduce is one you can't fix.
  • Make minimal changes to fix the issue.
  • Add a regression test to prevent the bug from recurring.
  • Clean up any debug prints before committing.

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
0

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/ovh/shai/debugging/badge)](https://verified-skill.com/skills/ovh/shai/debugging)

Something wrong with this skill or its page? Tell us.