| name | life-principle |
| version | 0.2.3 |
| description | 原则提炼层。Use when investigation has frozen a real pain/failure/conflict case and the user needs a reusable personal principle with case evidence, counterexample, review date, and life-act handoff. |
| triggers | ["提炼原则","复盘失败","痛苦日志","原则","recurring pattern","case evidence"] |
| reads | ["~/.restart-life/cycles/<cycle>/investigation.md","~/.restart-life/pain-reflection-log.jsonl"] |
| writes | ["~/.restart-life/PRINCIPLES.md","~/.restart-life/cycles/<cycle>/principle-brief.md"] |
| entry_gate | ["Read declared runtime artifacts before user-facing synthesis.","Stop if required evidence or context is missing.","NO PRINCIPLE WITHOUT CASES."] |
| exit_criteria | ["Next route or durable output is explicit.","No durable memory update occurs without evidence ids.","case evidence required before a principle is accepted."] |
| reroutes | [{"when":"missing usable profile","target":"life-discover"},{"when":"durable write requested without proof","target":"memory-write-gate"}] |
| recovery_modes | [{"name":"runtime-resume","when":"cycle state exists","action":"resume from ~/.restart-life/cycles/<cycle>/cycle-state.json"}] |
life-principle
你负责把真实痛点、失败和冲突转成可复用的个人原则。原则必须能指导下次行动,也必须知道何时不适用。
铁律
NO PRINCIPLE WITHOUT CASES
没有 investigation、case evidence、counterexample 的句子只是 slogan,不是 principle。
入口检查
- 读取
investigation.md,确认 frozen problem 存在。
- 读取
pain-reflection-log.jsonl,确认至少一个真实 case。
- 若 case 不足,回到
life-investigate 继续冻结事实。
- 若原则要立即测试,准备 handoff 到
life-act。
Principle Schema
写入 ~/.restart-life/cycles/<cycle>/principle-brief.md,并在合格后更新 PRINCIPLES.md:
{
"id": "P-001",
"title": "Short principle name",
"trigger": "When this principle should be considered",
"caseEvidence": ["E-201", "真实事件摘要"],
"rule": "The decision rule",
"counterexample": "When not to use it",
"reviewDate": "YYYY-MM-DD",
"confidence": "low|medium|high"
}
原则质量标准
一个合格原则必须通过四问:
- 它来自哪个真实 case?
- 下次什么触发条件会调用它?
- 它要求我做什么具体选择?
- 什么情况下它是错的或不适用?
不能通过四问,就降级为 hypothesis,不能写入 PRINCIPLES.md。
执行流程
- 引用 frozen problem 和 case evidence。
- 找重复模式:触发点、旧反应、代价、现实约束。
- 生成 1 条最小原则,不批量生成原则库。
- 写 counterexample,防止原则变成绝对口号。
- 设计一个小测试,handoff 到
life-act。
Principle Brief
# Principle Brief
## Source Case
真实事件和 evidence ids。
## Pattern
重复结构。
## Principle
触发条件 + 规则 + 反例。
## Confidence
low / medium / high,以及为什么。
## Test Action
交给 life-act 的小行动。
质量门
交给 life-act 前运行:
npm run validate:life-cycle -- --runtime ~/.restart-life --cycle <cycle> --mode ICAP
禁止事项
- 不把“我要更自律”这类愿望当原则。
- 不一次写很多原则;一次只提炼当前 case 最关键的一条。
- 不写没有 counterexample 的原则。
- 不用名人原则替代用户自己的 case evidence。
flows in skill-manifest.json declares this skill's ICAP next route to life-act.
Bundled Resources
- Read
references/guide.md for 思想来源/source lineage, case-backed principle, and test-action rules.
- Use
assets/principle-brief.template.md as the principle-brief template material.
- Run
node scripts/check-handoff.mjs --runtime ~/.restart-life --cycle <cycle> before handing off to life-act.