‹ 首页

ss-page

@bitjaru · 收录于 1 周前 · 上游提交 今天

Scaffold a new mobile page/screen using the StyleSeed layout patterns

适合你,如果需要在移动项目中快速生成标准布局的页面骨架

/ 下载安装
ss-page.skill双击,或拖进 Claude 桌面版 / Cowork,即完成安装↓ .skill↓ .zip
用别的 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作者撰写 · MIT · 3c5e387

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-flow first
  • For tweaking an existing page — edit the file directly

Create a new page: $0 Description: $ARGUMENTS

Instructions
  1. Read the design system reference:
  2. CLAUDE.md for file structure and conventions
  3. components/patterns/page-shell.tsx for page layout
  4. components/patterns/top-bar.tsx for header pattern
  5. components/patterns/bottom-nav.tsx for navigation
  1. 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>
  )
}
  1. Layout rules:
  2. Container: max-w-[430px] (mobile viewport)
  3. Page background: bg-background
  4. Section horizontal padding: px-6
  5. Section vertical spacing: space-y-6
  6. Bottom padding for nav: pb-24
  7. Cards: bg-card rounded-2xl p-6 shadow-[var(--shadow-card)]
  1. Use semantic tokens for all colors — never hardcode hex values.
  1. Compose the page from existing components (ui/ and patterns/) wherever possible.
  1. Safe area: include env(safe-area-inset-*) padding for modern devices.
  1. Post-generation verification (MANDATORY): After creating the page, verify against the Golden Rules:
  2. [ ] All content is inside cards (no bare background content)
  3. [ ] Only --brand color used for accents (no other accent colors)
  4. [ ] No hardcoded hex values (all semantic tokens)
  5. [ ] Section types alternate (no two identical types in a row)
  6. [ ] Numbers have 2:1 ratio with units
  7. [ ] Spacing uses 6px multiples (p-1.5, p-3, p-6)
  8. [ ] mx-6 for single cards, px-6 for grids/carousels
  9. [ ] Touch targets ≥ 44px on all interactive elements If any violation is found, fix it before presenting the page to the user.
按 MIT 许可原样转载,未经改动 · 在 GitHub 查看 →

评论

登录即可评论;带「已验证安装」的,是发布者名下有本店的安装或持有记录。