Guide for simplifying and refining code after coding sessions. Use when cleaning up complex code, reviewing PRs for readability, or applying consistent refactoring patterns. Triggers on simplify code, refactor, clean up, code review, コード整理, リファクタ, 複雑さ削減, コードレビュー.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Code Simplifier
A guide for simplifying and refining code while preserving functionality.
## When to Use
- **Refactor**, **simplify code**, **clean up**, **code review**
- After completing a coding task or writing a logical chunk of code
- Cleaning up complex PRs before review
- Refactoring code for better readability and maintainability
## Core Principles
### 1. Preserve Functionality
Change how the code does it, never what it does. Run the existing tests before and after.
### 2. Apply Project Standards
Follow the project's configured standards (CLAUDE.md, AGENTS.md, .editorconfig, linters) over personal preference.
### 3. Enhance Clarity
- Avoid nested ternary operators; prefer switch or if/else chains
- Avoid overly compact one-liners; choose clarity over brevity
- Remove comments that only restate obvious code
### 4. Maintain Balance
Avoid over-simplification that could:
- Reduce code clarity or maintainability
- Create overly clever solutions that are hard to understand
- Combine too many concerns into single functions
- Remove helpful abstractions that improve organization
- Make the code harder to debug or extend
### 5. Focus Scope
…
The line at the top of this page pins the label git:20261026.133d3e3, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
A 17 of 17 checks passed. Fixed automatic checks with no AI involved, so the same checks give the same answer every run.
pass: Frontmatter block present
pass: Frontmatter declares a name
pass: Frontmatter declares a description
pass: Size between 200 bytes and 200 KB (2294 bytes)
pass: No zero-width or bidi control characters
pass: No instruction hidden inside an HTML comment
pass: No link to an exfiltration or paste host
pass: No credential-shaped string
pass: No instruction to send local credentials anywhere
pass: No text hidden with inline styles
pass: No prompt-injection phrasing
pass: No curl or wget piped into a shell
pass: No recursive delete of root, home or parent
pass: No instruction to read or print local credentials
pass: No base64 blob over 200 characters
pass: No link to a raw IP address
pass: No script tag
Source
GitHub
aktsmm/agent-skills · 26 stars · license a license file GitHub does not identify · pushed 2026-10-30 · branch master
API
GET https://markdownregistry.com/api/v1/artifacts/art_in22gjnd2eu222vr
GET https://markdownregistry.com/api/v1/resolve?ref=aktsmm/agent-skills/code-simplifier
GET https://markdownregistry.com/api/v1/blob/293bddae2ec1c042a4db147cb369f837f532f6f5161c48e511a667b1ab21b4a3
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
aktsmm/agent-skills · agentic-workflow-guide/SKILL.md · Design, review, and debug agent workflows, and decide when a request should use a prompt, instruction, skill, agent, or…
aktsmm/agent-skills · animated-infographic/SKILL.md · Create reproducible animated infographic GIFs from structured data or measured results, with audience-language labels…
aktsmm/agent-skills · ascii-banner/SKILL.md · Generate ASCII-art text banners for terminals, READMEs, and CLI startup messages. Use when a user asks for an ASCII…
aktsmm/agent-skills · azure-env-builder/SKILL.md · [Alpha] Experimental Azure environment builder for infrastructure and deployment design. Use when building Azure…
aktsmm/agent-skills · azure-infra-validation/SKILL.md · Build and validate Azure infrastructure in a lab or sandbox using Azure CLI and official Microsoft docs. Use when…
aktsmm/agent-skills · azure-troubleshooting/SKILL.md · Investigate Azure incidents and service degradations with a read-only workflow using Azure CLI, Resource Health…
taskless/cli · .agents/skills/code-simplifier/SKILL.md · Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Use when…
openhands/extensions · skills/code-simplifier/SKILL.md · Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Analyzes…
yeisonrestrepo/code-conductor · skills/code-simplifier/SKILL.md · Always-active simplicity rules: no speculative abstractions, one job per function, max 30 lines, flat over nested with…
alamoooooooo/alamo_hub · packages/engineering_subagent_workflow_kernel/code-simplifier/SKILL.md · Simplify recently changed or explicitly scoped code while preserving observable behavior. Use when the user asks to…
alamoooooooo/alamo-skills · packages/engineering_subagent_workflow_kernel/code-simplifier/SKILL.md · Simplify recently changed or explicitly scoped code while preserving observable behavior. Use when the user asks to…
simonwong/skills · skills/engineering/code-simplifier/SKILL.md · Simplifies and refines code for clarity, consistency, and maintainability while preserving all functionality. Focuses…