Skill code-simplification
Simplifies recently changed or explicitly scoped code while preserving observable behavior, error semantics, side effects, ordering, and public contracts. Use for readability cleanup, dead-code removal, reducing nesting, eliminating redundant wrappers, or making an implementation easier to maintain. Not for architecture redesign, new behavior, speculative cleanup, or a refactor without an adequate safety net.
- Bintang GitHub
- 100
- File
- 3
- Commit terakhir
- 26 Agu 2026
- Lisensi
- MIT
- Tool yang diizinkan
- —
Apa fungsi skill code-simplification?
code-simplification adalah agent skill. Simplifies recently changed or explicitly scoped code while preserving observable behavior, error semantics, side effects, ordering, and public contracts. Use for readability cleanup, dead-code removal, reducing nesting, eliminating redundant wrappers, or making an implementation easier to maintain. Not for architecture redesign, new behavior, speculative cleanup, or a refactor without an adequate safety net.
Cara install skill code-simplification
Setiap perintah menyalin folder skill ke direktori skills client. Restart client atau mulai sesi baru untuk memuatnya.Install skill code-simplification di Plugin
/plugin marketplace add thiientv/godmode /plugin install godmode@godmode
Install skill code-simplification di Claude Code
~/.claude/skills/code-simplification/SKILL.md
$ npx degit thiientv/godmode/skills/code-simplification ~/.claude/skills/code-simplificationInstall skill code-simplification di Claude Code (project)
.claude/skills/code-simplification/SKILL.md
$ npx degit thiientv/godmode/skills/code-simplification .claude/skills/code-simplificationInstall skill code-simplification di Codex
~/.agents/skills/code-simplification/SKILL.md
$ npx degit thiientv/godmode/skills/code-simplification ~/.agents/skills/code-simplificationInstall skill code-simplification di Gemini CLI
~/.gemini/skills/code-simplification/SKILL.md
$ npx degit thiientv/godmode/skills/code-simplification ~/.gemini/skills/code-simplificationInstall skill code-simplification di Claude.ai
npx degit thiientv/godmode/skills/code-simplification code-simplification && zip -r code-simplification.zip code-simplification # claude.ai → Customize → Skills → + → Create skill → Upload a skill → code-simplification.zip
SKILL.md
Lihat di GitHubCode Simplification
Optimize comprehension and locality, not line count or personal style.
Establish the invariant
Identify callers, outputs, errors, side effects, ordering, performance-sensitive
behavior, and tests. Read history or comments when a strange construct may be a
compatibility fence. If behavior is unclear, stop and use
codebase-orientation or root-cause-debugging before editing.
Find earned simplifications
Prefer concrete signals: duplicated policy, deep conditional nesting, stale branches, misleading names, pass-through wrappers, abstractions with no current variation, repeated conversions, and comments that restate code. Preserve abstractions that own policy, isolate volatility, or provide a real test seam.
Use simplification-checks.md to classify each candidate.
Change incrementally
- Make one coherent simplification.
- Run focused behavior proof without weakening existing assertions.
- Inspect the diff for hidden contract or error changes.
- Continue only while each step improves comprehension.
Use a codemod or AST-aware transformation for large mechanical rewrites. Keep feature work and broad cleanup separate unless the simplification is required to implement the authorized behavior safely.
Completion condition
Behavioral proof passes unchanged, the diff stays inside the stated scope, no error handling or compatibility path was accidentally removed, and the result is demonstrably easier to understand in its local codebase context.
Berkas dalam skill ini
3Pertanyaan seputar skill code-simplification
Bagaimana cara install skill code-simplification di Claude Code?
Jalankan npx degit thiientv/godmode/skills/code-simplification ~/.claude/skills/code-simplification. Claude Code memuat skill dari ~/.claude/skills (semua proyek) atau .claude/skills (satu proyek) dan menggunakan skill saat deskripsinya cocok dengan tugas.
Client mana saja yang bisa menggunakan skill code-simplification?
Client apa pun yang membaca format Agent Skills: Claude Code, Codex, Gemini CLI, dan claude.ai (unggah sebagai ZIP). Script dalam skill hanya berjalan di client yang mengizinkan eksekusi kode.