opportunistic-improvement

Detect and fix code smells in files during editing sessions.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/nhouseholder/nicks-claude-code-superpowers --skill opportunistic-improvement
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: opportunistic-improvement
Source: https://github.com/nhouseholder/nicks-claude-code-superpowers/tree/main/skills/opportunistic-improvement
Command: npx skills add https://github.com/nhouseholder/nicks-claude-code-superpowers --skill opportunistic-improvement

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

While working on tasks, Claude identifies obvious code smells and inefficiencies in files you are already reviewing or editing and silently fixes small issues to keep the project clean.

Core Features & Use Cases

  • In-place detection and silent fixes for dead code, naming clarity, minor refactors, and small performance opportunities during editing.
  • End-of-session report summarizing all improvements and opportunities discovered during the task.
  • Lightweight audit trail that tracks changes to support future reviews.

Quick Start

Tell Claude to watch the current file for no-brainer improvements, apply safe fixes as you edit, and report all changes at the end of the session.

Frequently Asked Questions about opportunistic-improvement

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

FAQPage Schema
How do I automatically fix code smells while editing files?

To automatically fix code smells while editing files, you can enable opportunistic improvement to silently apply safe refactors and remove dead code. It flags larger opportunities for later review and reports all applied changes at the end of your session.

What is opportunistic refactoring during a debugging session?

Opportunistic refactoring during a debugging session is the practice of incrementally raising code quality by fixing obvious issues in the files you are already editing. It applies no-brainer fixes silently and provides a summary of improvements afterward.

How can I incrementally improve code quality during ongoing development tasks?

You can incrementally improve code quality during ongoing development by identifying and fixing no-brainer improvements in place. This approach applies safe fixes for naming clarity and minor performance issues, maintaining a lightweight audit trail for future reviews.

Can I apply minor refactors and remove dead code without disrupting my current workflow?

Yes, you can apply minor refactors and remove dead code without disrupting your workflow by using opportunistic improvement. It silently applies safe fixes as you code, flags larger opportunities for later, and delivers an end-of-session report summarizing all changes.

Does silent code improvement work alongside static analysis and code reviews?

Yes, silent code improvement works alongside static analysis and code reviews by detecting minor performance opportunities and code inefficiencies in files you review. It tracks changes to support future reviews and reports discovered opportunities at the end of the session.

What are the limitations of applying no-brainer fixes during active coding?

The limitation of applying no-brainer fixes during active coding is that only small, safe improvements are applied silently. Larger code refactoring opportunities are not fixed immediately; they are simply flagged for later review to avoid disrupting your current task.