workflow-ship-faster
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseWorkflow: Ship Faster (Next.js 16.1.1)
工作流:快速交付(基于Next.js 16.1.1)
The goal of this chain is: Ship an idea or small prototype to production-ready state in the shortest time, while maintaining iteration speed afterward.
本工作流的目标是:在最短时间内将想法或小型原型转化为可投入生产的状态,同时保障后续的迭代速度。
When to use
适用场景
Use this workflow when the user wants an end-to-end chain like:
- “ship this MVP”, “make it production-ready”, “launch/deploy this project”
- “take this prototype and turn it into a real app”
- “set up the foundation + UI system + deployment”
当用户需要以下端到端工作流时使用:
- “交付这个MVP”、“让它具备生产环境就绪状态”、“上线/部署这个项目”
- “将这个原型转化为真实可用的应用”
- “搭建基础架构 + UI系统 + 部署流程”
Core principles (non-negotiable)
核心原则(不可妥协)
- Pass paths only, not content: agents/sub-agents only pass .
..._path - Files are first-class citizens: Every step must persist artifacts; failures can be retried; replayable.
- Confirmation points: Any "high-risk/high-effort/side-effect" action must write a plan first and wait for confirmation.
- Plans are checklists: progress is tracked in via
tasks.md→- [ ](not in chat).- [x] - Progressive disclosure: Only open step files in this skill directory (,
foundation.md, etc.) when needed—avoid loading all details at once.deploy-vercel.md - Hooks doctor (required check; non-blocking): If running under Claude Code and you want the evolution loop active, run once at the start of the session; if hooks are missing, offer to install project-level hooks (continue either way).
tool-hooks-doctor
- 仅传递路径,而非内容:Agent/子Agent仅传递类型的路径参数。
..._path - 文件为一等公民:每个步骤必须持久化产物;失败可重试;流程可回放。
- 确认节点:任何“高风险/高工作量/有副作用”的操作必须先编写计划,等待用户确认后再执行。
- 计划即清单:进度在中通过
tasks.md→- [ ]跟踪(而非在对话中)。- [x] - 渐进式披露:仅在需要时才打开本技能目录下的步骤文件(如、
foundation.md等)——避免一次性加载所有细节。deploy-vercel.md - 钩子检查器(必填检查;非阻塞):如果在Claude Code环境下运行且希望启用进化循环,请在会话开始时运行一次;若钩子缺失,可提供安装项目级钩子的选项(无论是否安装,流程均可继续)。
tool-hooks-doctor
Inputs / outputs (paths only)
输入/输出(仅路径)
Inputs (paths only):
- : project root (default
repo_root)"." - Optional: (active run directory) if the user already has one
run_dir
Outputs (artifacts, written under ):
run_dir/- Required: ,
proposal.md,tasks.mdcontext.json - Optional: ,
design.md,evidence/logs/
Canonical contract (backends, templates, read order, auto-archive):
- references/artifact-contract.md
- Reference index: references/README.md
输入(仅路径):
- :项目根目录(默认值为
repo_root)"." - 可选:(当前运行目录),如果用户已存在该目录
run_dir
输出(产物,存储在下):
run_dir/- 必填:、
proposal.md、tasks.mdcontext.json - 可选:、
design.md、evidence/logs/
规范契约(后端、模板、阅读顺序、自动归档):
- references/artifact-contract.md
- 参考索引:references/README.md
Step modules (open only when you hit that step)
步骤模块(仅在执行对应步骤时打开)
- Foundation: foundation.md
- Guardrails: guardrails.md
- Trace cleanup: cleanup-traces.md
- Docs baseline: docs-baseline.md
- Supabase integration: supabase-integration.md
- Stripe integration: stripe-integration.md
- Deploy (GitHub + Vercel): deploy-vercel.md
- AI-era SEO (Next.js): ai-seo-nextjs.md
- 基础架构:foundation.md
- 规范约束:guardrails.md
- 痕迹清理:cleanup-traces.md
- 文档基线:docs-baseline.md
- Supabase集成:supabase-integration.md
- Stripe集成:stripe-integration.md
- 部署(GitHub + Vercel):deploy-vercel.md
- AI时代SEO(Next.js):ai-seo-nextjs.md
Process (Default Route)
流程(默认路线)
0) Initialize Run (Required)
0) 初始化运行(必填)
- Resolve/create (see the deterministic backend rules in references/artifact-contract.md).
run_dir/ - Ensure core artifacts exist (create if missing; merge/append if already present):
- ,
proposal.md,tasks.mdcontext.json
- In , ensure:
tasks.md- a field near the top
status: active|blocked|done - a short Next action section (1–3 items)
- an Approvals section (empty is fine until needed)
- a
- Only create and
evidence/when you actually have large outputs to store.logs/
- 解析/创建(遵循references/artifact-contract.md中的确定性后端规则)。
run_dir/ - 确保核心产物存在(若缺失则创建;若已存在则合并/追加内容):
- 、
proposal.md、tasks.mdcontext.json
- 在中确保:
tasks.md- 顶部附近有字段
status: active|blocked|done - 简短的下一步行动部分(1–3项)
- 审批项部分(为空即可,直到需要时再添加)
- 顶部附近有
- 仅当有大量输出需要存储时,才创建和
evidence/目录。logs/
0.2) Scope Confirmation (Required)
0.2) 范围确认(必填)
Problem this solves: a run summary that marks core steps as “skipped” without the user ever choosing to skip them is misleading and hard to audit.
Ask the user to select a scope before executing steps beyond build checks:
- A) full (default): Foundation → Design system → UI/UX → Guardrails → Docs → Feature iteration → Deploy
- B) deploy-only: Foundation (build + sanity) → Deploy only (no UI work, no guardrails/docs polish)
- C) design-only: Design system + UI/UX plan only (no code changes)
- D) feature-only: One feature iteration (plan + implementation), skip deploy
Rules:
- Persist the chosen scope to (add/update a
context.jsonfield).scope - In , do not mark a default step as “skipped” unless the user explicitly requested skipping it.
tasks.md- Prefer: with a short reason under a “Scope / Disabled steps” section
disabled (scope=...)
- Prefer:
- Any destructive action (e.g., force push overwriting an existing repo) is a high-risk side effect:
- Write an executable approval item under first
tasks.md - Wait for explicit user confirmation before executing
- Write an executable approval item under
解决的问题:若运行摘要在用户未明确选择跳过的情况下标记核心步骤为“已跳过”,会产生误导且难以审计。
在执行构建检查之外的步骤前,请让用户选择范围:
- A) 完整流程(默认):基础架构 → 设计系统 → UI/UX → 规范约束 → 文档 → 功能迭代 → 部署
- B) 仅部署:基础架构(构建 + 健康检查)→ 仅部署(无UI工作,无规范约束/文档优化)
- C) 仅设计:仅设计系统 + UI/UX方案(无代码变更)
- D) 仅功能:单次功能迭代(方案 + 实现),跳过部署
规则:
- 将所选范围持久化到中(添加/更新
context.json字段)。scope - 在中,除非用户明确要求跳过,否则不要将默认步骤标记为“已跳过”。
tasks.md- 推荐写法:在“范围 / 禁用步骤”部分下标注并附上简短原因
disabled (scope=...)
- 推荐写法:在“范围 / 禁用步骤”部分下标注
- 任何破坏性操作(如强制推送覆盖现有仓库)属于高风险副作用:
- 先在中编写可执行的审批项
tasks.md - 等待用户明确确认后再执行
- 先在
0.25) Kickoff Clarification (Brainstorm-lite) (Recommended; required if goal is vague)
0.25) 启动前澄清(轻量头脑风暴)(推荐;若目标模糊则必填)
Problem this solves: people jump straight into “implement a feature” and end up with a very basic MVP that’s hard to demo.
Run this step if any of these are true:
- is missing clear acceptance criteria and non-goals
proposal.md - The user request is “build something like X” / “make a prototype” without specifying the core loop
- The user explicitly wants a “demo-ready” prototype (animation, wow factor, shareable)
How:
- Call using the same
workflow-brainstorm+ thisrepo_root.run_dir - Follow the one-question-at-a-time rule and converge on:
- the one core loop (1 sentence)
- acceptance criteria (3–5 bullets)
- non-goals (1–3 bullets)
- constraints (timeline / risk preference)
- a “demo moment” direction (see step 0.3)
- Persist the confirmed spec to:
evidence/YYYY-MM-DD-kickoff-design.md
- Then update (merge, don’t overwrite) these inputs:
proposal.md- (ensure
context.jsonare explicitly set)need_database/need_billing/need_deploy/need_seo
解决的问题:人们常直接进入“实现功能”环节,最终得到的MVP过于基础,难以演示。
若出现以下任一情况,请执行此步骤:
- 中缺少明确的验收标准和非目标
proposal.md - 用户需求为“构建类似X的应用” / “制作一个原型”但未明确核心流程
- 用户明确需要“可用于演示的原型”(包含动画、亮点、可分享)
执行方式:
- 使用相同的+ 当前
repo_root调用run_dir。workflow-brainstorm - 遵循“一次一个问题”的规则,聚焦于确定:
- 核心流程(一句话描述)
- 验收标准(3–5条)
- 非目标(1–3条)
- 约束条件(时间线 / 风险偏好)
- “演示亮点”方向(见步骤0.3)
- 将确认后的规格持久化到:
evidence/YYYY-MM-DD-kickoff-design.md
- 然后更新(合并,而非覆盖)以下输入:
proposal.md- (确保
context.json字段已明确设置)need_database/need_billing/need_deploy/need_seo
0.3) Demo Moment First (Recommended for prototypes)
0.3) 优先确定演示亮点(原型推荐)
Principle: a prototype that feels real needs at least one “demo moment” (tastefully showy, not gimmicky).
Examples of “demo moment” (pick 1, keep it small):
- A hero section with a live interactive preview (fake data is fine) + smooth, purposeful motion
- A delightful micro-interaction: command palette, draggable cards, timeline scrubber, etc.
- A “before/after” transformation animation (input → output) that makes the core loop obvious
Workflow:
- Write a small feature spec file (if it doesn’t exist):
evidence/feature-00-demo-moment.md- Include ,
mode: plan-only, andfeature_slug: demo-momentquality_bar: demo-ready
- Call to generate the plan only (no implementation yet).
workflow-feature-shipper - Defer actual UI implementation until after Step 2 (design-system.md exists), so the demo moment follows the chosen design system.
原则:一个“看起来真实”的原型至少需要一个“演示亮点”(适度吸睛,而非华而不实)。
“演示亮点”示例(选1个,保持轻量化):
- 包含实时交互预览(假数据即可)+ 流畅有意义动效的首页区域
- 令人愉悦的微交互:命令面板、可拖拽卡片、时间轴 scrubber 等
- 清晰展示核心流程的“前后对比”转换动画(输入 → 输出)
工作流:
- 编写小型功能规格文件(若不存在):
evidence/feature-00-demo-moment.md- 包含、
mode: plan-only和feature_slug: demo-momentquality_bar: demo-ready
- 调用仅生成方案(暂不实现)。
workflow-feature-shipper - 推迟实际UI实现至步骤2(design-system.md已生成)之后,确保演示亮点符合选定的设计系统。
0.5) Dynamic Branch Decision (Required)
0.5) 动态分支决策(必填)
Dynamically adjust execution order based on content:
context.json- Database integration: Only execute when has
context.json"need_database": true - Payment integration: Only execute when has
context.jsonor"need_billing": true"need_stripe": true - Auth: Only execute when has
context.jsonor"need_auth": true"auth": true - Deployment: Only execute when has
context.jsonor user explicitly requests deployment"need_deploy": true - SEO: Only execute when has
context.jsonor project is already live"need_seo": true
Before starting each optional step:
- Check (and your chosen
context.json) to decide whether the step appliesscope - If skipped, write a 1-line reason into (so resume/audit doesn’t require chat history)
tasks.md
根据内容动态调整执行顺序:
context.json- 数据库集成:仅当包含
context.json时执行"need_database": true - 支付集成:仅当包含
context.json或"need_billing": true时执行"need_stripe": true - 认证:仅当包含
context.json或"need_auth": true时执行"auth": true - 部署:仅当包含
context.json或用户明确请求部署时执行"need_deploy": true - SEO:仅当包含
context.json或项目已上线时执行"need_seo": true
开始每个可选步骤前:
- 检查(以及所选
context.json)以确定该步骤是否适用scope - 若跳过,请在中写入1行原因(以便断点续传/审计无需依赖对话历史)
tasks.md
1) Foundation: Next.js Foundation (Default Required)
1) 基础架构:Next.js基础(默认必填)
Open and follow: foundation.md.
Artifact requirements (minimum):
- (current state + risk assessment + chosen route)
evidence/foundation.md - : add a Foundation checklist section (tasks + verification commands)
tasks.md - If upgrade/migration needed with significant changes: add an Approval item to and wait for confirmation
tasks.md
Branch rules (important):
- If conclusion is keep-current-stack (e.g., Vite static site), don't force continuing "Next.js-specific steps".
- Only continue steps that still apply to current stack: style (2), guardrails (3, adapted for current stack), docs (4), deploy (8 optional), SEO (9 optional)
- If DB/payment integration still needed: First ask user "want to migrate to Next.js?", or add integration step for that stack (not in this chain's default scope)
打开并遵循:foundation.md。
产物要求(最低标准):
- (当前状态 + 风险评估 + 选定路线)
evidence/foundation.md - :添加基础架构清单部分(任务 + 验证命令)
tasks.md - 若需要进行有重大变更的升级/迁移:在中添加审批项并等待用户确认
tasks.md
分支规则(重要):
- 若结论为保留当前技术栈(如Vite静态站点),请勿强制继续"Next.js专属步骤"。
- 仅继续适用于当前技术栈的步骤:样式(2)、规范约束(3,适配当前技术栈)、文档(4)、部署(8可选)、SEO(9可选)
- 若仍需数据库/支付集成:先询问用户"是否要迁移到Next.js?",或为当前技术栈添加集成步骤(不在本工作流的默认范围内)
2) Style Specification (Default Required)
2) 样式规范(默认必填)
Call : Scan project intent and persist .
tool-design-style-selectordesign-system.mdConfirmation point: After user confirms style, deploy , and enter 2.5 UI/UX Implementation (default required; if user explicitly skips, log reason).
design-system.md调用:扫描项目意图并持久化。
tool-design-style-selectordesign-system.md确认节点:用户确认样式后,部署,然后进入2.5 UI/UX实现(默认必填;若用户明确跳过,请记录原因)。
design-system.md2.5) UI/UX Implementation (Default Required)
2.5) UI/UX实现(默认必填)
Goal: Make actually reflected in the interface, not "wrote spec but UI unchanged".
design-system.mdRecommended approach: Treat "redo UI/UX per design-system.md" as an independent feature and hand to :
workflow-feature-shipper- Input: (as sole design constraint) + current UI page list (from code scan)
design-system.md - Output: (scope/acceptance criteria/non-goals/risks/rollback) + code changes
evidence/features/<feature_slug>-plan.md
Default enrichment (when installed):
- If is installed, use it to enrich the UI/UX plan with concrete palette/typography/UX guardrails, and use its pre-delivery checklist as acceptance criteria.
tool-ui-ux-pro-max - Only skip enrichment if the user explicitly asks to skip it (e.g., “don’t over-design / keep it simple”), and log the reason.
tool-ui-ux-pro-max
For large-scale refactoring: add an Approval item to first and wait for user confirmation before implementing.
tasks.md目标:确保的规范实际体现在界面中,而非"仅编写了规格但UI未变更"。
design-system.md推荐方式:将"根据design-system.md重写UI/UX"视为独立功能,交由处理:
workflow-feature-shipper- 输入:(作为唯一设计约束) + 当前UI页面列表(来自代码扫描)
design-system.md - 输出:(范围/验收标准/非目标) + 代码变更
evidence/features/<feature_slug>-plan.md
默认增强(若已安装):
- 若已安装,使用它为UI/UX方案添加具体的配色方案/排版/UX规范,并将其交付前检查清单作为验收标准。
tool-ui-ux-pro-max - 仅当用户明确要求跳过(如"不要过度设计 / 保持简洁")时,才跳过增强,并记录原因。
tool-ui-ux-pro-max
对于大规模重构:先在中添加审批项,等待用户确认后再实现。
tasks.md3) Code Standards (Lightweight Required)
3) 代码规范(轻量必填)
Open and follow: guardrails.md.
Artifact: (Guardrails checklist section)
tasks.md打开并遵循:guardrails.md。
产物:(规范约束清单部分)
tasks.md3.5) Trace Cleanup (De-branding & Source Hygiene) (Required if project was copied)
3.5) 痕迹清理(去品牌化 & 源码卫生)(若项目为复制而来则必填)
Problem this solves: many starter projects imported from Google AI Studio / v0 / Lovable ship with vendor branding, broken remnants (like ), and misleading README instructions.
importmapOpen and follow: cleanup-traces.md.
Artifacts:
evidence/trace-scan.md- (Trace cleanup checklist section)
tasks.md
解决的问题:许多从Google AI Studio / v0 / Lovable导入的启动项目带有厂商品牌、残留代码(如)和误导性的README说明。
importmap打开并遵循:cleanup-traces.md。
产物:
evidence/trace-scan.md- (痕迹清理清单部分)
tasks.md
4) Documentation Standards (Lightweight Required)
4) 文档规范(轻量必填)
Open and follow: docs-baseline.md.
Artifact: (Docs checklist section, plus project README update)
tasks.md打开并遵循:docs-baseline.md。
产物:(文档清单部分,以及项目README更新)
tasks.md5) Core Feature Development (Iterative Loop)
5) 核心功能开发(迭代循环)
Call :
workflow-feature-shipper- Each feature first produces (with acceptance criteria/non-goals)
evidence/features/<feature_slug>-plan.md - Default split into PR-able small steps
- After each batch (or before merge), recommend calling for a conclusive review + verdict
review-quality - is the single entry point and will auto-triage: if React/Next.js performance risk is detected, it will also run
review-quality(CRITICAL rules first)review-react-best-practices
Auth note (optional): if a feature includes login/session/permissions and is installed, call it before implementation to lock down session strategy, redirects, cookies/CSRF, and middleware boundaries. Persist:
tool-better-authevidence/auth-plan.mdevidence/auth-summary.md
调用:
workflow-feature-shipper- 每个功能先生成(包含验收标准/非目标)
evidence/features/<feature_slug>-plan.md - 默认拆分为可提交PR的小步骤
- 每完成一批(或合并前),推荐调用进行全面评审 + 结论
review-quality - 是唯一入口,会自动分类处理:若检测到React/Next.js性能风险,还会运行
review-quality(优先处理CRITICAL规则)review-react-best-practices
认证说明(可选):若功能包含登录/会话/权限且已安装,请在实现前调用它以锁定会话策略、重定向、Cookie/CSRF和中间件边界。持久化:
tool-better-authevidence/auth-plan.mdevidence/auth-summary.md
6) Database Integration (Optional)
6) 数据库集成(可选)
Execution condition: has or
context.json"need_database": true"database": "supabase"Open and follow: supabase-integration.md.
执行条件:包含或
context.json"need_database": true"database": "supabase"打开并遵循:supabase-integration.md。
7) Payment Integration (Optional)
7) 支付集成(可选)
Execution condition: has or or
context.json"need_billing": true"need_stripe": true"payment": trueOpen and follow: stripe-integration.md.
执行条件:包含或或
context.json"need_billing": true"need_stripe": true"payment": true打开并遵循:stripe-integration.md。
8) GitHub + Vercel Deployment (Optional but Recommended)
8) GitHub + Vercel部署(可选但推荐)
Execution condition: has or field exists and non-empty
context.json"need_deploy": true"deploy_target"Open and follow: deploy-vercel.md.
执行条件:包含或存在非空的字段
context.json"need_deploy": true"deploy_target"打开并遵循:deploy-vercel.md。
9) AI-Era SEO (Optional but Recommended)
9) AI时代SEO(可选但推荐)
Execution condition: has or , or step 8 completed successfully (already deployed)
context.json"need_seo": true"seo": trueOpen and follow: ai-seo-nextjs.md.
执行条件:包含或,或步骤8已成功完成(已部署)
context.json"need_seo": true"seo": true打开并遵循:ai-seo-nextjs.md。
Final Delivery
最终交付
Write to: (in the run root), at minimum include:
final.md- Current project status (can run locally, can build, is deployed)
- Completed steps and artifact paths
- Next steps (prioritized by value)
And wrap up:
- Update
tasks.mdtostatus, and fill the Delivery summarydone - Run auto-archive after each batch (and at the end):
python3 ~/.claude/skills/workflow-ship-faster/scripts/auto_archive.py --run-dir "<run_dir>"
- If you want a clean workspace (without auto-archive): move →
active/<run_id>/archive/YYYY-MM-DD-<run_id>/ - Do a Evolution checkpoint (3 questions); if user chooses "want to optimize", run
skill-evolutionbased on thisskill-improverto produce minimal patch suggestionsrun_dir
写入至:(运行根目录下),至少包含:
final.md- 当前项目状态(可本地运行、可构建、已部署)
- 已完成步骤和产物路径
- 下一步计划(按价值优先级排序)
收尾工作:
- 将中的
tasks.md更新为status,并填写交付摘要done - 每完成一批任务后(以及最终)运行自动归档:
python3 ~/.claude/skills/workflow-ship-faster/scripts/auto_archive.py --run_dir "<run_dir>"
- 若需要清洁工作区(无需自动归档):将移动至
active/<run_id>/archive/YYYY-MM-DD-<run_id>/ - 进行进化检查点(3个问题);若用户选择“需要优化”,基于当前
skill-evolution运行run_dir以生成最小化补丁建议",skill-improver