Sitelet https://github.com/awesome-opencode/awesome-opencode/pull/813
Skip to content

docs: add lazy-clean to plugins - #813

Open
JustasMonkev wants to merge 1 commit into
awesome-opencode:mainfrom
JustasMonkev:docs/add-lazy-clean
Open

JustasMonkev wants to merge 1 commit into
awesome-opencode:mainfrom
JustasMonkev:docs/add-lazy-clean

Conversation

@JustasMonkev

Copy link
Copy Markdown

Summary

 data/plugins/
+└── lazy-clean.yaml

Adds lazy-clean: configurable minimal-code guidance, review commands, and a dependency-free TS/JS heuristic checker.

The OpenCode plugin injects guidance each turn and registers slash commands. The checker runs manually in OpenCode. Installation needs the full checkout, including the shared hooks/ and skills/ directories.

Public repository, maintained October 3, 2026; no duplicate listing or PR found. Only the plugin YAML is added. The generated README and upstream source remain unchanged.

Evidence

  • Before: No data/plugins/lazy-clean.yaml entry in upstream bcc5c03cec19789b45ef9af4a969e3fe3fd7431b.
    After: The new entry passes the upstream validator, using dependencies from its lockfile:

    $ npm run validate -- data/plugins/lazy-clean.yaml
    Validating 1 YAML file(s)...
    ✓ data/plugins/lazy-clean.yaml
    ✓ All 1 file(s) passed validation.
    

    Independent Draft 7 schema/URI checks also pass. Tagline: 80/120 characters.

  • Before: A constructed strict-boolean demo produces three checker findings: redundant ternary, useless rethrow, and a heuristic boolean-comparison warning.
    After: Removing the ternary and rethrow leaves one deliberately retained heuristic finding:

     export function isEnabled(value) {
    -  try {
    -    return value === true ? true : false;
    -  } catch (error) {
    -    throw error;
    -  }
    +  return value === true;
     }

    Tested with the checker at lazy-clean 3dd964454b0f4eb8f2c7964810bc955299b1f083 on Node 24.19.0. Before/after agree for true, false, undefined, null, 0, 1, '', 'true', [], {}, and new Boolean(true). Changing the comparison to Boolean(value) makes the assertion test fail; restoring it passes. Both scans exit 1 because the strict comparison is intentionally retained to reject truthy non-booleans. This is a checker demonstration, not a model benchmark. Demo files are not part of this directory change.

Merge Danger

Door: two-way

Remove the YAML entry to roll back the listing.

Blast Radius: directory

Adds a community plugin entry to generated listings. No runtime code, dependencies, or installation behavior changes.

@JustasMonkev
JustasMonkev marked this pull request as ready for review October 5, 2026 15:00
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant