Repository navigation
skills: trim batch and cortex under the 200-line budget; report token load in CI - #600
Merged
Merged
Conversation
… load in CI Two of the remaining offenders in bin/check_skill_line_counts.sh, from PyAutoMind draft/maintenance/organs/reduce_session_token_load.md: - batch: 274 -> 200 lines (SKILL.md + batch.md). The member-session contract, brief verbs, collect recipes, integration worktree and the batch-complete criteria move word for word to skills/batch/reference.md; batch.md keeps each rule's one-line summary and a pointer. - cortex: 232 -> 199 lines. New-project procedure, push mechanics and the verbs appendix move word for word to skills/cortex/reference.md. No rule, gate or refusal is removed. tests.yml now prints `token_load.py report` on every PR, and the line-count step's comment names what is left before it can be made blocking (start_dev and prm, both brought under budget by #597). Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_016nhQ8NoTm1hEGXkFTcNwbd
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.
This is the skill-line-budget slice of PyAutoMind
draft/maintenance/organs/reduce_session_token_load.md. It is the follow-up that #597 left open. This PR touches none of #597's files, so the two can merge in either order.Result
bin/check_skill_line_counts.shcounts each skill as SKILL.md + body:Once this PR, the Mind PR and #597 are all on main, every skill is within budget. The report-only line-count step in CI can then become blocking.
What changed
No gate, refusal or rule is removed.
skills/batch/reference.md(new): text moved word for word frombatch.md:batch.mdkeeps a one-line summary and a pointer for each. The rules that bind a session in the moment stay in the body: the go is the human's,review-at:is never inferred, members end at their deliverable, the adversary leg must have run, anddelivered:is not green. Steps 2–3 and the rejection list are reworded more compactly.skills/cortex/reference.md(new): moved word for word:cortex.mdkeeps the push rule's gate, "nevermaindirectly, never--force", and every rule in "The rules that do not bend". SKILL.md now points to the appendix's new location..github/workflows/tests.yml:PyAutoMind/scripts/token_load.py report, so the three token-load numbers are visible on every PR. It isreport, notcheck: CI has no workspace AGENTS.md and no PyAutoMemory checkout, socheckwould fail because those files are missing, not because anything regressed.Evidence
python3 -m pytest -q -n auto tests: 1643 passed, 1 skippedbin/install.sh --check-agents-surface: clean for the repos presentbin/install.sh --check-project-discovery: Brain and Mind OK. It also reports one drift that was already there before this PR: PyAutoMemory is missing itscatch_updiscovery links.token_load.py report, run against a Brain + Mind + Cortex layout like CI's, prints its numbers and exits 0.Not checked
/batchor/cortexrun was made against the new text.Generated by Claude Code