cleanlisted
Install: claude install-skill mystilleef/spae-framework
# Clean
## When to use
- The user wants to clean smelly code autonomously using the `purify`
and `refactor` agents.
## Goal
- Run purification and refactoring `subagents` sequentially to clean
target code.
## Input
- Accept optional arguments (file or folder paths).
## Workflow
1. **Purification Loop**:
- Immediately use the `subagent` tool to spawn a `purify` `subagent`
(pass optional arguments).
- Await purification result.
- If `subagent` returns `No Changes` status, exit loop and proceed.
- On `Failed` status or any process failure, halt immediately and
surface the error.
- Loop back to spawn another `purify` `subagent` if the previous pass
returns `Complete`.
2. **Refactoring Loop**:
- Immediately use the `subagent` tool to spawn a `refactor`
`subagent` (pass optional arguments).
- Await refactoring result.
- If `subagent` returns `No Changes` status, exit loop and finish.
- On `Failed` status or any process failure, halt immediately and
surface the error.
- Loop back to spawn another `refactor` `subagent` if the previous
pass returns `Complete`.
## Directives
- Always use the subagent tool for subagent invocation.
- Pass the optional argument verbatim to both subagents; never read or
expand file-path arguments.
- Rely on `subagent` status blocks to direct the loop.
- Halt immediately on subagent `Failed` status or any process failure
(crash, timeout, `AgentError`).
- List of agents permitted t