/const-doc-budgets:set-ceilingsfrom const-doc-budgets
Load this skill first, before a ceiling is set, raised, lowered or moved to error, and before a finding of the length check is fixed — every time, whether or not the number seems obvious. It sets a character ceiling for a group of documents from the repository's own history, and reads a finding of the check: a document over its ceiling, a note at warning, a ceiling refused for too few days of data, two ceilings holding one document. Use when a group of documents is to be measured for the first time, when the check reports after a write or in its scan, when a document must stand over its ceiling, and when the history report is read. Advisory: it shapes the numbers and the cuts; the check holds the count, the ceilings and the 30 days.
Ships in const-doc-budgets. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
A document that grows with every change costs every reader, and every session that loads it. A ceiling says how long a group of documents may be, in characters, as the project's conventions count them — never tokens, never bytes, never lines. This procedure sets the number from what the group was observed to need, and turns a finding into a cut. It is judgment from start to finish, except the checks named in steps 1 and 2.
level: warning with a generous number, then run the
report over the history: --scan --since <the first day of the window>. It prints, per day,
the longest document of the group, and per ceiling the window's longest document with the rule
of thumb beside it.window. The dates are
declared, not proven: they say which data the number came from, and a reviewer checks them
against the report.A ceiling stays at level: warning until 30 days of data stand behind it: the check refuses
error on a window shorter than 30 days. At warning an excess is a note that reaches the model
after the write and is listed by the scan, never red. After 30 days, run the report again, set
the number from it, widen the window, and move the level to error. Make those edits in a change
of their own that names the number and the reason.
Take an accepted record, a frozen comparison, a document the project will not rewrite. First make
the edits the project's rules allow for such a document, where they bring it under. Declare what
they do not reach as an entry of departures in the dials file. It has paths for the document or
its number range, allow naming the ceiling it may exceed, and a reason of one line. The check
still measures it, and the other ceilings still apply. Never mark the document, and never take it
out of a ceiling's paths with a negated pattern, which hides it with no reason. An entry can lift
nothing — it matches no document that a ceiling it names holds. Such an entry is a note on every
scan: remove it or fix its names.
A ceiling is lowered only from data — the report showing the group smaller for a while. The lowering is a change of its own with the number and the reason. A lower number that falls below a frozen document needs that document's departure in the same change.
The check does not judge whether a long document says what it needs to, or whether a split left each part readable. Nor does it judge whether the declared window is where the number came from. Nor does it judge a file written by a shell command, which the scan sees and the hook does not. Those are the writer's and the reviewer's.
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub evgenus/claude-constitution-layer-kit --plugin const-doc-budgets