agentleFS
WilliamBergaminWilliamBergamin/knacks/skills/delete/SKILL.md

delete

Skill1 starsChanged 5 months agoMITView on GitHub

Remove a knack - its manifest and the skills it owns - from the project, safely. Use when the user wants to "remove a knack", "delete a capability", "retire X", or take a skill set off the project. Checks who composes the target and which skills are shared with other knacks.

5 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

3 rules. 0 are common, 2 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 4 edited versions we read keep these.

  • 2

    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:

    Check & record: Run /knacks:validate to confirm no dangling refs or broken graph remain.

    line 29
  2. Distinctive:

    Propose first by default: Treat steps 1-4 as read-only and show the full plan before any delete or edit.

    line 33
  3. Distinctive:

    Delete only what's exclusively the target's: When in doubt about sharing, prefer keep and say why.

    line 38

“Common” is measured: kept by at least 6 in 10 of the 4 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

/knacks:delete: retire a knack safely

Removing a capability is not a blind delete. Other knacks may compose the target, and its skills may be shared with other knacks. This skill checks both before touching anything and proposes exactly what to delete / keep / update.

Steps

  1. Resolve the target. Get the id from $ARGUMENTS (or ask). Read knacks/<id>.md; note its skills: and composes:. If there's no such manifest, say so and stop.
  2. Who composes it? Glob knacks/*.md for any knack whose composes: lists the target. For each, the user picks: keep the target (cancel removal), or update that dependent to drop the target from its composes: (and fix any prose that referenced it). Never leave a dangling composes: ref.
  3. Which skills are exclusive? For each skill in the target's skills:, check whether any other knack lists it (count a dependent you're updating in step 2 as no longer listing it):
    • Exclusive (no other knack lists it) -> propose delete.
    • Shared (another knack lists it) -> propose keep, naming who still uses it.
  4. Propose the full plan, change nothing yet. One reviewable list: the target manifest -> delete; any dependent edits from step 2; each owned skill -> delete (exclusive) or keep (shared, with who uses it). One line of rationale each; invite the user to override any line. Ask for an explicit yes.
  5. Apply, in order: dependent edits first (so nothing transiently dangles), then the target manifest, then the exclusive skill directories. Never touch a skill marked keep.
  6. Check & record. Run /knacks:validate to confirm no dangling refs or broken graph remain.

Rules

  • Propose first by default. Treat steps 1-4 as read-only and show the full plan before any delete or edit. Apply without a separate yes only when the project's settings permit it; gating is the project's call, not this skill's.
  • Never break a dependent. A knack that composes the target is resolved (keep or update) before the target goes; a shared skill is never deleted while another knack still lists it.
  • Delete only what's exclusively the target's. When in doubt about sharing, prefer keep and say why; under-deleting is recoverable, over-deleting is not.
  • Operate on one knack per invocation. To tear down a subsystem, remove the leaves first.

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.