code-upgrade

Audit codebases for architecture, duplication, silent failures, and idempotency.

46|5|Updated Jan 14, 2026
One-click install
npx skills add https://github.com/robinebers/skills --skill code-upgrade-robinebers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: code-upgrade
Source: https://github.com/robinebers/skills/tree/main/skills/code-upgrade
Command: npx skills add https://github.com/robinebers/skills --skill code-upgrade-robinebers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill unit provides a toolkit to streamline code reviews, audits, and improvements, ensuring code quality and adherence to engineering principles.

Core Features & Use Cases

  • Master Audit: Comprehensive review across the entire codebase or specific parts.
  • Architecture Audit: Map the app's architecture and identify risky areas.
  • Plan Checklist: Validate and simplify code plans before implementation.
  • Fail-Fast Audit: Uncover silent failures and improve error handling.
  • Bloat Audit: Identify and remove unnecessary code.
  • Duplicate Audit: Eliminate duplicated logic and values.
  • Retry Audit: Ensure idempotency in code execution.
  • Use Case: Before merging a pull request, use the Skill unit to perform a Master Audit to catch potential issues and improve code quality.

Quick Start

Run the master audit on the 'main' branch with the command: 'code-upgrade master-audit main'

Frequently Asked Questions about code-upgrade

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

FAQPage Schema
How do I perform a comprehensive code audit before merging a pull request?

A comprehensive code audit applies engineering principles across your codebase to improve quality and maintainability. You can run a master audit on a specific branch to catch potential issues and validate architecture before merging.

How do I detect silent failures and improve error handling in my codebase?

Detecting silent failures requires a fail-fast audit to uncover hidden execution errors and improve error handling. This process identifies risky areas where operations fail without appropriate exceptions or logging, ensuring robust architecture.

What is the best way to identify and remove duplicated logic during a code review?

Identifying duplicated logic uses a duplicate audit to eliminate repeated code blocks and values across the codebase. This audit streamlines code reviews by enforcing engineering principles and reducing maintainability risks.

How do I ensure idempotency in code execution for retry mechanisms?

Ensuring idempotency in code execution requires a retry audit to verify that operations can safely repeat without side effects. This checks your codebase to guarantee reliable execution during network retries or error recovery.

Do I need a specific project structure to run automated code quality checks?

Automated code quality checks require a codebase with a structured project layout and relevant code analysis tools. This structured environment enables the system to accurately map architecture, detect bloat, and validate engineering principles.

How do I map app architecture and identify risky areas for an upcoming refactor?

Mapping app architecture uses an architecture audit to visualize structural components and identify risky code areas. This audit highlights maintainability issues and unnecessary bloat, guiding your refactoring strategy effectively.