ss-page
Scaffold a new mobile page/screen using the StyleSeed layout patterns
适合你,如果需要在移动项目中快速生成标准布局的页面骨架
/ 下载安装
用别的 agent?下载 .zip 解压,把文件夹放进它的技能目录
Claude Code
~/.claude/skills/(项目级 .claude/skills/)Codex CLI
~/.codex/skills/Cursor自动读取上面两处目录
其他工具见其文档的「skills」目录;两个下载是同一份文件,只是名字不同
/ 通过 npx 安装 校验哈希
npx oh-my-skill add bitjaru/styleseed/ss-page/ 通过 bash 安装
curl -fsSL https://oh-my-skill.com/install.sh | bash -s -- bitjaru/styleseed/ss-page/ 已经装过?验证本机副本,不用重装
npx oh-my-skill verify bitjaru/styleseed/ss-page安装目标可用 --agent / --scope 或 --to 明确指定;省略时只会在唯一已存在的 agent 目录上自动选择,零命中或多命中会停止并提示。content_hash 缺失或不一致均拒装。
–GitHub stars
~533上下文体积 · 单文件
镜像托管
怎么用
技能原文 SKILL.md
Mobile Page Scaffolder
When NOT to use
- For a single composed pattern within an existing page → use
/ss-pattern - For desktop-only screens — this skill is mobile-first
- 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
- Read the design system reference:
CLAUDE.mdfor file structure and conventionscomponents/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>
<TopBar
logo={/* logo or page title */}
subtitle={/* optional subtitle */}
actions={/* optional action buttons */}
/>
<PageContent>
{/* Page sections with space-y-6 */}
</PageContent>
<BottomNav items={[/* nav items */]} activeIndex={0} />
</PageShell>
)
}
- Layout rules:
- Container:
max-w-[430px](mobile viewport) - Page background:
bg-background - Section horizontal padding:
px-6 - Section vertical spacing:
space-y-6 - Bottom padding for nav:
pb-24 - Cards:
bg-card rounded-2xl p-6 shadow-[var(--shadow-card)]
- 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): After creating the page, verify against the Golden Rules:
- [ ] All content is inside cards (no bare background content)
- [ ] 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)
- [ ] Numbers have 2:1 ratio with units
- [ ] Spacing uses 6px multiples (p-1.5, p-3, p-6)
- [ ]
mx-6for single cards,px-6for grids/carousels - [ ] Touch targets ≥ 44px on all interactive elements If any violation is found, fix it before presenting the page to the user.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →
评论
登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。
…