Skip to content
Back to skills

Joycraft Cleanup

ASecurity

Clean AGENTS.md and the context pages behind its map in one pass, as a dialogue with the owner - remove false, stale and temporal text, move detail to the page that owns it, and change no rule without the owner's answer. Use for "clean up my AGENTS.md", "clean up the docs", "audit the docs", "what in our docs is stale", "AGENTS.md is too long", "review our tests", or when cleanup.mjs reports findings. At a session end, and for "tidy now", it runs `cleanup.mjs tidy`.

  • 15 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
developmentnodetestinggit

Security analysis

A100/100

Scanned December 1, 2026

npx -y skills add maksutovic/joycraft --skill joycraft-cleanup --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Joycraft Cleanup?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Joycraft Cleanup
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/maksutovic-joycraft-cleanup/badge)](https://www.skillsdirectory.com/skills/maksutovic-joycraft-cleanup)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: joycraft-cleanup
description: Clean AGENTS.md and the context pages behind its map in one pass, as a dialogue with the owner - remove false, stale and temporal text, move detail to the page that owns it, and change no rule without the owner's answer. Use for "clean up my AGENTS.md", "clean up the docs", "audit the docs", "what in our docs is stale", "AGENTS.md is too long", "review our tests", or when cleanup.mjs reports findings. At a session end, and for "tidy now", it runs `cleanup.mjs tidy`.
compatibility: Requires Node.js 22+ and the installed .joycraft runtime. Git improves the code-drift and worktree checks.
---

# 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](../../../.joycraft/references/knowledge.md)).
This method is adapted from doc-cleanup by aka-luan
([MIT](../../../.joycraft/references/doc-cleanup-LICENSE.md)), brought in by David Moshal.

Read [cleanup reference](../../../.joycraft/references/cleanup.md) first.

## Which run this is

- **A person asks for a cleanup.** Do the
  [one pass](../../../.joycraft/references/cleanup.md#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](../../../.joycraft/references/testing-review.md); 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.

## Hand off

Report the changed files, archive mappings, the ledger, what the project's
gates said, and the findings that remain with their reasons. Approval to edit
is not approval to commit: offer one commit with a specific message, and commit
when the user says yes.

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.