New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

opencode-code-simplifier

Package Overview
Dependencies
Maintainers
1
Versions
6
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

opencode-code-simplifier

Code simplifier plugin for OpenCode - simplifies and refines code for clarity while preserving functionality

latest
npmnpm
Version
1.5.0
Version published
Maintainers
1
Created
Source

opencode-code-simplifier

Code simplifier plugin for OpenCode. Simplifies and refines code for clarity while preserving functionality.

Install

Add to your opencode.json:

{
  "plugin": ["opencode-code-simplifier"]
}

Restart OpenCode. The plugin will auto-create skills/code-simplifier/SKILL.md and rules/code-simplifier.md on first load.

Usage

Ask OpenCode to simplify code using the tool:

Use simplify-code tool on path/to/file.js

Or just describe what you want:

Simplify the code in src/utils.js

Features

  • Reduces nesting and complexity
  • Removes debug artifacts (unconditional console.log, debugger, commented code)
  • Removes obvious comments
  • Preserves conditional logging (if debug, if isDev, etc.)
  • Converts nested ternaries to if/else chains
  • Applies language-specific best practices

What Gets Removed

TypeAction
console.log('debug')Removed
if (debug) console.log(...)Kept
debuggerRemoved
Commented-out codeRemoved
Obvious commentsRemoved
console.errorKept
Logger calls with levelsKept

License

MIT

Keywords

opencode

FAQs

Package last updated on 19 Mar 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts