본문으로 건너뛰기
cccskills
무료GitHub에 공개

janitor-swipe

Tinder for your Claude Code skills. Reviews a sorted deck of every installed skill and lets you swipe keep / delete / skip on each one. Use when the user wants to bulk-clean their skill collection, triage unused skills, or do interactive skill cleanup. Trigger with '/janitor-swipe'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md5.8 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Janitor Swipe — interactive skill triage

A bash TUI that puts every installed skill into a sorted deck and lets the user swipe keep / delete / skip on each card.

Overview

The deck is sorted "most likely waste first" — heavy, never-used skills appear at the top, so most users hit ← delete a few times and quit before reviewing the whole list. The swipe is scope-aware and honest about what it can delete: user-scope skills are actually removed (after confirmation), plugin skills are flagged for review instead.

Prerequisites

  • Claude Code with the skills-janitor plugin installed (provides scripts/swipe.sh and swipe-build-deck.sh)
  • bash 3.2+ (the stock macOS bash works; no external dependencies)
  • An interactive terminal at least 50 columns x 22 rows — the TUI reads single keypresses

Instructions

Step 1: Tell the user to run it via !

Inside Claude Code, the Bash tool's stdin is non-interactive, so the keypress reader can't work. The user must invoke it via the ! prefix so the command runs in their actual shell:

!bash ~/.claude/skills/skills-janitor/scripts/swipe.sh

When the user asks for /janitor-swipe, tell them to run that command in their terminal. Do NOT try to run it yourself via the Bash tool — it will error with "needs an interactive terminal".

Step 2: Explain the card and controls

Each card shows:

  • Skill name + position in deck (e.g. [3 / 47])
  • Context cost split: X always · Y on trigger (description tokens are permanent; body loads only when the skill fires)
  • Usage count and last invoked date
  • Scope (user, project, plugin · <plugin-name>, etc.)
  • 3-line truncated description
  • Verdict label (e.g. "Unused + heavy on trigger — prime delete candidate")

Controls:

  • ← / h / d — stage for delete
  • → / l / k — keep
  • ↓ / j / s / space — skip
  • u — undo (back up one card, clear its decision)
  • i — inspect (show full SKILL.md description)
  • q / Esc — quit (still shows summary for decisions made so far)

Step 3: Scope-aware deletion (the critical correctness point)

ScopeWhat happens on swipe left
user, project, codex-user, codex-projectPath is staged for rm -rf (or unlink if symlink)
plugin, plugin-sourceNOT deleted — flagged under "Plugins to review" at the apply screen, with a hint to run /plugin uninstall <plugin> if enough skills from that plugin were swiped
mcp-user, mcp-project (v1.7)Server entry is removed from its config file (~/.claude.json / .mcp.json) with a timestamped .bak backup — reversible
mcp-pluginNOT edited — flagged for plugin review like plugin skills

MCP server cards show real call counts from session transcripts instead of token guesses (schemas live server-side). An unused connected server ranks high — its tool schemas load into context for nothing.

Output

After the last card (or q), an apply screen shows keep/skip/delete counts, the deletion list with paths, the "frees X always-loaded + Y on-trigger" token summary, the plugin review breakdown, and a prompt:

  • y — apply deletions immediately (logged to ~/.skills-janitor/log.jsonl with path and frontmatter snapshot)
  • N — cancel
  • save — write decisions to ~/.skills-janitor/swipe-<timestamp>.json for later application via swipe.sh --apply <file>

Error Handling

  1. Error: "Swipe needs an interactive terminal" Solution: The command was run through the Bash tool. Have the user run it with the ! prefix in their own terminal.

  2. Error: "Swipe needs at least 50 columns / 22 rows" Solution: The terminal window is too small — resize and retry.

  3. Error: No skills to swipe Solution: Nothing is installed (exits 0 with a message) — suggest /janitor-discover to find skills.

  4. Error: The user wants a non-interactive view instead Solution: Point them at /janitor-report or /janitor-value for the same data in list form.

Edge cases handled by the script: Ctrl-C mid-swipe restores the terminal; symlinks are unlinked, never followed; old saved decks without the v1.5 token-split fields still load.

Examples

Example 1: Standard triage

Input: "/janitor-swipe" or "help me clean up my skills interactively"

Output: Explain the flow in two sentences, then give the exact command to run: !bash ~/.claude/skills/skills-janitor/scripts/swipe.sh — and offer to review the results afterwards.

Example 2: Resume saved decisions

Input: "I saved my swipe decisions yesterday — apply them."

Output: !bash ~/.claude/skills/skills-janitor/scripts/swipe.sh --apply ~/.skills-janitor/swipe-<timestamp>.json (list the files in ~/.skills-janitor/ to find the right one).

Resources

  • TUI script (plugin-relative): {baseDir}/../../scripts/swipe.sh; deck builder: {baseDir}/../../scripts/swipe-build-deck.sh
  • Deletion log: ~/.skills-janitor/log.jsonl
  • /janitor-report — same data as a non-interactive list
  • /janitor-value — the token + usage data underneath the swipe deck
  • /janitor-fix --prune — automated broken-symlink cleanup, no interactive review

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Find new skills on GitHub or check a specific skill before installing. Use when the user wants to search for skills, evaluate a skill URL, check overlap and security risk before installing, or compare a local skill against alternatives. Trigger with '/janitor-discover'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

khendzel/skills-janitor1222026년 9월 30일 업데이트

Automatically fix skill problems (safe preview first). Also use with --prune to find and remove broken symlinks, empty directories, and orphaned skills. Trigger with '/janitor-fix'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

khendzel/skills-janitor1222026년 9월 30일 업데이트

Full health check of all your skills in one report. Use when the user wants to check for errors, find duplicates, detect broken skills, or get a complete overview of skill health. Pass --brief for inventory only. Trigger with '/janitor-report'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

khendzel/skills-janitor1222026년 9월 30일 업데이트

Heuristic security scan of installed skills — prompt-injection phrases, hidden unicode instructions, credential-store access, network-pipe-to-shell and payload-smuggling patterns. Use when the user asks 'are my skills safe', wants to scan skills for prompt injection or malware patterns, or before trusting a newly installed skill. Trigger with '/janitor-security'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

khendzel/skills-janitor1222026년 9월 30일 업데이트

Show whether each skill is earning its context-window cost — combined tokens-used view sorted by waste. Use when the user asks 'are my skills worth it', 'what's my context budget', 'which skills are dead weight', or wants to audit skill value, token cost, or usage. Trigger with '/janitor-value'.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

khendzel/skills-janitor1222026년 9월 30일 업데이트

khendzel의 스킬 모두 보기

이 스킬의 문제 신고