fix-code

Remove dead code, wrappers, redundant parameters, and duplication from audited codebases.

1|Updated Oct 23, 2025
One-click install
npx skills add https://github.com/HYP3R00T/voicepad --skill fix-code
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: fix-code
Source: https://github.com/HYP3R00T/voicepad/tree/main/.agents/skills/fix-code
Command: npx skills add https://github.com/HYP3R00T/voicepad --skill fix-code

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Removes audit findings to improve code readability and maintainability.

Core Features & Use Cases

The skill executes a four-step workflow to clean codebases after an audit: remove dead code, eliminate unnecessary wrappers, drop redundant parameters, and collapse duplicate logic, then update docstrings and enforce quality gates.

  • Remove dead code: delete unused functions, classes, and parameters; remove dead imports.
  • Eliminate unnecessary wrappers: inline calls and remove wrappers that add no value.
  • Collapse duplication: extract shared logic and replace duplicates with calls.
  • Update docstrings: ensure public functions have accurate docstrings and align with code.

Quick Start

Provide the target file or project path and I will run the four-step cleanup process.

Frequently Asked Questions about fix-code

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I remove dead code and redundant parameters after a software audit?

To remove dead code after an audit, you can run a four-step cleanup process that deletes unused functions, classes, and imports, then drops redundant parameters to improve maintainability.

What is the best way to refactor duplicate logic across multiple modules?

The best way to refactor duplicate logic is to collapse duplication by extracting shared logic and replacing duplicates with standardized calls across multiple modules.

Can I automatically update docstrings when refactoring a codebase?

Yes, you can update docstrings during refactoring by ensuring public functions have accurate descriptions that align with the modified code as part of the cleanup workflow.

How does a quality gate workflow handle unnecessary wrappers and dead imports?

A quality gate workflow handles unnecessary wrappers by inlining calls and removing valueless wrappers, while dead imports are removed through static checks using standard tooling.

What are the limitations of automated code cleanup for audit findings?

Automated code cleanup for audit findings is limited to removing dead code, wrappers, redundant parameters, and duplication, requiring standard static tooling and logging fixes to enforce quality gates.