/marekkirejczyk-skills:self-documented-code [repository | pr <number|url|branch> | path | concept]from marekkirejczyk-skills
Renames code across a repository, PR, directory, or concept so every name is self-explanatory and consistent, removes unnecessary comments, and updates the project glossary.
Ships in marekkirejczyk-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description, though model invocation is off: only you can start it.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Rename the code in a scope so that every name says what it means and the same thing has the same name everywhere, and leave comments only for what the code cannot say. Arguments: $ARGUMENTS. If your agent does not fill that in, take them from the user's message.
The scope is what the user names: the repository, a PR or branch (only the names and comments that PR adds or changes, plus whatever must change with them), a directory, a file, a module, or a concept ("everything about payments"). With no scope given, use the whole repository.
Run from start to finish without asking for approval. The one stop is a failing baseline (rule 2).
A reader who sees only a name, at the place it is used, knows what it holds or does, without opening its definition or reading a comment.
You are done when all four hold:
These hold after every round. A round that breaks one is undone.
A name is good when:
unpaidInvoices, not list or invoiceArray.id, url, i as the index of a short loop). Spell out the rest.timeoutSeconds, priceInPence, isExpired, hasPaid.order.orderId → order.id).data, info, manager, helper, util, temp, foo and a 2 suffix go, unless the word truly is the meaning.A name that already meets the standard stays: rename for meaning, never for taste.
Code says what happens. A comment exists only for what a reader could not work out from well-named code:
Delete every other comment: one that narrates the code, restates a name or signature, labels a section, or holds dead code. Before deleting one, check whether it says something the code doesn't. If it does, move that into a name, or keep only that part as a why comment. Correct any comment you keep that the code contradicts.
New comments are rare: write one only for something you learned that a name cannot carry and this standard calls for.
Linter and compiler directives, licence headers, and doc comments that generate published documentation stay as they are.
A dictionary is any place the project defines its words: GLOSSARY.md, a domain or ubiquitous-language doc, a terms section in the docs, a spell-check word list (cspell, codespell). Search for them before the vocabulary step. A project with none stays with none.
A dictionary's term is the default for its concept. When you choose a different one, or split or merge terms, change the entry in the same round as the rename: the new term, an accurate definition, the retired word gone. Add an entry for each domain concept the dictionary should have but lacks. Historical records such as ADRs and changelogs keep the words of their time.
A name that can't be made honest usually means the code does two things or is wrong. Leave the code as it is, give it the most accurate name you can, and report it.
What SKILL.md sets; muted values are Claude Code's defaults
11 skills in this plugin
/baby-sittingBaby-sit the current branch's pull request until it is merged. With nothing or manual it keeps the PR rebased, green and answered, working through the review bot's comments you pick, and leaves the merge to you; with auto it turns on GitHub auto-merge./dont-repeat-yourselfFind every concept implemented more than once in a scope (a repository, a PR, a directory, a concept) and give it one well-tested implementation. Identical copies are extracted automatically; behaviour differences and high-stakes code are brought to you for a decision at the end./eval-reportRun a repository's evals and turn the results into one static HTML report for fast review, with pass/fail counts, collapsible files, filters for failed and for new or changed cases, and links to the code. Run it with nothing for the whole repository, with commit or pr to mark what changed, or with only commit|pr to run just what changed./eval-report-install-ciSet up eval-report on GitHub Actions, so every pull request gets an HTML eval report linked at the top of its description and in one comment, built by a script without model tokens. Adds it to the existing eval job, or proposes a lean eval job of its own. Needs the eval-report skill installed next to it./explain-with-slidesBuild a slide deck that walks through a repository, the current one or one at a URL, (architecture and features) or through one pull request (its changes, before/after screenshots, diagrams, key files, diffs, tests and review risks), with screenshots taken from the code actually running. Published as a Claude Slides artifact or as a standalone HTML deck. Use only when the user asks for a repo presentation, onboarding deck or PR walkthrough deck./explain-with-videoMake a narrated explainer video of a repository or a pull request, as an MP4 with captions on a shareable video page. Scenes reveal and highlight item by item while a synthetic voice explains them (macOS say by default; OpenAI or ElevenLabs when configured). Use only when the user asks for a narrated video, screencast or video explainer of a repository, a feature or a pull request.npx claudepluginhub marekkirejczyk/skills --plugin marekkirejczyk-skillsOther plugins' skills for the same job