Skip to content

fix(#522): restore /solve feature parity in /assess skill - #527

Merged
admarble merged 3 commits into
mainfrom
feature/522-restore-solve-parity-in-assess
Apr 17, 2026
Merged

admarble merged 3 commits into
mainfrom
feature/522-restore-solve-parity-in-assess

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

Restores three core /solve capabilities that were dropped during the /assess v3.0 output redesign regression chain (#325 → #453 → 8f38dca → #494):

  • Chain detection (suggest-only) — Chain: annotation when 2+ assessed issues have a detected dependency. Never auto-applied; false-positive safety.
  • Testgen auto-detection — labels + AC-content triggers; restored in the phase-selection table.
  • Flag reasoning — Flags: section in batch + single modes with one-line reasoning per distinct non-default flag.

Visual structure:

  • Commands: labeled header replaces bare indented command blocks (no box-drawing — proven unreliable for LLM output)
  • Conditional ACs column in batch mode when every issue has explicit - [ ] checkboxes
  • Richer Order: (dependency reasoning) and ⚠ (partial-AC satisfaction) annotations — no new annotation types

Acceptance Criteria

AC Status
AC-1: Chain suggestion ✅ MET
AC-2: Testgen auto-detection in phase-selection table ✅ MET
AC-3: Flag reasoning in batch mode ✅ MET
AC-4: Labeled command block ✅ MET
AC-5: Richer Order/⚠ annotations ✅ MET
AC-6: Conditional ACs column ✅ MET
AC-7: Single-mode Flags indented list ✅ MET
AC-8: Three-directory sync ✅ MET
AC-9: All examples updated, no stale format ✅ MET

Files

  • .claude/skills/assess/SKILL.md
  • templates/skills/assess/SKILL.md
  • skills/assess/SKILL.md
  • src/lib/__tests__/assess-skill.test.ts — regex updated for new Step 4 section layout; drift-prevention guardrail preserved

All three skill copies stay byte-identical (verified by check-skill-sync.ts and an existing test).

Test plan

  • npm run build passes (tsc clean)
  • npm run lint passes (--max-warnings 0)
  • npm test passes (2579/2579 across 106 files)
  • check-skill-sync.ts reports assess/SKILL.md — 3/3 match
  • assess-skill.test.ts validates every --flag referenced in SKILL.md exists in bin/cli.ts
  • Manual validation: run /assess on dependent issues (e.g., /assess 185 186) after merge to confirm Chain: / Flags: / ACs column behave as documented in examples

Notes

  • Prompt length: 514 → 640 lines (+126). New content is entirely AC-required (Chain/Flags sections, richer annotation rules, refreshed examples). Dead flag documentation from old "Other flags" block was removed in parallel per the issue's prompt-discipline budget.
  • Chain is deliberately suggest-only — false-positive branch-topology inference would be worse than a missed chain suggestion.

Closes #522

Restores three core /solve capabilities that were dropped during the
/assess v3.0 output redesign (regression chain: #325 → #453 → 8f38dca → #494):

- Chain detection — new `Chain:` suggestion annotation when 2+ assessed
  issues share a dependency (depends-on/blocked-by/after, or
  output-of-A-consumed-by-B). Suggest-only, never auto-applied.

- Testgen auto-detection — new "Testgen detection" rules in Step 4:
  ui/frontend + enhancement/feature labels OR ACs referencing unit/
  integration tests trigger the testgen phase.

- Flag reasoning — new `Flags:` indented list in both batch and single
  modes; one line per distinct non-default flag. Omitted when -q is
  the only non-default flag and the reason is obvious.

Visual structure:
- Command block now headed by `Commands:` (no boxes; labels replace
  drawn borders, which proved unreliable for LLM output)
- Conditional `ACs` column in batch mode when every issue has explicit
  `- [ ]` checkbox ACs
- Richer `Order:` / `⚠` annotations carrying dependency reasoning and
  partial-AC-satisfaction context (no new annotation types)

All 9 ACs addressed. Three skill directories synced. Updated
assess-skill.test.ts to scan the new Step 4 detection section for
CLI flag validation.
AC-2 literally requires 'Restore testgen phase recommendation in the
phase-selection table'. Previous commit placed testgen detection in a
post-table subsection; this adds a Modifier row to the table itself so
testgen is visible in the primary phase-selection lookup. Detection rules
remain in the subsection below.
/assess output is user-facing — the Commands: header, Chain:/Flags:
sections, and conditional ACs column all change what users see when
running the skill. Missed in the initial QA pass.
@admarble
admarble merged commit e3cfa67 into main Apr 17, 2026
8 checks passed
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.

fix: restore /solve feature parity in /assess — chain detection, testgen, flag reasoning, output polish

1 participant