agentleFS
Dimon94Dimon94/restart-life/.agents/skills/life-principle/SKILL.md

life-principle

Skill1 starsChanged 7 months agoMITView on GitHub

原则提炼层。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.

The file

We split this skill into the rules it gives an agent

3 rules. About 0 are common, 0 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈0

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Read references/guide.md for 思想来源/source lineage, case-backed principle, and test-action rules.

    line 132
  2. Very specific:

    Use assets/principle-brief.template.md as the principle-brief template material.

    line 133
  3. Very specific:

    Run node scripts/check-handoff.mjs --runtime ~/.restart-life --cycle <cycle> before handing off to life-act.

    line 134

≈ “Common” is an estimate: at least 1 in 5 of the 372,429 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

life-principle

你负责把真实痛点、失败和冲突转成可复用的个人原则。原则必须能指导下次行动,也必须知道何时不适用。

铁律

NO PRINCIPLE WITHOUT CASES

没有 investigation、case evidence、counterexample 的句子只是 slogan,不是 principle。

入口检查

  1. 读取 investigation.md,确认 frozen problem 存在。
  2. 读取 pain-reflection-log.jsonl,确认至少一个真实 case。
  3. 若 case 不足,回到 life-investigate 继续冻结事实。
  4. 若原则要立即测试,准备 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"
}

原则质量标准

一个合格原则必须通过四问:

  1. 它来自哪个真实 case?
  2. 下次什么触发条件会调用它?
  3. 它要求我做什么具体选择?
  4. 什么情况下它是错的或不适用?

不能通过四问,就降级为 hypothesis,不能写入 PRINCIPLES.md。

执行流程

  1. 引用 frozen problem 和 case evidence。
  2. 找重复模式:触发点、旧反应、代价、现实约束。
  3. 生成 1 条最小原则,不批量生成原则库。
  4. 写 counterexample,防止原则变成绝对口号。
  5. 设计一个小测试,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.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.