site-spec: expand into creative direction (layout, hero, typography)#3630
Open
lezama wants to merge 1 commit into
Open
site-spec: expand into creative direction (layout, hero, typography)#3630lezama wants to merge 1 commit into
lezama wants to merge 1 commit into
Conversation
…typography) Instead of asking 'one-page or multi-page?', the skill now auto-infers layout, pages/sections, hero composition, and typography from the site name — then briefs the user in ≤4 lines before building. Inspired by Telex's approach: committing to a heroComposition (cinematic prose describing spatial composition) and inferring typography from site type are the two changes that most improve output quality. Folds the separate creative-direction skill into site-spec as Riad suggested — one skill for gathering user needs and expanding the brief. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Collaborator
📊 Performance Test ResultsComparing 11343d7 vs trunk app-size
site-editor
site-startup
Results are median values from multiple test runs. Legend: 🟢 Improvement (faster) | 🔴 Regression (slower) | ⚪ No change (<50ms diff) |
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.
What
Enhances the
site-specskill to auto-expand a vague brief into a creative direction — inferring layout, pages/sections, hero composition, and typography from the site name — then briefs the user in ≤4 lines before building.Addresses @youknowriad's feedback on #3610: "we should not remove site spec, we should enhance it".
Why
When a user says "make a site for my bar", the current skill asks one binary question (one-page or multi-page?) and then the agent guesses everything else. The result is usually a minimal skeleton.
Telex's better output quality comes from two specific things it does before writing any file:
Both happen without asking the user anything extra.
Changes
apps/cli/ai/skills/site-spec/SKILL.md— replaces the one-page/multi-page question with auto-expansion: layout mode, pages/sections, hero composition, typography. Also includes the Round 1 stop-instruction fix from site-spec: strengthen Round 1 stop instruction to prevent tool calls in same turn #3615.apps/cli/ai/system-prompt.ts— one-line update to the site-creation routing description.2 files, +42/−17 lines.
Relationship to other PRs
creative-directionskill in Add creative-direction skill for vague site briefs #3629 (draft/PoC) — same goal, one skill instead of two.Testing