/develoop:cleanup-slopsfrom Develoop
Discovers and simplifies implicit state machines across a repository or PR by finding lifecycle rules hidden in mutable flags, nullable values, effects, and duplicated status fields. Guides behavior-preserving cleanup of scattered transitions.
Ships in Develoop. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Start from this prompt:
find all of the implicit state machines in my app
Use it as a discovery lens for a behavior-preserving cleanup. Find lifecycle rules hidden across mutable flags, nullable values, effects, callbacks, and duplicated status fields. Remove unnecessary stored state and scattered coordination; make essential transitions easier to understand and maintain.
An implicit state machine exists when the meaning or legality of an operation depends on prior events and combinations of state, while its transitions and invariants are distributed across the code. Multiple booleans alone are not evidence: independent settings may legitimately vary independently.
Trace behavior from entry points and state owners, using searches only as leads. Inspect loading and error flags, selected IDs plus cached objects, status enums, mirrored props or store values, subscription and connection lifecycles, pending promises, timers, retries, queues, persistence, and cleanup handlers. Follow reads, writes, reset paths, and async completions across module boundaries. Include server, worker, and client paths where present.
Keep a compact inventory for each candidate:
| Evidence | What to establish |
|---|---|
| Owner and locations | Who owns the state, who writes it, and who observes it |
| Effective states | Reachable combinations and combinations ruled out by code or contracts |
| Events and transitions | Entry, success, failure, cancellation, retry, reset, and disposal paths |
| Invariants and effects | What must remain true, including observable output and side effects |
| Decision | Derive or remove redundant state, consolidate essential transitions, preserve, or defer with a reason |
Distinguish demonstrated behavior from inferred intent. A suspicious combination is a candidate until its producers, consumers, and reachable transitions are understood. Prioritize redundant sources of truth, impossible combinations, duplicated transition logic, and effects that synchronize state with other state. Preserve independent axes such as cached data and an in-flight refresh.
Before editing a candidate, identify its observable contract and run the relevant existing checks. Record baseline failures separately. Where coverage does not establish that contract, add focused characterization tests at the public behavior boundary; confirm they pass before refactoring. Test outcomes and transitions, rather than private field names or the new representation.
Include the failure and recovery paths the candidate actually supports. For async work, exercise overlapping requests completing out of order, cancellation, retry, and disposal where relevant. Preserve side-effect count and ordering, error propagation, and resource release. For UI paths, exercise the affected interaction in the available browser or device as well as tests.
Check external consumers and persisted state before removing or renaming a field. Preserve public APIs, serialized representations, event payloads, and storage compatibility unless a contract change is explicitly in scope. An internal simplification may need an adapter at that boundary.
Choose the smallest representation that expresses the existing contract:
Use references/decision-examples.md when deciding whether state is redundant or protects meaningful history.
Keep edits reviewable and run the focused checks after each coherent change. Do not quietly fix a pre-existing behavioral bug as part of an equivalence refactor. Record it separately unless the requested scope includes its fix. If a candidate's contract is ambiguous or cannot be verified, defer that candidate with concrete missing evidence and continue with supported cleanup.
Run the repository's required checks and the tests for affected consumers. Revisit the inventory: verify that removed state has no remaining writers or consumers and that essential transitions still have an owner. Review the diff for unrelated churn, changed defaults, altered event ordering, and accidental API or persistence changes.
Report the inspected scope and PR head when applicable, the machines found, what was simplified, what was preserved or deferred and why, and the checks actually run. Identify baseline failures and untested behavior explicitly; do not claim regression freedom from passing unrelated checks. State any uninspected areas when reporting repository-wide coverage. Finish when the in-scope inventory is addressed or explicitly deferred with evidence; do not keep rewriting adjacent code merely to reduce the machine count.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
6 skills in this plugin
/gh-autoreview-resolveRun a bounded GitHub automated-review and resolution loop for a specified pull request. Use when an agent must mark a PR ready for review, confirm the automated reviewer started through an eyes reaction, wait for a thumbs-up or concrete review response, validate and address review threads, request a narrowly focused `@codex review` follow-up when warranted, prevent review scope creep through PR comments or a gh-create-issue follow-up, and optionally merge with the user's preferred strategy./gh-create-issueCreate high-quality GitHub issues or issue drafts from repository evidence, user intent, and external documentation. Use when the user asks an agent to create, draft, file, open, or prepare an implementation issue, bug report, feature request, follow-up issue, or GitHub issue with researched facts, scope, non-goals, suggested direction, acceptance criteria, and validation notes./gh-implement-issueImplement GitHub issues through a complete branch-to-PR workflow. Use when the user asks an agent to implement, fix, or ship a specific GitHub issue, including reading issue comments, confirming the implementation contract, creating a branch, making atomic commits, validating, pushing, opening or updating a PR, and handling issue-linked review/CI follow-up. Use related skills or integrations when available; otherwise inspect the repository, issue, PR, CI, and review context directly with the available tools./workspace-cleanupPlan and carry out scoped cleanup of task-owned scratch files, worktrees, build output and processes. Use for workstation audits, temporary workspace setup, artifact preservation, and implementation or review closeout./writing-strategyChoose writing and narrative strategies from a curated bilingual strategy set, then produce a Markdown article outline or table of contents. Use when the user asks how to structure a draft, essay, article, post, proposal, column, case study, story, marketing copy, or other writing based on a topic, material, purpose, audience/readers, tone, or language. The skill selects a best-fit strategy, avoids overusing generic problem-solution frames, keeps Korean and English strategy names as canonical references, and displays strategy names in the user's output language unless bilingual names are explicitly requested.npx claudepluginhub comfuture/agent-skills --plugin develoop