feat(prompts): align with Claude Design conventions (empty EDITMODE, 9-token palette, 2-font default, animation cap, Fraunces for marketing)#110
Closed
hqhq1025 wants to merge 1 commit intowt/progressive-promptfrom
Conversation
Five small content updates extracted from real Claude Design output
analysis (research docs §1.2, §2, §6, §11.3, §11.4):
- EDITMODE: document empty `{}` block as valid (tweak-aware signal)
- Design methodology: 9 ± 3 oklch token density target
- Craft directives: 2-font default (mono on-demand only)
- Craft directives: 4-animation CSS keyframe budget
- Progressive disclosure: marketing prompts surface Fraunces hint
New `marketingFontHint` section + Layer 2 routing in
`composeCreateProgressive` triggers on KEYWORDS_MARKETING. Drift test
auto-handles the new section via PROMPT_SECTIONS / PROMPT_SECTION_FILES
maps. +2 tests for Fraunces inclusion / exclusion.
There was a problem hiding this comment.
Findings
- No high-confidence issues found in added/modified lines.
Summary
- Review mode: initial
- No issues identified in this diff.
- Constraint checks on touched files: no new dependencies/licenses introduced, no direct provider SDK imports, no hardcoded UI-token violations in app code, and no silent-fallback patterns introduced.
- Not found in repo/docs: docs/VISION.md, docs/PRINCIPLES.md.
Testing
- Not run (automation)
open-codesign Bot
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.
Five small content updates that align our system prompt with patterns extracted from real Claude Design output (research docs §1.2, §2, §6, §11.3, §11.4).
Changes
{}block valid (research §11.4). Documents that an empty marker block is a valid signal to the host that the artifact is tweak-aware.fadeUp,breathe,pulse-ring,spin, with staggeredanimation-delay.marketingFontHintLayer 2 section + routing incomposeCreateProgressive. Marketing/landing/case-study prompts now surface a Fraunces preference reminder (~150 chars).Tests
+1marketing prompt includes Fraunces hint+1dashboard prompt does NOT include Fraunces hintmarketing-font-hint.v1.txt)Verification
pnpm --filter @open-codesign/core test✅ 163/163pnpm --filter @open-codesign/core typecheck✅pnpm exec biome check packages/core/src/prompts/ packages/core/src/generate.test.ts✅PRINCIPLES §5b checks