Repository navigation
chore: instruction-file hygiene and keep removed process directories removed - #2134
Merged
Merged
Conversation
Every session loads each agent's description, so the nine reviewer agents cost about 19,000 characters of context on every task. Cut each description to what the agent does, when to use it, and which agent to use instead (about 2,700 characters in total). Drop the inline examples and pointers to agents that do not exist in this repo. Agent bodies, tools, and settings are unchanged. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add .github/scripts/instruction-files.py, run by task docs:check and the CI docs job: - AGENTS.md under 200 lines per file (Anthropic's CLAUDE.md target) - AGENTS.md files from the root down at most 32 KiB (Codex's cap) - a CLAUDE.md symlink beside every AGENTS.md - every `task` an AGENTS.md names exists - .claude/rules files at most 25 lines - agent and skill descriptions at most 1024 characters (Agent Skills spec) Its fixture test runs under task lint:actions. docs/README.md gains a "What goes where" table and drops two entries for deleted ADRs. Co-Authored-By: Claude Opus 5.5 <[email protected]>
Since the process gates were removed, a PR that adds a file under docs/adr/, docs/acceptance/, docs/superpowers/, or .claude/plans/ would quietly recreate them. instruction-files.py now fails on any tracked file there and says where that content belongs instead. Co-Authored-By: Claude Opus 5.5 <[email protected]>
docs/usage.md, docs/usage/*, and docs/configuration-reference.md only redirected to user-docs/ so historical ADR links would resolve; the ADRs are gone. Point their four inbound links at the canonical microVM guide, drop the reader-map and user-docs mentions, and remove ADR 0351 citations from apps/biome.json lint messages. Co-Authored-By: Claude Opus 5.5 <[email protected]>
JAORMX
approved these changes
Oct 6, 2026
Merged
2 tasks
2 of 14 tasks
This branch was successfully deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Follow-up to #2103, #2105, and #2106: cheap hygiene for agent context, plus a guard so the removed process directories stay removed. Four commits, each reviewable alone.
1. Shorter agent descriptions. Every session loads each agent's
description. The nine reviewer agents' descriptions totalled about 19,000 characters, roughly 7× the rootAGENTS.md. Each now says what the agent does, when to use it, and which agent to use instead: about 2,700 characters in total. Inline examples and pointers to agents that don't exist here are gone. Agent bodies, tools, and settings are unchanged.2. Instruction-file check (
.github/scripts/instruction-files.py, run bytask docs:checkand the CI docs job; its fixture test runs undertask lint:actions):AGENTS.mdAGENTS.mdfiles from the root down to any directoryproject_doc_max_bytesCLAUDE.mdbeside everyAGENTS.mdtask …named in anAGENTS.mdcode span or block.claude/rules/*.mddescriptiondocs/README.mdgains a "What goes where" table: root and moduleAGENTS.md, rules, skills,docs/,user-docs/.3. Removed directories stay removed. The gates are gone, so a PR adding a file under
docs/adr/,docs/acceptance/,docs/superpowers/, or.claude/plans/would quietly recreate them. About 26 open PRs currently add files there. The check now fails on any such file and says where that content belongs: the PR description or an issue for plans and design notes,docs/oruser-docs/for current behavior.4.
docs/usageredirect stubs deleted. The 20 pages existed only so historical ADR links would resolve. Their four inbound links now point at the canonical microVM guide. Also removes ADR 0351 citations fromapps/biome.jsonlint messages.Heads-up for open PRs
After this merges, PRs that add files under the removed directories fail
Doc validationwith a message saying where to move the content.Test plan
task docs:check: instruction-files ok; matlatl strict 0 broken / 0 orphanspython3 .github/scripts/instruction-files_test.py: 16 fixture cases, including edges (199 vs 200 lines, prose "task" ignored,docs/adr-notes.mdnot flagged)task studio:lint(biome config)ci.ymltask lint:actionsstops locally atmicrovm-ci-release_test.sh, the darwin-arm64 failure that also happens onmain; the new test passes when run directlyUser-facing change
None.
🤖 Generated with Claude Code