skills/define-north-star/SKILL.md
Define the single most important metric representing the core value delivered to users. Produces North Star Metric with rationale, optional supporting metrics, and anti-pattern examples; persisted to docs.
npx skillsauth add nesnilnehc/ai-cortex define-north-starInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
定义北极星指标 (NSM):捕获交付给用户的核心价值的最重要的单一指标。使用 NSM 生成文档,说明为什么它代表用户价值、可选支持指标 (3-5) 以及反北极星示例。不定义使命、愿景、战略目标或里程碑。
首要目标:生成一份用户确认的北极星文档,其中包含一个反映用户价值和受产品影响的行为的主要指标,并坚持项目商定的路径。
成功标准(必须满足所有要求):
docs/project-overview/north-star.md 或每个项目规范)。验收测试:读者能否在一分钟内理解哪个单一指标定义了该产品的成功以及为什么它反映了用户价值而不是虚荣心?
交接点:当“北极星”获得批准并坚持时,将其移交给“设计-战略-目标”来设定推动 NSM 的目标,或者停止。
本技能负责:
本技能不负责:
遵循 Defaults first、Prefer choices、Context inference:
docs/project-overview/ 或项目规范加载使命/愿景;输出路径取项目规范或 docs/project-overview/north-star.md。无额外输入时直接运行推导框架。使用此推理链推导出北极星:
User
↓
Core Value Delivered
↓
Primary User Action
↓
Observable Behavior
↓
Measurable Metric (North Star)
docs/project-overview/ 或用户加载使命/愿景;确定目标用户和核心价值主张。这些可能仅作为反北极星示例出现在输出中,而不是作为所选指标。
输入:
输出:
docs/project-overview/north-star.md(或项目规范)。design-strategic-goals。design-strategic-goals 或 define-roadmap。不要做这些(其他技能可以处理它们):
define-missiondefine-visiondesign-strategic-goalsdefine-roadmapdocs/project-overview/north-star.md 或项目规范)。读者能否在一分钟内理解哪个单一指标定义了成功以及为什么它反映了用户价值?
如果否:NSM 不明确或虚荣。使用框架和原则重新推导。 如果是:北极星已完成。继续转交或停止。
背景:愿景是“每个团队只需单击一下即可在 5 分钟内交付生产。”目标用户:工程团队。核心价值:可靠、快速部署。
流程:核心价值 = 成功、低摩擦的部署。主要操作 = 完成部署。可观察的行为 = 在时间/简单性条内成功的部署数量。指标:“每周成功部署(触发后 5 分钟内完成)”。支持:部署频率、回滚率、部署时间。反例:总用户数、收入、页面浏览量。用户确认。写入“docs/project-overview/north-star.md”。
结果:北极星持续存在; 转交到“设计战略目标”。
上下文:用户说“我们的北极星应该是注册用户总数。”
流程:应用原则——总用户数是虚荣心,而不是持续的参与或行为。使用推导:用户 → 核心价值(例如“用户完成 X 件事”)→ 主要操作 → 可观察行为 → 指标。提出一种基于行为的替代方案(例如“完成至少一项核心操作的每周活跃用户”)并列出“总注册用户”作为反北极星示例。要求用户确认基于行为的 NSM 或细化。
结果:文档包括所选的 NSM 以及反例“注册用户总数 - 而非持续参与”;持久化完成。
背景:NSM 为「月度技能采纳量」,但依赖外部生态(如 skills.sh)的 API 开放,当前无法直接获取。
流程:推导出 NSM 后,验证原则均满足。新增「度量与局限」节,说明依赖 vercel-labs/skills#426 或类似能力落地;在此之前无法直接度量。可选补充组织内自建 registry(如 SkillReg、SkillHub)时的统计策略。用户确认后持久化。
结果:文档含 NSM、推导、原则、度量与局限、反例;读者知晓指标定义正确但当前不可观测。
development
Generate an LLM agent test suite (golden cases, mock-LLM unit tests, evaluator harness) from an agent implementation and its agent-test contract. Use when an agent has no tests, or a contract exists but the test code is missing.
development
After code changes, auto-detect the project's build system and local deployment method for a given directory, then build the project and restart its locally-deployed environment (Docker Compose / systemd / process manager). Never assumes — asks only when detection is ambiguous. Caches detected commands per project in .cortex/redeploy-local.yaml; re-invocations on the same project skip re-scanning until signal files change, the cache expires (30 days), or the skill version bumps.
tools
Publish a NATS message conforming to a cross-team contract, using NATS MCP tools. Authors the contract on first use if missing. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting basics across sessions.
tools
Drain pending NATS messages from a producer contract via NATS MCP tools (default batch / drain-style). Applies Tolerant Reader semantics and per-message ack/nak/term, returning aggregated stats. Reads project-level cache (.cortex/nats.yaml) to avoid re-prompting.