code-improvement-loop

Automates incremental code quality improvements and generates atomic pull requests with before/after metrics.

47|10|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/gonzalezpazmonica/pm-workspace --skill code-improvement-loop
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-improvement-loop
Source: https://github.com/gonzalezpazmonica/pm-workspace/tree/main/.claude/skills/code-improvement-loop
Command: npx skills add https://github.com/gonzalezpazmonica/pm-workspace --skill code-improvement-loop

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill addresses the accumulation of technical debt by autonomously applying incremental code improvements, making it easier to maintain code quality over time.

Core Features & Use Cases

  • Automated Refactoring: Identifies and fixes issues related to code coverage, complexity, linting errors, outdated dependencies, and unresolved TODOs.
  • Incremental Improvements: Applies small, atomic changes that can be easily reviewed.
  • Metric-Driven: Generates Pull Requests with before/after metrics to quantify improvements.
  • Use Case: Automatically improve the test coverage of a legacy module by adding new unit tests, or simplify complex functions to reduce cyclomatic complexity, all while ensuring existing tests remain unaffected.

Quick Start

Run the code improvement loop to find and fix code coverage gaps in the project.

Frequently Asked Questions about code-improvement-loop

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

FAQPage Schema
How do I automate technical debt reduction without breaking existing tests?

Automate technical debt reduction by detecting incremental code enhancements and generating atomic Pull Requests with before/after metrics for human review. This ensures no degradation of existing metrics or tests while autonomously applying fixes for linter warnings and unresolved TODOs.

What is the best way to automatically improve low test coverage in legacy code?

The best way to improve low test coverage in legacy code is running an automated code improvement loop that adds unit tests incrementally. It generates atomic Pull Requests with before/after metrics to quantify improvements while ensuring existing tests remain unaffected.

How does an automated code improvement loop handle cyclomatic complexity?

An automated code improvement loop handles cyclomatic complexity by detecting complex functions and applying incremental refactoring to simplify them. It generates atomic Pull Requests with before/after metrics for human review, ensuring existing test suites remain unaffected.

Can I automate the update of outdated dependencies and unresolved TODOs?

Yes, you can automate the update of outdated dependencies and unresolved TODOs by applying incremental code improvements. The system detects these technical debt issues and generates atomic Pull Requests with before/after metrics for human review without degrading existing tests.

Does automated refactoring require manual review before merging?

Yes, automated refactoring requires manual review before merging. The system generates atomic Pull Requests containing before and after metrics to quantify improvements, allowing developers to verify that no degradation of existing metrics or tests occurs before integration.

What are the limitations of automating continuous code quality improvements?

The limitation of automating continuous code quality improvements is that it cannot bypass human verification, as all incremental enhancements require review via generated Pull Requests. Additionally, the process halts if applying changes would cause degradation of existing metrics or tests.