macalbert/envilder/code-bug-investigation
Claude Code and agent skill by macalbert/envilder
- community
Checking that the SKILL.md file is still in the repository.
Investigate a reported defect, gather reproduction evidence, confirm root cause, and recommend a focused verification strategy without editing artifacts. Production defects require focused regression evidence; test-infrastructure defects start with consumer or direct-workflow evidence.
Install
npx vskill@latest install macalbert/envilder/code-bug-investigationSKILL.md
Bug Investigation
Turn a bug report into a confirmed root-cause analysis and a ready-to-establish verification plan. This skill investigates; it does not fix code or edit verification.
Use common-verification-first as the governing policy. The intent is BUG_FIX; infrastructure, configuration, and test infrastructure do not create separate intents.
When to Use
- A user or reviewer reports incorrect behavior.
- A GitHub issue describes a defect.
- A failing check suggests a regression.
- A patch seems obvious but the root cause has not been demonstrated.
1. Build the Fastest Feedback Loop
- Restate observed behavior, expected behavior, trigger, and environment.
- Find the narrowest existing way to trigger the symptom: test selector, API
request, CLI command, build, validator, browser flow, or direct workflow.
- Reproduce before proposing a fix. If the defect cannot be reproduced, stop
and report the missing conditions or evidence.
- Use temporary read-only diagnostics when the failure is otherwise invisible.
Do not leave instrumentation or edit tracked artifacts during investigation.
Production Behavior
Find whether existing behavioral verification can reproduce the defect accurately. Recommend reusing or updating it when possible; otherwise recommend one focused regression at the lowest level that crosses the failing boundary. The Contract Verifier will establish and prove that regression before implementation.
Test Infrastructure
Start with a production-behavior consumer test or direct reproduction of the affected test workflow. Shared, public, reusable, or independently versioned support code does not justify direct tests.
Recommend the smallest focused test of a stable support contract only when consumer or workflow evidence cannot localize the fault precisely enough, and state the diagnostic precision gap.
2. Gather Evidence
From an issue, collect its title, description, reproduction steps, expected and actual results, environment, labels, and relevant recent comments. From a user report, resolve material ambiguity before continuing.
Capture command, input, output, and whether the evidence is repeatable. Separate:
- confirmed observation;
- inference supported by code or runtime evidence; and
- unverified assumption.
3. Locate the Root Cause
- Identify the affected domain, application, adapter, SDK, UI, workflow, or
support layer.
- Read the execution path and stable external boundary.
- Inspect existing verification and explain why it missed the defect.
- Trace the exact condition and code path that produce the wrong result.
- Confirm the root cause with the reproduction; do not confuse it with the
symptom.
- Identify invariants and neighboring behavior that the fix must preserve.
4. Select the Proposed Verification Strategy
For production behavior, choose one focused regression plan:
- reuse an existing behavioral test unchanged;
- update an existing test whose expectation is wrong or incomplete; or
- add one focused regression because the behavior is absent.
Do not keep contradictory expectations or add redundant tests. Choose the lowest level that proves the real defect without mocking away its cause:
| Defect boundary | Typical level | |
|---|---|---|
| Pure domain rule | Unit | |
| Application decision with stable ports | Unit or focused integration | |
| File, HTTP, cloud provider, or external adapter | Integration | |
| DI, command dispatch, or cross-layer wiring | Integration | |
| CLI or GitHub Action contract | Integration or e2e | |
| UI rendering or interaction | Component or browser test | |
| Critical user journey | E2E |
For test infrastructure, use consumer or direct-workflow evidence instead of this table unless the documented diagnostic exception applies.
Output
At an interactive checkpoint, present this analysis before implementation. Calling workflows may fold it into their single specification checkpoint.
Rules
- One defect per investigation.
- Never propose a production fix without confirmed reproduction evidence.
- Never edit production, verification, documentation, configuration, or test
support.
- Never claim a planned regression has failed until the Contract Verifier
actually runs it.
- Never add direct support tests for coverage or methodology.
- Surface inability to reproduce instead of guessing.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryChecking.github/skills/code-bug-investigation/SKILL.md
Popularity
- Repository stars
- 135
- Repository forks
- 4
- 7-day trend score
- 25
Stars and forks are for the whole GitHub repository, not this skill alone. 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
[](https://verified-skill.com/skills/macalbert/envilder/code-bug-investigation)