English | 简体中文
restart-life is a local-first skill pack for structured life and career
decisions. It gives Codex and Claude a Chinese-first, evidence-gated workflow
for discovery, option comparison, experiments, proof, integration, and private
memory updates.
The project is distributed as an npm CLI and as native Codex / Claude plugin metadata. It installs the public 11-skill pack into a target project without copying private runtime data.
- Why
- Features
- Quick Start
- Skill Pack
- Architecture Contract
- Commands
- Star History
- Development
- Contributing
- Security
- License
Most life-planning prompts collapse into advice too early. restart-life
separates evidence from assumptions and forces the agent to route through the
right workflow before making durable claims.
The default contract is:
- no usable profile -> discovery first
- serious confusion or pain -> investigation first
- competing directions -> Odyssey-style comparison
- chosen direction -> bounded experiment
- experiment results -> proof review
- durable memory change -> memory-write gate
- One-command install:
npx restart-life@latest init --dir <project>. - 11 public skills: front door, DCAP, ICAP, roundtable, and memory-write workflows.
- Codex and Claude ready: installs to
.agents/skillsand/or.claude/skills; includes.codex-pluginand.claude-pluginmanifests. - Private runtime boundary: user data lives under
~/.restart-life, never inside the npm skill package. - Machine-checkable gates: profile, lifecycle, JSONL, runtime, panel, and skill-pack validators.
- Single-file HTML panel: renders a private local progress view without a server.
- Project-readable projections:
--project-outputwritesRESTART-LIFE.md,restart-life-panel.html, andrestart-life/summary.mdinto the active project as Generated projection files that are safe to delete and regenerate. - Safe updates:
--forceoverwrites only restart-life managed files and leaves unrelated project content alone.
Install the full skill pack into a project:
npx --yes restart-life@latest init --dir /path/to/projectInstall only one host surface:
npx --yes restart-life@latest init --dir /path/to/project --platform codex
npx --yes restart-life@latest init --dir /path/to/project --platform claudeCheck the installation:
npx --yes restart-life@latest doctor --dir /path/to/projectRender the local panel:
npx --yes restart-life@latest panel --runtime ~/.restart-lifeRender the project-readable surface:
npx --yes restart-life@latest panel --dir /path/to/project --runtime ~/.restart-life --project-outputUse --force only when you intentionally want to overwrite files inside
restart-life managed skill directories. It does not delete or overwrite
unrelated .agents or .claude content.
The public installer copies only the skills listed in
.agents/skills/restart-life-suite.json:
| Skill | Role |
|---|---|
restart-life |
Front door router; never writes durable user data directly. |
life-discover |
Builds the first usable profile from evidence. |
life-roadmap |
Maintains roadmap and backlog only after a usable profile exists. |
life-investigate |
Freezes the real problem before advice. |
life-principle |
Turns investigated cases into reusable personal principles. |
life-choose |
Compares paths with Odyssey-style decision briefs. |
life-act |
Converts a decision into a 7-day or 30-day experiment. |
life-prove |
Reviews experiment evidence and decides what is reliable. |
life-integrate |
Updates durable profile, compass, roadmap, and backlog. |
life-roundtable |
Runs optional blind-spot review before acting or integrating. |
memory-write-gate |
Protects durable memory writes with explicit evidence. |
Developer-only skills such as npm-release are not part of the public package
or init install list.
restart-life keeps four worlds separate:
| World | Path | Contract |
|---|---|---|
| Source package | .agents/skills |
Public skill source and suite metadata. |
| Installed skills | target .agents/skills and/or .claude/skills |
Copied skill pack controlled by the installer registry. |
| Private runtime | ~/.restart-life |
Durable user profile, cycle artifacts, evidence, roadmap, and raw memory truth. |
| Project-readable surface | target RESTART-LIFE.md, restart-life-panel.html, restart-life/ |
Generated projection files for quick operation; safe to delete/regenerate and ignored by default. |
The current suite contract is deliberately file-based and auditable:
restart-life-suite.jsonlists the 11 visible skills and panel/evolution metadata.- Every visible
SKILL.mdcarries entry checks, read order, output formats, quality gates, reroutes, and forbidden behavior. - Every skill owns a local
references/guide.md, output template underassets/, andscripts/check-handoff.mjs. sourceLineageplus the## 思想来源guide section preserves the intended theory/person-frame before execution.validate:profilechecksprofile.json,discovery-map.md, and ledger-backed evidence references.validate:life-cyclechecks DCAP and ICAP artifacts before they become durable truth.render:panelcreates a read-only single-file HTML view from private runtime data; the panel is not a server and not a source of truth.panel --project-outputwrites the project-readable surface usingtemplates/project-output/so material Markdown sections do not drift across agent conversations.evolve:skillscreates Darwin-style skill evolution packets underdevflow/skill-evolution/.
node bin/restart-life-cli.js init --dir /path/to/project
node bin/restart-life-cli.js doctor --dir /path/to/project
node bin/restart-life-cli.js panel --runtime ~/.restart-life
node bin/restart-life-cli.js panel --dir /path/to/project --runtime ~/.restart-life --project-output
npm test
npm run validate:profile
npm run validate:life-cycle
npm run validate:skill-pack
npm run validate:runtime
npm run validate:cycles
npm run validate:jsonl
npm run validate:panel
npm run sync:check
npm run doctor
npm run render:panel -- --runtime ~/.restart-life --out ~/.restart-life/panel/restart-life-panel.html
npm run render:panel -- --repo /path/to/project --runtime ~/.restart-life --project-output
npm run evolve:skills -- --write
npm run validate:skill-evolutionRequirements:
- Node.js 20 or newer
- npm
- Git
Local setup:
git clone https://github.com/Dimon94/restart-life.git
cd restart-life
npm testBefore sending changes, run the smallest relevant validation plus npm test.
For installer or release changes, also run:
npm publish --dry-run --access public
tmpdir=$(mktemp -d /tmp/restart-life-npx-XXXXXX)
target=$(mktemp -d /tmp/restart-life-target-XXXXXX)
cd "$tmpdir"
npx --yes restart-life@latest init --dir "$target" --platform codex- Broaden the native Codex / Claude plugin path as those ecosystems stabilize.
- Improve the private HTML panel without turning it into a hosted dashboard.
- Add more lifecycle fixtures for high-pressure decision scenarios.
- Keep the public skill pack small and exclude maintainer-only workflows from user installs.
Contributions are welcome. Start with CONTRIBUTING.md.
Good first contributions usually improve:
- lifecycle fixtures and validation coverage
- docs clarity in English or Chinese
- installer safety around managed files
- skill handoff checks
This project uses Conventional Commits. Keep changes focused and avoid mixing feature, test, docs, and release work in one commit.
Do not open public issues for private runtime data, token leaks, or sensitive personal information. Follow SECURITY.md.
restart-life is a local decision-support harness. It is not medical, legal,
financial, or mental-health advice.
Released under the MIT License.