agentleFS
mystilleefmystilleef/spae-framework/skills/clean/SKILL.md

clean

Skill2 starsChanged 15 days agoMITView on GitHub

Orchestrates purification and refactoring agents sequentially.

18 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use expressive, friendly and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • bergsideSkill

    expressive

    Vibrant, personality-driven design with bold colors, playful graphics, and dynamic layouts that balance creativity with structure.

    Also in 4 projects that use this

  • bergsideSkill

    friendly

    Approachable, intuitive design with rounded elements, ample whitespace, and soft pastel color palettes.

    Also in 4 projects that use this

  • +10 more from bergside

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 5 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 16 edited versions we read keep these.

  • 5

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Run purification and refactoring subagents sequentially to clean target code.

    line 18
  2. Distinctive:

    Always use the subagent tool for subagent invocation.

    line 46
  3. Distinctive:

    Never run subagents in parallel or concurrently.

    line 57
  4. Distinctive:

    Every run, halted or not, ended in Report.

    line 67
  5. Distinctive:

    Keep prose terse while ensuring clarity.

    line 74
  6. Distinctive:

    Use lists and sub-lists for long sentences and dense paragraphs.

    line 77

“Common” is measured: kept by at least 6 in 10 of the 16 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

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

Halt on any Halt conditions entry after every spawn.

  1. Purification Loop:
    • Spawn a purify subagent with the optional argument; await its result.
    • Complete: repeat step 1.
    • No Changes: proceed to step 2.
  2. Refactoring Loop:
    • Spawn a refactor subagent with the optional argument; await its result.
    • Complete: repeat step 2.
    • No Changes: proceed to step 3.
  3. Report: emit the result per Result directives:
    • Result: Completed when the workflow reaches Report without a halt; Halted when a subagent reports Failed; Failed on any other Halt conditions entry.

Directives

  • Always use the subagent tool for subagent invocation.
  • Pass the argument verbatim to each subagent; never read or expand file-path arguments.
  • Route only from each subagent's Result value.
  • Spawn only the subagents the workflow names.

Constraints

  • Restrict activities to spawning subagents, reading their results, and reporting; never write files, run git operations, activate skills, or prompt the user mid-run.
  • Never run subagents in parallel or concurrently.
  • Halt conditions: halt immediately; report per Report, listing the diagnostic under Findings:
    • A subagent Failed result.
    • A subagent result missing or outside the workflow's literals.
    • A process failure (crash, timeout, AgentError).

Verification

  • Subagents ran one at a time, in workflow order.
  • Every run, halted or not, ended in Report.
  • The orchestrator wrote no file.

Result directives

  • Minimum words. Maximum signal.
  • Return the final execution status block.
  • Keep prose terse while ensuring clarity.
  • Optimize prose for agent, token, and context efficiency.
  • Split actions, findings, and summaries into terse bullet points.
  • Use lists and sub-lists for long sentences and dense paragraphs.
  • Emit the result template as live markdown—never in a code fence.
  • Output nothing outside the template.

Result template

<!-- prettier-ignore-start -->
### Execution Summary

- **Actions**:
  - [Terse list of actions from spawned subagents]
- **Files**:
  - [Terse list of files affected by spawned subagents]
- **Findings**:
  - [Terse list of findings from spawned subagents]
- **Summary**:
  - [Terse list of summary from spawned subagents]

> **Clean Status** • `[scope]`
> **Result**: [Completed | Halted | Failed]
> **Impact**: [Terse impact statement]
<!-- prettier-ignore-end -->

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.