Prompts · JavaScript · v0.1.0
Design user flows and navigation structure following proven UX patterns
#agent-skills#ai-coding#ai-design
Generate a new UI component following the StyleSeed design conventions
by bitjaru · updated 7d ago · imported from GitHub
If either .styleseed/project.json or .styleseed/artifacts/index.json exists, require a
complete, valid registry. Resolve the requested artifact ID before writing a component; ask
for scope if it is ambiguous. Never fall back to the global legacy bundle, create STYLESEED.md,
or restart setup because a registry is incomplete, invalid, or has no compiled output.
Locate the installed ss-resolve skill directory (shown as <ss-resolve> below), then run
this read-only check from the target project root with the active agent (codex, claude, etc.):
node "<ss-resolve>/scripts/resolve-context.mjs" --project-root . --artifact <artifact-id> --agent <agent> --check
For a valid registry with missing or stale compiled output, run the same command without
--check, then check again. Stop on invalid configuration or installation errors; do not
change approved selections to make the check pass. After success, read only the selected
.styleseed/bundles/<artifact-id>.md and .styleseed/manifests/<artifact-id>.json as the
compiled method and provenance. A shared component affecting multiple artifacts requires
resolving and checking each affected artifact separately, not merging their bundles.
Legacy projects use the following path only when neither registry file exists. Preserve
STYLESEED.md; if it is missing, use setup before component code.
node "<ss-resolve>/scripts/resolve-context.mjs" --project-root . --from-lock STYLESEED.md --agent <agent> --check
For missing or stale legacy output, run the same command without --check, then check again.
Read .styleseed/effective-rules.md and .styleseed/manifest.json only after success.
/ss-page/ss-patternGenerate a new component: $0 Description: $ARGUMENTS
Apply the registry/legacy boundary above, then read the actual implementation context:
implementation.sourceRoots and
implementation.tokenFiles. For legacy projects, discover the existing component and
stylesheet entry points from the project source.css/theme.css and css/recipes.css are examples, not required locations.Follow these conventions strictly:
function declaration (not const)data-slot="component-name" attributecn() utility and verified import path for className mergingReact.ComponentProps<> for prop typingclassName prop for overridesclass-variance-authority) if the component has variantsbg-card, text-foreground) — never inline hexDesign token usage:
text-foreground, bg-card, text-brand, text-muted-foreground, border-borderss-pattern-surface; insets/controls/icons use the matching ss-* classduration-[var(--duration-fast)], ease-[var(--ease-default)]Typography rules:
leading-none tracking-[-0.02em]leading-snug tracking-[-0.01em]leading-normal (default tracking)tracking-[0.05em]size-* shorthand instead of w-* h-*ms-*/me-* instead of ml-*/mr-* (logical properties)Accessibility requirements:
min-h-11 min-w-11); pointer-first desktop controls may use contract-approved 36–40px sizing while preserving keyboard access and applicable accessibility floorsaria-* attributes passthroughfocus-visible:ring-2 focus-visible:ring-ring for keyboard focusprefers-reduced-motion for animationsExport the component as a named export (not default)
Place the file in the existing component directory established in step 1, inside the
affected artifact's implementation scope. src/components/ui/ is a common layout, not
a path to create in every project. Route composed patterns to /ss-pattern.
No comments yet — start the thread.
Sign in to join the discussion.
Prompts · JavaScript · v0.1.0
Design user flows and navigation structure following proven UX patterns
#agent-skills#ai-coding#ai-design
Prompts · JavaScript · v0.1.0
Audit screens for UX issues using Nielsen's heuristics and modern mobile UX best practices
#agent-skills#ai-coding#ai-design
Prompts · JavaScript · v0.1.0
Audit a component or page for accessibility issues and fix them
#agent-skills#ai-coding#ai-design
Prompts · JavaScript · v0.1.0
Build a screen with StyleSeed's composed method, then run the code and pixel gates before presenting. Use when building or rebuilding a screen; sets up the project first if needed.
#agent-skills#ai-coding#ai-design