Skip to content

Skills: stay in the main checkout, keep the mode on resume, GitHub repo name as glossary heading (#58) - #62

Merged
maceorichards merged 11 commits into
developfrom
feat/iss-58-skill-cwd-resume-mode-glossary-heading
Nov 4, 2026
Merged

maceorichards merged 11 commits into
developfrom
feat/iss-58-skill-cwd-resume-mode-glossary-heading

Conversation

@maceorichards

Copy link
Copy Markdown
Owner

Summary

Four wording fixes to skills, each found by the 2026-10-21 smoke run or while writing spec #58.

 devflow section (always in context)
+  Working directory: workflows run from the main checkout and reach a worktree
+  with `git -C` or a subshell `(cd … && …)`, never a bare `cd`.

 finishing-a-development-branch, Step 2
+  Devflow callers run Steps 1–2 in a subshell inside the feature worktree,
+  print GIT_DIR / GIT_COMMON / WORKTREE_PATH, and stay in the main checkout.

 subagent-driven-development, DONE step
-  generate the review package
+  generate the review package in a subshell, by the script's full path, never a bare `cd`

 dev-multi / dev-single, parse arguments
-  a token matching #<digits> → resume issue N
+  resume only when the sole non-flag argument is #N; otherwise it's a description
-  Neither flag → MIXED; if the mode differs from the state file's, update it
+  Neither flag → MIXED for a new run; a #N resume keeps the recorded mode
+  only --fast / --rigor changes the mode (re-labels only open tickets)
+  flagless upgrade from /dev-single → MIXED
+  dev-single: a recorded MIXED (or none) resumes as FAST

 domain-modeling, GLOSSARY-FORMAT
-  top heading: "the repo name"
+  top heading: the GitHub repo name (`gh repo view --json name -q .name`); never rename an existing one

The smoke checklist gains three lines for #44 to check: a flagless resume, a flagless upgrade, and a description that cites #N.

Evidence

  • Before: the new tests fail against develop. The installed skills lack every key phrase (e.g. test_section_says_never_a_bare_cd, test_resume_paragraph_changes_mode_only_with_a_flag, test_single_context_line_names_github_repo_name).
    After: DEVFLOW_REQUIRE_VENDORS=1 python3 -m unittest → 366 passed, 0 failed (baseline 323; 43 new, 0 regressions). ./sync.sh --dry-run exits 0 with no FAIL or WARN.
  • Context budget (DESIGN.md entry 14, wc -w on the built files vs develop): devflow section +27, finishing +27, SDD +8, domain-modeling +16, dev-multi +27, dev-single +25. All ≤ +30.

Merge Danger

Door: two-way

Wording only, in instructions agents read. A revert restores the old text on the next ./sync.sh.

Blast Radius: workflows

Every devflow run reads the changed devflow section, and resumes of /dev-multi and /dev-single behave differently: a flagless #N now keeps the recorded mode. After merging, run ./sync.sh from the main checkout to install it.

Tickets

Ticket Lane Outcome Merge
#59 Working-directory rule: never a bare cd into a worktree fast closed 86fe365
#60 Resume keeps the recorded mode; #N parsing fast closed b7683d5
#61 Glossary top heading is the GitHub repo name fast closed 04429d3
Final review fixes (4 Important findings) — committed cf8b3c4

Follow-ups

Minor findings from the final review:

  • Checklist placement (fix before First live smoke run against the refreshed checklist (claude + codex) #44): the two flagless-resume lines sit under §5, the --rigor resume scenario, which can't show them. The #N-in-description line covers /dev-single only; add /dev-multi.
  • /dev-multi #12 #13 (issue numbers only) starts a new run; asking the user would be better.
  • The glossary template still opens with # {Context Name}, and there's no fallback when gh repo view fails.
  • Finishing's Option 1 / discard cd "$MAIN_ROOT" reads like a breach of the new rule. It's harmless (it moves to the main checkout), but a note would help.
  • The #N parse bullet is duplicated in both workflow skills.
  • Tests: near-duplicate helpers across the three new modules, four sandbox syncs per suite run, a weak creat assertion, and a curly-apostrophe gap in a regex in tests/test_worktree_cwd_rule.py.

Closes #58
Closes #59
Closes #60
Closes #61
Closes #19
Closes #20
Closes #21

🤖 Generated with Claude Code

maceorichards and others added 11 commits November 4, 2026 01:15
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
domain-modeling's single-context line now says: when creating
docs/GLOSSARY.md, its top heading is the GitHub repo name
(`gh repo view --json name -q .name`), and an existing heading is never
renamed.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
… -C or a subshell

Devflow section gains a Working directory rule; finishing-a-development-branch
Step 2 and subagent-driven-development's DONE review-package step use a
(cd <dir> && ...) subshell, never a bare cd.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…only when alone

Both workflows resume or upgrade issue N only when the sole non-flag argument
is a single #N; issue numbers in a description are references. A resume
changes the mode only with --fast or --rigor; dev-multi's flagless upgrade
from dev-single is MIXED. Adds three smoke checklist items.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
…o feat/iss-58-skill-cwd-resume-mode-glossary-heading--t60
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@maceorichards
maceorichards merged commit 8fa9696 into develop Nov 4, 2026
5 checks passed
@maceorichards
maceorichards deleted the feat/iss-58-skill-cwd-resume-mode-glossary-heading branch November 4, 2026 14:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment