Skip to content

AbdoKnbGit/opencode-simplify

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

Simplify: AI-Powered Code Review and Cleanup

Simplify is a code review and quality enhancement system inspired by the Claude Code simplify skill. It automatically analyzes codebase changes for code reuse, quality, and performance efficiency, helping you clean up your code before pushing to production.


Installation and Setup

To install, download the simplify folder directly and drop it into your .opencode\skills directory.

Below is a demonstration of how the Simplify skill executes to review and optimize code:

Simplify Execution Demo


How It Works

Simplify functions in three key phases to analyze and improve your changes:

1. Code Reuse Review

  • Automatically scans existing utility files, shared modules, and adjacent directories to prevent rewriting duplicate helpers.
  • Detects hand-rolled logic (such as custom environment checks, ad-hoc string formatting, or custom path builders) that could be replaced by robust, pre-existing library methods.

2. Code Quality Review

  • Parameter Sprawl Prevention: Identifies functions with bloated parameters and flags refactoring opportunities.
  • State and UI Optimizations: Detects redundant application states, derived values that should not be stateful, and unnecessary wrapper nesting.
  • Anti-Pattern Detection: Flags stringly-typed patterns, leaky abstractions, and copy-paste code blocks.

3. Efficiency and Performance Review

  • Concurrency Detection: Finds independent operations running sequentially that could benefit from parallel execution.
  • Redundant Operations: Avoids standard time-of-check to time-of-use (TOCTOU) anti-patterns, repeated disk reads, and unbounded memory structures.
  • Change-Detection Guards: Prevents recurring no-op updates on frequent event loops or polling intervals.

About

An automated code review and quality enhancement skill inspired by the Claude Code simplify skill. Automatically analyzes codebase changes for code reuse, quality, and performance efficiency.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors