feat(specify): surface Claude Artifacts in specs for UX/UI projects (#431) - #432
Merged
Conversation
…431) When a spec is authored for a project with a front-end / UX-UI surface, the generated spec now carries an optional "Visual Prototyping with Claude Artifacts" section pointing at the public artifacts docs, so stakeholders can visualise the UX (mockups, prototypes, flow diagrams) before any code. The section is gated on the SAME front-end-surface signal list the accessibility auditor uses (a11y-auditor) — not a new heuristic. Back-end / CLI-only specs, which show none of those signals, drop the section entirely and stay artifact-free (mirrors the "remove inapplicable sections" rule). - spec-template.md: new optional, conditional section (carries the detail + the two public docs links). - specify.md phase doc: terse reinforcement of the FE gate (kept lean to stay under the Windsurf Cascade 12k workflow cap). - plugin copy + local golden kept byte-identical; bundle regenerated. - tests/templates/artifacts_in_specs_test.ts locks the content + the gate. Only the public Claude Artifacts product and its public docs are referenced (constitution § I — no private-half identifiers in the public CLI). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01DUdE2AAKFxPWMR9DGtAmtu
This was referenced Jul 19, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #431.
Why
For front-end / UX-UI features, a static markdown spec under-serves the user. Claude Artifacts can render mockups, interactive prototypes, and flow diagrams that make a feature tangible and easy to validate before any code is written. The CLI already gates behaviour on FE-surface detection (the accessibility audit), so a "project has a UX/UI surface" signal is an established pattern to reuse.
What
When a spec is authored for a project with a front-end surface, the generated spec now carries an optional
## Visual Prototyping with Claude Artifactssection that points the reader at the public artifacts docs.spec-template.md— new optional, clearly-marked conditional section. Carries the detail + two public docs links (support.claude.com"what are artifacts",code.claude.com"artifacts in Claude Code").specify.mdphase doc — terse reinforcement of the gate. Kept lean on purpose:specnaut-specify.mdis the largest Windsurf Cascade workflow and sits near the 12k-char cap, so the bulk of the guidance lives in the template (not a Windsurf workflow).a11y-auditoruses (.html/.jsx/.tsx/.vue/.svelte/.astro, an app/pages/routes markup dir, or apackage.jsonFE-framework dep). No new heuristic.Boundary (§ I)
Only the public Claude Artifacts product and its public docs are referenced — nothing from the private Cloud half. The user's original "artefacts côté cloud" means Claude's hosted Artifacts (claude.ai), not
specnaut-cloud.Tests
tests/templates/artifacts_in_specs_test.ts(new) — locks the bundledspec-template+specifycontent: the section ships, both docs links are present, the gate defers toa11y-auditor, and the remove-if-no-FE instruction is present.deno task bundleregenerated.deno fmt --check+deno lintclean.Agent adoption
/specnaut specifynow adds an optional Visual Prototyping with Claude Artifacts section to generated specs when your project has a front-end / UX-UI surface (detected via the same signals the accessibility gate uses). Specs authored before this upgrade won't have it retroactively — run the prompt below to backfill any in-flight UX/UI specs, and to update any project-local spec-template override you maintain.🤖 Generated with Claude Code