Skip to content

feat: add code-simplifier plugin (qyl-tuned, replaces Anthropic original)#157

Merged
ANcpLua merged 1 commit intomainfrom
feat/code-simplifier
Mar 6, 2026
Merged

feat: add code-simplifier plugin (qyl-tuned, replaces Anthropic original)#157
ANcpLua merged 1 commit intomainfrom
feat/code-simplifier

Conversation

@ANcpLua
Copy link
Owner

@ANcpLua ANcpLua commented Mar 6, 2026

What

Adds code-simplifier plugin tuned to qyl engineering principles. Replaces Anthropic's JS/React-centric code-simplifier with a language-agnostic version.

Key differences from Anthropic's code-simplifier

Aspect Anthropic qyl-tuned
Language JS/React-centric Language-agnostic — reads CLAUDE.md
Standards Hardcoded conventions Project's CLAUDE.md is source of truth
Elegance metric None Problem complexity / solution complexity
Suppression Not mentioned Zero tolerance
Abstractions "Maintain balance" Less code is better. Delete before abstracting
Type safety Not mentioned Compile-time over runtime

Changes

  • New plugin: plugins/code-simplifier/ (plugin.json + 1 Opus agent + README)
  • Updated marketplace.json (11 → 12 plugins, 24 → 25 agents)
  • Updated CHANGELOG.md
  • Old code-simplifier@claude-plugins-official uninstalled locally

Copilot AI review requested due to automatic review settings March 6, 2026 14:04
@gemini-code-assist
Copy link

Summary of Changes

Hello, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request introduces a new code-simplifier plugin, tailored to specific qyl engineering principles. This plugin aims to enhance code quality and maintainability by simplifying code based on a defined elegance metric, moving away from language-specific conventions to a more universal, project-standard-driven approach.

Highlights

  • New Code Simplification Plugin: A new code-simplifier plugin has been added, designed to enhance code elegance and maintainability.
  • Qyl Engineering Principles: The plugin is specifically tuned to qyl engineering principles, emphasizing concise code, compile-time safety, and a strict 'zero suppression' policy for warnings.
  • Language-Agnostic Approach: This new version replaces a previous JS/React-centric code simplifier with a language-agnostic approach, deriving project standards from a CLAUDE.md file.
  • Elegance Metric Defined: The plugin introduces a clear metric for code elegance, defining it as the ratio of problem complexity to solution complexity.
Changelog
  • .claude-plugin/marketplace.json
    • Updated the marketplace description to reflect the new plugin count and its purpose.
    • Registered the new code-simplifier plugin with its description, version, and source.
  • CHANGELOG.md
    • Added a new entry under "Added" for the code-simplifier plugin, detailing its version, purpose, and key features.
  • plugins/code-simplifier/.claude-plugin/plugin.json
    • Created a new plugin manifest file for code-simplifier, defining its name, version, description, author, repository, license, keywords, and associated agent.
  • plugins/code-simplifier/README.md
    • Created a README file providing an overview of the code-simplifier plugin, its philosophy, key differences from Anthropic's version, agent details, and usage instructions.
  • plugins/code-simplifier/agents/code-simplifier.md
    • Created the agent definition file, outlining the code-simplifier agent's role, principles (less code, complexity kills, compile-time over runtime, zero suppression, fix root causes), operational steps, and what it explicitly avoids.
  • pyproject.toml
    • Created a new pyproject.toml file to define project metadata, including name, version, Python requirements, and dependencies.
Activity
  • No activity has occurred on this pull request since its creation.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

@ANcpLua ANcpLua merged commit 12e49e7 into main Mar 6, 2026
12 of 14 checks passed
@ANcpLua ANcpLua deleted the feat/code-simplifier branch March 6, 2026 14:05
Copy link

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request introduces a new code-simplifier plugin, which is language-agnostic and based on specific engineering principles. The changes include adding the plugin's definition, agent instructions, and documentation, as well as updating the marketplace manifest and changelog. The implementation is well-structured and the documentation is clear. I have one critical point of feedback regarding the Python version requirement in the newly added pyproject.toml file, which would prevent the project from being installed.

Note: Security Review has been skipped due to the limited scope of the PR.

[project]
name = "ancplua-claude-plugins"
version = "0.1.0"
requires-python = ">=3.14"

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

critical

The specified Python version requires-python = ">=3.14" is invalid as Python 3.14 has not been released. This will prevent the project from being installed with any current Python version. Please specify a requirement for a released Python version, for example >=3.12.

Suggested change
requires-python = ">=3.14"
requires-python = ">=3.12"

Copy link

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR adds a new code-simplifier plugin to the Claude Code plugin marketplace. The plugin provides a language-agnostic code simplification agent tuned to "qyl engineering principles," replacing Anthropic's JS/React-centric code-simplifier. The agent measures code elegance as problem-complexity divided by solution-complexity and emphasizes principles like zero suppression tolerance and compile-time over runtime safety. The PR also includes an unrelated pyproject.toml addition.

Changes:

  • New plugin plugins/code-simplifier/ with a plugin manifest, one Opus agent definition, and a README
  • Updated marketplace.json to register the new plugin (11→12 plugins, 24→25 agents)
  • Updated CHANGELOG.md with the new plugin entry under [Unreleased]

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated 3 comments.

Show a summary per file
File Description
plugins/code-simplifier/.claude-plugin/plugin.json Plugin manifest with required fields, keywords, and agent declaration
plugins/code-simplifier/agents/code-simplifier.md Agent definition with simplification principles, workflow steps, and constraints
plugins/code-simplifier/README.md User-facing documentation with philosophy, comparison table, and usage
.claude-plugin/marketplace.json Registers code-simplifier as the 12th plugin, updates description counts
CHANGELOG.md Adds entry for code-simplifier under [Unreleased] → Added
pyproject.toml New top-level Python project file (unrelated to the plugin)


## 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.
Copy link

Copilot AI Mar 6, 2026

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 simplify is invoked," but no simplify skill exists in this plugin — there is no skills/ directory, no SKILL.md, and no "skills" entry in plugin.json. Either create a skills/simplify/SKILL.md (and declare "skills": "./skills" in plugin.json, per the convention in plugins/exodia/.claude-plugin/plugin.json and plugins/otelwiki/.claude-plugin/plugin.json), or update this line to accurately describe how the agent is invoked (e.g., by referencing the agent directly).

Suggested change
The agent activates when the skill `simplify` is invoked. It reads the project's CLAUDE.md, identifies recent changes, scores elegance, and simplifies candidates.
Use the `code-simplifier` agent to read the project's CLAUDE.md, identify recent changes, score elegance, and simplify candidates.

Copilot uses AI. Check for mistakes.
Comment on lines +1 to +5
[project]
name = "ancplua-claude-plugins"
version = "0.1.0"
requires-python = ">=3.14"
dependencies = []
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The pyproject.toml is not mentioned in the PR description, which describes only the code-simplifier plugin, marketplace.json, and CHANGELOG.md changes. This file is unrelated to the code-simplifier plugin being added and appears to be an unrelated change bundled into this PR. Additionally, requires-python = ">=3.14" is very aggressive — the existing Python code in this repo (e.g., plugins/elegance-pipeline/elegance_pipeline/pipeline.py, plugins/hookify/hookify/core/) uses standard Python 3.9+ features. This minimum version would unnecessarily prevent running on Python 3.12/3.13 which are the current stable releases. Consider either removing this file from this PR (it's unrelated to code-simplifier) or lowering to >=3.10 or >=3.12 to match what the existing code actually requires.

Copilot uses AI. Check for mistakes.
---
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
Copy link

Copilot AI Mar 6, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The agent frontmatter is missing the tools: field. Every other agent in this repo declares which tools it can use (e.g., plugins/council/agents/opus-captain.md declares Task, Read, WebSearch, WebFetch, Bash; plugins/elegance-pipeline/agents/elegance-implementer.md declares Read, Write, Edit, Grep, Glob, Bash). This agent's workflow requires reading files (step 1 and 2), running git diff (step 2), and editing code (step 4), so it should declare the appropriate tools (at minimum Read, Grep, Glob, Bash, Write, Edit).

Suggested change
model: opus
model: opus
tools: [Read, Grep, Glob, Bash, Write, Edit]

Copilot uses AI. Check for mistakes.
Copy link

@chatgpt-codex-connector chatgpt-codex-connector bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d796f59df6

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".


## 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.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Provide a real simplify entrypoint

This usage line tells users to invoke a simplify skill, but this commit only adds an agent and the plugin manifest has no skills registration (plugins/code-simplifier/.claude-plugin/plugin.json only lists agents). In practice, users following the README will look for a non-existent skill/command and the new plugin appears broken; either add the skill/command entrypoint or update the usage text to the actual invocation path.

Useful? React with 👍 / 👎.

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.

2 participants