joycraft-cleanup

joycraft-cleanup is a skill for Claude Code, Codex from maksutovic/joycraft. It costs 123 tokens per session (736 once invoked), scanned A, original, MIT.

A project-documentation audit that checks claims in Markdown project files and AGENTS.md context files against the current code. It reports stale, finished, contradictory, or unreachable information and edits only after approval.

In plain words
What is it for?
Use it to review project guidance, remove obsolete plans and logs, find dead links or paths, and propose a shorter AGENTS.md.
Why use it?
It helps prevent coding agents and developers from relying on instructions or documentation that no longer matches the repository.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents); mentions AGENTS.md.

Good fit Use it to review project guidance, remove obsolete plans and logs, find dead links or paths, and propose a shorter AGENTS.md.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/maksutovic/joycraft/joycraft-cleanup
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 maksutovic/joycraft --skill joycraft-cleanup
Clone the repo
git clone --depth 1 https://github.com/maksutovic/joycraft

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 joycraft-cleanup

README.md
[![agentmods](https://agentmods.dev/badge/skills/maksutovic/joycraft/joycraft-cleanup/github.svg)](https://agentmods.dev/skills/maksutovic/joycraft/joycraft-cleanup)
Your own site
<a href="https://agentmods.dev/skills/maksutovic/joycraft/joycraft-cleanup"><img src="https://agentmods.dev/badge/skills/maksutovic/joycraft/joycraft-cleanup/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 joycraft-cleanup

Your own site · 80×15
<a href="https://agentmods.dev/skills/maksutovic/joycraft/joycraft-cleanup"><img src="https://agentmods.dev/badge/skills/maksutovic/joycraft/joycraft-cleanup.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 123 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 736 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original 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.00123 $0.00736
Opus 5.5 $0.00049 $0.00294
Sonnet 5.5 $0.00025 $0.00147
Haiku 4.5 $0.00012 $0.00074

Measured 7d ago against content hash 28035726d1b5, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

joycraft-cleanup scanned grade A with 0 findings 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 7d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/joycraft-cleanup/SKILL.md · 57 lines

How it starts

The opening of the file, as written. The whole thing — 57 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Joycraft Cleanup

Keep the entry files light and the pages behind the map true. Treat every doc claim as a hypothesis and the repository as the evidence (knowledge guidance). This method is adapted from doc-cleanup by aka-luan (MIT), brought in by David Moshal.

Read cleanup reference first.

Which run this is

  • A person asks for a cleanup. Do the one pass: the entry files and every page behind the map, together. When the person is away before the answers, leave the questions and the recommendations as a page and stop. After the pass, offer the opt-in test review; when the person asks only about tests, do only that.
  • Session end calls this skill, or nobody asked (a queue, a hook). Run node .joycraft/runtime/cleanup.mjs. Fix only what a script can check: replace Joycraft's block with the output of node .joycraft/runtime/entry-check.mjs block and remove an older Joycraft line beside it, and re-point a dead path that has one unique Git rename. Put the other findings on the session-end page in one list. Change no rule and no other line, a gate-rule line included, and do not start the pass.
  • "Tidy now". Run node .joycraft/runtime/cleanup.mjs tidy and do the session-end tidy step.
  • Setup calls this skill. Do steps 1 and 2 of the pass and hand the findings back to setup: no report page and no stop.

The pass

Follow the reference: the steps, in order. Code proves what is implemented, not what was intended. Never delete a context page to clear a finding; merge or redirect it.

Gate lines

In an attended cleanup, turn all gate-rule findings into one decision: for each line, the before (the line as it is) and the after (the gate runs once on the integrated revision, and each spec runs its focused tests). Rewrite a line only on the owner's yes; never unattended.

Read the full file on GitHub · 57 lines

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. 7d ago Changed · +9 lines · +7 tokens per session 28035726d1b5
  2. 8d ago Changed · +2 lines · +5 tokens per session 1068f282272a
  3. 10d ago Changed · -43 lines · -16 tokens per session cd60ae78c157
  4. 27d ago First seen · 89 lines · 127 tokens per session scan A 99ce785e551b

Subscribe to this mod's changes

joycraft-cleanup is a skill published in the GitHub repository maksutovic/joycraft (15 stars, last pushed today), licensed MIT. It adds 123 tokens to every session and 736 once invoked, about $0.0005 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-11-03.

Related

joycraft-cleanup compared with skills from other repositories

joycraft-cleanup next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
joycraft-cleanupmaksutovic/joycraftSkill15todayMITA123Claude Code, Codex
NestJS FrameworkFortiumPartners/ensembleSkill124d agoMITA17Claude Code, Codex
using-prismaFortiumPartners/ensembleSkill124d agoMITA43Claude Code
dd-code-generationDataDog/pupSkill1.0ktodayApache-2.0A16Claude Code
scaffold-projectMarve10s/Better-FullstackSkill831yesterdayMITA80Claude Code
agent-dependenciesNVIDIA/elementsSkill122yesterdayApache-2.0A73Claude Code, Codex
agent-debug-ciNVIDIA/elementsSkill122yesterdayApache-2.0A80Claude Code, Codex