Przejdź do treści
Biblioteka skilli
Programowanie · Budowanie i kod

code-simplifier

/code-simplifier

Upraszcza niedawno zmieniony kod pod kątem czytelności i spójności, bez zmiany zachowania, przed szerszym przeglądem.

Repozytorium
custom-skills ↗
Licencja
MIT
Ostatnia zmiana repozytorium
18.10.2026

Ocena i bezpieczeństwo

90/ 100Klasa: dobry
Format25 / 25
Frontmatter z nazwą i opisem, poprawna nazwa, opis do 1024 znaków, nazwa zgodna z folderem.
Odkrywalność25 / 25
Opis mówi, kiedy użyć skilla, ma sensowną długość i jest w 3. osobie.
Treść25 / 35
Co najmniej 150 słów i do 500 linii, nagłówki, listy kroków, przykłady albo kod.
Higiena15 / 15
Bez zaślepek typu TODO, bez ścieżek Windows, z licencją.
Ryzykobrak sygnałów w skanie
Pliki w paczce
3
Skrypty
0
Komentarze HTML
0
Adresy URL w SKILL.md
0
Przestarzałość

Brak sygnałów. Repozytorium zmienione 18.10.2026, bez odwołań do wycofanych modeli i API.

Licencja

MIT, otwarta: można używać i zmieniać, z zachowaniem informacji o autorze.

Co robi i kiedy

Upraszcza niedawno zmieniony kod pod kątem czytelności i spójności, bez zmiany zachowania, przed szerszym przeglądem.

Oryginalny opis (EN)

Use when user asks to simplify, clean up, or refactor recently modified code for readability, consistency, or maintainability without changing behavior, especially after implementation and before broader review.

Jak działa

  1. Overview
  2. When to Use
  3. Workflow
  4. Quick Reference
  5. Common Mistakes
  6. Upstream Reference
Sekcje z nagłówków SKILL.md, w oryginale · 78 linii, 505 słów
Podgląd SKILL.md
---
name: code-simplifier
description: Use when user asks to simplify, clean up, or refactor recently modified code for readability, consistency, or maintainability without changing behavior, especially after implementation and before broader review.
---

# Code Simplifier

## Overview

Simplify touched code without changing behavior. Prefer explicit, readable code over clever or overly compact rewrites, and keep scope limited to the files or sections the user just changed unless they request broader cleanup.

## When to Use

- The user asks to "simplify", "clean up", "tidy", or "refactor without changing behavior"
- Recently modified code works, but has duplication, deep nesting, noisy comments, or inconsistent naming
- A feature is complete and you want a maintainability pass before formal review
- You want one focused simplification pass, not a multi-agent review workflow

Do not use this skill for:
- Behavior changes, feature work, or bug fixes that alter requirements
- Large architectural redesigns across untouched modules
- Spec alignment review, security review, or performance review
- Three-reviewer cleanup workflows; use `simplify` for that

## Workflow

### 1. Define the Scope

- Use user-specified files or ranges if provided
- Otherwise inspect recent changes with `git diff`, `git diff --name-only`, or `git status`
- Default to touched code only; do not expand into unrelated cleanup

### 2. Read Local Standards

- Check project instructions first such as `AGENTS.md`, local skill rules, and repo conventions
- Follow existing naming, formatting, and structure in the touched files
- If local conventions conflict with generic cleanup preferences, local conventions win

### 3. Simplify Without Changing Semantics

- Reduce unnecessary nesting
- Remove duplication that is truly local and obvious
- Rename variables or helpers only when clarity improves and the rename is safe
- Prefer straightforward control flow over dense one-liners
- Avoid nested ternaries; use `if/else` or `switch` for multi-branch logic
- Remove comments that only restate the code; keep comments that explain intent or constraints
- Preserve helpful abstractions; do not flatten structure just to reduce line count

### 4. Guardrails

- Do not add features, options, or speculative generalization
- Do not broaden API surface or change data contracts
- Do not rewrite untouched modules for style consistency alone
- Do not claim "no behavior change" without verification

### 5. Verify

- Run the narrowest meaningful verification for the changed area
- Prefer targeted tests first, then broader lint/build checks if appropriate
- If no automated verification exists, state that explicitly and mention residual risk

## Quick Reference

| Goal | Prefer | Avoid |
|------|--------|-------|
| Readability | Clear names, explicit branches, small coherent helpers | Dense one-liners, clever tricks |
| Scope control | Touched files, recent diff, user-specified paths | Repo-wide cleanup without request |
| Safety | Targeted verification after edits | Assuming refactor is safe |
| Comments | Intent and constraints | Narrating obvious code |

## Common Mistakes

- Turning simplification into redesign
- Extracting abstractions too early
- Renaming broadly across unrelated files
- Optimizing for fewer lines instead of easier maintenance
- Skipping verification because the change "looks mechanical"

## Upstream Reference

This Codex skill is adapted from Anthropic's `code-simplifier` plugin agent. See [references/upstream-agent.md](references/upstream-agent.md) for the source location and adaptation notes.
Pliki w paczce (3)
  • SKILL.md 4 KB
  • agents/openai.yaml 1 KB
  • references/upstream-agent.md 1 KB

Wersje

RepozytoriumWynikLicencja
Ta strona · valorvie/custom-skills90MIT
Shen-Ming-Hong/singular-blockly100Apache-2.0
OpenHands/extensions100MIT
duc01226/EasyPlatform100MIT
duc01226/EasyPlatform100MIT
s-hiraoku/vscode-sidebar-terminal100MIT
pproenca/dot-skills100MIT
kumaran-is/claude-code-onboarding100MIT
AnDeVerin/spur-board90MIT

Identyczna treść występuje jeszcze w 1 innych folderach na GitHubie. Tu pokazujemy jedną, najlepiej ocenioną kopię.

Migawka bazy z 13.11.2026 · wersja paczki 96a1a53d00fd (skrót SHA-256 całej paczki)

Pobrania w ostatnich 30 dniach: 0 · ranking

Zgłoś problem z tym skillem: szkodliwa treść, błędny opis albo prośba autora o usunięcie.

Podobne skille

  • 90simplifier
    Upraszcza kod pod kątem czytelności i spójności, zachowując działanie, na prośbę o uporządkowanie pliku lub refaktoryzację.
  • 100asdlc-code-simplifier
    Upraszcza i dopracowuje kod pod kątem czytelności, spójności i utrzymywalności, zachowując jego działanie, na przykład po ostatnich zmianach lub przy refaktoryzacji.
  • 90deslop
    Przegląda i upraszcza zmieniony kod bez zmiany zachowania: czytelność, powtórne użycie i wydajność przed finalnym przeglądem.
  • 100code-simplify
    Upraszcza ostatnio zmieniony kod albo wskazany zakres kodu bez zmiany jego działania.
  • 100simplify-code
    Upraszcza ostatnio zmieniony kod i dokumentację dla ludzi, zachowując fakty i działanie.
  • 86simplify
    Upraszcza ostatnio zmieniony kod bez zmiany jego działania: usuwa duplikaty, martwy kod i zbędną złożoność.

Uwagi i zgłoszenia

Wiadomość trafi do Bartosza Sokolińskiego. Adres e-mail jest potrzebny tylko do odpowiedzi. Szczegóły w polityce prywatności.