AgentStack
Browse Sign in
Browse Why AgentStack Sell Docs
Sign in
SKILL verified MIT Self-run

Work Clean

skill-xcaeser-work-skill-work-clean · by xcaeser

Read-only code-simplification analysis that always uses one gpt-5.6-sol xhigh analyst and returns a self-contained cleanup plan suitable for a lower-capability execution model. Use when the user asks to clean code, remove smells, reduce overengineering, refactor helpers, or assess package choices.

No reviews yet
0 installs
17 views
0.0% view→install

Install

$ agentstack add skill-xcaeser-work-skill-work-clean

✓ scanned · ✓ verified, works with Claude Code, Cursor, and more.

Security review

✓ Passed

No issues found. Passed automated security review. · v0.1.0 How review works →

  • Prompt-injection patterns
  • Secret / credential exfiltration
  • Dangerous shell & filesystem operations
  • Untrusted network calls
  • Known-malicious package signatures

What it can access

  • Network access No
  • Filesystem access No
  • Shell / process execution No
  • Environment & secrets No
  • Dynamic code execution No

From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.

View the full security report →

Verified badge

Passed review? Show it. Paste this badge into your README, it links to the public security report.

AgentStack Verified badge Links to your public security report.
[![AgentStack Verified](https://agentstack.voostack.com/badges/verified.svg)](https://agentstack.voostack.com/security/report/skill-xcaeser-work-skill-work-clean)

Reliability & compatibility

Security review passed
0 installs to date
no reviews yet
23d ago

Declared compatibility

Claude CodeClaude Desktop

Compatibility is declared by the source manifest. End-to-end runtime verification is coming, see below.

Preview Execution monitoring

We're building live execution health for every listing: tool-call success rate, median latency, uptime, and last-checked timestamps, measured, not self-reported. It isn't live yet, so we don't show numbers we can't stand behind.

How agent discovery & health will work →
Are you the author of Work Clean? Claim this listing to set pricing, connect Stripe payouts, and keep 70% of every sale.
Sign up to claim

About

Work / 8. Clean

Find defensible simplifications without editing. The Sol xhigh analyst remains read-only; the parent owns every cleanup decision and any later execution route.

Preserve reliability, restraint, user data, meaningful tests, and the simplest complete implementation. Remove obsolete paths instead of preserving compatibility, and require evidence for every deletion or abstraction change.

Fixed route

  • If the exact subagent model, effort, or goal tools are unavailable, return blocked with the missing capability. Do not substitute a model or perform the cleanup analysis in the parent.
  • Launch exactly one gpt-5.6-sol subagent at xhigh effort with fork_turns: none.
  • Give it a fun call sign, the exact task statement, exact scope, source of truth, behavior boundaries, package constraints, acceptance checks, and validation requirements.
  • Require independent analysis and concrete evidence for every proposed deletion or shared component; do not accept a status report, speculative smell, or “routine” migration.
  • Require it to call create_goal with the exact cleanup-analysis goal before inspection and update_goal complete only after the required checks pass.
  • Let the analyst run until it returns the cleanup plan, a real blocker, or a user-input request. Do not cancel it because a polling window or arbitrary wall-clock interval elapsed; a wait timeout is not a failure.
  • The analyst must not edit, commit, deploy, spawn, or delegate.
  • Scale depth to the scope. Inspect only relevant paths, direct consumers, and evidence needed to prove each simplification; return the plan without process narration and stop when every candidate has a supported disposition.
  • Report the successful launch as a compact table with Agent, Working on, Goal, Ownership, and Model.

Analysis

  1. Prefer an explicit path, subsystem, feature, or diff; otherwise use the smallest scope clearly implied by the request.
  2. Inspect instructions, status, relevant diffs, consumers, registrations, generated outputs, existing tests, public APIs, and actual user flows.
  3. Identify dead code, needless indirection, duplicate behavior, speculative abstractions, and unclear boundaries.
  4. Keep helpers that communicate intent, isolate side effects, improve testing, or have genuine reuse. Simplify the consumer path; do not merely move complexity into a new wrapper or hide it behind a renamed abstraction.
  5. Consider packages in this order: standard library/platform, an existing project dependency, a mature and battle-tested external package, then focused local code. Check existing dependency documentation and types before reimplementing functionality or adding a package. Choose a package only when its reliability, maintenance, license, runtime fit, and reduced complexity earn the dependency cost; record chosen and rejected options with reasons.
  6. Challenge cleanup candidates against exact behavior, error paths, partial state, retries, interruption, permissions, upgrades, and recovery before recommending removal.
  7. Preserve meaningful tests and remove only tests that are demonstrably obsolete, tautological, framework-level, or detached from a real contract. Do not add coverage-only tests.
  8. Prefer durable architecture over a stopgap intended to be replaced later. Do not propose behavior, API, persistence, security, UX, test, or type weakening without explicit authorization.

Require every cleanup candidate to remove a real cost: a duplicate behavior, branch, dependency, concept, indirection, or unclear ownership boundary. Do not extract a shared component until multiple consumers share a stable behavior, not merely similar markup or coincidental syntax.

Handoff

Return a detailed, executor-agnostic cleanup plan:

## Work / 8. Clean

**Scope:** 
**Goal:** 

**Remove or simplify**
- 

**Preserve**
- 

**Evidence**
- 

**Alternatives rejected**
- 

### Cleanup map
| Step | File / symbol | Exact transformation | Cost removed | Invariant |
|---|---|---|---|---|
| 1 |  |  |  |  |

**Executor assignments:** 
**Done when:** 
**Does not count:** 
**Packages considered:** 

| Validation command or flow | Expected evidence | Proves |
|---|---|---|
|  |  |  |

**Testing**
- **Behavior being protected:** 
- **Why it matters:** 
- **Test level:** 
- **Exact observable assertion:** 
- **Tests deliberately not added or removed:** 

Assume the plan may be executed by a lower-capability model with no hidden context. Spell out exact files and symbols, ordered transformations, behavior to preserve, obsolete paths to remove, package decisions, validation commands, expected evidence, and choices the executor must not reinterpret. The parent verifies the plan before approving any execution route. A smaller diff is not automatically a better result: reject cleanups that only move complexity, weaken behavior, or preserve obsolete paths through a new wrapper. If the route is blocked, state the exact gap and require a materially new mechanism before another round. Do not launch an executor or edit files from this skill. For execution, hand the verified plan to $work.

Source & license

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

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

Reviews

No reviews yet, be the first.

Versions

  • v0.1.0 Imported from the upstream source.