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

janitor-value

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'.

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

연동 도구Figma
설치 방법 보기

포함된 파일(1)

  • SKILL.md5.3 KB

SKILL.md(원문)

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

Skill Value Report

Show whether each installed skill is earning the context-window tokens it costs.

Overview

Combine token cost and usage tracking into a single view of every installed skill, sorted with the heaviest unused skills at the top. The report splits each skill's cost into what is permanently loaded (the description) and what only loads on demand (the body), then cross-references recent invocations so the user can see which skills are dead weight.

Replaces the v1.2 split between /janitor-tokens (cost only) and /janitor-usage (usage only).

Prerequisites

  • Claude Code with the skills-janitor plugin installed (provides scripts/value.sh)
  • bash 3.2+ (the stock macOS bash works; no external dependencies)
  • Read access to ~/.claude/skills, ~/.claude/agents, and local Claude Code session history
  • No authentication or API keys required — the script reads local files only

Instructions

Step 1: Run the value script

bash ~/.claude/skills/skills-janitor/scripts/value.sh [--weeks N] [--budget N] [--json]
  • --weeks N — usage lookback window (default: 4)
  • --budget N — context window size for % calculations (default: 200000)
  • --json — emit raw JSON

Step 2: Present the results

Show the table and summary to the user. When explaining results, do NOT describe body tokens as permanent context cost — only descriptions are always loaded. Plugin-namespaced skills appear with their full invocation name (e.g., marketing-skills:image, figma:figma-use).

Step 3: Suggest action when waste is high

If "unused skill cost" exceeds 20% of the budget, recommend the user run /janitor-report for a full health check or (in v1.4+) /janitor-swipe to triage interactively.

Output

A table of every installed skill with:

  • Always — description tokens, permanently in the system prompt (the real context rent)
  • Body — the rest of SKILL.md, loaded only when the skill triggers (progressive disclosure)
  • Used? — yes if invoked in the lookback window, else NO
  • Last Used — date of most recent invocation

Followed by a summary:

  • Total tokens loaded into context (the always-loaded TOTAL includes skills plus subagent descriptions from ~/.claude/agents, reported as % of budget)
  • Active vs. unused split
  • Top wasters: heavy skills with zero usage

Error Handling

  1. Error: value.sh: No such file or directory Solution: The plugin is installed under a different root. Locate it with ls ~/.claude/skills or check the plugin cache, then run the script from its actual location.

  2. Error: Every skill shows NO in the Used? column Solution: The lookback window may be too short or session history is empty. Re-run with a longer window, e.g. --weeks 12.

  3. Error: A skill shows 0 tokens Solution: Its SKILL.md is missing or unreadable. Run /janitor-report to surface broken skills, then /janitor-fix --prune to clean them up.

  4. Error: Percentages look wrong for a non-default model Solution: Pass the correct context size explicitly, e.g. --budget 500000.

Examples

Example 1: Standard value check

Input: "Are my skills worth their token cost?"

Output: Run bash ~/.claude/skills/skills-janitor/scripts/value.sh, then present the table sorted by waste and the summary line, e.g. "Always-loaded total: 8,420 tokens (4.2% of 200k budget). 6 of 31 skills unused in 4 weeks; top waster: heavy-skill (1,900 tokens, never used)."

Example 2: Longer lookback, custom budget

Input: "Check skill usage over the last quarter against a 500k window."

Output: Run bash ~/.claude/skills/skills-janitor/scripts/value.sh --weeks 12 --budget 500000 and present the same table with the adjusted lookback and percentages.

Example 3: Machine-readable output

Input: "Give me the raw skill value data."

Output: Run the script with --json and return the JSON payload unmodified.

MCP servers (v1.7)

For the MCP side of context cost, run bash {baseDir}/../../scripts/mcp.sh [--weeks N] — inventories every configured server (user, project, plugin) with REAL call counts from session transcripts, and lists servers unused in the window. No token guesses: schemas live server-side, so the janitor reports calls, distinct tools used, and last-used instead.

Resources

  • Report script (plugin-relative): {baseDir}/../../scripts/value.sh
  • /janitor-report — full health check including duplicates and broken skills
  • /janitor-fix --prune — remove broken symlinks and empty skill dirs
  • /janitor-discover — find new skills or check one before installing

리뷰

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

댓글

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

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

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. 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일 업데이트

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'.

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

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

khendzel의 스킬 모두 보기

이 스킬의 문제 신고