code-janitor

code-janitor is a skill for Claude Code, Codex from Ekioo/KittyClaw. It costs 33 tokens per session (878 once invoked), scanned A, original, AGPL-3.0.

A periodic code-maintenance agent that checks a codebase for risky patterns and reports its findings. It makes only changes considered zero-risk and creates tickets for work requiring human judgment.

In plain words
What is it for?
Use it to monitor code health, report problems, apply safe cleanup changes, and file follow-up tickets for higher-risk issues.
Why use it?
It keeps routine code hygiene visible while limiting automatic edits where a design or behavior decision may be needed.

Skill for Claude CodeCodex

Which agent this was written for is unclear — body not stored (licence); the path alone says nothing.

Good fit Use it to monitor code health, report problems, apply safe cleanup changes, and file follow-up tickets for higher-risk issues.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ekioo/kittyclaw/code-janitor
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add Ekioo/KittyClaw --skill code-janitor
Clone the repo
git clone --depth 1 https://github.com/Ekioo/KittyClaw

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for code-janitor

README.md
[![agentmods](https://agentmods.dev/badge/skills/ekioo/kittyclaw/code-janitor/github.svg)](https://agentmods.dev/skills/ekioo/kittyclaw/code-janitor)
Your own site
<a href="https://agentmods.dev/skills/ekioo/kittyclaw/code-janitor"><img src="https://agentmods.dev/badge/skills/ekioo/kittyclaw/code-janitor/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for code-janitor

Your own site · 80×15
<a href="https://agentmods.dev/skills/ekioo/kittyclaw/code-janitor"><img src="https://agentmods.dev/badge/skills/ekioo/kittyclaw/code-janitor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 878 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe.
Origin unknown No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00033 $0.00878
Opus 5.5 $0.00013 $0.00351
Sonnet 5.5 $0.00007 $0.00176
Haiku 4.5 $0.00003 $0.00088

Measured 1mo ago against content hash 8525b3bbb6f4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

code-janitor scanned grade A with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 1mo ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

> `{project-slug}` in the curl examples is the slug of the project hosting these agents — infer it from your working directory or the preamble.
ProjectTemplate/Agents/code-janitor/SKILL.md · 106 lines

The source is not reproduced here

Licensed AGPL-3.0

The repository is licensed AGPL-3.0, which this catalogue does not treat as permission to reproduce the file. Read it at the source.

Read it on GitHub

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 1mo ago First seen · 106 lines · 33 tokens per session scan A 8525b3bbb6f4

Subscribe to this mod's changes

code-janitor is a skill published in the GitHub repository Ekioo/KittyClaw (27 stars, last pushed 1mo ago), licensed AGPL-3.0. It adds 33 tokens to every session and 878 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

cratis-engineering-effect-boundaries

Apply the Cratis effect-boundary contract when writing or reviewing code that publishes, persists, generates, propagates, or releases. On those boundaries partial success is failure - no catch-and-continue, no defaulting to success on an unknown outcome. Use when a degraded run could still report success; defer style…

Cratis/AI · 80 tokens

safeguarding-ai-generated-code

Gate AI-touched changes against Code Health regressions. Use when reviewing a staged diff or branch before commit, handoff or pull request with precommitcodehealthsafeguard or analyzechangeset. Requires an opted-in cratis/codescene profile and available CodeScene MCP tools; otherwise skip. Do not use for a structural…

Cratis/AI · 101 tokens

dotnet-techne-refactor-pipeline

Use when the user asks for a phase-gated refactoring or redesign loop - session-blind workers map and trace the area, empirical probes precede the design, an approval gate guards implementation, and a conformance audit re-checks the branch after any design change. State persists in .episteme/DESIGN- .md. Requires the…

Metalnib/dotnet-episteme-skills · 113 tokens

refactor

Point at a file or folder — get it broken down into focused, testable pieces following enterprise patterns.

vikisingh23/neuraforge-ai · 23 tokens

debug

Paste an error, stack trace, or describe a bug — get a diagnosis and fix across any stack.

vikisingh23/neuraforge-ai · 22 tokens

performance-review

Review for N+1 queries, missing memoization, unbounded queries, re-renders, caching gaps.

vikisingh23/neuraforge-ai · 24 tokens