Agent skill

Code Repair Generation Combo

by ArabelaTso in ArabelaTso/Skills-4-SE

Automatically repair buggy code and generate comprehensive tests for Python, Java, and C++ programs.

Apache-2.0Auto-check passedDevelopment

Install Code Repair Generation Combo

skills CLI
$ npx skills add ArabelaTso/Skills-4-SE --skill code-repair-generation-combo -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ArabelaTso/Skills-4-SE code-repair-generation-combo --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/code-repair-generation-combo .claude/skills/code-repair-generation-combo && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-repair-generation-combo
GitHub stars
253
Token cost
~1.3k tokens
SKILL.md length
475 words
Files
5 (incl. references, assets)
Skills in repo
150
Repo updated
First seen
Licence
Apache-2.0

At a glance

Automatically repair buggy code and generate comprehensive tests for Python, Java, and C++ programs.

  • Works in 6 steps: Understand the Bug → Diagnose the Root Cause → Fix the Code → …
  • Users need to fix logic errors
  • SKILL.md covers Workflow, Example Usage, Language-Specific Notes and Resources
  • Calls pytest, mvn and gradle

What it does

Code Repair Generation Combo is an agent skill from ArabelaTso/Skills-4-SE. Automatically repair buggy code and generate comprehensive tests for Python, Java, and C++ programs. Use when users need to fix logic errors or runtime errors in functions, modules, or repositories. Accepts specifications via natural language descriptions, existing test cases, or input/output examples. Generates corrected code, creates or updates tests to verify correctness and prevent regressions, and produces a detailed report explaining the bug, fix, and testing strategy. Triggers on requests like "fix this…

Its SKILL.md is about 1.3k tokens, which your agent loads only when the skill is triggered. The skill folder holds 6 other files, including reference files and assets (for example `assets/bug-fix-report-template.md`, `references/cpp-testing.md` and `references/java-testing.md`).

It sits in Development, covering Debugging, Test generation and Test strategy. It works with C++, Java and Python. The repository describes itself as: A curated list of 180+ useful Claude Skills for Software Engineering and resources for customizing AI for SE workflows. The licence is Apache-2.0.

When your agent uses it

  • Users need to fix logic errors
  • Runtime errors in functions
  • Requests like fix this bug
  • Repair this code

Example prompts

  • “fix this bug”
  • “repair this code”
  • “debug this function”
  • “/code-repair-generation-combo”

Requirements

  • Python 3

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. Understand the Bug
  2. Diagnose the Root Cause
  3. Fix the Code
  4. Generate Comprehensive Tests
  5. Verify and Run Tests
  6. Generate Bug Fix Report

What it can do on your machine

Read from SKILL.md and the folder at commit 4f38503. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • pytest
    • mvn
    • gradle

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Repair Generation Combo loads about 1.3k tokens when it runs, and up to ~2.7k if it reads all its reference files. Until then it costs about 155 tokens; SKILL.md has 475 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~155
When it runs · the whole SKILL.md, loaded when a task matches
~1.3k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~2.7k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ArabelaTso/Skills-4-SE at commit 4f38503, republished under its Apache-2.0 licence (© ArabelaTso). 475 words, ~1,299 tokens.

Download SKILL.mdSave it as .claude/skills/code-repair-generation-combo/SKILL.md (or your agent's skills folder). This skill also uses 4 other files; get the full folder from GitHub.
name
code-repair-generation-combo
description
Automatically repair buggy code and generate comprehensive tests for Python, Java, and C++ programs. Use when users need to fix logic errors or runtime errors in functions, modules, or repositories. Accepts specifications via natural language descriptions, existing test cases, or input/output examples. Generates corrected code, creates or updates tests to verify correctness and prevent regressions, and produces a detailed report explaining the bug, fix, and testing strategy. Triggers on requests like "fix this bug", "repair this code", "debug this function", or "this code is broken".

Code Repair + Generation Combo

Automatically diagnose and repair buggy code while generating comprehensive tests to verify correctness and prevent regressions.

Workflow

Follow this systematic approach for bug fixing and test generation:

1. Understand the Bug

Read the buggy code - Use Read tool to examine the problematic code thoroughly.

Analyze the specification - Understand expected behavior from:

  • Natural language description from user
  • Existing failing test cases
  • Input/output examples provided
  • Error messages or stack traces

Identify the scope - Determine if the bug affects:

  • A single function
  • Multiple related functions
  • An entire module
  • Cross-module interactions
2. Diagnose the Root Cause

Trace the logic - Walk through the code execution mentally or with examples.

Identify the bug type:

  • Logic error: Code runs but produces wrong results (off-by-one, wrong operator, incorrect condition)
  • Runtime error: Code crashes or throws exceptions (null pointer, array out of bounds, type mismatch)

Pinpoint the exact location - Identify the specific lines causing the issue.

Understand side effects - Check if the bug affects other parts of the codebase.

3. Fix the Code

Apply minimal changes - Fix only what's broken, preserve existing functionality.

Use Edit tool - Make precise changes to the buggy code.

Verify the fix logic - Ensure the fix addresses the root cause, not just symptoms.

Preserve code style - Match existing formatting, naming conventions, and patterns.

4. Generate Comprehensive Tests

Load testing patterns - Read the appropriate reference file:

  • Python: references/python-testing.md
  • Java: references/java-testing.md
  • C++: references/cpp-testing.md

Create test cases covering:

  • Normal cases: Typical valid inputs
  • Edge cases: Boundary values, empty inputs, single elements
  • Error cases: Invalid inputs, null values, exceptions
  • Regression cases: Specific inputs that triggered the original bug

Update existing tests if they exist, or create new test files following language conventions.

Use parametrized tests when testing multiple similar cases.

Show full SKILL.md (190 more words)Show less
5. Verify and Run Tests

Execute the tests - Use Bash tool to run the test suite:

  • Python: pytest test_file.py -v
  • Java: mvn test or gradle test
  • C++: ./test_executable or ctest

Ensure all tests pass - If tests fail, revisit the fix.

Check coverage - Verify that the fix and related code paths are tested.

6. Generate Bug Fix Report

Use the report template - Read assets/bug-fix-report-template.md and populate it with:

  • Summary of the bug and fix
  • Root cause analysis
  • Changes made with file paths and line numbers
  • Test coverage details
  • Verification of regression safety

Be specific and clear - Include code snippets, test results, and reasoning.

Example Usage

Example 1: Python logic error

User: "This factorial function returns 24 instead of 120 for input 5. Fix it."

1. Read the buggy code
2. Identify: off-by-one error in loop range
3. Fix: Change `range(1, n)` to `range(1, n+1)`
4. Generate tests covering 0, 1, 5, negative numbers
5. Run pytest and verify all pass
6. Generate report

Example 2: Java runtime error

User: "My sorting method throws NullPointerException with null elements."

1. Read the code and identify null comparison issue
2. Fix: Add null checks before comparisons
3. Generate JUnit tests for arrays with nulls, empty arrays, normal cases
4. Run tests and verify
5. Generate report

Example 3: C++ logic error with examples

User: "Binary search returns -1 for existing elements. For [1,3,5,7,9] and target 5, should return 2."

1. Read code and trace with provided example
2. Identify: incorrect mid calculation or boundary condition
3. Fix the bug
4. Generate Google Test cases with provided example and additional edge cases
5. Compile and run tests
6. Generate report

Language-Specific Notes

Python:

  • Use pytest framework
  • Follow PEP 8 style
  • Use type hints if present in original code

Java:

  • Use JUnit 5 framework
  • Follow Java naming conventions
  • Handle null safety explicitly

C++:

  • Use Google Test or Catch2
  • Check for memory leaks with valgrind if applicable
  • Handle pointer safety and bounds checking

Resources

references/ - Testing patterns and best practices for each language assets/ - Bug fix report template for consistent documentation

© ArabelaTso, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 4 other files (references, assets) in skills/code-repair-generation-combo of ArabelaTso/Skills-4-SE.

  • SKILL.md
  • assets/bug-fix-report-template.md
  • references/cpp-testing.md
  • references/java-testing.md
  • references/python-testing.md

Open the folder on GitHubat commit 4f38503

Compare with similar skills

Code Repair Generation Combo next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Repair Generation Combo compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Repair Generation Combo this skillArabelaTso/Skills-4-SE253—~1.3kAutomated safety check: PassApache-2.0
MCP Debuggerdebugmcp/mcp-debugger171—~3.8kAutomated safety check: PassMIT
Dbgtheodo-group/debug-that158—~2.2kAutomated safety check: PassMIT
OpenROAD Bug FixerThe-OpenROAD-Project/OpenROAD3.2k—~784Automated safety check: PassBSD-3-Clause
Git History Bug Auditben-manes/caffeine18k—~3.3kAutomated safety check: PassApache-2.0
Ue Live DebuggingJasonMa0012/MooaToon749—~2.9kAutomated safety check: NotesCustom licence

Similar skills

  • MCP Debugger

    debugmcp/mcp-debugger

    A skill your agent uses when investigating a bug, failing test, or unexpected runtime behavior and the mcp-debugger MCP server is available — drives real step-through debuggers (breakpoints, stack…

    171 GitHub stars~3.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Dbg

    theodo-group/debug-that

    Debug applications using the dbg CLI debugger. An agent skill from theodo-group/debug-that.

    158 GitHub stars~2.2k tokensUpdated today
    DevelopmentAuto-check passed
  • OpenROAD Bug Fixer

    The-OpenROAD-Project/OpenROAD

    Fixes an OpenROAD bug from a GitHub issue or error code: finds the root cause, implements the fix, adds a regression test and prepares a signed-off commit.

    3.2k GitHub stars~784 tokensUpdated today
    DevelopmentAuto-check passed
  • Git History Bug Audit

    ben-manes/caffeine

    Audits a module by walking its git history commit by commit, tracking unresolved issues forward, and reporting the ones that survive to HEAD as findings.

    18k GitHub stars~3.3k tokensUpdated 2 days ago
    DevelopmentAuto-check passed
  • Ue Live Debugging

    JasonMa0012/MooaToon

    A skill your agent uses when debugging UE C++ crashes, runtime bugs, or unexpected behavior with Rider MCP available.

    749 GitHub stars~2.9k tokensUpdated 20 days ago
    DevelopmentAuto-check: notes
  • Tilelang Debug Helper

    tile-ai/tilelang-ascend

    How to add debugging capabilities to TileLang Ascend example operators.

    400 GitHub stars~1.7k tokensUpdated today
    DevelopmentAuto-check: notes

More from ArabelaTso/Skills-4-SE

All 150 skills in this repo
  • Framework Migration Assistant

    ArabelaTso/Skills-4-SE

    Automatically migrate Python web applications between frameworks (Flask → FastAPI, Django → FastAPI).

    253 GitHub stars~1.9k tokensUpdated 1 mo ago
    Auto-check passed
  • Metamorphic Test Generator

    ArabelaTso/Skills-4-SE

    Generate test cases using metamorphic testing by applying transformations based on metamorphic properties.

    253 GitHub stars~798 tokensUpdated 1 mo ago
    Auto-check passed
  • Reproduction Trace Instrumenter

    ArabelaTso/Skills-4-SE

    Instruments programs to capture execution traces specifically for reproducing reported bugs, enabling consistent replay and diagnosis of failures.

    253 GitHub stars~2.4k tokensUpdated 1 mo ago
    Auto-check passed
  • Spring Mvc To Boot Migrator

    ArabelaTso/Skills-4-SE

    Automatically migrate Spring MVC applications to Spring Boot.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed
  • State Snapshot Instrumenter

    ArabelaTso/Skills-4-SE

    Instrument programs (Python, C/C++, Java) to capture snapshots of key program states at runtime, including variables, memory, and call stacks.

    253 GitHub stars~2.2k tokensUpdated 1 mo ago
    Auto-check passed

Works with

Questions about Code Repair Generation Combo

What does Code Repair Generation Combo do?

Automatically repair buggy code and generate comprehensive tests for Python, Java, and C++ programs. Code Repair Generation Combo is an agent skill from ArabelaTso/Skills-4-SE. Automatically repair buggy code and generate comprehensive tests for Python, Java, and C++ programs.

When should I use Code Repair Generation Combo?

Code Repair Generation Combo fits situations like: users need to fix logic errors; runtime errors in functions; requests like fix this bug; repair this code.

How do I install Code Repair Generation Combo in Claude Code?

Run `npx skills add ArabelaTso/Skills-4-SE --skill code-repair-generation-combo -a claude-code`. Or copy the skill folder (skills/code-repair-generation-combo in ArabelaTso/Skills-4-SE) into .claude/skills/code-repair-generation-combo in your project. Claude Code loads it when a task matches its description.

How do I install Code Repair Generation Combo in Codex?

Run `npx skills add ArabelaTso/Skills-4-SE --skill code-repair-generation-combo -a codex`. Or copy the skill folder (skills/code-repair-generation-combo in ArabelaTso/Skills-4-SE) into .agents/skills/code-repair-generation-combo in your project. Codex loads it when a task matches its description.

Can I use Code Repair Generation Combo in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ArabelaTso/Skills-4-SE --skill code-repair-generation-combo -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-repair-generation-combo, .gemini/skills/code-repair-generation-combo, .github/skills/code-repair-generation-combo and .opencode/skills/code-repair-generation-combo in your project.

What does Code Repair Generation Combo need to run?

Going by SKILL.md and its folder, Code Repair Generation Combo needs the command-line tools its instructions call (pytest, mvn and gradle). Our summary lists: Python 3.

Does Code Repair Generation Combo access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Repair Generation Combo safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Repair Generation Combo use?

Code Repair Generation Combo is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Repair Generation Combo use?

About 1.3k tokens (SKILL.md is roughly 5.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 1.4k tokens, read only when the agent opens those files.

What are the alternatives to Code Repair Generation Combo?

Skills that share tags, products or a category with Code Repair Generation Combo: MCP Debugger (debugmcp/mcp-debugger, 171 stars), Dbg (theodo-group/debug-that, 158 stars), OpenROAD Bug Fixer (The-OpenROAD-Project/OpenROAD, 3.2k stars) and Git History Bug Audit (ben-manes/caffeine, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Repair Generation Combo?

ArabelaTso (a GitHub user) maintains it in ArabelaTso/Skills-4-SE, which has 253 GitHub stars. The repository holds 150 skills in this directory. The repository was last updated on August 21, 2026.

Source: ArabelaTso/Skills-4-SE on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.