Skip to content

feat(#531): classify infra/scaffold paths into developer-tool template - #546

Merged
admarble merged 2 commits into
mainfrom
feature/531-feat-docs-skill-classify-infra-scaffold-paths-into
Apr 23, 2026
Merged

admarble merged 2 commits into
mainfrom
feature/531-feat-docs-skill-classify-infra-scaffold-paths-into

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add third classifier branch to /docs skill detecting infra/scaffold paths (package.json, *.config.*, .env.example, src/app/**/layout.tsx, src/middleware.ts, framework configs) and routing to the developer-tool template
  • Change fallback default from admin to developer-tool — admin template is now opt-in via /admin/ path only
  • Sync all three skill directories (.claude/skills/, templates/skills/, skills/) to identical content with full classifier, both templates, and doc-only early exit

AC Verification

AC Description Status Evidence
AC-1 Infra/scaffold path classifier branch ✅ SKILL.md:153 — regex matches all specified patterns
AC-2 Default fallback to developer-tool ✅ SKILL.md:157-160 — ELSE branch routes to developer-tool
AC-3 All three skill directories updated ✅ check-skill-sync.ts confirms sync
AC-4 CHANGELOG [Unreleased] updated ✅ CHANGELOG.md — new Changed entry

Test plan

  • npm run build passes
  • npm run lint passes
  • npm test — 2673/2673 tests pass
  • scripts/check-skill-sync.ts — docs skill in synced group

Closes #531

Add a third classifier branch to /docs skill that detects infra/scaffold
paths (package.json, *.config.*, .env.example, layout/page files,
middleware, framework configs) and routes them to the developer-tool
template. Change the fallback default from admin to developer-tool so
admin is opt-in via /admin/ path only.

Sync all three skill directories (.claude/skills/, templates/skills/,
skills/) to the same content including the full classifier, both
templates, and the documentation-only early exit logic.

Closes #531
Follow-up refinements to the classifier added in d45eee4:

1. Config extension variants — add .cts/.cjs/.mts to the config
   extension group so e.g. `vitest.config.mts` routes to
   developer-tool the same as `vitest.config.mjs`.

2. TypeScript/JavaScript project config — add `tsconfig.json` /
   `jsconfig.json` (name-based, since they don't fit the
   `*.config.ext` pattern). Previously fell through to the
   developer-tool default by accident; now matched explicitly.

3. Remove stale "User-Facing Documentation" bullet list — it no
   longer corresponds to a distinct classifier branch now that the
   ELSE fallback routes everything non-admin, non-dev-tool,
   non-infra to developer-tool. Replaced with a one-line note
   clarifying that fall-through behavior.

No CHANGELOG bump — still under the same unreleased #531 entry.
Applied identically to all three copies of docs/SKILL.md.
@admarble
admarble merged commit bc3bb93 into main Apr 23, 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.

feat(docs-skill): classify infra/scaffold paths into developer-tool template

1 participant