with one click
product-lens
写代码前先做 4 模式产品诊断(诊断/创始人审查/用户旅程/优先级),输出 PRODUCT-BRIEF.md。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
写代码前先做 4 模式产品诊断(诊断/创始人审查/用户旅程/优先级),输出 PRODUCT-BRIEF.md。
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
Claude 用 codex CLI 做差异化对抗审查 + Layer 2 二审 + auto-fix 全链路。**v2.8.0 起流式 streaming**:codex 思考过程实时事件流(onEvent 回调每个 thread.started / item.completed / turn.completed),idle-timeout(90s 没新事件才算卡死)替代固定 totalTimeout。runCodexAudit 是 async,要 await。三层架构:Layer 1 codex (OpenAI) 流式产 finding → Layer 2 finding-validator subagent (Claude fresh) 独立复现 → Layer 3 通过自动 Edit 修不询问用户。触发:/plan 完成 / /implement 大改动 / /review 3 路并行 / /pr 4 路 PR 预检。codex 是不同模型 = 不同盲区,跟 Claude 互补不替代。**全自动 — 用户从不需要手动管 codex**。
Claude 自动接管用户级跨项目敏感配置(personal API key / 个人 PAT / git 全局身份 / 跨项目 SSH host)。触发:用户提到跨项目通用 secret、或 project-vault 检测到条目应提升到用户级、或用户问'跨项目共用 secret 放哪'。写 ~/.claude/USER_VAULT.md,hook 自动 sync 到 .user-env.{sh,ps1} + git --global + ~/.ssh/config。与 project-vault 分工:本 skill 跨项目,project-vault 单项目。
Claude 主动沉淀用户跨项目偏好到 ~/.claude/CLAUDE.md,post-hook 自动 commit+push 到 dotfiles repo 跨设备同步。触发:用户说'记下这个偏好 / 沉淀到 CLAUDE.md / 把这个习惯加进去'、用户连续多次重复同样反馈('又忘了')、或做了跨项目通用决策('以后所有项目都用 zod')。仅追加不覆盖。与 continuous-learning-v2 分工:本 skill 主动显式沉淀偏好,learning-v2 被动观察行为。
Claude 自动维护 docs/SCHEMA.md。触发:用户提到表结构('加 users 表,字段 email/password')、写改 ORM 模型(Prisma/SQLAlchemy/TypeORM)、写改 migration SQL、或问'数据库表结构在哪'。不存在自动建(从 ORM 抽骨架),存在直接 Edit 加表/字段;业务含义缺失填 '_TODO_' 占位。与 architecture-decision-records 分工:本 skill 记结构现状,ADR 记选型决策(如选 Postgres)。
Claude 自动维护开发实时流水日志 docs/CHANGELOG-DEV.md,记**正在发生**的需求/进度/坑/下一步。触发:用户讲新需求或改主意(◇)、Claude 完成 ≥30 行或跨文件改动(✓)、遇 blocker(⚠)、决定下一步(→)。与 git log(已落盘代码)/ ADR(终态决策)/ SCHEMA(结构)/ mistakes(bug 根因)分工——本 skill 记进行中状态。每条 ≤5 行倒序。
Claude 自动接管项目级敏感配置(API key / DB 密码 / 部署 IP / SSH / token)。触发:用户在对话里说出任何 secret 或 IP、或代码里硬编 secret、或问 '.env 怎么放 / token 存哪'。写 .claude/PROJECT_VAULT.md,hook 自动 sync 到 .env.local + .env.example + ~/.ssh/config + SECRETS-INDEX.md,强制 .gitignore。与 user-vault 分工:本 skill 单项目,跨项目用 user-vault。
| name | product-lens |
| description | 写代码前先做 4 模式产品诊断(诊断/创始人审查/用户旅程/优先级),输出 PRODUCT-BRIEF.md。 |
这个 skill 专注于产品诊断,不负责写实现级别的 spec。
如果产出需要进入正式 PRD → 实现流程,直接衔接 /prd 和 planner agent。
像 YC office hours 自动化版本,问最硬的 7 个问题:
1. Who is this for? (specific person, not "developers")
2. What's the pain? (quantify: how often, how bad, what do they do today?)
3. Why now? (what changed that makes this possible/necessary?)
4. What's the 10-star version? (if money/time were unlimited)
5. What's the MVP? (smallest thing that proves the thesis)
6. What's the anti-goal? (what are you explicitly NOT building?)
7. How do you know it's working? (metric, not vibes)
输出:PRODUCT-BRIEF.md,包含回答 / 风险 / go/no-go 建议。
如果结论是"是,继续建",下一步进入 /prd 把 brief 变成正式 PRD。
从创始人视角审视当前项目:
1. Read README, CLAUDE.md, package.json, recent commits
2. Infer: what is this trying to be?
3. Score: product-market fit signals (0-10)
- Usage growth trajectory
- Retention indicators (repeat contributors, return users)
- Revenue signals (pricing page, billing code, Stripe integration)
- Competitive moat (what's hard to copy?)
4. Identify: the one thing that would 10x this
5. Flag: things you're building that don't matter
映射真实用户体验:
1. Clone/install the product as a new user
2. Document every friction point (confusing steps, errors, missing docs)
3. Time each step
4. Compare to competitor onboarding
5. Score: time-to-value (how long until the user gets their first win?)
6. Recommend: top 3 fixes for onboarding
10 个想法选 2 个时:
1. List all candidate features
2. Score each on: impact (1-5) × confidence (1-5) ÷ effort (1-5)
3. Rank by ICE score
4. Apply constraints: runway, team size, dependencies
5. Output: prioritized roadmap with rationale
四模式产出建议后,用以下矩阵决定先做哪件事:
| 维度 | 1 分 | 3 分 | 5 分 |
|---|---|---|---|
| Impact | 影响 <10% 用户或营收 | 10-30% | >30% / 战略级 |
| Confidence | 假设多 / 数据少 | 部分用户访谈支持 | 已有数据或竞品验证 |
| Effort(反向) | 1 周以上 | 2-5 天 | <2 天 |
ICE 分 = (Impact × Confidence) ÷ (6 - Effort)
高 Impact
↑
做! ────┼──── 做(但要小心)
快赢 │ 战略投入
(高 Impact│ (高 Impact
低 Effort)│ 高 Effort)
─────────┼─────────→ 高 Effort
填空 │ 不做
(低 Impact│ (低 Impact
低 Effort)│ 高 Effort)
↓
低 Impact
有 ≥5 个目标用户访谈 + 量化数据? → 信 ICE 分
只是直觉 / 创始人偏好? → ICE 分仅参考,先去访谈再排
所有模式产出可执行文档,不写长篇大论。每一条建议都带一个具体的下一步动作 + ICE 分(让用户立即知道排序)。
格式:
## 建议清单(已 ICE 排序)
### 立即做(ICE ≥ 10)
1. **{建议}** — Impact 5 / Confidence 4 / Effort 2 → ICE = 10
下一步:{具体动作}
### 本季度做(ICE 5-9)
...
### 暂缓(ICE < 5)
...
PRODUCT-BRIEF.md 后 → /prd 把 brief 变成正式 PRDplanner agent 在拿到 PRD 后负责拆解实现计划brainstorming mode 的分工:brainstorming 是轻量对话式探索;product-lens 是产出落盘 brief 的结构化诊断confidence-check 的关系:confidence-check 检查实现层("这个 feature 能不能正确做出来");product-lens 检查产品层("这个 feature 该不该做")