一键导入
factory
Use when managing the software factory lifecycle — launching new products, building them, evolving them for revenue, or checking factory-wide status.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Use when managing the software factory lifecycle — launching new products, building them, evolving them for revenue, or checking factory-wide status.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Identify and fix accessibility issues for WCAG 2.1 Level AA compliance, including mobile screen reader support (VoiceOver/TalkBack), touch targets, and keyboard navigation.
Autonomously build an app from staged plans created by /launch-app. Reads plans/active/ stage files and builds each stage with verification, commits, and Slack notifications. Designed for unattended execution via build-app-runner.sh.
Polish components to production quality — interactive states, micro-interactions, and final refinement. Run all three passes or target one area.
Audit and optimize pages for conversion — value props, CTAs, copy, social proof, and friction points. Run a full audit or target a specific area.
Generate multiple design concepts for an app, compare them side-by-side, and implement the chosen direction. Creates detailed design documents with color palettes, typography, spacing, component specs, and interactive HTML mockups.
Apply foundational design system improvements — color palette, typography, spacing, and layout. Run all at once or target a specific area. Use before component-polish for a complete design overhaul.
| name | factory |
| description | Use when managing the software factory lifecycle — launching new products, building them, evolving them for revenue, or checking factory-wide status. |
| argument-hint | [command] [project|idea] - Commands: launch, build, evolve, status, list |
Top-level orchestrator for the software factory. Manages the full lifecycle: launch products, build them, evolve for revenue, track progress.
CRITICAL — NON-INTERACTIVE for build/evolve: When running
buildorevolve, execute without pausing. Forlaunch, follow the/launch-appinteractive flow. Forstatusandlist, display and stop.
Read the $ARGS to determine the command:
launch <idea> → Step 1build [project] → Step 2evolve [project] → Step 3status [project] → Step 4list → Step 5/factory launch <idea>)Invoke /launch-app with the idea argument — this creates the project folder, configures the team, generates CLAUDE.md and all stage plans.
After /launch-app completes, register the project. Read the new project's CLAUDE.md to extract name, stack, and team.
Read or create factory/registry.json in the current directory (claude-code-utils root):
mkdir -p factory
Add the project entry:
{
"name": "[project-name]",
"path": "../[project-name]",
"stack": "[stack]",
"team": "[team-preset]",
"status": "planned",
"created_at": "[ISO timestamp]",
"current_cycle": 0,
"latest_score": null,
"baseline_score": null,
"deploy_target": "vercel"
}
Display summary:
Project registered in factory.
Next: Run /factory build [project-name] to start building.
/factory build [project])Resolve project path:
[project] provided, look it up in factory/registry.jsonUpdate registry status to "building"
Change to the project directory and invoke /build-app
After build completes, update registry status to "built"
/factory evolve [project])Resolve project path (same as Step 2)
Change to the project directory
Read factory/evolution-state.json (create if missing — /evaluate-product will initialize it)
Based on current status, invoke the next skill in the evolution loop:
| Status | Action |
|---|---|
"" / "idle" / "approved" | Invoke /evaluate-product |
"evaluating" | Invoke /evaluate-product (resume) |
"hypothesizing" | Invoke /generate-hypotheses |
"planning" | Invoke /plan-optimization |
"building" | Invoke /build-app |
"preview_deployed" / "awaiting_approval" | Display preview info and instructions (see below) |
"rejected" | Invoke /generate-hypotheses |
If status is preview_deployed or awaiting_approval, display:
================================================================
Preview Deployed — Awaiting Human Approval
================================================================
Cycle: [N]
Branch: [preview branch name]
Preview: [expected preview URL]
Hypotheses in this cycle:
- [hypothesis title 1]
- [hypothesis title 2]
Actions:
/evolution-gate approve — merge to production
/evolution-gate reject — discard and try next
================================================================
Update registry with current cycle and latest score
/factory status [project])factory/registry.jsonfactory/evolution-state.json if it exists================================================================
Software Factory Status
================================================================
Registered Projects: N
Currently Evolving: M
Project Status Cycle Score Baseline Delta
─────────────────────────────────────────────────────────
expense-tracker evolving 3 78 62 +16
blog-platform built 0 — — —
Next Action: [most important pending action]
================================================================
factory/evolution-state.jsonfactory/evaluations/================================================================
Evolution Status: [project-name]
================================================================
Status: [current status]
Cycle: [N]
Score History:
Cycle 0 (baseline): 62/100
Cycle 1 (social proof): 71/100 (+9) approved
Cycle 2 (form reduction): 78/100 (+7) approved
Cycle 3 (hero rewrite): pending
Current Hypothesis:
[hypothesis title]
Expected: +[X] composite score
Rejected Hypotheses:
- [title] — [reason]
Next Action:
[what needs to happen next]
================================================================
/factory list)factory/registry.jsonRegistered Projects:
1. expense-tracker (nextjs-app, saas-product) — evolving, cycle 3, score 78
2. blog-platform (nextjs-app, marketing) — built, not yet evolving
3. api-service (express, enterprise) — building, stage 4 of 7
File: factory/registry.json (in claude-code-utils root)
{
"version": 1,
"projects": [
{
"name": "expense-tracker",
"path": "../expense-tracker",
"stack": "nextjs-app",
"team": "saas-product",
"status": "planned | building | built | evolving | idle",
"created_at": "ISO timestamp",
"current_cycle": 0,
"latest_score": null,
"baseline_score": null,
"deploy_target": "vercel"
}
]
}
| Scenario | Recovery |
|---|---|
| Registry doesn't exist | Create it with empty projects array |
| Project not in registry | Search for project directory by name in parent directories |
| Project directory missing | Report error, suggest re-running /factory launch |
| Evolution state missing | /evaluate-product will create it on first run |