Skip to content

skills: trim batch and cortex under the 200-line budget; report token load in CI - #600

Merged
Jammy2211 merged 1 commit into
mainfrom
claude/pyautomind-queue-management-j03m2k
Nov 7, 2026
Merged

Jammy2211 merged 1 commit into
mainfrom
claude/pyautomind-queue-management-j03m2k

Conversation

@Jammy2211

Copy link
Copy Markdown
Contributor

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.sh counts each skill as SKILL.md + body:

Skill Before After Budget
batch 274 200 200
cortex 232 199 200
Mind's create_issue (PyAutoMind PR, linked below) 203 197 200

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 from batch.md:

    • the member-session contract
    • the brief verbs
    • the collect evidence recipe
    • the integration worktree
    • the PENDING and science-run bullets
    • the digest-as-review-surface paragraph
    • the "batch is complete" criteria

    batch.md keeps 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, and delivered: is not green. Steps 2–3 and the rejection list are reworded more compactly.

  • skills/cortex/reference.md (new): moved word for word:

    • the new-project procedure
    • the push mechanics
    • the verbs appendix

    cortex.md keeps the push rule's gate, "never main directly, 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:

    • The line-count step's comment now says what is left before it can become blocking.
    • A new step prints PyAutoMind/scripts/token_load.py report, so the three token-load numbers are visible on every PR. It is report, not check: CI has no workspace AGENTS.md and no PyAutoMemory checkout, so check would fail because those files are missing, not because anything regressed.

Evidence

  • python3 -m pytest -q -n auto tests: 1643 passed, 1 skipped
  • bin/install.sh --check-agents-surface: clean for the repos present
  • bin/install.sh --check-project-discovery: Brain and Mind OK. It also reports one drift that was already there before this PR: PyAutoMemory is missing its catch_up discovery links.
  • token_load.py report, run against a Brain + Mind + Cortex layout like CI's, prints its numbers and exits 0.
  • tests.yml parses as YAML.

Not checked

  • The new CI step has not run on GitHub yet; this PR's own run is its first.
  • No real /batch or /cortex run was made against the new text.
  • No hygiene-conductor report line for token load. The prompt asks for one, but it is a new hygiene mode and left as follow-up.

Generated by Claude Code

… 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
@Jammy2211
Jammy2211 merged commit 2f9d9f5 into main Nov 7, 2026
2 checks passed
@Jammy2211
Jammy2211 deleted the claude/pyautomind-queue-management-j03m2k branch November 7, 2026 15:29
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants