Agent skill

Code Simplification

by sammcj in sammcj/agentic-coding

A skill your agent uses when you need to review and refactor code to make it simpler, more maintainable, and easier to understand.

Apache-2.0Auto-check passedDevelopment

Install Code Simplification

skills CLI
$ npx skills add sammcj/agentic-coding --skill code-simplification -a claude-code

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

GitHub CLI
$ gh skill install sammcj/agentic-coding code-simplification --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/sammcj/agentic-coding.git skills-src && mkdir -p .claude/skills && cp -r skills-src/Skills/code-simplification .claude/skills/code-simplification && 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-simplification
GitHub stars
162
Token cost
~856 tokens
SKILL.md length
418 words
Files
1
Skills in repo
65
Repo updated
First seen
Licence
Apache-2.0

At a glance

A skill your agent uses when you need to review and refactor code to make it simpler, more maintainable, and easier to understand.

  • Works in 6 steps: Identify Complexity Hotspots → Propose Simplifications → Maintain Functionality → …
  • You need to review and refactor code to make it simpler
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md
  • More maintainable

What it does

Code Simplification is an agent skill from sammcj/agentic-coding. Use this skill when you need to review and refactor code to make it simpler, more maintainable, and easier to understand. Helps with identifying overly complex solutions, unnecessary abstractions.

Its SKILL.md is about 860 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 simplification and Refactoring. The repository describes itself as: Agentic Coding Rules, Templates etc... The licence is Apache-2.0.

When your agent uses it

  • You need to review and refactor code to make it simpler
  • More maintainable
  • Easier to understand

Example prompts

  • “/code-simplification”

Workflow steps

6 steps, taken from the first numbered list in SKILL.md.

  1. Identify Complexity Hotspots
  2. Propose Simplifications
  3. Maintain Functionality
  4. Provide Clear Refactoring Steps
  5. Consider Context
  6. Consider requirements

What it can do on your machine

Read from SKILL.md and the folder at commit 415ac71. 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 Simplification loads about 856 tokens when it runs. Until then it costs about 54 tokens; SKILL.md has 418 words of instructions outside code blocks.

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

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 sammcj/agentic-coding at commit 415ac71, republished under its Apache-2.0 licence (© sammcj). 418 words, ~856 tokens.

Download SKILL.mdSave it as .claude/skills/code-simplification/SKILL.md (or your agent's skills folder).
name
code-simplification
description
Use this skill when you need to review and refactor code to make it simpler, more maintainable, and easier to understand. Helps with identifying overly complex solutions, unnecessary abstractions.

The information outlined here aims to help you become an expert system architect and developer with an unwavering commitment to code simplicity.

When focusing on code simplification it is your mission to identify and eliminate unnecessary complexity wherever it exists, transforming convoluted solutions into elegant, maintainable code.

Your core principles:

  • Simplicity First: Every line of code should have a clear purpose. If it doesn't contribute directly to solving the problem, it shouldn't exist.
  • Readability Over Cleverness: Code is read far more often than it's written. Optimise for human understanding, not for showing off technical prowess.
  • Minimal Abstractions: Only introduce abstractions when they genuinely reduce complexity. Premature abstraction is a form of complexity.
  • Clear Intent: Code should express what it does, not how it does it. The 'why' should be obvious from reading the code.

When reviewing code, you will:

  1. Identify Complexity Hotspots:

    • Deeply nested conditionals or loops
    • Functions doing too many things
    • Unnecessary design patterns or abstractions
    • Overly generic solutions for specific problems
    • Complex boolean logic that could be simplified
    • Redundant code or repeated patterns
  2. Propose Simplifications:

    • Break down complex functions into smaller, focused ones
    • Replace nested conditionals with early returns or guard clauses
    • Eliminate intermediate variables that don't add clarity
    • Simplify data structures when possible
    • Remove unused parameters, methods, or classes
    • Convert complex boolean expressions to well-named functions
  3. Maintain Functionality:

    • Ensure all simplifications preserve the original behaviour
    • Consider edge cases and error handling
    • Maintain or improve performance characteristics
    • Keep necessary complexity that serves a real purpose
  4. Provide Clear Refactoring Steps:

    • Explain why each change improves simplicity
    • Show before/after comparisons
    • Prioritise changes by impact
    • Suggest incremental refactoring when dealing with large changes
  5. Consider Context:

    • Respect project-specific patterns from CLAUDE.md files
    • Align with established coding standards
    • Consider the skill level of the team maintaining the code
    • Balance simplicity with other requirements like performance or security
  6. Consider requirements:

    • Don't remove essential requirements for the proposed or implemented solution.
    • Ensure that no functionality is lost. If you want to remove functionality, ask for feedback whether that is required.
Show full SKILL.md (77 more words)Show less

Your communication style:

  • Be direct and specific about complexity issues
  • Provide concrete examples of simplified code
  • Explain the benefits of each simplification
  • Acknowledge when complexity is necessary and justified
  • Focus on actionable improvements, not criticism

Remember: The best code is not the code that does the most, but the code that does exactly what's needed with the least cognitive overhead. Every simplification you suggest should make the codebase more approachable for the next developer who reads it.

© sammcj, 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 Skills/code-simplification of sammcj/agentic-coding.

Open the folder on GitHubat commit 415ac71

Compare with similar skills

Code Simplification 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 Simplification compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Code Simplification this skillsammcj/agentic-coding162—~856Automated safety check: PassApache-2.0
PonytailDavidObando/gsharp5648 repos~1.7kAutomated safety check: PassMIT
Code Simplification for ego-litecitrolabs/ego-lite17k—~1.2kAutomated safety check: PassMIT
Refactor Pass for Simplicitystar-history/star-history9.6k1 repos~168Automated safety check: PassMIT
RTK Rust Code Simplifierrtk-ai/rtk83k—~1.1kAutomated safety check: PassApache-2.0
Deslopmillionco/react-doctor15k—~1.2kAutomated safety check: PassCustom licence

Similar skills

  • Ponytail

    DavidObando/gsharp

    Forces the laziest solution that actually works, simplest, shortest, most minimal.

    564 GitHub starsUsed in 8 repos~1.7k tokens
    DevelopmentAuto-check passed
  • Finds and implements evidence-backed simplifications in the ego-lite repository, such as dead code, duplicated state and speculative abstractions, without hiding behavior changes.

    17k GitHub stars~1.2k tokensUpdated 14 days ago
    DevelopmentAuto-check passed
  • Refactor Pass for Simplicity

    star-history/star-history

    Perform a refactor pass focused on simplicity after recent changes. Use when the user asks for a refactor/cleanup pass, simplification, or dead-code removal…

    9.6k GitHub starsUsed in 1 repo~168 tokens
    DevelopmentAuto-check passed
  • Reviews RTK's Rust code for over-engineering and verbose patterns, applying idioms like iterator chains and early returns while protecting a specific list of constraints from being simplified away.

    83k GitHub stars~1.1k tokensUpdated yesterday
    DevelopmentAuto-check passed
  • Deslop

    millionco/react-doctor

    Simplify and refine recently modified code while preserving functionality.

    15k GitHub stars~1.2k tokensUpdated today
    DevelopmentAuto-check passed
  • Simplify Codebase

    tt-a1i/simplify-codebase

    Simplification audit or authorized codebase simplification whose stated objective is to remove accidental complexity.

    504 GitHub stars~2.2k tokensUpdated 1 mo ago
    DevelopmentAuto-check passed

More from sammcj/agentic-coding

All 65 skills in this repo
  • Yue2 Music

    sammcj/agentic-coding

    A skill your agent uses when generating songs with YuE2, covering a recording via SheetSage2 audio-to-ABC, editing a score or lyrics with melody preservation, or building a reproducible listening…

    162 GitHub stars~2.3k tokensUpdated 2 days ago
    Auto-check passed
  • Bento Slides

    sammcj/agentic-coding

    A skill your agent uses when creating or editing Bento (.bento.html) slide decks, including any request for a single-file HTML slide deck.

    162 GitHub stars~2.9k tokensUpdated 2 days ago
    Auto-check passed
  • Idrive Backup

    sammcj/agentic-coding

    A skill your agent uses whenever the user wants you to manage, discuss or diagnose iDrive Backup configuration on macOS

    162 GitHub stars~1.7k tokensUpdated 2 days ago
    Auto-check: notes
  • Piper Tts Training

    sammcj/agentic-coding

    Train custom TTS voices for Piper (ONNX format) using fine-tuning or from-scratch approaches.

    162 GitHub stars~1.4k tokensUpdated 2 days ago
    Auto-check passed
  • PPTX To Md

    sammcj/agentic-coding

    Convert a PPTX slide deck into per-slide markdown that preserves both the verbatim text and the meaning of embedded screenshots, diagrams and charts in their original layout positions.

    162 GitHub stars~1.8k tokensUpdated 2 days ago
    Auto-check passed
  • Skill Creator Primer

    sammcj/agentic-coding

    You MUST load this skill before the skill-creator skill AND before making ANY change to, or conducting a review of ANY Agent Skill.

    162 GitHub stars~9.8k tokensUpdated 2 days ago
    Auto-check passed

Categories

Questions about Code Simplification

What does Code Simplification do?

A skill your agent uses when you need to review and refactor code to make it simpler, more maintainable, and easier to understand. Code Simplification is an agent skill from sammcj/agentic-coding. Use this skill when you need to review and refactor code to make it simpler, more maintainable, and easier to understand.

When should I use Code Simplification?

Code Simplification fits situations like: you need to review and refactor code to make it simpler; more maintainable; easier to understand.

How do I install Code Simplification in Claude Code?

Run `npx skills add sammcj/agentic-coding --skill code-simplification -a claude-code`. Or copy the skill folder (Skills/code-simplification in sammcj/agentic-coding) into .claude/skills/code-simplification in your project. Claude Code loads it when a task matches its description.

How do I install Code Simplification in Codex?

Run `npx skills add sammcj/agentic-coding --skill code-simplification -a codex`. Or copy the skill folder (Skills/code-simplification in sammcj/agentic-coding) into .agents/skills/code-simplification in your project. Codex loads it when a task matches its description.

Can I use Code Simplification 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 sammcj/agentic-coding --skill code-simplification -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-simplification, .gemini/skills/code-simplification, .github/skills/code-simplification and .opencode/skills/code-simplification in your project.

What does Code Simplification need to run?

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

Does Code Simplification 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 Simplification 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 Simplification use?

Code Simplification 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 Simplification use?

About 856 tokens (SKILL.md is roughly 3.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 Simplification?

Skills that share tags, products or a category with Code Simplification: Ponytail (DavidObando/gsharp, 564 stars), Code Simplification for ego-lite (citrolabs/ego-lite, 17k stars), Refactor Pass for Simplicity (star-history/star-history, 9.6k stars) and RTK Rust Code Simplifier (rtk-ai/rtk, 83k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Code Simplification?

sammcj (a GitHub user) maintains it in sammcj/agentic-coding, which has 162 GitHub stars. The repository holds 65 skills in this directory. The repository was last updated on October 5, 2026.

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