Repository navigation
Description
Summary
/assess emits verbose --phases flags in command output even when the resulting workflow matches the CLI default (spec,exec,qa) or could be expressed via a shorter additive flag like --testgen. The skill's own Flags: annotation example uses additive notation (--testgen, --phases ...,test), but the actual Commands: block examples consistently restate the full phase list. Result: noisy commands and an internal inconsistency between docs and examples.
Motivation — concrete recent example
Today's /assess 532 543 551 552 produced:
npx sequant run 532
npx sequant run 551 -q
npx sequant run 552 -q --phases spec,testgen,exec,qa
The third command is verbose. Since --phases defaults to spec,exec,qa (bin/cli.ts:186) and --testgen exists as a standalone additive flag (bin/cli.ts:208), the cleaner form is:
npx sequant run 552 -q --testgen
Same applies to skill example commands at templates/skills/assess/SKILL.md:279, :322, :386 — all restate spec,exec,qa unnecessarily, and --phases spec,testgen,exec,qa should be --testgen.
Acceptance Criteria
- AC-1: Skill emits
--phasesonly when phases differ from default. When the recommended workflow equals the CLI default (spec,exec,qa),/assessomits--phasesfrom the command. The skill referencesbin/cli.tsas the source of truth for the default rather than embeddingspec,exec,qaliterally in instructions. - AC-2: Prefer additive flags when available.
/assessemits--testgeninstead of--phases spec,testgen,exec,qa. Document the additive-flag preference in SKILL.md "Commands Block Rules". Currently only--testgenqualifies; the rule applies to any future additive flags (see AC-5). - AC-3: SKILL.md examples updated. All
Commands:block examples in SKILL.md use the new minimal form across all three skill directories. Specifically the examples currently around lines 279, 322, 385–386 in.claude/skills/assess/SKILL.mdand equivalents intemplates/skills/andskills/. - AC-4: Test asserts minimization in
src/lib/__tests__/assess-skill.test.ts. Add a test that scans examplesequant runlines in SKILL.md and fails when:- (a) a line contains
--phases spec,exec,qa(the default — should be omitted) - (b) a line contains
--phases ...,testgen,...(should use--testgenadditive flag instead)
Mirrors the structure of the existing "should only reference valid CLI flags in example commands" test at line 127.
- (a) a line contains
- AC-5: (Optional / out-of-scope by default) CLI gains
--security-reviewadditive flag for symmetry with--testgen. Lets the security-review case (spec,security-review,exec,qa) drop--phases. If deferred, document the asymmetry in SKILL.md (additive flag exists for testgen but not security-review). - AC-6: 3-dir sync. Edits applied identically across
.claude/skills/,templates/skills/,skills/. Existing test "should have identical content across all 3 skill directories" (assess-skill.test.ts:143) covers this. - AC-7: CHANGELOG entry under
[Unreleased] / ### Changednoting the more concise output format. - AC-8:
Order:annotation rule clarification. SKILL.md "Annotation Rules" currently says: "Avoid bare filenames when a reason is clearer." Add a one-line exception: when the sequencing reason is a file collision (e.g., two issues both modifyqa/SKILL.md), the filename is the reason and is acceptable verbatim. Apply across all three skill directories.
Non-Goals
- Not changing the actual phases that run — output ergonomics only.
- Not removing
--phasesfrom the CLI — power users still need full control for non-default combinations (e.g.,--phases exec,qafor resume). - Not changing posted issue-comment markers —
<!-- assess:phases=spec,exec,qa -->should keep recording the full workflow, since parsers consume markers (not command text) and the marker documents the workflow itself.
Risks / Open Questions
- Marker/command divergence. After this change, the displayed command may omit phases that the marker still records. This is intentional (markers are machine-readable, commands are human-shorthand) but worth a one-line note in SKILL.md to prevent confusion in future audits.
- AC-5 scope creep. Adding a CLI flag pulls in unrelated work (CLI option, RunOptions field, plumb-through). Prefer to defer to a separate issue and ship AC-1 through AC-4. The fallback clause in AC-5 covers the asymmetry case.
Complexity
medium — skill output rules + 3-dir sync + one test + CHANGELOG. Single PR if AC-5 deferred.
Self-assessed workflow
spec → exec → qa with -q (multi-file: skill changes across 3 dirs + test + CHANGELOG)
Activity
admarble commentedon Apr 26, 2026
Complexity: Standard (8 ACs declared, 7 in-scope, 4 directories)
AC Quality Check
All ACs are clear and measurable. AC-5 is explicitly marked deferrable in the issue's own "Risks / Open Questions" section — recommend deferring to a follow-up issue at exec time. AC-6 is already covered by an existing test (
assess-skill.test.ts:143).Scope Assessment
Non-Goals (from issue):
--phasesfrom the CLI<!-- assess:phases=... -->)Verdict: ✅ SCOPE_OK — single PR is correct. AC-8 bundles cleanly because separating it would double 3-dir-sync churn.
Conflict Risk Analysis
Two sibling worktrees touch the same
SKILL.mdfiles:feature/555-...(#555 supersession detection)SKILL.mdfeature/556-...(#556 file collision prediction)Order:annotation — overlaps with AC-8Recommendation: Ship #554 first (smallest, mostly mechanical). #555/#556 rebase onto the new rules. Coordinate at merge time via
/merger.Acceptance Criteria
AC-1: Skill emits
--phasesonly when phases differ from defaultVerification: Unit Test
Scenario: Given
assess-skill.test.tsscans everysequant runline inSKILL.md→ When any line contains--phases spec,exec,qa(literal default) → Then test fails.Assumptions: SKILL.md text references
bin/cli.ts:186as source of truth rather than embedding the literal default.AC-2: Prefer additive flags when available
Verification: Unit Test
Scenario: Given the same test → When a line contains
--phases <list>where<list>includestestgen→ Then test fails (must use--testgeninstead).Assumptions:
--testgenis purely additive (src/lib/workflow/phase-mapper.ts:174);uilabel auto-addstest(phase-mapper.ts:182), so for ui issues--testgenalone resolves tospec,testgen,exec,test,qa. Verify this before rewriting line :322/:329 — if false, keep--phasesfor those examples and document the edge case.AC-3: SKILL.md examples updated
Verification: Unit Test (covered by AC-1 + AC-2)
Scenario: Examples at
~:279,:322,:329,:385,:386rewritten using minimal form. Test guards content, not line numbers.AC-4: Test asserts minimization
Verification: Unit Test
Scenario: New test in
src/lib/__tests__/assess-skill.test.ts(after the flag-validity test at line 127). Two assertions: (a) reject--phases spec,exec,qa, (b) reject--phases <any>,testgen,<any>.AC-5:⚠️ DEFERRED —
--security-reviewCLI flagDefer to a separate issue per the issue body's own recommendation. Pulls in CLI option + RunOptions + plumb-through (
phase-mapper.ts, batch executor, metrics schema) — orthogonal to skill-output minimization. Document the asymmetry in SKILL.md per the AC-5 fallback clause. File follow-up at exec time.AC-6: 3-dir sync
Verification: Unit Test (existing
assess-skill.test.ts:143)Scenario: Apply edits via per-file
Editto each of.claude/skills/,templates/skills/,skills/(perfeedback_read_each_mirrored_file.md).AC-7: CHANGELOG entry
Verification: Manual Test
Scenario: One-line entry under
[Unreleased] / ### Changedreferencing #554.AC-8:
Order:annotation rule exceptionVerification: Manual + 3-dir sync test
Scenario: Append one line to
Annotation Rulesblock (~SKILL.md:240): when sequencing reason is a file collision, the filename is the reason.Assumptions: Coordinate text with #556 if it lands first.
Implementation Plan
Phase 1: SKILL.md rule + example changes (3-dir sync)
For each of
.claude/skills/assess/SKILL.md,templates/skills/assess/SKILL.md,skills/assess/SKILL.md:Commands Block Rules(~line 220): append rule 8: omit--phaseswhen equal to default; prefer additive flags (--testgen); referencebin/cli.ts:186as source of truth for the default.Annotation Rules(~line 240): append AC-8 filename-as-reason exception under theOrder:bullet.<!-- assess:phases=... -->) records full workflow; displayed command may omit defaults/additive-resolved phases. Intentional divergence.:279--phases spec,security-review,exec,qa— keep (no additive flag exists, defer until AC-5):280--phases exec,qa— keep (resume case, power-user):322--phases spec,testgen,exec,test,qa— simplify to--testgenIFFphase-mapper.tsconfirms ui label addstest:329Chain command — same simplification as:322:385--phases spec,exec,test,qa— simplify to default IFF Add QA skill check for three-directory skill sync #499 is implicitly ui-labelled (chart bug):386--phases spec,security-review,exec,qa— keep (no additive until AC-5)Phase 2: Test addition
src/lib/__tests__/assess-skill.test.tsafter line 139:Phase 3: CHANGELOG
[Unreleased] / ### Changed: one-line entry crediting feat(assess): emit minimal command flags — drop default --phases, prefer additive flags #554.Phase 4: AC-5 follow-up
--security-reviewadditive flag at exec time.Design Review
assess-skill.test.tsalongside existing flag-validity tests. Nosrc/code change needed for AC-1..AC-4.bin/cli.tsto extract the literal default?" — Answer: brittle (regex over CLI definition), and the rule is human-readable. The test asserts on the output (no--phases spec,exec,qa), which is what we care about.Feature Quality Planning
All standard checks pass. Notable items:
--testgen+ UI label edge case: Must verifyphase-mapper.ts:182behavior before simplifying lines:322/:329. If--testgenalone + ui label producesspec,testgen,exec,test,qa, simplify; otherwise keep--phasesand document.Derived ACs
phase-mapper.ts:174,182resolution before rewriting:322/:329/:385Open Questions
--testgen+ ui label resolve tospec,testgen,exec,test,qa? Need to confirm againstphase-mapper.ts:174,182. Recommendation: verify at exec time before rewriting:322/:329. Impact if wrong: test passes but examples are misleading.:385) implicitly ui-labelled? ("Dashboard chart rendering bug" suggests yes.) If so,--phases spec,exec,test,qacollapses entirely. Recommendation: rewrite as default-qgroup entry.Order:rewrites: If feat(assess): predict file-collision between PROCEED issues from body content #556 also rewrites this rule, last merger wins. Recommendation: keep our edit minimal (one sentence appended); resolve at /merger time.Recommended Workflow
Phases: spec → exec → qa
Quality Loop: enabled (
-q)Reasoning: Multi-file mirrored edits historically drift (
feedback_read_each_mirrored_file.md). No UI/auth/testgen-eligible new code logic — added test is small enough to write inline.Label Review
Current:
enhancement,cliRecommended: no change
Reason: CLI-output ergonomics; existing labels correct.
Quality Loop: Auto-enabled by
-qrationale (multi-file mirrored edits).→ No label edit needed beyond
planned.admarble commentedon Apr 26, 2026
Implementation Update —
/execcompletePR: #557
AC Coverage
Commands Block Rules; #499 ui example folded into default group--testgenpreferred; documented in rule 8:322,:329,:385rewritten in all 3 dirsassess-skill.test.tsrejects--phases spec,exec,qaand--phases …,testgen,…assess-skill.test.ts:143) passes[Unreleased] / ### ChangedentryOrder:filename-as-reason exception in all 3 SKILL.mdphase-mapper.ts:174-189confirms--testgen+ ui →spec,testgen,exec,test,qaFiles Changed
.claude/skills/assess/SKILL.md(+8 / -7)skills/assess/SKILL.md(+8 / -7)templates/skills/assess/SKILL.md(+8 / -7)src/lib/__tests__/assess-skill.test.ts(+13 minimization assertion)CHANGELOG.md(+1 entry)Quality Plan Alignment
bin/cli.ts:186) embedded in rule textDerived ACs: 2/2 addressed (D1 verified, D2 implemented).
Test/Build/Lint Results
npm run build— ✅ passes (0 errors)npm run lint— ✅ passes (0 errors, 0 warnings)npm test(assess-skill.test.ts) — ✅ 6/6 tests pass, including new minimization assertionPre-PR Confidence Check
--testgensimplification at lines:322/:329depends onphase-mapper.determinePhasesForIssueauto-addingtestfrom the ui label. Verified againstphase-mapper.ts:174-189, but if that auto-detect logic is ever removed/changed, the example becomes misleading. Mitigation: rule 8 documents the dependency explicitly.Follow-ups
--security-reviewadditive flag) post-merge if symmetry is desired./mergertime (both touch SKILL.mdOrder:rule and Step 4).Documentation Reminder
Documentation already updated (CHANGELOG entry added).
/qawill verify whether README/docs need additional updates.Next Steps
/qa 554to verify against AC and check for gaps./assessagainst a mix of issue types (default / testgen / ui / security-review) to verify emitted commands use the minimal form.admarble commentedon Apr 26, 2026
QA Review for Issue #554 (Simple Fix)
Size Gate
AC Coverage
--phasesonly when phases differ from defaultDEFAULT_PHASESinsrc/lib/workflow/types.ts); all default-case examples now omit--phases. Minor nuance: AC text said "referencesbin/cli.ts", impl points attypes.tsinstead — arguably better since that's where the constant lives. Rule still includes "currentlyspec,exec,qa" parenthetically; this is a hint, not the canonical source. Functional contract met.--testgenexists,--security-reviewdoes not). Examples updated accordingly.:324,:331→--testgen.:384→ folded #499 into default group (relies onphase-mapper.determinePhasesForIssueauto-addingtestfrom ui label — verified).:386retains--phases spec,security-review,exec,qaper AC-2/AC-5 (no additive flag).it("should not restate default phases or non-additive testgen…")atassess-skill.test.ts:141; rejects--phases spec,exec,qaand--phases <any>,testgen,<any>. 6/6 tests pass.--security-reviewadditive flag.claude/skills/,skills/,templates/skills/. Existing 3-dir sync test passes.[Unreleased] / ### Changedwith #554 reference and divergence note about markers vs displayed commands.Order:filename-as-reason exceptionOrder:bullet across all 3 mirrors with a concrete example.phase-mapper.ts:174,182resolution--testgen+ ui label resolves tospec,testgen,exec,test,qaviadeterminePhasesForIssue. Rule 8 documents the dependency.Coverage: 9/9 in-scope ACs met (AC-5 deferred per issue's own recommendation)
Quality Metrics
any)CI Status
build (20.x)build (22.x)typecheckvalidate-skillsvalidate-pluginHooks ValidationPlugin Structure ValidationSetup Directory CreationCI Summary: 8 passed, 0 pending, 0 failed
Code Review
Strengths:
--testgen+ ui edge case, the--security-reviewasymmetry, and the marker/command divergence — all in one paragraph. No reader needs to hunt for context.DEFAULT_PHASES) rather than a CLI description string. More durable across refactors.phase-mapper.ts:182, keeping runtime behavior identical while shortening the displayed command.assess-skill.test.ts:127) — same regex-scan pattern, low cognitive overhead for future maintainers.Order: 460 → 461 (qa/SKILL.md)) is concrete and self-explanatory.Issues:
Suggestions:
bin/cli.ts"; impl points attypes.ts. The substitution is defensible (and arguably correct), but if a future reader cross-references the AC literally they may be momentarily confused. Consider mentioning both in the rule (e.g., "default registered atbin/cli.ts:186, constant atsrc/lib/workflow/types.ts:38") — non-blocking.Test Coverage Analysis
.claude/skills/assess/SKILL.mdsrc/lib/__tests__/assess-skill.test.tsskills/assess/SKILL.mdtemplates/skills/assess/SKILL.mdsrc/lib/__tests__/assess-skill.test.tsCHANGELOG.mdCoverage: 3/3 changed source files covered by
assess-skill.test.ts(flag validity + 3-dir sync + new minimization test)Anti-Pattern Detection
No anti-patterns detected. Changes are documentation (skill
.md) + one declarative test addition + CHANGELOG entry. No new TypeScript logic, no dependencies, no security-sensitive paths.Risk Assessment
phase-mapper.determinePhasesForIssueis ever refactored to stop auto-addingtestfor ui labels, the simplifiednpx sequant run 499 -qexample would silently mis-document the runtime behavior. Mitigation: rule 8 explicitly namesphase-mapper.determinePhasesForIssueas the dependency, so a future refactorer will grep this skill before changing the function.--phases spec,exec,qain the rule's example), the test won't catch it. Low priority — 3-dir sync test catches divergence across mirrors, and the rule is human-readable LLM instruction.Verdict: READY_FOR_MERGE
All in-scope ACs (AC-1 through AC-4, AC-6 through AC-8) met. AC-5 deferred per the issue's own fallback clause with the asymmetry explicitly documented in rule 8. Both derived ACs (D1 verification, D2 divergence note) addressed. All 8 CI checks pass, all 6 unit tests pass, no anti-patterns detected, no security/type concerns.
The implementation is tight: minimal text changes across 3 mirrored files, one new test mirroring an existing pattern, and a CHANGELOG entry that captures the user-facing behavior change. The marker-vs-command divergence is documented to prevent future audit confusion.
Documentation
[Unreleased] / ### Changed, references feat(assess): emit minimal command flags — drop default --phases, prefer additive flags #554)Next Steps
--security-reviewadditive flag) if symmetry with--testgenis desired./mergertime — both touchSKILL.mdOrder:rule and Step 4 area; this PR's AC-8 exception should be preserved.admarble commentedon Apr 27, 2026
QA Review for Issue #554 (Simple Fix — forced re-run)
Re-run requested via
/qa 554 --forceat same commit (47f6ca76ba6352b3e58c44dc1a18fd0c23139539); content matches prior verdict.Size Gate
AC Coverage
--phasesonly when phases differ from defaultDEFAULT_PHASES(src/lib/workflow/types.ts:38); #499 example collapsed into default group atSKILL.md:384. Spec text said "referencesbin/cli.ts"; impl points attypes.ts(where the constant lives) and parenthetically restates "currentlyspec,exec,qa". Functional contract met.--testgenpreference;--security-reviewasymmetry called out explicitly.SKILL.md:322,329rewritten to use--testgen.:322/:329→--testgen.:384folded #499 into default group (relies onphase-mapper.determinePhasesForIssueui→test auto-add — verified atphase-mapper.ts:182).:386retains--phases spec,security-review,exec,qa(no additive flag).it("should not restate default phases or non-additive testgen…")atassess-skill.test.ts:141. Two assertions guard--phases spec,exec,qaand--phases <any>,testgen,<any>. 6/6 tests pass.--security-reviewadditive flagdiff -qconfirms identical content across.claude/skills/,skills/,templates/skills/. Existing 3-dir sync test passes.[Unreleased] / ### Changedentry references #554 and notes marker-vs-displayed-command divergence.Order:filename-as-reason exceptionOrder:bullet across all 3 mirrors with concrete(qa/SKILL.md)example.phase-mapper.tsresolutionhasUILabels+determinePhasesForIssue(lines 24, 158, 182) insertstestbeforeqawhen ui label present, so--testgen+ ui →spec,testgen,exec,test,qa.Coverage: 9/9 in-scope ACs met (AC-5 deferred per issue's fallback)
Quality Metrics
any)CI Status (PR #557)
8 passed, 0 pending, 0 failed:
build (20.x),build (22.x),typecheck,validate-skills,validate-plugin,Hooks Validation,Plugin Structure Validation,Setup Directory Creation.Code Review
Strengths:
--testgen+ ui edge case, the--security-reviewasymmetry, and the marker/command divergence in one paragraph.DEFAULT_PHASESconstant rather than a CLI.option()description string — more durable across CLI-flag refactors.:384collapse of Add QA skill check for three-directory skill sync #499 into the default group is the correct read ofphase-mapper.determinePhasesForIssue— runtime behavior is preserved.assess-skill.test.ts:127); low maintenance overhead.Order: 460 → 461 (qa/SKILL.md)) is concrete and matches the convention used elsewhere in the skill.Issues:
Suggestions:
bin/cli.ts"; impl points attypes.ts. The substitution is defensible — that's where the constant actually lives — but a future cross-reference of the literal AC text may briefly confuse. Consider mentioning both locations in rule 8 (e.g., "registered atbin/cli.ts:186, constant atsrc/lib/workflow/types.ts:38").Test Coverage Analysis
.claude/skills/assess/SKILL.mdsrc/lib/__tests__/assess-skill.test.ts(flag validity + 3-dir sync + new minimization)skills/assess/SKILL.mdtemplates/skills/assess/SKILL.mdsrc/lib/__tests__/assess-skill.test.tsCHANGELOG.mdCoverage: 3/3 changed source files covered. Critical paths without tests: None.
Anti-Pattern Detection
No anti-patterns detected on added lines: no
anytypes, noeval/innerHTML/secrets/passwords. Changes are skill markdown + one declarative test + CHANGELOG entry. No new TypeScript logic, no dependency changes.Risk Assessment
phase-mapper.determinePhasesForIssueis ever refactored to stop auto-addingtestfor ui labels, the simplifiednpx sequant run 499 -qexample atSKILL.md:384would silently mis-document runtime behavior. Mitigation: rule 8 namesphase-mapper.determinePhasesForIssueas the dependency, so a future refactorer is steered to grep this skill.--phases spec,exec,qainside rule 8's prose, the test won't catch it. Low priority — 3-dir sync test catches divergence, and the rule text is human-readable LLM instruction.Verdict: READY_FOR_MERGE
All 9 in-scope ACs met (original + 2 derived). AC-5 deferred per the issue's own fallback clause with the asymmetry documented in rule 8. All 8 CI checks pass, 6/6 unit tests pass, no anti-patterns, no security/type concerns, 3-dir sync verified.
The implementation is tight: minimal text changes across 3 mirrored files, one new test mirroring an existing pattern, and a CHANGELOG entry that captures the user-facing behavior change. Marker-vs-command divergence is documented to prevent future audit confusion.
Documentation
[Unreleased] / ### Changed, references feat(assess): emit minimal command flags — drop default --phases, prefer additive flags #554)Next Steps
--security-reviewadditive flag) if symmetry with--testgenis desired./mergertime with feat(assess): detect prior assess markers — supersession note + re-assessment churn warning #555 / feat(assess): predict file-collision between PROCEED issues from body content #556 — both touchSKILL.mdnear theOrder:rule and Step 4; this PR's AC-8 exception should be preserved.fix(#554): satisfy AC-1 literally — reference bin/cli.ts, drop embedd…
docs(#554): add assess-minimal-flags feature doc
admarble commentedon Apr 29, 2026
Documentation Generated
File:
docs/features/assess-minimal-flags.mdSections Included
--phasesfor security-review)Why a doc page despite skill-internal scope
The change is skill-internal (output ergonomics), but two facts now matter to anyone reading
/assessoutput: (a) the displayed command no longer matches the resolved workflow when ui labels auto-addtest, and (b)<!-- assess:phases=... -->markers are the source of truth for full resolution. The doc captures both so future readers don't have to grepphase-mapper.tsto figure out whynpx sequant run 499 -qruns four phases.Next Steps
Ready to merge!
feat(#554): emit minimal command flags in /assess output (#557)