codewiz bug drill

    by Roshaan Tahir

    1

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

    Free

    Security scanned

    Works with the AI Agents you already use

    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

    1. Review the code carefully.
    2. Reply with the line numbers and your explanation of the bugs.
    3. 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

    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

    1. 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. 2

      Sign in to Agensi

      Your agent shows a sign-in link. Sign in and click Allow.

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

    Write Files
    Read Files
    Listed17 days ago

    What's inside

    Creator

    Roshaan Tahir

    Roshaan Tahir

    3 skills on Agensi

    Frequently Asked Questions

    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.

    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.

    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.

    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.

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

    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.

    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.

    Free