You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
feat(docs-skill): classify infra/scaffold paths into developer-tool template #531
The /docs skill has two templates — admin/UI (Section 3a) and developer-tool (Section 3b). Its classifier (.claude/skills/docs/SKILL.md:135-150) routes to developer-tool only when paths match src/commands/|bin/|src/mcp/|scripts/. Everything else falls through to admin, which has URL / Menu / Permissions fields irrelevant for scaffold/infra features.
Motivation
Scaffold / infra issues (root package.json, next.config.*, payload.config.ts, .env.example, Next.js src/app/layout.tsx) have no /admin/ path and don't match the dev-tool pattern. During portfolio-2025 #27 I had to manually override the template to write something useful — the existing developer-tool template (Prerequisites / Setup / What to Expect / Troubleshooting) already fits perfectly; the classifier just doesn't pick it.
Acceptance Criteria
AC-1: Add a third branch to the classifier detecting infra/scaffold paths: package\.json$, .*\.config\.(ts|js|mjs)$, \.env\.example$, ^src/app/.*(layout|page)\.tsx$, ^src/middleware\.ts$, ^(payload|drizzle|next|vite|vitest)\.config\.. Route to developer-tool template.
AC-2: Fallback default: when neither /admin/ nor infra/dev-tool matches, default to developer-tool. admin becomes opt-in via /admin/ path only.
AC-3: Update SKILL.md across all three skill directories
AC-4: Update CHANGELOG.md under [Unreleased]
Additional context
No new template needed — existing 3b covers the case
→ PROCEED — Route infra/scaffold paths to developer-tool template instead of falling through to admin
Workflow:spec → exec → qa · 4 ACs
npx sequant run 531 -q
⚠ SKILL.md sync across 3 dirs — known pitfall
⚠ Regex additions in classifier deserve spec-phase design review
⚠ Updates CHANGELOG.md [Unreleased] — conflicts possible with #528 and #529
CHANGELOG entry is well-written and accurately describes the behavioral change.
All three skill directories kept perfectly in sync.
Bonus: Added a documentation-only early exit (Section 2a) and a separate 3b. Developer Tool Documentation Template — these make the skill more useful beyond just the classifier fix.
Issues:
None — implementation is clean and focused.
Suggestions:
The skills/docs/SKILL.md and templates/skills/docs/SKILL.md diff is much larger (+157/-17) than .claude/skills/docs/SKILL.md (+15/-4) because the latter already had partial content. This is fine since all three are now identical, but worth noting for provenance.
Test Coverage Analysis
No TypeScript source files changed — all changes are .md skill prompt files. Test coverage analysis is N/A.
Anti-Pattern Detection
No TypeScript/JavaScript files changed. No anti-patterns applicable.
Skill Change Review
Command verified: No new CLI commands introduced — changes are to classification logic and templates only
Likely failure mode: A file path that should match the infra/scaffold pattern but doesn't (e.g., a non-standard config like turbo.json). Low risk — the fallback is now also developer-tool, so unmatched paths still get the correct template.
Not tested: The classifier is a prompt instruction, not executable code. Its correctness depends on LLM interpretation at runtime. No automated tests can cover this.
Verdict: NEEDS_VERIFICATION
All 4 AC items are MET. Code quality is high — clean classifier logic, all three directories in sync, accurate CHANGELOG entry. Implementation would be READY_FOR_MERGE but CI checks build (20.x) and build (22.x) are still in progress.
Action: Re-run /qa 531 after CI completes to confirm READY_FOR_MERGE.
Documentation
N/A — This issue IS a docs skill change; no additional feature documentation needed.
Next Steps
Wait for build (20.x) and build (22.x) CI checks to complete
Re-ran /qa at d45eee4f9d1f1c77aa97a5d7f304edac95f32875 (same SHA as prior QA). Prior verdict was NEEDS_VERIFICATION solely because build (20.x) and build (22.x) were in progress — all other gates were already green.
CI Status (now complete)
Check
Conclusion
build (20.x)
✅ SUCCESS
build (22.x)
✅ SUCCESS
typecheck
✅ SUCCESS
validate-skills
✅ SUCCESS
validate-plugin
✅ SUCCESS
Plugin Structure Validation
✅ SUCCESS
Hooks Validation
✅ SUCCESS
Setup Directory Creation
✅ SUCCESS
CI Summary: 8/8 passed. PR is MERGEABLE.
AC Re-verification
AC
Status
Evidence
AC-1 — infra/scaffold classifier branch
MET
.claude/skills/docs/SKILL.md lines 152-155: regex package\.json\$|.*\.config\.(ts|js|mjs)\$|\.env\.example\$|^src/app/.*(layout|page)\.tsx\$|^src/middleware\.ts\$|^(payload|drizzle|next|vite|vitest)\.config\. routes to developer-tool template
AC-2 — default to developer-tool, admin opt-in via /admin/
MET
ELSE branch (lines 156-159) now sets template = "developer-tool"; admin only selected when file path contains /admin/ (first IF clause)
AC-3 — 3-dir sync
MET
All three docs/SKILL.md files byte-identical at 458 lines; earlier main-branch divergence (447 vs 337) resolved by this PR
AC-4 — CHANGELOG [Unreleased]
MET
Entry under ### Changed with (#531)
Skill-Sync Verification
npx tsx scripts/check-skill-sync.ts confirms docs/SKILL.md is now synced across all three directories (it was previously in the diverged list on main). Other pre-existing divergences (improve, loop, security-review, etc.) are unrelated to this PR.
Risk Assessment
Likely failure mode: classifier is purely prompt-level logic executed by the /docs skill LLM — if the model skips the regex check and jumps to fallback, behavior is still correct (fallback also routes to developer-tool). No real failure surface.
Not tested: no automated test exercises the classifier; relies on the /docs model reading and applying the decision logic correctly.
Verdict: READY_FOR_MERGE
All ACs MET, all CI green, 3-dir sync verified and fixed, CHANGELOG entry present.
Documentation: Self-documented via SKILL.md inline comments and CHANGELOG — no separate /docs run needed.
Activity
admarble commentedon Apr 17, 2026
→ PROCEED — Route infra/scaffold paths to
developer-tooltemplate instead of falling through toadminWorkflow:
spec → exec → qa· 4 ACs⚠ SKILL.md sync across 3 dirs — known pitfall
⚠ Regex additions in classifier deserve spec-phase design review
⚠ Updates
CHANGELOG.md [Unreleased]— conflicts possible with #528 and #529admarble commentedon Apr 17, 2026
QA Review for Issue #531
Implementation Status: NOT FOUND
No implementation detected for this issue:
Verdict: AC_NOT_MET
No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.
Next Steps
/exec 531to implement the feature/qa 531after implementation is completeQA skipped: No implementation to review
admarble commentedon Apr 17, 2026
QA Review for Issue #531
Implementation Status: NOT FOUND
No implementation detected for this issue:
Verdict: AC_NOT_MET
No code changes found to review. The acceptance criteria cannot be evaluated without an implementation.
Next Steps
/exec 531to implement the feature/qa 531after implementation is completeQA skipped: No implementation to review
admarble commentedon Apr 23, 2026
→ PROCEED — Classifier change + 3-dir SKILL.md sync. Current assess rule skips spec for docs-labeled issues.
Workflow:
exec → qa· 4 ACs```
npx sequant run 531 -q --phases exec,qa
```
⚠ Worktree at stale base (e3cfa67) — rebase before exec
⚠ If #533 lands first, spec phase would be included per new default
feat(#531): classify infra/scaffold paths into developer-tool template
admarble commentedon Apr 23, 2026
Exec Phase Complete
AC Coverage
Key Files Changed
.claude/skills/docs/SKILL.md— classifier + infra type list + fallback changetemplates/skills/docs/SKILL.md— synced to authoritative copyskills/docs/SKILL.md— synced to authoritative copyCHANGELOG.md— new### Changedentry under[Unreleased]Quality Gates
npm run buildnpm run lintnpm testcheck-skill-sync.tsQuality Plan Alignment
N/A — No quality plan in issue (no /spec phase ran)
PR
#546
admarble commentedon Apr 23, 2026
QA Review for Issue #531
PR: #546 | Branch:
feature/531-feat-docs-skill-classify-infra-scaffold-paths-intoSize Gate
.mdAC Coverage
package\.json$,.*\.config\.(ts|js|mjs)$,\.env\.example$,^src/app/.*(layout|page)\.tsx$,^src/middleware\.ts$,^(payload|drizzle|next|vite|vitest)\.config\.). Routes todeveloper-tooltemplate (Section 3b).developer-tool;adminopt-in via/admin/onlyELSEbranch now setstype = "developer-tool", replacing the oldtype = "feature"/template = "admin"fallback..claude/skills/docs/SKILL.md,skills/docs/SKILL.md,templates/skills/docs/SKILL.md.### Changedwith issue reference (#531). Describes the classifier change and default-flip accurately.Coverage: 4/4 AC items fully met
Quality Metrics
any)CI Status
Hooks ValidationPlugin Structure Validationvalidate-skillstypecheckSetup Directory Creationvalidate-pluginbuild (20.x)build (22.x)CI Summary: 6 passed, 2 pending, 0 failed
Code Review
Strengths:
/admin/→ admin, dev-tool paths → developer-tool, infra/scaffold paths → developer-tool, fallback → developer-tool. Easy to follow.3b. Developer Tool Documentation Template— these make the skill more useful beyond just the classifier fix.Issues:
Suggestions:
skills/docs/SKILL.mdandtemplates/skills/docs/SKILL.mddiff is much larger (+157/-17) than.claude/skills/docs/SKILL.md(+15/-4) because the latter already had partial content. This is fine since all three are now identical, but worth noting for provenance.Test Coverage Analysis
No TypeScript source files changed — all changes are
.mdskill prompt files. Test coverage analysis is N/A.Anti-Pattern Detection
No TypeScript/JavaScript files changed. No anti-patterns applicable.
Skill Change Review
ghandgit(already documented)Skill Sync Verification
.claude/skills/docs/SKILL.mdskills/docs/SKILL.mdtemplates/skills/docs/SKILL.mdSync status: All three directories identical ✅
CHANGELOG Verification
### ChangedResult: CHANGELOG requirements met
Risk Assessment
turbo.json). Low risk — the fallback is now alsodeveloper-tool, so unmatched paths still get the correct template.Verdict: NEEDS_VERIFICATION
All 4 AC items are MET. Code quality is high — clean classifier logic, all three directories in sync, accurate CHANGELOG entry. Implementation would be
READY_FOR_MERGEbut CI checksbuild (20.x)andbuild (22.x)are still in progress.Action: Re-run
/qa 531after CI completes to confirmREADY_FOR_MERGE.Documentation
Next Steps
build (20.x)andbuild (22.x)CI checks to complete/qa 531to confirmREADY_FOR_MERGEadmarble commentedon Apr 23, 2026
QA Re-verification for Issue #531
Re-ran /qa at
d45eee4f9d1f1c77aa97a5d7f304edac95f32875(same SHA as prior QA). Prior verdict wasNEEDS_VERIFICATIONsolely becausebuild (20.x)andbuild (22.x)were in progress — all other gates were already green.CI Status (now complete)
build (20.x)build (22.x)typecheckvalidate-skillsvalidate-pluginPlugin Structure ValidationHooks ValidationSetup Directory CreationCI Summary: 8/8 passed. PR is MERGEABLE.
AC Re-verification
.claude/skills/docs/SKILL.mdlines 152-155: regexpackage\.json\$|.*\.config\.(ts|js|mjs)\$|\.env\.example\$|^src/app/.*(layout|page)\.tsx\$|^src/middleware\.ts\$|^(payload|drizzle|next|vite|vitest)\.config\.routes todeveloper-tooltemplate/admin/template = "developer-tool"; admin only selected when file path contains/admin/(first IF clause)docs/SKILL.mdfiles byte-identical at 458 lines; earlier main-branch divergence (447 vs 337) resolved by this PR### Changedwith(#531)Skill-Sync Verification
npx tsx scripts/check-skill-sync.tsconfirmsdocs/SKILL.mdis now synced across all three directories (it was previously in the diverged list on main). Other pre-existing divergences (improve, loop, security-review, etc.) are unrelated to this PR.Risk Assessment
developer-tool). No real failure surface.Verdict: READY_FOR_MERGE
All ACs MET, all CI green, 3-dir sync verified and fixed, CHANGELOG entry present.
Documentation: Self-documented via SKILL.md inline comments and CHANGELOG — no separate
/docsrun needed.fix(#531): broaden infra/scaffold classifier coverage
feat(#531): classify infra/scaffold paths into developer-tool template (
feat(#531): classify infra/scaffold paths into developer-tool template
fix(#531): broaden infra/scaffold classifier coverage