-
Notifications
You must be signed in to change notification settings - Fork 0
feat: add code-simplifier plugin (qyl-tuned, replaces Anthropic original) #157
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "name": "code-simplifier", | ||
| "version": "1.0.0", | ||
| "description": "Code simplification agent tuned to qyl engineering principles. Measures elegance as problem-complexity / solution-complexity. Zero suppression, compile-time over runtime, less code is better code.", | ||
| "author": { | ||
| "name": "ANcpLua" | ||
| }, | ||
| "repository": "https://github.com/ANcpLua/ancplua-claude-plugins", | ||
| "license": "MIT", | ||
| "keywords": [ | ||
| "simplify", | ||
| "elegance", | ||
| "refactor", | ||
| "code-quality", | ||
| "qyl" | ||
| ], | ||
| "agents": [ | ||
| "./agents/code-simplifier.md" | ||
| ] | ||
| } |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,28 @@ | ||
| # code-simplifier | ||
|
|
||
| Code simplification agent tuned to qyl engineering principles. | ||
|
|
||
| ## Philosophy | ||
|
|
||
| Elegance = problem complexity / solution complexity. High ratio is good. This agent finds low-ratio code and fixes it. | ||
|
|
||
| ## How it differs from Anthropic's code-simplifier | ||
|
|
||
| | Aspect | Anthropic | qyl-tuned | | ||
| |--------|-----------|-----------| | ||
| | Language | JS/React-centric (ES modules, arrow functions, Props types) | Language-agnostic — reads CLAUDE.md | | ||
| | Standards | Hardcoded conventions | Project's CLAUDE.md is the source of truth | | ||
| | Elegance metric | None — general "clarity" | Problem complexity / solution complexity ratio | | ||
| | Suppression | Not mentioned | Zero tolerance — fix the code, not the warning | | ||
| | Abstractions | "Maintain balance" | Less code is better. Delete before abstracting | | ||
| | Type safety | Not mentioned | Compile-time over runtime. Make invalid states unrepresentable | | ||
|
|
||
| ## Agent | ||
|
|
||
| | Agent | Model | Purpose | | ||
| |-------|-------|---------| | ||
| | `code-simplifier` | Opus | Simplify recently modified code | | ||
|
|
||
| ## Usage | ||
|
|
||
| The agent activates when the skill `simplify` is invoked. It reads the project's CLAUDE.md, identifies recent changes, scores elegance, and simplifies candidates. | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
This usage line tells users to invoke a Useful? React with 👍 / 👎. |
||
| Original file line number | Diff line number | Diff line change | ||||||
|---|---|---|---|---|---|---|---|---|
| @@ -0,0 +1,53 @@ | ||||||||
| --- | ||||||||
| name: code-simplifier | ||||||||
| description: Simplifies recently modified code using qyl engineering principles. Measures elegance as problem-complexity / solution-complexity. Language-agnostic — reads CLAUDE.md for project standards. | ||||||||
| model: opus | ||||||||
|
||||||||
| model: opus | |
| model: opus | |
| tools: [Read, Grep, Glob, Bash, Write, Edit] |
| Original file line number | Diff line number | Diff line change | ||||
|---|---|---|---|---|---|---|
| @@ -0,0 +1,5 @@ | ||||||
| [project] | ||||||
| name = "ancplua-claude-plugins" | ||||||
| version = "0.1.0" | ||||||
| requires-python = ">=3.14" | ||||||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The specified Python version
Suggested change
|
||||||
| dependencies = [] | ||||||
|
Comment on lines
+1
to
+5
|
||||||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The README claims "The agent activates when the skill
simplifyis invoked," but nosimplifyskill exists in this plugin — there is noskills/directory, noSKILL.md, and no"skills"entry inplugin.json. Either create askills/simplify/SKILL.md(and declare"skills": "./skills"in plugin.json, per the convention inplugins/exodia/.claude-plugin/plugin.jsonandplugins/otelwiki/.claude-plugin/plugin.json), or update this line to accurately describe how the agent is invoked (e.g., by referencing the agent directly).