Configuration & rules¶
The always-on rules under plugins/steer/rules/ are the plugin's operating
manual. They are injected into every managed session by inject-standards.sh
(Hooks) and concatenate in lexical order by numeric prefix -
delivered in several SessionStart parts, because Claude Code caps one hook
command's output at 10,000 characters (see the hook's row in Hooks).
Numbering has intentional gaps
Prefixes are spaced (e.g. 15 -> 30 -> 35) so new rules can slot between
existing ones. Gaps are headroom - files are never renumbered to make the
sequence contiguous.
The ruleset¶
| Rule | Topic |
|---|---|
00-router.md |
Operating-manual entry point - you are the router: map a plain-language goal to the owning skill and invoke it yourself, announcing it at the start and naming it again in the handoff heading - and a skill that pauses on its own question names itself in that message too. Routing moves navigation, never authority; bootstrap precedes feature code; an intent-switch is named, never dropped. The route does not depend on what the session can do - plan mode, a read-only session or a client with fewer tools do not change the owning skill, and "I have no Write/Edit/Bash here, so I'll just give the answer" is named as the misroute it is, since it leaves nothing claimed, branched or recorded (#611). Also names what deliberately is not in the always-on payload and which skill loads it. Its You are not the gate section states that there is no path-based permission boundary and the reviewing dev is the hard gate; When steer itself misbehaves routes a plugin defect to /steer:report, which auto-files after scrubbing. |
03-output.md |
Earn every line, in three parts. Output discipline - default to less everywhere; write the least code that does the job; durable prose informs rather than impresses. Responses - lead with the result and stop when it is said; a progress update is one or two sentences, a final report is what changed / what was verified / what is next, with no closing offer (which binds a skill too); hook notices and injected context are never echoed and tool calls are not narrated one by one, but a long turn gives a one-line update when a phase ends or the plan changes; the one exception is the skill's own name at the start and in the handoff heading; formatting follows the content (headers above ~300 words, tables for numbers). Tool calls - stay on the auto-mode allowlist: files are read, searched and edited with Read/Grep/Glob/Edit/Write rather than inline scripts, and commands run from the session's directory with no cd prefix or VAR=...; preamble. |
04-code-comments.md |
Code comments - why-only: the default is no comment, test each one by deleting it, never restate the code or keep dead code, config gets one header line, and a dense file is not a licence to add more (advised at write time by check-comment-density.sh, audited by the comment-noise dimension). Injected in code and advisory mode, not in a knowledge folder (inject-when=code-project\|advisory). |
05-roles.md |
Who you are working with. |
10-stack.md |
Stack defaults (app / service profile) - e22 org pack (inject-when=org-e22): five bullets of default biases with their ADR triggers, the context7 version check, the home of the baseline patterns' default-stack instances and the deployed secret-store default. Rationale, mechanics and the other profiles live in the conventions reference. |
12-stack-infra.md |
Stack - infrastructure / IaC. e22 org pack, injected when the repo does IaC and follows the pack (inject-when=has-iac&org-e22). |
15-commands.md |
Useful commands - e22 org pack (inject-when=org-e22): first-time setup, develop / test, deploy, the infra and workspace task prefixes, and /steer:setup doctor when mise does not win PATH. |
30-spec.md |
The product spine, in three parts. Spec workflow - the triggers that create an artifact (feature intent + contract - a draft intent is enough to build on, PO approval gates the merge -, ADR by reversal cost, contract on a behavior change, open questions, a tracker-born feature), plus the bootstrap-first rule (/steer:setup), the brownfield sequence and a pointer for design exports. Durable decisions - a decision belongs in the spine, never only in chat or assistant memory, and bootstrap comes before the capture. Living documentation - update the owning artifact in the same change as the code, with the notable-event rule for /spec/history/, "applying a settled decision is not a new decision", and the internal-ids ban on end-user copy. The full routing table (learnings, QA/UAT runs, the polyrepo member's write-through) is in the traceability reference. |
33-spec-workflow-openspec.md |
Spec workflow - OpenSpec backend. Injected only where openspec/ carries a structural marker (inject-when=has-openspec); remaps the spec artifacts onto the /opsx:* commands and leaves every other rule unchanged. ADRs, the tracker declaration, the app guide and learnings stay steer's, under openspec/steer/. |
35-tracker.md |
Issue-tracker integration, client-agnostic - /spec/tracker.md declares the system and ref format; refs live in the > Tracker: line of an intent or ADR, the PR and the history entry; a question stays a Q-NNN open question until it needs an owner, blocks several features, needs outside input, or would outlive the session, and is then promoted to an issue. |
36-issue-first.md |
Issue-first (GitHub-adopted repos) - when an issue must exist before the first mutation; /steer:work issues is the lifecycle and /steer:tracker-sync the gateway; adds the active-issue item to the end-of-session checklist. |
40-testing.md |
Testing - a feature change carries its tests in the same PR; tests follow the behavior, not the lines (each contract.md rule or acceptance criterion proven once, at the lowest level that can prove it through a public entry point, with mocks only for what leaves the process); a fix for a defect that reached the default branch carries a regression test that fails before and passes after, while a defect caught before its change lands corrects that change's own tests; and a failing test is never deleted or skipped to make CI pass, though a redundant one may be removed with its reason in the PR. Coverage is a signal, not a target: cover what you touch, prioritise critical paths and error handling, surface a drop on changed code as drift, and gate only changed-line coverage - the reviewer judges adequacy. |
45-delivery.md |
How work reaches users, in three parts. Commit autonomy - commit, push and open the PR without asking, deliberately overriding a surface default (CLI, web, GitHub Action) to do so only when asked; the merge is the gate. Two declared modes, pr-flow (the default) and solo trunk, with /steer:setup protect moving a repo between them; branch off the default branch and stack only on a real dependency, landing many fixes as one merge through sibling PRs into a batch/* branch (the stacked-PR hook carries the rationale); Conventional Commit subjects and a changelog fragment for anything that ships; /steer:work PRs opened ready on a clean code gate, else as drafts the author marks ready, and every CI run after that watched to conclusion (see Authorization model). Deployment & environments - the repo declares its model in policy/delivery.yml and the rule follows it, with the observability, rollback and deploy-time secret injection baselines; merge and deploy stay human in every model. Parallel worktrees - inherit trust only from a trusted primary checkout, never create it, and route worktrees another tool manages to /steer:setup worktrees; the Compose half is rule 47. Mechanics for both live in /steer:reference conventions. |
47-worktree-services.md |
Worktree services - start services only through mise run ..., never a bare docker compose up or a hardcoded port, so each worktree keeps its own stack and ports, and run mise run docker:clean before a worktree goes away. Injected only where the repo has a root Compose file - compose.yaml / compose.yml, or the legacy docker-compose.* names (inject-when=has-compose). |
50-done.md |
What finishing a change means, in four sections. Definition of Done - five items: intent understood, appropriately tested, CI green, the contracts and docs this change actually affected updated, merge and deploy through the required human gates; deliberately not a restatement of every other rule, and deferred (never waived) under a declared production hotfix. Verify loop - name the check that proves the task done, loop against the harness until green, cap the loop and report what blocked you, never loop on uncheckable work. Drift gates - surface drift before merge by flagging its class in the PR; a flagged class blocks merge and you may not waive your own flag; delivery is aligned with SOC 2 / ISO 27001, never "compliant". End-of-session checklist - report open items only. |
53-autonomous-loops.md |
Autonomous loops - automate the navigation, never the authority; a loop may discover, triage, draft, push its own branch, and open a draft PR, but stops at every human gate (merge, deploy, ADR ratification, secrets); it never stacks a draft on another work branch. Opt-in (inject-when=automation-optin): injected only where the repo declares policy/automation.yml with loops: true, which /steer:work drive writes on the dev's confirmation before its first unattended run. |
60-high-risk.md |
High-risk areas - auth, authorization, migrations, infrastructure, secrets, deletion, billing, deploy/release logic: a vetted plan before any code, contract or ADR first, and the dev's sign-off on that plan only where it is hard to reverse (stored data deleted or rewritten, security or access posture, /infra, real credentials, payment data or real third-party calls, production deploy or release logic). Relaxed further only while the product is pre-production, and never for real secrets, /infra, deploys or real third-party calls, whose plans are handled as in production. Its Secrets handling section carries the never-commit rule, the local .env bootstrap, and "deployed secrets live in the declared store". |
61-gates.md |
Ask only what is hard to reverse - a cheap-to-reverse choice takes the agent's recommendation and is recorded as a default taken; a hard-to-reverse one, or a fact only the human has, is asked once. Answering a human gate in-session - a gate needs the deciding human's answer, not a particular channel, so where that human is present it is collected by an Approve / Reject / Decide later prompt and recorded with its ratifier, date, and channel. Covers ADR Proposed -> Accepted, intent draft -> approved, and --reviewed plan sign-off; merge, deploy, real secrets, /infra, and protected-branch pushes are never promptable. Its Hotfix / incident fast-path section holds the one sanctioned speed lever for a production incident (/steer:work --hotfix), which opens only on a deployed production system with an active incident, relaxes ceremony and ordering, keeps every authority gate, and owes a mandatory follow-up. The rationale, the per-gate prompt minimums and the hotfix procedure live in the gates reference and the --hotfix mode. |
80-change-class.md |
Change classification - authoritative for per-change ceremony; Issue-first takes its threshold from it, and the Definition of Done holds in full for every class. Trivial (no observable behavior change) needs no issue, spec, ADR, or plan and the PR is the work record; Behavioral carries tests and the owning contract.md; a high-risk area is High-risk at any size; an arguable class takes the heavier one. |
85-practices.md |
Baseline patterns, stated as principles so they hold on any stack (the org pack names the instances) - typed by default, schema-validated boundaries (incl. JSON/YAML config & data files), parameterized data access, server-first, nothing silenced, every import resolves to a declared dependency, ASCII everywhere (no typographic characters in any authored text), English as the repo language (user-facing information and the glossary follow the main product language the product CLAUDE.md declares, other locales translate from it; chat follows the user). |
Conditional injection
Some rules carry a first-line <!-- steer:inject-when=... --> marker and are
injected only when their scope applies (see
inject-standards.sh). The code-loop rules - 04-code-comments,
35-tracker, 40-testing, 45-delivery, 50-done,
80-change-class, 85-practices - are marked
code-project, so they are skipped in knowledge-work mode (a confidently
non-code folder, e.g. a Claude Cowork product-owner workspace). So is every
other marked rule: knowledge mode skips a rule for carrying any
inject-when marker, before the predicate is even evaluated, so the org
pack goes too. 04-code-comments, 40-testing, 80-change-class and
85-practices are marked
code-project|advisory: the same in code mode, and the only marked rules a
declared advisory
repo receives. 12-stack-infra,
33-spec-workflow-openspec, 36-issue-first, 47-worktree-services and
53-autonomous-loops are likewise
scoped - respectively to
repos that do IaC and follow the e22 org pack (has-iac&org-e22),
drive the spine with OpenSpec (has-openspec),
use GitHub as the tracker (tracker-github),
have a root Compose file (has-compose),
and those that have declared the automation opt-in (automation-optin).
automation-optin is the only predicate that fails closed: every other
token injects on an unreadable signal (except advisory, which never
injects from its predicate by design - only the advisory-mode branch admits
it), because a safety rule must never be
dropped silently, whereas rule 53 governs machinery a repo only has once it
has asked for it. 10-stack and 15-commands carry org-e22 alone.
Tokens compose with | for OR and & for AND, AND binding loosest.
Polyrepo topology is deliberately not an
always-on rule. (The original reason - that the ruleset was capped on its
on-disk total, so a scoped rule cost every consumer in full - no longer
holds: since the injected-payload re-base the budget gate measures the injected payload, and
scoping now earns full credit. The delivery choice stands on its own merits;
only the budget argument for it has lapsed.) It is delivered instead by a
spec/workspace.yml / spec/PRODUCT.md-gated note inside
orient-session.sh - the hook itself speaks in every managed repo; only the
topology block is marker-gated. That block is registered on the same
startup|resume|clear|compact|fork matcher as the ruleset, so it survives a
/clear, a resume, auto-compaction and a forked session. The router, spec, output (03), roles, gates (61) and high-risk
rules carry no inject-when marker and so stay always-on.
Standards that are not always-on rules
Housekeeping, context hygiene, Artifact rendering and design sources are
org standards with no rule file: each lives in full in
templates/reference/ (HOUSEKEEPING.md, CONTEXT-HYGIENE.md,
ARTIFACTS.md, DESIGN-SOURCES.md) and is loaded by the skill that needs
it - /steer:work tidy, the Artifact-rendering skills, and the internal
/steer:reference loader, which Claude reaches by topic.
The router names them so a session routes there rather than improvising, and
keeps the one context line that binds no particular skill (delegate a heavy
sweep). Routing a durable project fact to disk, never to auto memory, lives
in the spec rule beside durable decisions.
The 6.6 rule diet applied the same principle inside the surviving rules:
the greenfield and adopt walkthrough, the living-documentation routing
table, the worktree isolation mechanics, the mise task-ordering rules, the
solo-trunk waiver procedure and the deployment baselines' rationale all live
in SPEC-FRAMEWORK.md, TRACEABILITY.md, CONVENTIONS.md and GATES.md.
Each rule keeps the sentence a session must act on without loading anything,
and names the reference for the rest.
Code intelligence (LSP)¶
plugin.json declares two language servers, so Claude Code gets real
compiler diagnostics after every edit - and jump-to-definition / find-references -
instead of inferring what a change broke from the surrounding text. They match
the org stack defaults in rule 10-stack:
| Server | Command | Files |
|---|---|---|
typescript |
typescript-language-server --stdio |
.ts .tsx .mts .cts .js .jsx .mjs .cjs |
python |
pyright-langserver --stdio |
.py .pyi |
Don't also enable typescript-lsp@claude-plugins-official
Its server declares the same name, command and extensions as steer's.
When two enabled servers claim an extension, "the first server registered
handles files with that extension and the others never start", so one of the
two would be inert and restartOnCrash: false might not be the setting in
force. The scaffold no longer enables it, and /steer:setup sync proposes
removing it from a repo scaffolded before that change.
A server activates only when its binary is on PATH
Claude Code starts each server by name, so a repo without
typescript-language-server or pyright-langserver installed gets no
language server for those files - nothing else changes. A missing binary is
reported rather than silent: the server fails to start and Claude Code shows
Executable not found in $PATH in the /plugin Errors tab.
restartOnCrash: false covers a different case - a server that crashes is
left stopped instead of restarted. That key needs Claude Code v2.1.205+;
an older CLI drops a server that declares it silently, with the reason only
in claude --debug output. Install them globally - mise use -g
npm:pyright and mise use -g npm:typescript-language-server - then restart
the session. The TypeScript server drives the repo's own typescript
dependency, which must be below 7: TypeScript 7 ships no tsserver, and a
global typescript in a separate mise prefix is never found.
/steer:setup doctor reports either binary missing and offers the install;
steer never installs them unasked and deliberately does not gate on them.
This is also the supported successor to a code-intelligence MCP server: it is declared in the manifest, it is not a process the plugin has to pin, and diagnostics arrive on the edit path rather than on request.
Tooling knobs¶
policy/versions.yml- version floors;check-version-pins.shblocks pins that violate it.policy/branch-protection.yml- the branch-protection ruleset/steer:setup protectverifies the live GitHub settings against, and applies on explicit confirmation.policy/delivery.yml- how code reaches users here: environments,deploy_on_merge,production_gate, review apps, observability. Rule45-deliveryfollows it rather than imposing a model;/steer:setup protectand/steer:work promotereadproduction_gate.policy/org.yml- which org pack this repo follows.pack: e22(also the meaning of an absent file) delivers the house stack, useful-commands and secret-store rules; any other value leaves only the vendor-neutral core.policy/automation.yml-loops: truedeclares the autonomous-loop opt-in, which is what puts rule53-autonomous-loopsin the always-on payload - the boundary prose a session is held to once the repo runs a loop. An attended/steer:work driveneeds no marker; a run nobody watches (/loop, a cloud scheduled task) does.drivewrites it only on the dev's confirmation: the opt-in is a decision, not a file the skill writes for them.STEER_NO_WORKTREE_TEARDOWN- set to any non-empty value to stop theSessionEnd/WorktreeRemovehooks touching a worktree's Docker stack, and the session check reporting stacks deleted worktrees left behind.STEER_WORKTREE_OFFSET- set one worktree's host-port offset for a run when two draw the same one (rule47-worktree-services), instead of editing shared files.docker:upnames the collision. To pin it for good, write the offset tosteer-worktree-offsetin the worktree's git dir (git rev-parse --git-dir); the variable wins over the file.STEER_CLAUDE_CODE_VERSION(in this marketplace repo'smise.toml- a maintainer setting, not a consumer one) - the pinned Claude Code version the required CI job installs, for reproducibleclaude plugin validate --strict. Three targets are validated in strict mode - the marketplace manifest, the plugin manifest and the repo-local dev skills under.claude/skills- so warnings the runtime tolerates (unrecognized fields, missing metadata) fail the build.
Rules are kept lean and imperative on purpose. Long-form prose lives in
plugins/steer/templates/reference/ and is surfaced through a skill, never
added to rules/. That leanness is enforced, not aspirational: CI's
check_context_budget.py gate holds hard ceilings over two context surfaces -
the injected rules payload and the per-skill rendered SKILL.md - and
reports a third, the skill listing. Every ceiling it enforces is a limit Claude
Code itself applies, measured the way Claude Code measures it.
The rules gate measures what a session actually receives, in characters -
the runtime's own unit - by running every registered part of the real
inject-standards.sh against five fixture profiles: knowledge (a non-code
folder, which drops every marked rule), advisory (a declared guest repo),
code (a typical product repo), openspec (a repo whose spec artifacts live in
openspec/) and code-max (every scope predicate satisfied - the worst case
any consumer pays). All five are gated, against the same two harness facts: no single part may
exceed the 10,000-character cap Claude Code puts on one hook command's output
(the hook fills each part to 9,500 and the slack is never spent on rules), and
no eligible rule may be dropped for lack of parts. A rule that does not fit
fails the build with its name. Scoping a rule with an inject-when marker
reduces the gated payload for the repos it does not apply to, so it is a real
budget lever; dropping a rule's marker, which quietly pushes it onto every
knowledge-work session, shows up as growth in the knowledge profile. The
history below describes the retired on-disk ratchet and is kept as the record of
why it changed.
The default answer to "this rule doesn't fit" is therefore
trade prose out first: relocate rationale into
plugins/steer/templates/reference/, scope the rule with an inject-when
marker, or deliver a scoped rule through a hook instead of rules/ (the polyrepo
precedent above). Registering one more part in hooks/hooks.json is the last
resort and a deliberate, reviewed change - one more SessionStart process and up
to 9,500 more always-on characters in every session.
The gate used to hold two policy ratchets as well - the on-disk rules total and the skill-listing total. Both are retired; their history follows because it is the evidence for retiring them.
What follows is the history of the retired on-disk rules ratchet, kept because it is the evidence for that re-base: read end to end, it is a ceiling moving seven times for a net +9.1% while its target never moved off 62,500 and was never met, and the gate script's own note names the same failure mode - a tight ceiling dictating the wording of a correctness fix instead of bounding its cost - five times before reproducing it a sixth. Every raise was argued honestly and every raise still happened, which is what says the number was wrong rather than the authors undisciplined: it gated a payload nobody received, so it could not be paid down by the one move that actually reduces always-on weight.
The rules ceiling was raised five times. First from
62,500 to 65,200, to fund rule 61-gate-prompts: the ratchet had drifted to 32
bytes of headroom, so the only way to add the rule was compressing unrelated gate
rules, and that trade deleted ~1 KB of rationale prose that existed nowhere else in
the repo. Paying the bytes was judged cheaper than losing the prose. Then from
65,200 to 65,300, because the polyrepo work landed in the same cycle and consumed
that new headroom down to 7 bytes - leaving three factual corrections to always-on
rules (a wrong /steer:setup doctor routing claim, a missing scripts/ entry in the
root allowlist, a mis-cited rule heading) with nothing to spend. Then from 65,300
to 66,500, to fund the worktree-trust step in rule 24-worktrees: a worktree
created with git worktree add in a plain terminal is a case no hook can
reach (as is the Copilot CLI, whose manifest ports no trust hook), so the instruction has to be always-on to exist when it is needed. (The
check-worktree-trust check covers a session started in a worktree at
SessionStart, and one entered mid-session on CwdChanged - see
Hooks -> Lifecycle events.) That raise also
re-armed at measured + ~1% rather than the 5-to-7-byte margins that had made each
previous raise inevitable. Then from 66,500 to 67,300, to fund six
surface-scoping corrections: rules 00, 05 and 97 told the agent a SessionStart
hook would flag a condition, which is true in Claude Code but not on Copilot
(whose sessionStart discards the raw text those notices emit), and rule 10 promised a hard deny that is
only an ask on the Copilot CLI - in each case a rule
asserting a safety net that would not be there. Rules 24 and 99 named
docker:up/docker:clean, which the workspace profile renamed to ws:*, so the
cleanup command those rules mandate did not exist in a spine host. Rule 15 now
carries the workspace task vocabulary once and rule 24 cross-references it, paying
back ~120 B of the cost. Finally from 67,300 to 68,400, to fund the Tiny
ceremony exemption in rule 80-change-size and its two consumers - unlike the
fourth raise this is new capability rather than a correction, so it took an
explicit decision. Making the size class govern needed three always-on
statements (the exemption, the authority claim, the size-gated markers) and could
not be expressed by cross-reference alone, because the rules being exempted are
the ones a session reads. That model was later replaced by change classification,
and the size-gated markers are gone. Trades were made first, as the default requires - the same
change that shrinks a per-change duty paid part of its own cost. Which rules paid,
and how much, is recorded only in the ratchet note in
scripts/check_context_budget.py, for the reason given below. Net +511 B, re-armed
at the measured total plus ~1%. The target deliberately
stays at the old 62,500, below the ceiling, so the budget report keeps showing
the gap as work to reclaim.
Then, for the first time, the ratchet turned the other way: 68,400 -> 67,500.
That fifth raise's ~1% headroom had been consumed back down to 178 bytes,
which made the ceiling load-bearing on the next rule edit of any kind. 1,632 B
were reclaimed across nine rules - 00, 10, 24, 30, 36, 45, 50, 62 and 99 - mostly
by removing prose a templates/reference/ file already carried, or by compressing
wording in place. The per-rule attribution is recorded in one place only, the
ratchet note in scripts/check_context_budget.py; it is deliberately not restated
here, because a second copy of it has twice drifted from the first.
One imperative did leave the always-on rules: rule 45's "don't retry a
declined push - graduate instead" is no longer in any rule. It survives in
GATES.md and in the trunk-push hook's own repeat reminder, so a Claude session
still meets it at the moment it matters - but the Copilot CLI, where that repeat was
then a silent allow, read it on demand rather than every session (its hook variant
has since been retired). A deliberate
trade, and the reason "no rule lost an imperative" is too strong a claim to repeat.
The ceiling came down by 900 B - deliberately less than was reclaimed - so
headroom grew roughly 5x in the same change that tightened the ratchet, and rule
22's absorbed-source correction then spent 360 B of that (it had been projected at
~150 B). Rule 92-user-facing-copy then spent what was left, so the
ceiling became load-bearing again. In 5.3.0 that choice was closed by
re-arming, 67,500 -> 68,200: a correctness fix to rule 92 cost 17 B against a
7 B margin, so the ceiling was dictating the fix's wording rather than bounding
its cost - the exact failure the 900 B lowering existed to end. Sized at
measured + 1%, restoring a ~690-byte margin. The reclaim half of the choice is
still owed, against the unchanged 62,500 target. For the total on any given tree, run
uv run python scripts/check_context_budget.py --report - a figure pinned in
prose goes stale on the next rule edit.
The skill-listing ratchet is retired too, for the same reason: it gated a
number the harness does not use. Claude Code budgets the listing at 1% of the
context window, at 4 characters per token - 8,000 characters on a 200K window,
40,000 on 1M - shared by every installed skill, and counts each entry as it
formats it (- steer:<name>: <description> - <when_to_use>). On a 200K window
steer alone overflowed that budget whatever the ratchet said, and the harness
drops whole descriptions, least-used skill first; on 1M it sits far inside it.
The ratchet protected neither, and at zero headroom it made the next skill pay
in other skills' guardrail phrases. The listing is now reported against both
budgets; the per-skill 1,536-character cap stays a hard gate in
check_plugin.py, because that one is the harness's own edge.
Before retirement, the skill-listing ratchet moved twice. The first, in 3.23.0, 11,500 -> 11,900
chars, for a different reason than the rules ceiling: not a budget concession but a
measurement correction.
/steer:work's when_to_use was an unquoted YAML scalar containing `("work on
123", so #` opened a comment and the value silently truncated at 75 of 546¶
characters. The ratchet had been calibrated against that truncated value, reading
22 chars of headroom while the intended payload was ~450 over. Fixing the YAML
necessarily exposed the real total; work's entry was first trimmed 932 -> 747
chars so the raise paid what it could. LISTING_TOTAL_TARGET_CHARS stayed at
10,000, again below the ceiling.
The second, 11,900 -> 12,400, is a deliberate re-arming rather than payment for
any specific edit. The correction above landed at 11,879 of 11,900 - 21 chars - so
the next factual fix to any description or when_to_use could not be paid for in
place at all. A pre-release audit hit exactly that: three description corrections
had to be engineered as a length-neutral set, which is the ratchet dictating the
wording of a correctness fix instead of merely bounding its cost. 12,400 buys ~521
chars - about one mean listing entry - so trading prose out stays a real choice
rather than the only physically available move. The policy is unchanged: trimming
first remains the default, check_plugin.py's per-skill 1,536-char cap is untouched
so no single skill can absorb the new headroom, and the target stayed 10,000.
The listing ceiling was then deliberately held at 12,400 while 232 chars were
reclaimed alongside the rules trim above (/steer:reference stopped
parenthesising each topic its own when_to_use already explains in question form;
work, spec and intake dropped restatement). Seven literal subtopic tokens
went with it - commit style, spec routing, audit evidence, subagents,
durable state, Mermaid, LikeC4 - and they survive nowhere else in the
measured surface; the topics stay reachable through reference's eight doc-name
arguments, so this was a deliberate trade, not a lossless one. Lowering the
ceiling would contradict this block's own basis: 12,400 was chosen to buy ~521
chars, and no reduction from the resulting 11,978 leaves that much. Reclaim more
first, then the ceiling can move.
After retirement the three front doors - spec, work, setup, the largest
entries - were cut to purpose plus one trigger phrase per mode (#788's first
step), taking the listing from 13,329 to 11,786 chars. Every routing fixture
signal and guardrail survived; restated literals did not - among them error
paths, lite mode, exports, costly to unwind, promote to prod, pptx,
xlsx - so this too was a deliberate trade. On a 200K window the listing still
overflows the 8,000-char budget.
The second step cut the 21 internal skills to a one-line purpose plus the door
that reaches them (Reached via /steer:setup adopt.), keeping a guardrail only
where no other entry carries it (never merges or deploys, never fabricates
dates, Read-only). Internal entries went from 7,095 to 3,207 chars and the
listing to 7,898 - 99% of the 200K budget, with steer the only plugin loaded.
Dropped with them: the Internal prefix, not a direct entry point, and mode
literals the doors already list or the bodies carry - among them vibe-coded,
Keep/Refactor/Rewrite/Reject, waive, apply --solo, needs, bundle,
clarify, Projects v2, Orca, Conductor.
Three weeks later the listing was back at 8,220 chars, 103% of the 200K budget
(#961). Of the 322 chars of growth, 314 were in work, whose queue, debug
and qa modes each added a sentence, and nothing gates the total, so it went
unnoticed. A third trim took it to 7,787 (97%): work, next, status,
audit, standards and setup lost restatement between their two fields and
enumerations the skill body carries, and <placeholder> and -> left every
entry - Claude Code shows them to the model as < and >, and the skill
body and argument-hint carry the placeholders. description keeps each
skill's purpose and modes, because the generated .agents/skills tree routes on
description alone. Quoted user phrasings, guardrails and every
routing-fixture signal survived. Dropped, among them: queue #A #B, a fresh
worker each, lifecycle transition, before review, Non-mutating, code
health, when work spans workflows, One front door, and next's state
inventory (branch/PR, features, questions, ADRs, issues, claims, version
drift).
The rendered-skill ceiling is per-skill and not a ratchet: it is the
harness's compaction re-attach cap. After auto-compaction Claude Code
re-attaches an invoked skill but keeps it whole only up to 5,000 "tokens",
which it estimates as characters / 4 - so 20,000 characters of the skill as
rendered: frontmatter stripped, a Base directory line prepended, and
${CLAUDE_PLUGIN_ROOT} expanded to the install path, which the gate models
long. Past that the tail is cut mid-run, leaving a marker that says to Read the
rest - so an oversized skill loses its own guardrails exactly when a run has
gone on long enough to compact. (The gate once charged raw file bytes,
frontmatter included, at 3.5 bytes per token - 17,500 B - which reported
skills at 100% of a cap they were ~10-15% under.) steer's skills keep guardrails,
coupling rules, and output contracts near the top of SKILL.md and factor
per-mode or per-phase procedure into sibling files (modes/<mode>.md,
OPERATIONS.md, PROCEDURE.md, a topic file such as APPLY.md or
FOLD.md, ...) that the skill reads just-in-time for
the one path it is executing - a file read that way is a tool result, not skill
content, so it never competes for the re-attach budget. Because this ceiling is
derived from harness behaviour rather than a budget target, it does not move
down as skills shrink and is not raised to fit new prose.
A companion routing-fixture net
(tests/fixtures/routing/asks.yml) pins the vocabulary plain-language routing
depends on, so trimming can never silently break "just say what you want".
Repo markers¶
A managed repo declares a few facts about itself as one-line markers, read by the hooks and skills rather than inferred:
| Marker | Where | What it declares |
|---|---|---|
<!-- steer:delivery-mode=pr-flow --> or =solo-trunk |
product CLAUDE.md -> ## Delivery mode |
The delivery mode (rule 45-delivery). Absent or unreadable -> pr-flow. /steer:setup sets it; /steer:setup protect flips it to pr-flow at graduation. |
<!-- steer:graduation=waived --> |
the same section, second line | A solo-trunk repo staying single-dev on trunk on purpose. Written by /steer:setup protect waive; silences the graduation nudge and the trunk-push prompt; /steer:setup protect apply removes it. |
<!-- steer:profile=app --> (or service, library, cli, infra, workspace) |
product CLAUDE.md -> ## Profile |
Which stack-specific scaffold the bootstrap lays down. Absent or malformed -> app. Scaffold-time only: always-on rules gate on filesystem traits, not on this marker. |
<!-- steer:product-language=en --> |
product CLAUDE.md -> ## Product |
The main product language (English by default): the source of UI copy, the app guide's user-facing pages, release notes and spec/glossary.md. The status band shows it. |
"env": { "STEER_MODE": "advisory" } |
.claude/settings.local.json |
Advisory mode. Written and removed by /steer:setup advisory (off); the hooks read the file, so it takes effect at the next session start. |