Skip to content
Development
Skill

/sweep

Use only when someone explicitly invokes $hope:sweep in Codex, /hope:sweep in Claude Code, or the host's Hope Sweep command for behavior-preserving codebase cleanup.

From plugin
hope
87 skills
Install
$ npx -y skills add dkstm95/hope --skill sweep --agent claude-code

How it fires

How this skill gets triggered: by you, by Claude, or both.

  • Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
  • You can call itInvoke it directly when you want it.
  • Slash command/sweep

Context preview

The summary Claude sees to decide when to auto-load this skill.

Use only when someone explicitly invokes $hope:sweep in Codex, /hope:sweep in Claude Code, or the host's Hope Sweep command for behavior-preserving codebase cleanup.

SKILL.md

sweep.SKILL.md
name: sweep
description: Use only when someone explicitly invokes $hope:sweep in Codex, /hope:sweep in Claude Code, or the host's Hope Sweep command for behavior-preserving codebase cleanup.

Hope Sweep

Apply proven maintenance to operating code and directly supporting tests, configuration, build logic, documentation, examples, and assets. Read `../write/references/writing-standard.md` for user-facing language.

Invocation and scope

Require explicit namespaced invocation. An ordinary cleanup request or a follow-up such as “do that” uses the ordinary workflow. If selected implicitly, continue that request without activating Sweep.

Use the named repository, or the current one, and the whole repository unless the person narrows it. Record the revision and working-tree state; preserve unrelated edits and project instructions. Invocation authorizes reversible local edits in this scope, not commits, pushes, pull requests, or merges.

Prove and apply cleanup

Establish current behavior from running code and configuration. Follow the actual consumers and boundaries relevant to each proposed cleanup.

Remove dead code, duplication, needless branches or wrappers, misplaced abstractions, and repeated work. Share logic only when behavior, ownership, and reasons to change match. Optimize only for a plausible workload with a concrete benefit.

Prove a removal has no remaining consumer, including external or dynamic use where relevant. A missing text reference alone does not prove safety. Remove dedicated tests, documentation, generation, configuration, and assets with their obsolete consumer; retain support for remaining paths.

Apply small coherent batches. Leave bugs, public-contract or behavior changes, product and compatibility decisions, migrations, dependency changes, and uncertain removals outside Sweep. Do not turn those signals into unsolicited findings or follow-up tasks.

Verify and finish

Verify affected consumers with the narrowest useful tests, checks, builds, or runtime observations, plus required project checks. Add tests only when needed to protect the refactor. Correct or revert regressions Sweep introduced; do not repair pre-existing failures or widen scope during verification.

Finish when the supported cleanup is complete and affected behavior has been checked. Report the cleanup, supporting material changed with it, and any verification limits. If no proven cleanup exists, say so. Keep unrelated signals out of the report.

Read more
Ships withhope

Hope helps people take on more complex work with AI while preserving their judgment and agency.

Get the whole plugin
Stats
8
Stars
1
Forks
Active
Maintenance
JavaScript
Language
MIT
License
8d ago
Last commit
2mo ago
Created

Repo: dkstm95/hope

Other skills on hope.

align
Skill

align

Resolve intent, scope, consequential design choices, or important assumptions that need shared understanding before implementation. Use when requested or when…

@dkstm95@dkstm95View Skill
diff
Skill

diff

Explain or review a GitHub pull request as an evidence-linked, self-contained offline HTML record. Answer narrow PR questions directly when they do not need a…

@dkstm95@dkstm95View Skill
write
Skill

write

Draft, edit, or review language for clarity while preserving meaning and voice. Apply within implementation and other Skills wherever clearer language helps.

@dkstm95@dkstm95View Skill