Agent skill

Code Compressor

by Devolutions in Devolutions/devolutions-gateway

Aggressively review changed code for unnecessary complexity and propose smaller, clearer, behavior-preserving alternatives.

Apache-2.0Auto-check passedDevelopment

Install Code Compressor

skills CLI
$ npx skills add Devolutions/devolutions-gateway --skill code-compressor -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Devolutions/devolutions-gateway code-compressor --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Devolutions/devolutions-gateway.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/code-compressor .claude/skills/code-compressor && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
code-compressor
GitHub stars
162
Token cost
~348 tokens
SKILL.md length
140 words
Files
1
Skills in repo
19
Repo updated
First seen
Licence
Apache-2.0

At a glance

Aggressively review changed code for unnecessary complexity and propose smaller, clearer, behavior-preserving alternatives.

  • Refactor assessments
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • Any diff where simplification
  • Flatter control flow

What it does

Code Compressor is an agent skill from Devolutions/devolutions-gateway. Aggressively review changed code for unnecessary complexity and propose smaller, clearer, behavior-preserving alternatives. Use for code reviews, refactor assessments, or any diff where simplification, deletion, reuse, flatter control flow, or fewer abstractions may improve the implementation.

Its SKILL.md is about 350 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Development, covering Code review. The repository describes itself as: A blazing fast relay server adaptable to different protocols and desired levels of traffic inspection. The licence is Apache-2.0.

When your agent uses it

  • Refactor assessments
  • Any diff where simplification
  • Flatter control flow
  • Fewer abstractions may improve the implementation

Example prompts

  • “/code-compressor”

What it can do on your machine

Read from SKILL.md and the folder at commit 91b8f90. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Code Compressor loads about 348 tokens when it runs. Until then it costs about 78 tokens; SKILL.md has 140 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~78
When it runs · the whole SKILL.md, loaded when a task matches
~348

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Devolutions/devolutions-gateway at commit 91b8f90, republished under its Apache-2.0 licence (© Devolutions). 140 words, ~348 tokens.

Download SKILL.mdSave it as .claude/skills/code-compressor/SKILL.md (or your agent's skills folder).
name
code-compressor
description
Aggressively review changed code for unnecessary complexity and propose smaller, clearer, behavior-preserving alternatives. Use for code reviews, refactor assessments, or any diff where simplification, deletion, reuse, flatter control flow, or fewer abstractions may improve the implementation.

Code compressor

Treat every added branch, state, abstraction, helper, conversion, and dependency as complexity that must earn its place. Look for duplicated logic, speculative generality, needless indirection, over-modeled state, tangled control flow, verbose data transformations, and code that existing APIs can replace.

Be aggressive in searching, but evidence-driven in reporting. Recommend a simplification only when you can describe a concrete, smaller alternative and explain why it preserves required behavior. Account for error handling, ownership, lifetimes, performance, public API stability, and repository conventions. Do not trade explicit correctness or necessary protocol detail for fewer lines.

Report each opportunity with its location, the complexity it removes, the proposed shape, and any meaningful tradeoff. Separate optional compression opportunities from correctness defects. Omit formatting, naming preferences, and vague rewrite requests. If the code is already close to the simplest correct form, return no findings.

© Devolutions, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/code-compressor of Devolutions/devolutions-gateway.

Open the folder on GitHubat commit 91b8f90

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders. This page covers the copy in Devolutions/devolutions-gateway, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Code Compressor next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Code Compressor compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Compressor this skillDevolutions/devolutions-gateway162—~348Automated safety check: PassApache-2.0
PR Babysitteropeninterpreter/openinterpreter69k3 repos~4.2kAutomated safety check: PassApache-2.0
Code Review ChecklistshareAI-lab/learn-claude-code78k5 repos~1.1kAutomated safety check: PassMIT
Backend Code Reviewlangflow-ai/langflow155k—~3.5kAutomated safety check: NotesMIT
Mole Bug Patternstw93/Mole70k—~2kAutomated safety check: PassGPL-3.0
Backend Code Reviewlanggenius/dify158k—~676Automated safety check: PassCustom licence

Similar skills

  • PR Babysitter

    openinterpreter/openinterpreter

    Watches an open GitHub pull request until it merges, handling review comments, diagnosing CI failures and retrying flaky checks along the way.

    69k GitHub starsUsed in 3 repos~4.2k tokens
    DevelopmentAuto-check passed
  • Code Review Checklist

    shareAI-lab/learn-claude-code

    Reviews code against a five-part checklist covering security, correctness, performance, maintainability and testing, and reports findings in a fixed format.

    78k GitHub starsUsed in 5 repos~1.1k tokens
    DevelopmentAuto-check passed
  • Backend Code Review

    langflow-ai/langflow

    Review backend code for quality, security, maintainability, and best practices based on established checklist rules.

    155k GitHub stars~3.5k tokensUpdated today
    DevelopmentAuto-check: notes
  • A catalog of recurring bug shapes in the Mole Mac cleaner, used to review safety-sensitive diffs for deletion safety, unbounded commands, shell traps and weak tests.

    70k GitHub stars~2k tokensUpdated today
    DevelopmentAuto-check passed
  • Backend Code Review

    langgenius/dify

    Reviews backend code under api/ for concrete, reproducible defects, routes to rule packs for architecture, schema, repositories and SQLAlchemy, and ranks findings from P0 to P3.

    158k GitHub stars~676 tokensUpdated today
    DevelopmentAuto-check passed
  • WooCommerce Code Review

    woocommerce/woocommerce

    Reviews WooCommerce code changes against the project's standards, flagging backend PHP architecture, naming, documentation, data integrity and testing violations.

    11k GitHub starsUsed in 3 repos~1.1k tokens
    DevelopmentAuto-check passed

More from Devolutions/devolutions-gateway

All 19 skills in this repo
  • Tessl Skill Linting

    Devolutions/devolutions-gateway

    Review, lint, create, edit, refine, optimize, compress, or validate any agent skill in this repository, including any SKILL.md.

    162 GitHub stars~740 tokensUpdated today
    Auto-check passed
  • Build Agent Msi

    Devolutions/devolutions-gateway

    Build the Devolutions Agent Windows MSI installer locally. An agent skill from Devolutions/devolutions-gateway.

    162 GitHub stars~1.5k tokensUpdated today
    Auto-check passed
  • Changelog To Jira

    Devolutions/devolutions-gateway

    Creates missing DGW Jira tickets from CHANGELOG.md entries and updates the file with the new ticket links.

    162 GitHub stars~2.7k tokensUpdated today
    Auto-check passed
  • Commit And PR Conventions

    Devolutions/devolutions-gateway

    Follow the adopted commit and pull-request conventions. An agent skill from Devolutions/devolutions-gateway.

    162 GitHub stars~739 tokensUpdated today
    Auto-check passed
  • Prepare Release

    Devolutions/devolutions-gateway

    Prepares a Devolutions Gateway / Devolutions Agent release commit: bumps the version, generates and inserts the changelog, creates Jira tickets, generates the ToolBox changelog, and produces the…

    162 GitHub stars~1.8k tokensUpdated today
    Auto-check passed
  • Build Gateway Msi

    Devolutions/devolutions-gateway

    Build the Devolutions Gateway Windows MSI installer locally.

    162 GitHub stars~2.3k tokensUpdated today
    Auto-check: warnings

Categories

Questions about Code Compressor

What does Code Compressor do?

Aggressively review changed code for unnecessary complexity and propose smaller, clearer, behavior-preserving alternatives. Code Compressor is an agent skill from Devolutions/devolutions-gateway. Aggressively review changed code for unnecessary complexity and propose smaller, clearer, behavior-preserving alternatives.

When should I use Code Compressor?

Code Compressor fits situations like: refactor assessments; any diff where simplification; flatter control flow; fewer abstractions may improve the implementation.

How do I install Code Compressor in Claude Code?

Run `npx skills add Devolutions/devolutions-gateway --skill code-compressor -a claude-code`. Or copy the skill folder (.agents/skills/code-compressor in Devolutions/devolutions-gateway) into .claude/skills/code-compressor in your project. Claude Code loads it when a task matches its description.

How do I install Code Compressor in Codex?

Run `npx skills add Devolutions/devolutions-gateway --skill code-compressor -a codex`. Or copy the skill folder (.agents/skills/code-compressor in Devolutions/devolutions-gateway) into .agents/skills/code-compressor in your project. Codex loads it when a task matches its description.

Can I use Code Compressor in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Devolutions/devolutions-gateway --skill code-compressor -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/code-compressor, .gemini/skills/code-compressor, .github/skills/code-compressor and .opencode/skills/code-compressor in your project.

What does Code Compressor need to run?

SKILL.md names no scripts, command-line tools or credentials: Code Compressor is instructions for the agent only.

Does Code Compressor access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Code Compressor safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Code Compressor use?

Code Compressor is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Code Compressor use?

About 348 tokens (SKILL.md is roughly 1.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Code Compressor?

Skills that share tags, products or a category with Code Compressor: PR Babysitter (openinterpreter/openinterpreter, 69k stars), Code Review Checklist (shareAI-lab/learn-claude-code, 78k stars), Backend Code Review (langflow-ai/langflow, 155k stars) and Mole Bug Patterns (tw93/Mole, 70k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Compressor?

Devolutions (a GitHub organization) maintains it in Devolutions/devolutions-gateway, which has 162 GitHub stars. The repository holds 19 skills in this directory. The repository was last updated on October 9, 2026.

Source: Devolutions/devolutions-gateway on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.