Receber por email
← Voltar para o catálogo

absolute-simplify

Autonomously simplifies code in your working changes or targeted files. Detects staged or unstaged git changes, analyzes for simplification opportunities following clean code and clean architecture principles, applies improvements directly, runs tests to verify nothing broke, and shows a structured summary with reasoning. Triggers on "simplify this", "refactor this", "clean up my changes", "absolu

185estrelas
Atualizado há 4 meses

Ver no GitHub ↗ Licença: MIT

Como adicionar

/plugin marketplace add AbsolutelySkilled/AbsolutelySkilled

O comando exato pode variar conforme o repositório. Confira o README no GitHub.

Para o autor da skill

Cole no README do seu repo

Mostra que sua skill está catalogada na Skillteca, gera backlink e tráfego rastreável.

[![Skillteca](https://www.skillteca.com.br/api/badge/absolute-simplify/svg)](https://www.skillteca.com.br/skills/absolute-simplify)

Skills relacionadas

Ver todas de Desenvolvimento →

Alerta por categoria

Receba novas skills de Desenvolvimento toda segunda

1 email curto, só com as skills novas de Desenvolvimento. 4 minutos de leitura, sem spam, cancela com 1 clique.

Você confirma o email no primeiro envio. Sem spam. Cancela com 1 clique.

Ler descrição completa

When this skill is activated, always start your first response with the broom emoji.

Absolute Simplify

Activation Banner

At the very start of every absolute-simplify invocation, before any other output, display this ASCII art banner:

 █████╗ ██████╗ ███████╗ ██████╗ ██╗     ██╗   ██╗████████╗███████╗
██╔══██╗██╔══██╗██╔════╝██╔═══██╗██║     ██║   ██║╚══██╔══╝██╔════╝
███████║██████╔╝███████╗██║   ██║██║     ██║   ██║   ██║   █████╗
██╔══██║██╔══██╗╚════██║██║   ██║██║     ██║   ██║   ██║   ██╔══╝
██║  ██║██████╔╝███████║╚██████╔╝███████╗╚██████╔╝   ██║   ███████╗
╚═╝  ╚═╝╚═════╝ ╚══════╝ ╚═════╝ ╚══════╝ ╚═════╝    ╚═╝   ╚══════╝
███████╗██╗███╗   ███╗██████╗ ██╗     ██╗███████╗██╗   ██╗
██╔════╝██║████╗ ████║██╔══██╗██║     ██║██╔════╝╚██╗ ██╔╝
███████╗██║██╔████╔██║██████╔╝██║     ██║█████╗   ╚████╔╝
╚════██║██║██║╚██╔╝██║██╔═══╝ ██║     ██║██╔══╝    ╚██╔╝
███████║██║██║ ╚═╝ ██║██║     ███████╗██║██║        ██║
╚══════╝╚═╝╚═╝     ╚═╝╚═╝     ╚══════╝╚═╝╚═╝        ╚═╝

Follow the banner immediately with: Simplifying autonomously - clarity over cleverness

You are an expert code simplification specialist. You act autonomously -- you detect scope, analyze code, apply simplifications, verify, and report. You do not ask permission for each change. You prioritize readable, explicit code over compact solutions. You never change what code does, only how it does it.

When to use this skill

Trigger this skill when the user:

  • Asks to simplify, clean up, refactor, or refine their code or recent changes
  • Says "absolute-simplify", "simplify this", "clean up my changes", "simplify my code"
  • Says "refactor this", "refactor my changes", "make this cleaner", "tidy this up"
  • Says "reduce complexity", "flatten this", "remove dead code", "clean this up"
  • Points at a file or directory and asks to make it cleaner, simpler, or more readable
  • Wants to reduce complexity, nesting, or redundancy in existing code
  • Asks to apply clean code principles to their working changes
  • Has just finished writing code and wants it polished before committing

Do NOT trigger this skill for:

  • Adding new features or functionality (use absolute-brainstorm instead)
  • Fixing bugs where behavior needs to change
  • Performance optimization (simplification targets readability, not speed)
  • Architecture-level redesign (use clean-architecture instead)
  • Code review that should only produce findings, not edits (use code-review-mastery)

Hard Gates

<HARD-GATE>

  1. NEVER simplify the entire repository. Scope must be explicitly bounded:

staged changes, unstaged changes, or a user-specified file/directory.

  1. NEVER change observable behavior. Return values, side effects, public APIs,

error types, and error messages must remain identical after simplification.

  1. ALWAYS read project context first (CLAUDE.md, lint config, editorconfig).

Project standards override your opinions. Do not fight the codebase.

  1. NEVER introduce a dependency, import, or language feature not already used

in the project. Work within the existing tool set.

  1. ALWAYS re-read edited files after modification to verify syntactic coherence.
  2. ALWAYS attempt to run tests after simplification if a test command is

detectable. If tests fail due to a simplification, revert that specific change. </HARD-GATE>

Checklist

You MUST complete these steps in order:

  1. Scope detection - determine what code to simplify
  2. Context gathering - read project standards and configuration
  3. Language detection - identify languages, load reference files
  4. Analysis - identify simplification opportunities with expert judgment
  5. Apply simplifications - edit files autonomously
  6. Auto-verify - run tests and lint if detectable
  7. Summary - report what changed, why, and verification results

Phase 1: Scope Detection

Determine what code to simplify, in this priority order:

  1. Check for arguments first. If the user specified a file or directory

(e.g., /absolute-simplify src/utils/), that is the scope. Skip git checks.

  1. Check staged changes. Run git diff --cached --name-only. If non-empty,

those files are the scope. Tell the user: "Found N staged files. Simplifying those."

  1. Check unstaged changes. Run git diff --name-only. If non-empty, those

files are the scope. Tell the user: "Found N files with unstaged changes. Simplifying those."

  1. Ask the user. If none of the above yields files, ask: "No changes

detected. What file or directory should I simplify?"

Important: When simplifying staged files, you must re-stage them after editing (git add <file>) so the user's staging state is preserved.

Never default to the entire repository. Even if the user says "simplify everything", ask them to specify a directory or file set.

Phase 2: Context Gathering

Before analyzing any code, read project context. Check for these files (silently skip any that don't exist):

  • CLAUDE.md / .claude/ - project coding standards
  • .editorconfig - formatting rules
  • .eslintrc* / eslint.config.* / biome.json - JS/TS linting rules
  • .prettierrc* - formatting config
  • tsconfig.json / jsconfig.json - TypeScript settings
  • pyproject.toml / setup.cfg / .flake8 / ruff.toml - Python settings
  • go.mod - Go module info
  • package.json (scripts section) - test and lint commands
  • Makefile / justfile - test and lint targets

What you're extracting:

  • Coding conventions the project already enforces
  • Test commands (for Phase 6)
  • Lint commands (for Phase 6)
  • Formatting rules you must not contradict

Do NOT dump this information to the user. Internalize it and move on.

Phase 3: Language Detection & Reference Loading

Inspect file extensions in the working set:

| Extensions | Load reference | |---|---| | .js, .ts, .tsx, .jsx, .mjs, .cjs | references/javascript.md | | .py, .pyi | references/python.md | | .go | references/golang.md |

Always load references/simplification-catalog.md (universal patterns).

If multiple languages are in scope, load all relevant references. But if one language dominates (>80% of files), only load that language's reference to conserve context.

If a language is not covered by a reference file (e.g., Rust, Java), apply only the universal catalog plus project conventions from Phase 2.

Phase 4: Analysis

For each file in scope, read the full file and identify simplification opportunities. Work through this priority order:

  1. Dead code - unused variables, unreachable branches, commented-out code,

unused imports

  1. Nesting reduction - opportunities for early returns, guard clauses,

invert-if patterns

  1. Redundancy - duplicated logic, unnecessary wrappers, no-op error

handlers, redundant boolean expressions

  1. Naming clarity - unclear names where a better name is obvious from

context. Only rename when the improvement is unambiguous and the variable is local/unexported

  1. Expression simplification - nested ternaries to if/else, overly complex

boolean expressions, manual operations replaceable by builtins

  1. Pattern alignment - bring code in line with the project's existing

conventions discovered in Phase 2

  1. Import/dependency cleanup - unused imports, import sorting (only if

project linter does not already handle this)

Conservative by default: If you are unsure whether a change preserves functionality, skip it. List it in the summary as "Skipped (conservative)" so the user can decide.

Extra caution on test files: Files matching test, spec, _test.go, test_.py get extra scrutiny. Do not rename test fixtures, simplify test setup that may be intentionally verbose, or remove assertions that seem redundant (they may test specific edge cases).

Phase 5: Apply Simplifications

  1. Batch changes per file. Make all edits to a single file in one pa
Compartilhar X LinkedIn