Skip to content
Back to skills

Done

ASecurity

`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...

  • 5 stars
  • 0 votes
  • 0 copies
  • 1 view
  • Added December 1, 2026
developmentgocode-review

Works with

  • claude code

Security analysis

A100/100

Pro scans all 21 files and shows the line behind each finding

Scanned December 1, 2026

npx -y skills add Electron-libre/cardinal --skill done --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Done?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Done
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/electron-libre-done-1f872fcb/badge)](https://www.skillsdirectory.com/skills/electron-libre-done-1f872fcb)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
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

Files in this skill

  • accept_an_internal_proof_with_its_reason.md6.7 KB
  • add_a_just_recipe_to_waive_the_review.md7.5 KB
  • adopt_harness_in_projects.md2.4 KB
  • align_the_tracking_section_end_of_qua_6.md3.5 KB
  • allow_cardinal_run_in_the_synced_projects.md4.3 KB
  • allow_the_release_proposal_in_auto_mode.md4.1 KB
  • amend_rep_14_and_sua_6_to_the_code.md4.1 KB
  • animate_the_issue_at_work.md6.2 KB
  • apply_the_claim_time_to_the_claims_a_lock_holder_owns_by_pid.md4.2 KB
  • archive_the_released_milestones.md6.2 KB
  • ask_the_user_through_the_question_tool.md3.7 KB
  • audit_agent_instructions.md4.5 KB
  • audit_the_code_from_the_ui.md3.4 KB
  • audit_the_shared_instructions_for_conflicts_and_stale_guidance.md13.2 KB
  • bootstrap_specs_for_an_existing_capability.md5.2 KB
  • bring_a_pull_request_merged_on_the_host_into_the_trunk.md8.6 KB
  • bring_the_architecture_doc_and_the_tool_list_in_step.md4.7 KB
  • bring_the_architecture_doc_and_three_specs_in_step_with_the_code.md4.6 KB
  • budget_the_fixed_context_of_a_project.md5.2 KB
  • chart_the_measures_on_a_screen_of_their_own.md8.6 KB

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in development →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.