# Refactor

> Refactor code to improve readability, performance, and maintainability

- **Type:** Skill
- **Install:** `agentstack add skill-amelmo-loadout-refactor`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AmElmo](https://agentstack.voostack.com/s/amelmo)
- **Installs:** 0
- **Category:** [Agent Skills](https://agentstack.voostack.com/c/agent-skills)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [AmElmo](https://github.com/AmElmo)
- **Source:** https://github.com/AmElmo/loadout/tree/main/fixtures/home/.claude/skills/refactor

## Install

```sh
agentstack add skill-amelmo-loadout-refactor
```

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

## About

# Refactor

Analyze the provided code and refactor it following these principles:

1. **Extract**: Pull repeated patterns into shared functions or hooks
2. **Simplify**: Reduce nesting, flatten conditionals, use early returns
3. **Name**: Rename unclear variables and functions to express intent
4. **Type**: Tighten TypeScript types — eliminate `any`, use discriminated unions
5. **Split**: Break files over 200 lines into focused modules

Always preserve existing behavior — verify with the test suite before and after.
Output a before/after comparison with explanations for each change.

## Source & license

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

- **Author:** [AmElmo](https://github.com/AmElmo)
- **Source:** [AmElmo/loadout](https://github.com/AmElmo/loadout)
- **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-amelmo-loadout-refactor
- Seller: https://agentstack.voostack.com/s/amelmo
- 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%.
