Skip to content
Back to skills

Simplify Code

ASecurity

Simplify recently changed or user-selected code while preserving observable behavior, public APIs, tests, and required safeguards. Use when asked to simplify, clean up, refactor for clarity, reduce nesting, remove duplication, or review an implementation for unnecessary complexity.

  • 2 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 19, 2026
ai-agentsapisecurity

Works with

  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 19, 2026

npx -y skills add 26zl/universal-agent-skills --skill simplify-code --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Simplify Code?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Simplify Code
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/26zl-simplify-code/badge)](https://www.skillsdirectory.com/skills/26zl-simplify-code)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: simplify-code
description: Simplify recently changed or user-selected code while preserving observable behavior, public APIs, tests, and required safeguards. Use when asked to simplify, clean up, refactor for clarity, reduce nesting, remove duplication, or review an implementation for unnecessary complexity.
license: MIT
---

# Simplify code

1. Read the target code, nearby tests, and repository guidance before editing.
2. Preserve observable behavior, public interfaces, error handling, security boundaries, and required compatibility unless the user explicitly requests a change.
3. Prefer direct control flow, clear names, existing abstractions, and fewer moving parts.
4. Remove dead code, redundant wrappers, needless indirection, duplicate branches, and comments that only restate the code.
5. Keep comments only for non-obvious intent, constraints, invariants, workarounds, or tradeoffs. Write them in a short, neutral voice without process narration.
6. Avoid broad rewrites, speculative abstractions, dependency changes, and unrelated formatting.
7. Run focused tests or checks that demonstrate behavior was preserved. Report any unverified area plainly.

Files in this skill

  • SKILL.md1.2 KB
  • agents/openai.yaml204 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…