- Home
- Skills
- Code Quality & Review
- codewiz bug drill
codewiz bug drill
Practice code review by finding realistic, behavior-changing bugs planted in a copy of your functions.
Free
codewiz bug drill
Example session with this skill installed
Drill me on the calculate_tax function in src/billing.py. Plant 2 bugs.
- Read your context and instructions
- Compiled the codewiz bug drill
I have prepared the drill for calculate_tax (src/billing.py:45-62). I've planted 2 bugs in this copy. Your actual file remains untouched.
For each bug, tell me:
- The line number
- What is wrong
- How you would fix it
Bug drill: calculate_tax (src/billing.py:45-62)
45: def calculate_tax(amount: float, state: str, exempt: bool = False) -> float:
46: if exempt:
47: return 0.0
48:
49: rate = get_state_rate(state)
50: if amount > 1000:
51: discount = 0.05
52: else:
53: discount = 0.0
54:
55: subtotal = amount * (1 + discount)
56: tax = subtotal * rate
57:
58: if state == "NY" and tax > 500:
59: tax = 500.0
60:
61: return round(tax, 2)
Next steps
- Review the code carefully.
- Reply with the line numbers and your explanation of the bugs.
- Ask for a hint if you get stuck on a specific section.
Connects securely to your tools. The creator never sees your data.
About this skill
Senior developers know that code reviews are only as good as the reviewer's mental model, but there is rarely a safe way to practice spotting subtle regressions. This skill transforms your existing codebase into a training ground by planting realistic, functional bugs in temporary copies of your code for you to find and fix.
What it does
- Plants realistic bugs by injecting 1-3 logical errors into a copy of a function based on a specialized bug catalog.
- Verifies behavioral change by ensuring every planted bug actually alters output for specific inputs before presenting the challenge.
- Maintains file integrity by keeping all modifications in memory, ensuring your actual source files remain untouched.
- Scores review accuracy using a weighted formula that considers catch rates, explanation depth, and false alarms.
- Tracks skill progression by logging performance data to a local JSON file to identify specific bug types you frequently miss.
How it works
- Target selection where you specify a function name or paste a code block for the drill.
- Bug planning where the agent selects believable error types, like off-by-one errors or incorrect boolean logic, and verifies the code still parses.
- The Challenge where the agent presents the buggy code with line numbers and waits for your report.
- Grading and reveal where the agent compares your flags against the private answer key and calculates your drill score.
Frameworks & tools
This skill is language-agnostic but requires a local directory structure to save progress. It integrates with codewiz-learn-codebase for unified skill tracking via .codewiz/progress.json.
Why this beats prompting it yourself
Generic prompts often produce syntax errors or obvious, low-quality bugs like typos. This skill uses a multi-step verification process to ensure bugs are subtle, logical, and mapped to a specific behavioral regression that must be explained to earn points.
Use cases
- Onboarding new hires by drilling them on core business logic functions to ensure they understand edge cases.
- Team lunch-and-learns where developers compete to find hidden bugs in a shared module.
- Personal skill sharpening to reduce the frequency of missed regressions in PR reviews.
Known limitations
Does not execute code or run tests to verify behavior. Limited to static analysis and line-in-place modifications only.
How to use
- 1
Connect your agent to the Agensi MCP
Copy the prompt and paste it into Claude, ChatGPT, Cursor or any agent that supports MCP. It sets up the connection for you. Manual setup
- 2
Sign in to Agensi
Your agent shows a sign-in link. Sign in and click Allow.
- 3
Ask for what you need
Your agent loads this skill and uses it on your task. It always asks before buying a skill.
Reviews
No reviews yet
Be one of the first to try it. Every listed skill goes through the trust checks below.
Security scanned
Checked by our 8-point scan before listing
Fresh listing
Recently published to Agensi
Free to use
No account required to browse
Trust & safety
Security scan
Security scan passed 17 days ago
- Free with an Agensi account
Permissions
What's inside
Frequently Asked Questions
New in Code Quality & Review
Find more skills like this on the Claude Skills Marketplace, the Codex Skills Marketplace and the Gemini Skills Marketplace, or browse Claude Skills for Code Quality & Review.