Skip to content
Back to skills

Sweep

ASecurity

Walk this project's loose ends with the user and clear them in one pass - questions an agent left unanswered, big sessions whose cache has cooled, commits not released, a package with no release path, handoffs to or from this project. Use when the user asks to sweep, tidy up, see what's lying around or what's left, or at the start of a session when a sweep is due.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added December 6, 2026
ai-agentsgobash

Security analysis

A100/100

Scanned December 6, 2026

npx -y skills add ctxtree/ctxtree --skill sweep --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Sweep?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Sweep
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/ctxtree-sweep/badge)](https://www.skillsdirectory.com/skills/ctxtree-sweep)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: sweep
description: Walk this project's loose ends with the user and clear them in one pass - questions an agent left unanswered, big sessions whose cache has cooled, commits not released, a package with no release path, handoffs to or from this project. Use when the user asks to sweep, tidy up, see what's lying around or what's left, or at the start of a session when a sweep is due.
allowed-tools: Bash(ctxtree *)
---

A sweep is a short ritual, like raking a yard: see the whole field at once, decide in one reply, clear it, see the
count drop. Keep it to about two minutes. You guide it; the user decides.

1. **The field.** Run `ctxtree sweep` and show its output to the user as it is, in a code block. It is already laid out
   for a quick read: one headline line, then the loose ends numbered and grouped by whose move each is (theirs, yours
   on their yes, waiting on others), each with its age and a proposed play.

2. **Your call, in one line.** Say which you would clear now and why, briefly: usually the ones in "MINE, on your
   yes", and any of theirs that only need a link. Name each by what doing it is, never by its number alone: "1, let
   e956eb01 go, and 2, release". `ctxtree sweep --json` gives each item's `name` for this. Then ask for one reply, in
   words: `all`, `skip`, or which to do, as in `1 let e956eb01 go, 2 release`. If you draft the reply for the user,
   draft it that way too: a reply of bare numbers means nothing to someone who has not just read the list.

3. **Carry out their call,** item by item:
   - **Yours (MINE, on your yes):** do the play. For a release, follow the `release` skill if there is one, else say
     what releasing takes here. For a handoff for this project, read it, act on it or answer it, and mark it done the way
     the tool that sent it says (`runwatch handoff done <id>`, for runwatch).
   - **Theirs (YOURS):** give them exactly what they need to do it: the command, the link, or the session to open.
     Never answer a question for them, and never write a yes for them.
     A cooled session they let go needs nothing done to it: clearing it from the sweep is the whole act.
   - **Waiting on others:** nothing, unless it has stalled; then offer to nudge.
   Then record what is done with `ctxtree sweep clear <numbers>` (the numbers from the sweep you showed). Cleared
   items stay away until they change.

4. **The score.** Run `ctxtree sweep` again and say it in one line: how many were cleared, what is left, and when a next
   sweep would be worth it.

When a kind of loose end is never worth acting on in this project (the user skips it twice, or says so), offer
`ctxtree sweep mute <kind>`: the kinds are ask, cooled, release, path, handoff-in and handoff-out. `unmute` brings one
back.

To choose which project to sweep, `ctxtree sweep --yard` lists every project with recent sessions, the fullest
first. Sweep one in its own folder.

Don't sweep in the middle of other work unless the user asks: offer it at a natural pause instead.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in ai-agents →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.