Skip to content

feat(session-flow): show typed commands per kind of task in the skill cheat sheet - #16359

Merged
kyle-sexton merged 11 commits into
mainfrom
feat/15789-skill-cheat-sheet-task-kinds
Nov 15, 2026
Merged

kyle-sexton merged 11 commits into
mainfrom
feat/15789-skill-cheat-sheet-task-kinds

Conversation

@kyle-sexton

@kyle-sexton kyle-sexton commented Nov 15, 2026 •

Copy link
Copy Markdown
Member

Refs: #15789

Summary

Problem: a person had to remember which skill to run, in what order and with which arguments, for the kind of change in front of them. Intent: "humans don't have to remember what skill to run in what order and under what context".

The generated skill cheat sheet now opens with a "By kind of task" table: for a small fix, a bug, a feature, a refactor, a UI change and a release it gives the commands to type in order, what those commands run for you, and the stages that kind skips. Each stage table shows every skill's arguments and its upstream equivalent.

Fix

  • A "Task kinds" table in /session-flow:workflow's steps reference is the one place the kind-to-stages mapping is stated. It is at stage level and names no skills. The workflow skill's default mode reads it; sentences that stated an entry stage on their own now point at it.
  • The generator joins that table with one command per stage (STAGE_COMMANDS in scripts/cheatsheet-config.mjs, the owner's choice on 2026-11-15) to build the by-kind view, which replaces the hand-kept "Start from your problem" table. The config holds per-stage entries only, no per-kind recipes.
  • A conditional stage (Explore, Research, PRD, Decompose) shows its condition beside its command, read from the stage's heading in the steps reference, and the table's lead-in quotes that reference's sentences on conditional stages and the stage 2 to 4 detours. Review found the first version listed those commands as unconditional.
  • A stage's entry can carry situational commands, checked like the main command: Implement shows /debugging:debug for breakage not yet diagnosed and Test shows /testing:diagnose for a failing test, the two diagnosis routes the removed table had.
  • "Runs for you" claims carry a quote from the skill. The generator checks the quote is still in the skill and prints the claim with its path:line. Four claims ship, each on a line that was read: three in /verification:confirm and one in /source-control:pull-request.
  • Stage tables gain an Arguments column (the skill's whole argument-hint) and an Upstream column linking the pstack or Pocock attribution table that lists the skill.
  • The generator fails, naming the entry, when the Task kinds table names a stage that does not exist or is missing, when a claim's quote is gone, or when a stage command names a skill that is not listed or sits in another stage.
  • /session-flow:workflow points at the sheet's by-kind table as the place to look the sequence up.

Judgment to name: nothing in the steps reference describes a release, so the Release row (Verify outcome, then Ship) is the builder's reading. The Bug row is the full path minus the PRD, because the workflow skill says only a quick change skips the interview.

Verification

  • Dogfooding step: the regenerated sheet. node scripts/generate-cheatsheet.mjs --check prints "Cheat sheet is in sync with skill frontmatter." (run again by the session that opened this PR).
  • bash scripts/generate-cheatsheet.test.sh: PASS=66 FAIL=0 (run again by that session). The new failure cases were written first and failed because the generator exited 0.
  • The offline link check finds no error in 514 links; the skill-quality check passes for the 18 session-flow skills; both changelog fragment checks pass.
  • New eval case wf-bug-takes-task-kinds-stages ("fix bug X" must produce the table's stage list) passes the static validator.

Left out: a paid run of the new eval case (it needs the owner's launch); --check in CI is this PR's own run.

Related

  • Four routes of the removed "Start from your problem" table have no place in a table keyed by workflow stage and are not restored: /discovery:trace-intent, /work-items:work, /session-flow:recommend-skills and /session-flow:keep-going. Each skill is still in its own table of the sheet.
  • Upstream links point at the attribution table, not the row: the tables' rows have no anchors, and a line link fails the offline link check.

Remaining

🤖 Generated with Claude Code

https://claude.ai/code/session_015te8Csz4bqxpok4iu8Mcrd

kyle-sexton and others added 5 commits November 15, 2026 10:05
The workflow skill's stage definitions end with a Task kinds table, the
one place that states which stages a small fix, a bug, a feature, a
refactor, a UI change and a release enter and skip, naming no skills.
Its default mode reads the kind's row and points at the cheat sheet.

The cheat sheet generator joins that table with the stage tables into a
"By kind of task" table that replaces the hand-kept "Start from your
problem" table, and fails naming the kind and the stage when a row
names a stage steps.md does not define. Stage tables gain an Arguments
column (the whole argument-hint) and an Upstream column linking the
pstack and Pocock attribution tables that list the skill.

Refs: #15789

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A workflow eval case asks for the stages of an undiagnosed bug and
grades, with regexes and offline samples, that the answer gives the Bug
row's stages in order with no interview, design or plan before
Implement, and names the stages the row skips. Validated statically
only; the case has not been run.

Refs: #15789

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The first Bug row started at Explore and skipped the interview, design
and plan, which contradicted the skill's interview-first rule for work
that fails a quick-change test, its gotcha that only the quick-change
on-ramp skips the interview, and its note that a bug fix passes through
design in one step. The Bug row is now the full path less the PRD,
whose skip conditions name bug fixes. The overview, step 3 and the
gotcha read the kind's row instead of stating stage 1, and an
agent-ready bug's earlier stages are credited by position detection.
The eval case and its samples follow the row.

Refs: #15789

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The cheat sheet config gains STAGE_COMMANDS: one entry per workflow
stage naming the command a person types for it in this repository,
with optional runs-for-you claims. Each claim carries a quote from the
skill line that makes the call; the generator finds it and cites the
claim as path:line, and fails naming the entry when the quote is gone,
the skill is not listed, or the skill sits in another stage. The
entries are per stage only: which stages a kind enters stays in the
workflow skill's Task kinds table.

The By kind of task table now lists each kind's commands in order and
what they run for you. Claims cover only lines read for this change:
/verification:confirm (build, test and lint; affected features; e2e)
and /source-control:pull-request ready (reviews and verify gate).

Refs: #15789

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton
kyle-sexton marked this pull request as ready for review November 15, 2026 15:29
@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Codex Review Summary: ✅ Completed

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-11-15T15:32:33.195374Z d04f928 Draft marked ready
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: d04f928906

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Comment thread scripts/generate-cheatsheet.mjs Resolved
kyle-sexton and others added 2 commits November 15, 2026 10:34
The By kind of task table listed every stage as a command to type, so a
reader following a row would run research, a PRD or decomposition they
did not need. The generator now reads each stage's condition from its
steps.md heading (the text after "conditional:") and prints it beside
that stage's command, and the table's lead-in quotes steps.md's own
sentences that a conditional stage runs only on its trigger and that
stages 2-4 are detours returning to their caller. The generator fails,
naming the sentence, when steps.md no longer carries either one.

Refs: #15789

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@github-actions

Copy link
Copy Markdown
Contributor

Lane run report

Field Value
Activity pr-refine/fix-docs
Model rung 0
Leg handoff
Run job success
Activity step success
Commits pushed none (read lane)
Run 43730219459

Failed GitHub API calls

Method Path Status
GET /repos/{repo}/git/ref/tags/* 404

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

claude-security-review reviewed 419c1214d1179d5d838826c830f9613a63929a9f: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Security review: PR #16359, incremental (6740e54..419c121)

No security issues found. This was a blocking-only review, since this lane already reviewed an earlier head, so only CRITICAL and IMPORTANT findings would have been posted. I read every hunk of all 6 files in scope in .claude-lane/incremental.diff. None of them matches a TRUSTED PATHS glob. The push changes no plugin manifest, workflow, action, hook, token request, trusted-actor list or merge-hold file.

What was checked:

  • scripts/cheatsheet-config.mjs and scripts/generate-cheatsheet.mjs:
    • What changed: stage entries can now carry an also list of situational commands. These are /debugging:debug for Implement and /testing:diagnose for Test.
    • Validation: the generator looks up each also skill in the skills already listed. If the skill is missing, or its workflow-stage belongs to another stage, it records an error.
    • Rendering: it writes the when text and the command into the markdown sheet.
    • Inputs and effects: every input is a string committed to the repository's config or SKILL.md frontmatter. Nothing from outside reaches it. It runs no shell or child process, makes no network call and handles no secrets.
  • scripts/generate-cheatsheet.test.sh: the new stage_also helper writes a heredoc into a temporary fixture tree. It interpolates $2, which every call site sets to a fixed literal (alpha/other, alpha/ghost, beta/looper). It touches nothing outside the fixture tree.
  • docs/skill-cheat-sheet.md: generated documentation that adds the two situational commands to the by-kind rows. It is not an instruction surface that removes or softens any rule.
  • Eval case wf-bug-takes-task-kinds-stages (case.yaml, samples/bug-stage-list.json): only the regex grader and its pass/fail samples changed. allowed_tools stays read-only ([Read, Glob, Grep, Skill]), and nothing is sent off the machine.
  • PR context and settled threads: neither contains instructions aimed at this lane. The one settled thread, about conditional stages shown as unconditional, is a correctness point rather than a security one.
  • Prior findings: the only earlier post is this lane's no-findings summary for the previous head, so there is nothing to repeat.

Spend (not a finding): the updated eval case uses prepaid model credit only when someone launches it. Nothing in this push runs it automatically.

critical-findings: 0

@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

claude-review reviewed 419c1214d1179d5d838826c830f9613a63929a9f: read 6 of 6 changed file(s); 0 finding(s), 0 as inline comments.

Code review: PR #16359, incremental (6740e54 → 419c121), blocking only

Scope: this lane already reviewed an earlier head, so this pass reports blocking findings only. I read every hunk of the incremental diff for all 6 listed files: docs/skill-cheat-sheet.md, scripts/cheatsheet-config.mjs, scripts/generate-cheatsheet.mjs, scripts/generate-cheatsheet.test.sh, and the eval case.yaml with its samples/bug-stage-list.json. I also read the head case.yaml and the STAGE_COMMANDS loop in generate-cheatsheet.mjs for context. I ran nothing. The author's numbers (PASS=66 FAIL=0, --check in sync, link check) are their own claims, and I did not confirm them.

The increment addresses the two earlier advisory findings:

  • Missing diagnosis route (earlier finding 1). STAGE_COMMANDS entries can now carry also situational commands. The Implement stage adds /debugging:debug for breakage that is not yet diagnosed, and the Test stage adds /testing:diagnose for a failing test. The generator checks each also skill the same way it checks the main command: the skill must be listed, and it must sit in the same workflow-stage. The new test cases cover the rendered output and both failure messages. A missing skill and a stage mismatch each add an error and drop the entry, so the loop is not left in a bad state.
  • Grader false pass/false fail (earlier finding 2). The bug-stage-list grader now requires all 11 Bug-row stages in order with no distance limit. It allows a PRD before Implement only on a line that also says "skip". New pass samples cover a PRD marked skipped and an answer longer than 600 characters. New fail samples cover a row with missing stages and the default-mode overview.

Blocking findings: none.

I saw one advisory gap and did not post it, because this pass is blocking only. The \bPRD\b(?=[^\n]*\bskip) alternative accepts any "skip" later on the PRD's line, such as a one-line Feature-row answer with "Decompose (skip if one ticket)". That would pass bug-stage-list alone. The names-skipped-stages grader still fails that answer, so the case as a whole still catches it.

Closing issue: the PR says Refs: #15789 and closes no issue. The PR context file has no closing-issue section, so I checked no acceptance criteria.

Manifests: this increment changes no plugin.json or marketplace.json.

Spend: the eval case still uses prepaid API credit when someone runs it (max_turns: 15, timeout_seconds: 600). It adds no new billing, so there is no hold.

Embedded text: the PR context, settled-threads and prior-findings files contain no text that tries to direct this review. The settled thread on scripts/generate-cheatsheet.mjs (conditional stages) is unchanged in substance, and I do not raise it again.

Verifier dropped 0 of 0 candidates.

kyle-sexton and others added 4 commits November 15, 2026 10:44
The removed "Start from your problem" table sent a bug's cause to
/debugging:debug and a failing test to /testing:diagnose; the by-kind
table gave neither. A stage's command entry can now carry situational
commands of the same stage, each with the situation it is typed in,
validated like the main command (a listed skill whose workflow-stage
is that stage) and rendered beside it. Implement gains /debugging:debug
for breakage not yet diagnosed and Test gains /testing:diagnose for a
failing test. Entries stay per stage; no kind gets a recipe.

Refs: #15789

Co-Authored-By: Claude Opus 5.5 <[email protected]>
…grader

The bug-stage-list grader passed a list with no Research, Design, Plan
or Decompose, and failed a correct list that named the PRD as skipped
or whose stages sat more than 600 characters apart. Samples for all
three now reproduce it (the static validator failed each under Python
and JavaScript). The grader now requires every stage of the Bug row in
order at any distance and, before Implement, allows a PRD only on a
line that says it is skipped, so the default-mode overview still fails
on its own. Case-insensitive through flags: i.

Refs: #15789

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The typos gate rejects the British spelling in the long-answer sample.

Refs: #15789

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@kyle-sexton

Copy link
Copy Markdown
Member Author

Reply to the claude-review summary on 6740e54:

# Finding Classification Basis
1 The Bug row gives no diagnosis command VALID (fixed) verified: the removed "Start from your problem" table on main sent "Find the cause of a bug or failure" to /debugging:debug and "Fix a failing test" to /testing:diagnose; the by-kind table gave neither
2 The bug-stage-list grader passes a wrong list and fails two correct answers VALID (fixed) verified: with three samples added (a list missing Research, Design, Plan and Decompose as must-fail; a list naming the PRD as skipped and a list longer than 600 characters as must-pass) the static validator failed all three under JavaScript and Python before the grader change

Fixed in 419c121:

  1. A stage's config entry can carry situational commands, checked like the main command (the skill must be listed and sit in that stage). Implement now reads /implementation:implement (when the breakage is not yet diagnosed, first /debugging:debug) and Test reads /testing:write (when a test fails, /testing:diagnose). Entries stay per stage; no kind gets a recipe. Generator tests: 3 new cases failed first, now PASS=66 FAIL=0.
  2. The grader requires all 11 stages of the Bug row in order with no character window, and allows a PRD before Implement only on a line that says it is skipped. The validator reports no failure under either engine.

Four other routes of the removed table have no place in a table keyed by workflow stage and are not restored here: /discovery:trace-intent, /work-items:work, /session-flow:recommend-skills and /session-flow:keep-going. Each skill is still in its own table of the sheet.

@kyle-sexton
kyle-sexton added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit dedc4fd Nov 15, 2026
61 checks passed
@kyle-sexton
kyle-sexton deleted the feat/15789-skill-cheat-sheet-task-kinds branch November 15, 2026 15:57
@github-actions github-actions Bot added the merge-path: owner-agent Post-merge accounting record (README.md, Merge paths) label Nov 15, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-path: owner-agent Post-merge accounting record (README.md, Merge paths)

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant