# Simplify Code

> 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.

- **Type:** Skill
- **Install:** `agentstack add skill-26zl-universal-agent-skills-simplify-code`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [26zl](https://agentstack.voostack.com/s/26zl)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [26zl](https://github.com/26zl)
- **Source:** https://github.com/26zl/universal-agent-skills/tree/main/skills/simplify-code

## Install

```sh
agentstack add skill-26zl-universal-agent-skills-simplify-code
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# 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.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [26zl](https://github.com/26zl)
- **Source:** [26zl/universal-agent-skills](https://github.com/26zl/universal-agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-26zl-universal-agent-skills-simplify-code
- Seller: https://agentstack.voostack.com/s/26zl
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
