`issue-workflow` is read at the start of every issue session and stays in the context for all of it. The expected outcome: a `SKILL.md` that holds the path every issue takes, the rare branches moved to `details.md` read on demand, and a context peak and `input_tokens` per issue that fall, measured before and after. * 2026-11-30: `files/.claude/skills/issue-workflow/SKILL.md` is 17,335 bytes and `details.md` 10,180, out of 71 KB for all the skill bodies; the next largest `SKILL.md` is `write-s...
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Done?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/electron-libre-done-1f872fcb)
---
priority: medium
depends_on: [inventory_the_overlaps_with_claude_code]
why: 'the largest load of the harness, read in every issue session; slimming it before the inventory risks editing parts it drops'
---
# Slim the issue workflow skill
# Goal
`issue-workflow` is read at the start of every issue session and stays in the context for all of it. The expected
outcome: a `SKILL.md` that holds the path every issue takes, the rare branches moved to `details.md` read on demand,
and a context peak and `input_tokens` per issue that fall, measured before and after.
# Findings
* 2026-11-30: `files/.claude/skills/issue-workflow/SKILL.md` is 17,335 bytes and `details.md` 10,180, out of 71 KB
for all the skill bodies; the next largest `SKILL.md` is `write-spec`, 7,009 bytes.
* `SKILL.md` holds branches that most issues never take: autonomous mode, chaining several issues, the advisor, the
review waiver, the merge back.
* Inventory of 2026-11-30 (ADR 0035): `issue-workflow` was called 881 times in 858 of 1,313 sessions; the decision
is to slim it. Plan mode does not replace its plan in the issue (it survives `/clear` and carries a signature),
reviews already go through `/code-review`; "memory" in step 1 is narrowed to the memory files the `MEMORY.md` index
points to (auto memory loads the index only); "autonomous mode" keeps its name next to the "auto mode" of Claude Code (validated).
# Approach
1. Measure: the context peak and `input_tokens` of the issue sessions of the last revisions (`cardinal-report`).
2. Move the rare branches into `details.md`, each named from `SKILL.md` by the condition that sends there.
3. Cut the sentences the inventory found redundant with Claude Code or with another skill.
4. Measure again; the commit carries `Expected-effect: input_tokens down`.
# Milestone
Lean on Claude Code
# Resources
* `docs/adr/0035-the-harness-leans-on-claude-code-where-a-built-in-covers-the-need.md` (the inventory).
* `files/.claude/skills/issue-workflow/`, `tests/skills.rs` (the checks on the skill texts), `specs/cardinal-verdicts.md`.
# Hints
* The replay fixture (`just replay`) runs the skill headless: a check that the slimmed skill still drives an issue
to done.
# Tracking
Plan: validated by Cedric Brancourt <cedric.brancourt@gmail.com> on 2026-11-30
## Understanding
Cut `issue-workflow/SKILL.md` (17,335 bytes) to the path every issue takes; the rare branches (advisor, the extra
resume cases, the milestone release, picking the next issue, a hook added by `sync`) move to `details.md`, each named
from `SKILL.md` by its condition; "memory" in step 1 narrowed to the files `MEMORY.md` points to. No spec (harness text).
## Plan
1. [x] Slim `SKILL.md`: move the rare branches to `details.md` behind one-line pointers, cut the redundant sentences;
verified by `tests/skills.rs` (new: `SKILL.md` of `issue-workflow` under a byte budget, the moved headings absent
from `SKILL.md` and present in `details.md`; every required passage still found); commit carries
`Expected-effect: input_tokens down` and `Expected-effect: main_context_peak down`. (autonomous)
2. [x] Fix the findings of the `high` review: restore in `SKILL.md` the passages of the common path the slimming
lost or hid (the resume cases checked first, the warning on a blocked or on-hold issue, the advisor on the plan,
corrections at step 2, findings outside the deliverable, a stop asked by the user, the issue total of a move,
the one-line plan); verified by `the_issue_workflow_keeps_the_common_path_in_skill_md`. (autonomous)
## Decisions
- Mode: autonomous
- Base commit: 292e844cff7e5cd3db41bca4527397738bb3f0a0
- Answers (1 a, 2 a, 3 a): the autonomous mode stays in `SKILL.md`, shortened; a test caps `SKILL.md` at 12,000
bytes; moved: the advisor, the rare resume cases, the release proposal, picking the next issue and the taken or
on-hold issues, the `cardinal check` after a `sync` that adds a hook.
- Baseline (`cardinal-report --project cardinal --last 4`, median per session): `input_tokens` 5.36M, 5.86M, 5.74M,
5.50M; `main_context_peak` 115K, 129K, 116K, 113K (last group `self:27e6765`, 36 sessions);
`input_tokens_per_issue`: no data (`token_issues` 0). The after measure is the verdict `skill:evaluate-harness`
gives the `Expected-effect` lines once sessions run on the new revision.
## Summary of deliverable 1
done: `SKILL.md` 17,335 -> 11,715 bytes; the resume cases, the advisor, the close outputs and milestone release,
picking the next issue and a sync that adds a hook are sections of `details.md` named from `SKILL.md`; step 1 reads
the memory files the `MEMORY.md` index points to; the new test lives in `tests/issue_workflow_skill.rs` (`skills.rs`
at its 800-line limit).
| check | result |
|---|---|
| tests | `cargo test` green (`project-check` exit 0) |
| lint | clean |
| specs | none (harness text) |
| docs | no doc cites the moved sections |
| code review | see below |
red: none traced: `SKILL.md is 17335 bytes, over its budget of 12,000: move a rare branch to details.md`
Code review: no findings (two stale pointers of `details.md` to the former "Rules" of `SKILL.md`, found on rereading, now name "Close the issue")
not verified: the drop of `input_tokens` and `main_context_peak`, measured by `skill:evaluate-harness` once
sessions run on this revision; a replay (`just replay`, billed) was not run.
decisions needed: none
## Summary of deliverable 2
done: the 8 findings of the `high` review fixed in `SKILL.md` (11,943 bytes, under its 12,000 budget); a test lists
the passages of the common path `SKILL.md` must hold itself.
| check | result |
|---|---|
| tests | green (`project-check` exit 0) |
| lint | clean |
| specs | none (harness text) |
| docs | `docs/workflow.md` and `docs/architecture.md` describe the advisor moments, unchanged |
| code review | see below |
red: none traced: `SKILL.md lacks: [...]` (the 8 passages)
Code review: no findings
not verified: as deliverable 1.
decisions needed: none