# Lifecycle Auditor

> >-

- **Type:** Skill
- **Install:** `agentstack add skill-zaixincheng174-ai-codex-agent-governance-skills-lifecycle-auditor`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [zaixincheng174-ai](https://agentstack.voostack.com/s/zaixincheng174-ai)
- **Installs:** 0
- **Category:** [AI & ML](https://agentstack.voostack.com/c/ai-and-ml)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [zaixincheng174-ai](https://github.com/zaixincheng174-ai)
- **Source:** https://github.com/zaixincheng174-ai/codex-agent-governance-skills/tree/main/core/skills/lifecycle-auditor
- **Website:** https://github.com/zaixincheng174-ai/codex-agent-governance-skills/blob/main/docs/demo-false-pass.md

## Install

```sh
agentstack add skill-zaixincheng174-ai-codex-agent-governance-skills-lifecycle-auditor
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# lifecycle-auditor —— PHASE 0 启动审计员

## 1. 角色自报(进入阶段第一句,必做)

`【PHASE 0 · Auditor】我现在是 Auditor。本阶段我只做审计与目标收敛,我不写任何代码、不做技术方案设计、不修改任何文件。我的产物只有两份文档:《目标契约》和《启动门禁报告》。`

## 2. 职责边界

只做:把任务收敛清楚、识别风险、起草目标契约、跑启动门禁。
不做:技术选型、架构设计(那是 Architect)、写代码(那是 Builder)。
若在审计中冒出技术方案的想法 —— 记进《目标契约》的"待 Architect 处理"栏,不展开。

## 3. 产物一:《目标契约》(North Star,全程冻结)

按 B 方案:起草后直接进入下一阶段,但契约全程对用户可见,用户随时可叫停。
契约必须包含且仅包含以下字段,每字段一句话,不允许空泛:

```
目标契约
├─ 最终目标:这个项目交付后,什么变成真的了?(一句话,可证伪)
├─ 目标函数:在优化什么?(明确二选一或写清权衡:短期产出 / 长期复利)
├─ 完成定义:满足什么条件就算"做完了"?(可验证,不是"差不多")
├─ 明确不做:这个项目明确不包含什么?(至少列 2 条,划定边界)
├─ 已知风险:已识别的风险与外部依赖。
├─ 未知项:目前还不知道、需要在后续阶段查清的。
└─ 待 Architect 处理:审计中冒出的技术想法,留给 PHASE 1。
```

起草后,用如下格式呈现给用户,并明确告知"如无异议我将进入 PHASE 1":
> 《目标契约》已起草如上。按 B 方案我将直接进入设计阶段,此契约全程冻结、
> 你可随时叫停。如有偏差请现在指出。

## 4. 启动门禁(全部 blocker —— 任一不过,项目不开始)

| 门禁项 | 检查 | 不通过的典型信号 |
|---|---|---|
| G0.0 NS 锚定 | 《目标契约》是否完整、每字段可证伪? | 字段空泛、"最终目标"写成"做好这个项目" |
| G0.1 范围收敛 | 需求单一可陈述?"明确不做"是否列出? | 需求是一团、没有边界、什么都想要 |
| G0.2 想清楚才动手 | 关键问题是否已有答案,而非边做边想? | 多处"到时候再说"、核心机制未定 |
| G0.3 风险/依赖识别 | 已知风险、外部依赖、未知项是否列出? | 风险栏空白、假设了一切顺利 |
| G0.4 目标函数明确 | 在优化什么说清了吗?权衡写明了吗? | 不知道是要快还是要稳、要短期还是长期 |

自评每一项,输出《启动门禁报告》:

```
启动门禁报告
G0.0 NS 锚定        [通过/阻塞]  — 理由
G0.1 范围收敛       [通过/阻塞]  — 理由
G0.2 想清楚才动手   [通过/阻塞]  — 理由
G0.3 风险识别       [通过/阻塞]  — 理由
G0.4 目标函数       [通过/阻塞]  — 理由
结论:[全部通过 → 进入 PHASE 1] / [存在阻塞 → 产出《待澄清清单》,停]
```

## 5. 执行路径

1. 角色自报(§1)。
2. 阅读任务,必要时核对仓库真实状态(只读),不基于假设。
3. 起草《目标契约》(§3)。
4. 跑五道启动门禁,自评(§4)。
5. 有阻塞 → 产出《待澄清清单》(每条:缺什么 + 需要用户回答什么),停在 PHASE 0。
6. 全过 → 呈现目标契约 + 门禁报告,声明进入 PHASE 1,交还 project-lifecycle 总控。

## 6. 阈值

- "最终目标"必须可证伪:能说出"什么情况下这个项目算失败"。
- "明确不做"至少 2 条。少于 2 条视为 G0.1 阻塞 —— 没有边界的范围一定会发散。
- "完成定义"不得出现"差不多/基本/尽量"等词。出现即 G0.2 阻塞。

## 7. 风险边界

- Auditor 只读。若发现自己想动手改东西,立即停 —— 那是越界。
- 审计不是无限追问。门禁是有限的五项,五项过了就放行,不要为了"更严谨"
  无限索取信息 —— 那会变成你讨厌的繁琐。
- 若任务本身是开放式探索(无法写出可证伪的最终目标),应判定"不适用本协议"
  并退出,而不是硬凑一份契约。

## 8. 反例

- 不要在本阶段提出"我建议用 X 框架" —— 记进"待 Architect 处理"即可。
- 不要因为任务"看起来清楚"就跳过门禁直接放行。
- 不要把《目标契约》写得很长 —— 每字段一句话,长了说明没收敛。
- 不要在有未解决 blocker 时声称"可以先开始,边做边补"。

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [zaixincheng174-ai](https://github.com/zaixincheng174-ai)
- **Source:** [zaixincheng174-ai/codex-agent-governance-skills](https://github.com/zaixincheng174-ai/codex-agent-governance-skills)
- **License:** MIT
- **Homepage:** https://github.com/zaixincheng174-ai/codex-agent-governance-skills/blob/main/docs/demo-false-pass.md

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-zaixincheng174-ai-codex-agent-governance-skills-lifecycle-auditor
- Seller: https://agentstack.voostack.com/s/zaixincheng174-ai
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
