ss-page
GitHub基于 StyleSeed 语法和配方,自动生成符合设计规范的产品页面脚手架。包含布局模板、组件组合及语义化样式应用,并强制执行生成后验证以确保设计一致性。
触发场景
安装
npx skills add bitjaru/styleseed --skill ss-page -g -y
SKILL.md
Frontmatter
{
"name": "ss-page",
"description": "Scaffold a new product page or screen from the compiled StyleSeed output grammar, surface adapter, brand recipe, and project lock.",
"allowed-tools": "Read, Write, Edit, Grep, Glob, Bash",
"argument-hint": "[page-name] [description]"
}
Product Page Scaffolder
When NOT to use
- For a single composed pattern within an existing page → use
/ss-pattern - For multi-page navigation structure → use
/ss-flowfirst - For tweaking an existing page — edit the file directly
Create a new page: $0 Description: $ARGUMENTS
Instructions
-
Resolve and read the active design method:
.styleseed/effective-rules.mdand.styleseed/manifest.json- If missing or stale, invoke
/ss-resolveor$ss-resolvefromSTYLESEED.md components/patterns/page-shell.tsxfor page layoutcomponents/patterns/top-bar.tsxfor header patterncomponents/patterns/bottom-nav.tsxfor navigation
-
Page structure template:
import { PageShell, PageContent } from "@/components/patterns/page-shell"
import { TopBar, TopBarAction } from "@/components/patterns/top-bar"
import { BottomNav } from "@/components/patterns/bottom-nav"
export default function PageName() {
return (
<PageShell recipe="enterprise-workbench">
<TopBar
logo={/* logo or page title */}
subtitle={/* optional subtitle */}
actions={/* optional action buttons */}
/>
<PageContent>
{/* Compose the grammar's focal point and recipe-fit sections */}
</PageContent>
<BottomNav items={[/* nav items */]} activeIndex={0} />
</PageShell>
)
}
-
Apply the selected adapter and recipe:
- Set
recipe="<manifest selection.recipe>"onPageShell, ordata-styleseed-recipe="<id>"on a custom artifact root. - Use the lock's viewports and the adapter's responsive contract. Do not assume 430px mobile.
- Use
ss-page-padding,ss-page-gutter,ss-pattern-stack,ss-pattern-surface,ss-pattern-inset,ss-pattern-control, andss-pattern-iconwhere bundled patterns fit. - Select components by recipe: aligned panels/rows for workbenches, flat steps for public service, reading flow for editorial, focused canvas/tool groups for creative tools, and soft grouping only when the recipe calls for it.
- A page may contain cards, panels, rules, whitespace, rows, tables, or a canvas. Never force every content block into a card.
- Set
-
Use semantic tokens for all colors — never hardcode hex values.
-
Compose the page from existing components (ui/ and patterns/) wherever possible.
-
Safe area: include
env(safe-area-inset-*)padding for modern devices. -
Post-generation verification (MANDATORY): Run
/ss-scorethen/ss-verify. Confirm:- The first viewport exposes the grammar's user job and one focal point
- Containment, geometry, controls, collections, density, and navigation fit the recipe
- Only
--brandcolor used for accents (no other accent colors) - No hardcoded hex values (all semantic tokens)
- Section types alternate (no two identical types in a row)
- Spacing uses one repeatable recipe-fit rhythm
- Touch targets ≥ 44px on all interactive elements If any violation is found, fix it before presenting the page to the user.
版本历史
-
e0a0991
当前 2026-08-05 10:46
新增品牌配方形态引擎支持;从移动端优先升级为通用页面脚手架,移除硬编码宽度限制,增强响应式与配方适配能力。
- 575d99a 2026-07-05 18:21


