# codewiz bug drill

> Practice code review by finding realistic, behavior-changing bugs planted in a copy of your functions.

codewiz bug drill is a free AI agent skill on Agensi by Roshaan Tahir, in Code Quality & Review. It loads into your AI agent through the Agensi MCP server, always in its latest approved version.

- Price: Free
- Creator: [Roshaan Tahir](https://www.agensi.io/creators/roshaan-tahir)
- Category: [Code Quality & Review](https://www.agensi.io/skills/code-quality-review)
- Version: 1.0
- Last updated: 2026-11-18
- Security: scan passed (2026-11-18); every new listing is also reviewed by a person
- Listing: https://www.agensi.io/skills/codewiz-bug-drill
- Tags: code-review, testing, python, javascript, onboarding

## 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
1. **Target selection** where you specify a function name or paste a code block for the drill.
2. **Bug planning** where the agent selects believable error types, like off-by-one errors or incorrect boolean logic, and verifies the code still parses.
3. **The Challenge** where the agent presents the buggy code with line numbers and waits for your report.
4. **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 this skill

1. Connect your AI agent to Agensi once: add the MCP server https://mcp.agensi.io/mcp/auth and sign in with your Agensi account (OAuth, no API key). Steps for Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and other agents: https://www.agensi.io/docs/mcp-setup
2. Ask your agent: "Use the codewiz bug drill skill from Agensi" and describe your task.
3. Your agent loads the skill from Agensi when it needs it. Nothing is downloaded.

## Frequently asked questions

### How is this better than just asking a standard AI agent to 'add bugs' to my code?

The skill uses a multi-step verification process to ensure bugs are subtle logical errors rather than simple syntax mistakes, and it provides a structured scoring system to track your progress over time.

### Are there specific programming languages or environment requirements for this skill?

While language-agnostic, the skill works best with C-style syntax languages like Python, JavaScript, and Java; it requires a local directory structure to save your `progress.json` file.

### Will this skill modify my actual source code files when planting bugs?

No, your source code is safe. The agent creates a temporary, in-memory copy of your function to inject bugs, ensuring your actual project files remain completely untouched.

### What exactly is included with the purchase of this skill?

You will receive the 'codewiz bug drill' skill package, a specialized bug catalog for logic injection, and integration support for the `codewiz-learn-codebase` tracking system.

### How does the agent determine if my code review was successful?

The 'Grading and Reveal' phase uses a weighted formula to score your performance based on how many bugs you caught, the accuracy of your explanations, and whether you flagged 'false alarms.'

### Can I track my skill progression across different devices or team members?

Yes, this skill is designed to integrate with the broader CodeWiz ecosystem, allowing you to sync your bug-finding performance with other learning modules via a unified progress file.

---

Source: [Agensi](https://www.agensi.io), the marketplace of skills for AI agents. Any MCP-compatible agent (Claude, ChatGPT, Claude Code, Codex, Cursor, VS Code and more) connects at https://mcp.agensi.io/mcp/auth and signs in with an Agensi account; setup for every agent: https://www.agensi.io/docs/mcp-setup. Append .md to any skill, guide or docs address on agensi.io for its markdown version.
