Agent skill

Cleanup

by Fergana-Labs in Fergana-Labs/stash

Find duplicates, dead links and untagged items in a saved library and propose what to do about each.

MITAuto-check passedKnowledge Management

Install Cleanup

skills CLI
$ npx skills add Fergana-Labs/stash --skill cleanup -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install Fergana-Labs/stash cleanup --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/Fergana-Labs/stash.git skills-src && mkdir -p .claude/skills && cp -r skills-src/docs/skills/cleanup .claude/skills/cleanup && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
cleanup
GitHub stars
335
Token cost
~602 tokens
SKILL.md length
359 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Find duplicates, dead links and untagged items in a saved library and propose what to do about each.

  • Knowledge Management work in your project
  • SKILL.md covers The three piles, Write it and Rules
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Cleanup is an agent skill from Fergana-Labs/stash. Find duplicates, dead links and untagged items in a saved library and propose what to do about each.

Its SKILL.md is about 600 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in Knowledge Management. The repository describes itself as: Open-source infrastructure for agents that learn from experience. Capture production traces and turn lessons into reusable knowledge and skills. The licence is MIT.

When your agent uses it

  • Knowledge Management work in your project

Example prompts

  • “/cleanup”

What it can do on your machine

Read from SKILL.md and the folder at commit 6c88d16. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Cleanup loads about 602 tokens when it runs. Until then it costs about 27 tokens; SKILL.md has 359 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~27
When it runs · the whole SKILL.md, loaded when a task matches
~602

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from Fergana-Labs/stash at commit 6c88d16, republished under its MIT licence (© Fergana-Labs). 359 words, ~602 tokens.

Download SKILL.mdSave it as .claude/skills/cleanup/SKILL.md (or your agent's skills folder).
name
cleanup
description
Find duplicates, dead links and untagged items in a saved library and propose what to do about each.
when_to_use
When the user asks to tidy up their bookmarks, clean their library, deal with duplicates or broken links, or asks what needs attention.
version
1

Cleaning up a saved library

Propose, never dispose. You do not delete, merge, retag or archive anything in this skill. You produce a list the user can act on, and you act only on items they name afterwards. An agent that quietly tidies someone's library is an agent they stop trusting.

The three piles

The Bookmarks app computes these; read them rather than deriving them.

Duplicates — the same page saved more than once, matched on a normalized URL (protocol, www., trailing slash and tracking params ignored). The oldest save is treated as the original.

For each group, recommend which to keep, and say why: prefer the one whose saved copy actually captured content over a link-only save, then the one with topics already on it, then the oldest. Note when the "duplicates" are not really duplicates — a URL that serves different content over time, for instance — and leave those alone.

Broken — a link the checker got a 404 or 410 from. Note it only trusts those two codes, so a broken item is genuinely gone rather than merely unreachable. For each, check whether the saved copy still has the content: if it does, the recommendation is "keep, the archive is the point now"; if it is link-only, there is nothing left and it can go.

Untagged — no topics. Usually means enrichment failed or the page had nothing to read. Propose topics from the existing vocabulary — read it off the Topics column's options — rather than inventing new ones; a cleanup pass that adds twelve new near-synonyms has made things worse.

Show full SKILL.md (100 more words)Show less

Write it

Group by pile. Each item: what it is, the recommendation, one clause of why, and a link. Lead with a one-line count of each pile so the user can decide where to spend their attention.

End with the single sentence they need: "Say which of these to action and I'll do it." Then stop.

Rules

  • No action without an explicit instruction naming what to act on.
  • If a pile is empty, say so in one line rather than omitting it — knowing there are no broken links is worth something.
  • Never recommend deleting the last remaining copy of anything.

© Fergana-Labs, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in docs/skills/cleanup of Fergana-Labs/stash.

Open the folder on GitHubat commit 6c88d16

Compare with similar skills

Cleanup next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Cleanup compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Cleanup this skillFergana-Labs/stash335—~602Automated safety check: PassMIT
Ontology1mancompany/OneManCompany4412 repos~1.5kAutomated safety check: PassApache-2.0
Open Knowledge Write Skillinkeep/open-knowledge4.4k—~3.7kAutomated safety check: PassGPL-3.0
Auditpricklywiggles/niamos192—~1.4kAutomated safety check: PassNone
Joplinalondmnt/joplin-mcp173—~897Automated safety check: PassMIT
Guideline Writingalfadur7/llm-wiki-newsroom172—~2.4kAutomated safety check: PassMIT

Similar skills

  • Ontology

    1mancompany/OneManCompany

    Typed knowledge graph for structured agent memory and composable skills.

    441 GitHub starsUsed in 2 repos~1.5k tokens
    Knowledge ManagementAuto-check passed
  • Open Knowledge Write Skill

    inkeep/open-knowledge

    A skill your agent uses when the user wants to create, author, write, or design a new Agent Skill (a SKILL.md) — for OpenKnowledge or for their editors — including requests like 'help me write a…

    4.4k GitHub stars~3.7k tokensUpdated today
    Knowledge ManagementAuto-check passed
  • Audit

    pricklywiggles/niamos

    Scan this Obsidian vault for content that's drifted from the conventions in CLAUDE.md (status↔folder drift, missing required fields, naming violations, stale active items, frontmatter health issues…

    192 GitHub stars~1.4k tokensUpdated 3 mo ago
    Knowledge ManagementAuto-check passed
  • Joplin

    alondmnt/joplin-mcp

    Orchestration guidance for Joplin note, notebook, and tag management tools

    173 GitHub stars~897 tokensUpdated 27 days ago
    Knowledge ManagementAuto-check passed
  • Guideline Writing

    alfadur7/llm-wiki-newsroom

    Guideline-authoring craft for instruction SoTs (.claude/ guides, CLAUDE.md, plan files) — operative rules vs recital, MUST/SHOULD/MAY force tiers, pruning, bloat control, blind review protocol…

    172 GitHub stars~2.4k tokensUpdated 4 days ago
    Knowledge ManagementAuto-check passed
  • Kapso

    Leeroo-AI/kapso

    Operate Kapso (PyPI leeroo-kapso), the long-running agents that optimize AI and Data systems, from a coding session — verify the install with kapso doctor, launch and follow an evolve campaign…

    121 GitHub stars~3.6k tokensUpdated yesterday
    Knowledge ManagementAuto-check: notes

More from Fergana-Labs/stash

  • Brief

    Fergana-Labs/stash

    Brief the user on what they saved in a period — the thread running through it, not a list.

    335 GitHub stars~524 tokensUpdated today
    Auto-check passed
  • Resurface

    Fergana-Labs/stash

    Pick a few old saves worth revisiting now, and say why now. An agent skill from Fergana-Labs/stash.

    335 GitHub stars~527 tokensUpdated today
    Auto-check passed
  • Slides

    Fergana-Labs/stash

    How to build presentation slide decks as HTML pages. An agent skill from Fergana-Labs/stash.

    335 GitHub stars~912 tokensUpdated today
    Auto-check passed
  • Overview

    Fergana-Labs/stash

    Chart what's in the library — topics, sources, saves over time — and say what the shape means.

    335 GitHub stars~563 tokensUpdated today
    Auto-check passed

Questions about Cleanup

What does Cleanup do?

Find duplicates, dead links and untagged items in a saved library and propose what to do about each. Cleanup is an agent skill from Fergana-Labs/stash. Find duplicates, dead links and untagged items in a saved library and propose what to do about each.

When should I use Cleanup?

Cleanup fits situations like: knowledge Management work in your project.

How do I install Cleanup in Claude Code?

Run `npx skills add Fergana-Labs/stash --skill cleanup -a claude-code`. Or copy the skill folder (docs/skills/cleanup in Fergana-Labs/stash) into .claude/skills/cleanup in your project. Claude Code loads it when a task matches its description.

How do I install Cleanup in Codex?

Run `npx skills add Fergana-Labs/stash --skill cleanup -a codex`. Or copy the skill folder (docs/skills/cleanup in Fergana-Labs/stash) into .agents/skills/cleanup in your project. Codex loads it when a task matches its description.

Can I use Cleanup in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add Fergana-Labs/stash --skill cleanup -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/cleanup, .gemini/skills/cleanup, .github/skills/cleanup and .opencode/skills/cleanup in your project.

What does Cleanup need to run?

SKILL.md names no scripts, command-line tools or credentials: Cleanup is instructions for the agent only.

Does Cleanup access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Cleanup safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Cleanup use?

Cleanup is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Cleanup use?

About 602 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Cleanup?

Skills that share tags, products or a category with Cleanup: Ontology (1mancompany/OneManCompany, 441 stars), Open Knowledge Write Skill (inkeep/open-knowledge, 4.4k stars), Audit (pricklywiggles/niamos, 192 stars) and Joplin (alondmnt/joplin-mcp, 173 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Cleanup?

Fergana-Labs (a GitHub organization) maintains it in Fergana-Labs/stash, which has 335 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on October 9, 2026.

Source: Fergana-Labs/stash on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.