Agent skill

Janitor Fix

by khendzel in khendzel/skills-janitor

Automatically fix skill problems (safe preview first). An agent skill from khendzel/skills-janitor.

MITAuto-check passed

Install Janitor Fix

skills CLI
$ npx skills add khendzel/skills-janitor --skill janitor-fix -a claude-code

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

GitHub CLI
$ gh skill install khendzel/skills-janitor janitor-fix --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/khendzel/skills-janitor.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/janitor-fix .claude/skills/janitor-fix && 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
janitor-fix
GitHub stars
123
Used in
1 other repo
Token cost
~1.1k tokens
SKILL.md length
442 words
Files
1
Skills in repo
5
Repo updated
First seen
Licence
MIT

At a glance

Automatically fix skill problems (safe preview first). An agent skill from khendzel/skills-janitor.

  • Works in 3 steps: Preview first (always) → Show the user the preview and confirm → Apply
  • With /janitor-fix
  • SKILL.md covers Overview, Prerequisites, Instructions and Output, plus 3 more sections
  • Calls bash

What it does

Janitor Fix is an agent skill from khendzel/skills-janitor. 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'.

Its SKILL.md is about 1.1k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts. Compatibility notes: Designed for Claude Code. Requires bash 3.2+ (macOS default works). Modifies only user/project/codex-scope skill files, never plugin content.

The repository describes itself as: Tinder for your Claude Code skills, subagents and MCP servers. Swipe away what wastes context, scan for prompt injection, get honest token costs. Fixes what it finds and actually… The licence is MIT.

When your agent uses it

  • With /janitor-fix

Example prompts

  • “/janitor-fix”
  • “/janitor-fix”

Requirements

  • Compatibility (from SKILL.md): Designed for Claude Code. Requires bash 3.2+ (macOS default works). Modifies only user/project/codex-scope skill files, never plugin content.
  • Pre-approved tools (allowed-tools): Read, Bash(bash:*)

Workflow steps

3 steps, taken from the step headings in SKILL.md.

  1. Preview first (always)
  2. Show the user the preview and confirm
  3. Apply

What it can do on your machine

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

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Read
    • Bash(bash:*)

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • bash

    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.

  • Compatibility

    Designed for Claude Code. Requires bash 3.2+ (macOS default works). Modifies only user/project/codex-scope skill files, never plugin content.

    From compatibility in the SKILL.md frontmatter.

Context cost

Janitor Fix loads about 1.1k tokens when it runs. Until then it costs about 48 tokens; SKILL.md has 442 words of instructions outside code blocks.

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

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 khendzel/skills-janitor at commit 4b42f39, republished under its MIT licence (© khendzel). 442 words, ~1,077 tokens.

Download SKILL.mdSave it as .claude/skills/janitor-fix/SKILL.md (or your agent's skills folder).
name
janitor-fix
description
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'.
allowed-tools
Read, Bash(bash:*)
compatibility
Designed for Claude Code. Requires bash 3.2+ (macOS default works). Modifies only user/project/codex-scope skill files, never plugin content.
argument-hint
[--apply] [--prune]
version
1.5.1
author
Krzysztof Hendzel <krzysztoff.hendzel@gmail.com>
license
MIT
tags
skills, auto-fix, cleanup, symlinks, maintenance

Auto-Fix

Automatically fix common skill issues. Dry-run by default — shows what would change without modifying files.

Overview

Repairs frontmatter problems (missing delimiters, empty descriptions, missing version fields) across user, project, and codex-scope skills, and — in --prune mode — removes broken symlinks and empty skill directories. Plugin/marketplace skills are never modified (changes would be overwritten on update).

Prerequisites

  • Claude Code with the skills-janitor plugin installed (provides scripts/fix.sh)
  • bash 3.2+ (the stock macOS bash works; no external dependencies)
  • Write access to the user's own skill directories (~/.claude/skills, ./.claude/skills, ~/.agents/skills)

Instructions

Step 1: Preview first (always)
bash
bash ~/.claude/skills/skills-janitor/scripts/fix.sh            # preview fixes
bash ~/.claude/skills/skills-janitor/scripts/fix.sh --prune    # preview broken/orphaned removals
Step 2: Show the user the preview and confirm

Never jump straight to --apply. Present the [DRY RUN] lines and ask before writing.

Step 3: Apply
bash
bash ~/.claude/skills/skills-janitor/scripts/fix.sh --apply           # apply fixes
bash ~/.claude/skills/skills-janitor/scripts/fix.sh --prune --apply   # remove broken skills

What it fixes:

  • Adds missing frontmatter delimiters (---)
  • Fills empty description fields with a template
  • Adds missing version field (defaults to "1.0.0")
  • Generates template descriptions using the skill folder name

Prune mode finds and removes:

  • Broken symlinks — skill folder points to deleted source
  • Empty directories — skill folder with no SKILL.md
  • Orphaned skills — user-scope copies of plugin skills

Safety model: dry-run by default (must pass --apply to write), skips plugin/marketplace skills, logs ALL changes with timestamps to data/changelog.log, always asks for confirmation before removing.

Output

Per-skill action lines ([DRY RUN] / [FIXED] / [PRUNED] / [SKIP]) followed by a summary of fixable issues, skipped items, and prunable entries. In dry-run mode the summary ends with "Run with --apply to make these changes."

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

Error Handling

  1. Error: A fix produced an unexpected result in a SKILL.md Solution: Every applied change is logged in data/changelog.log with a timestamp — show the log entry and restore the affected field manually; template descriptions are meant to be replaced by the author.

  2. Error: [SKIP] Plugin/marketplace skill - don't modify Solution: Expected behavior, not an error. Plugin content is fixed upstream — suggest the user report the issue to the plugin author instead.

  3. Error: Prune lists a skill the user wants to keep Solution: Do not run --apply. A "broken symlink" that should be kept means its target moved — recreate the link (ln -sfn <new-target> <link>) instead of pruning.

Examples

Example 1: Safe fix cycle

Input: "Fix my skills."

Output: Run the dry-run, present the [DRY RUN] list ("3 fixable: 2 missing descriptions, 1 missing version"), ask for confirmation, then run --apply and report the [FIXED] lines.

Example 2: Cleanup of broken leftovers

Input: "Remove broken skills."

Output: Run --prune (dry-run), show what would be removed and why (broken symlink targets, empty dirs), confirm, then --prune --apply and report the [PRUNED] lines.

Resources

  • Fix script (plugin-relative): {baseDir}/../../scripts/fix.sh
  • Change log of applied fixes: data/changelog.log in the plugin directory
  • For finding issues: /janitor-report
  • For usage + token cost: /janitor-value

© khendzel, 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 skills/janitor-fix of khendzel/skills-janitor.

Open the folder on GitHubat commit 4b42f39

Used in 1 other repository

We found 1 copy of this SKILL.md (exact, near-identical or edited) in other folders, from 1 other GitHub owner. This page covers the copy in khendzel/skills-janitor, which our catalogue first saw on October 7, 2026.

Compare with similar skills

Janitor Fix 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.

Janitor Fix compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Janitor Fix this skillkhendzel/skills-janitor1231 repos~1.1kAutomated safety check: PassMIT
Is This A Problemanthropics/claude-for-legal9.6k2 repos~2.3kAutomated safety check: PassApache-2.0
Langfuse Previewslangfuse/langfuse36k—~2.8kAutomated safety check: NotesCustom licence
Upload Element Previewsremotion-dev/remotion62k—~265Automated safety check: PassCustom licence
Windmill Dev Page Previewwindmill-labs/windmill18k—~1.8kAutomated safety check: PassCustom licence
Safe PushJetBrains/intellij-community21k—~1.1kAutomated safety check: PassCustom licence

Similar skills

  • Is This A Problem

    anthropics/claude-for-legal

    Official

    Fast "is this a problem?" answer for the quick Slack question — pattern-matches against your calibration.

    9.6k GitHub starsUsed in 2 repos~2.3k tokens
    Business, Finance & HRAuto-check passed
  • Langfuse Previews

    langfuse/langfuse

    Use Langfuse's disposable per-PR previews at pr-N.preview.langfuse.com (synthetic data only).

    36k GitHub stars~2.8k tokensUpdated today
    AI & LLM EngineeringAuto-check: notes
  • Upload Element Previews

    remotion-dev/remotion

    Official

    Upload a Remotion Element's preview assets to remotion.media and replace local preview URLs.

    62k GitHub stars~265 tokensUpdated today
    Media & CreativeAuto-check passed
  • Windmill Dev Page Preview

    windmill-labs/windmill

    Opens the Windmill dev page to preview a flow, script or app, choosing between proxy and direct mode and deciding whether the agent or the runtime starts the wmill dev server.

    18k GitHub stars~1.8k tokensUpdated today
    DevelopmentAuto-check passed
  • Safe Push

    JetBrains/intellij-community

    Official

    Push IntelliJ repository changes through the Safe Push workflow.

    21k GitHub stars~1.1k tokensUpdated today
    Auto-check passed
  • Safe Refactor

    JuliusBrussee/caveman

    Restructure code while preserving behavior. Use for extraction, consolidation, ownership moves, or cleanup where verification must bracket structural edits.

    110k GitHub starsUsed in 1 repo~177 tokens
    DevelopmentAuto-check passed

More from khendzel/skills-janitor

  • Janitor Swipe

    khendzel/skills-janitor

    Tinder for your Claude Code skills. An agent skill from khendzel/skills-janitor.

    123 GitHub starsUsed in 2 repos~1.5k tokens
    Auto-check passed
  • Janitor Report

    khendzel/skills-janitor

    Full health check of all your skills in one report. An agent skill from khendzel/skills-janitor.

    123 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Janitor Value

    khendzel/skills-janitor

    Show whether each skill is earning its context-window cost — combined tokens-used view sorted by waste.

    123 GitHub starsUsed in 1 repo~1.4k tokens
    Auto-check passed
  • Janitor Discover

    khendzel/skills-janitor

    Find new skills on GitHub or check a specific skill before installing.

    123 GitHub stars~1.6k tokensUpdated 8 days ago
    Auto-check passed

Questions about Janitor Fix

What does Janitor Fix do?

Automatically fix skill problems (safe preview first). An agent skill from khendzel/skills-janitor. Janitor Fix is an agent skill from khendzel/skills-janitor. Automatically fix skill problems (safe preview first).

When should I use Janitor Fix?

Janitor Fix fits situations like: with /janitor-fix.

How do I install Janitor Fix in Claude Code?

Run `npx skills add khendzel/skills-janitor --skill janitor-fix -a claude-code`. Or copy the skill folder (skills/janitor-fix in khendzel/skills-janitor) into .claude/skills/janitor-fix in your project. Claude Code loads it when a task matches its description.

How do I install Janitor Fix in Codex?

Run `npx skills add khendzel/skills-janitor --skill janitor-fix -a codex`. Or copy the skill folder (skills/janitor-fix in khendzel/skills-janitor) into .agents/skills/janitor-fix in your project. Codex loads it when a task matches its description.

Can I use Janitor Fix 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 khendzel/skills-janitor --skill janitor-fix -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/janitor-fix, .gemini/skills/janitor-fix, .github/skills/janitor-fix and .opencode/skills/janitor-fix in your project.

What does Janitor Fix need to run?

Going by SKILL.md and its folder, Janitor Fix needs the command-line tools its instructions call (bash). Its frontmatter pre-approves these tools: Read, Bash(bash:*). Compatibility (from SKILL.md): Designed for Claude Code. Requires bash 3.2+ (macOS default works). Modifies only user/project/codex-scope skill files, never plugin content..

Does Janitor Fix 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 Janitor Fix 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 Janitor Fix use?

Janitor Fix is published under the MIT licence (declared in SKILL.md). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Janitor Fix use?

About 1.1k tokens (SKILL.md is roughly 4.3k 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 Janitor Fix?

Skills that share tags, products or a category with Janitor Fix: Is This A Problem (anthropics/claude-for-legal, 9.6k stars), Langfuse Previews (langfuse/langfuse, 36k stars), Upload Element Previews (remotion-dev/remotion, 62k stars) and Windmill Dev Page Preview (windmill-labs/windmill, 18k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Janitor Fix?

khendzel (a GitHub user) maintains it in khendzel/skills-janitor, which has 123 GitHub stars. The repository holds 5 skills in this directory. The repository was last updated on September 30, 2026.

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