askill
code-simplifier

code-simplifierSafety 95Repository

Behavior-preserving refactor workflow for reducing complexity and improving readability.

0 stars
1.2k downloads
Updated 2/13/2026

Package Files

Loading files...
SKILL.md

Code Simplifier

When to use

  • Refactoring for readability/maintainability without feature changes.
  • Reducing nesting, duplication, and cognitive load in localized areas.

Inputs expected

  • Target files/functions and refactor scope.
  • Existing tests or validation commands.

Workflow

  1. Define invariants:
  • Record behavior and public interface constraints to preserve.
  1. Apply focused simplifications:
  • Guard clauses for deep nesting.
  • Extract clear helper functions.
  • Improve local naming clarity.
  • Remove safe dead code.
  1. Validate equivalence:
  • Run relevant tests/checks to verify behavior preservation.

Output format (evidence required)

  • What was simplified (before/after intent).
  • Files changed.
  • Behavior-preservation evidence (tests/validation).

Quality gate / halt conditions

  • Do not change business behavior or public APIs unless explicitly requested.
  • Halt if required behavior cannot be validated with confidence.

Install

Download ZIP
Requires askill CLI v1.0+

AI Quality Score

88/100Analyzed 2/20/2026

Well-structured reference skill for behavior-preserving code refactoring with clear workflow, quality gates, and output requirements. The skill provides actionable guidance through structured steps (define invariants → apply simplifications → validate equivalence), includes safety mechanisms to prevent behavior changes, and has good reusability across projects. Minor gaps include no specific tooling/commands and the github-actions tag seems misaligned with a general refactoring skill.

95
85
90
85
90

Metadata

Licenseunknown
Version-
Updated2/13/2026
PublisherSuperCorks

Tags

github-actions