← 返回 Skills 市场
dsdevq

Life State

作者 Denys · GitHub ↗ · v0.1.0 · MIT-0
cross-platform ✓ 安全检测通过
94
总下载
0
收藏
0
当前安装
1
版本数
在 OpenClaw 中安装
/install life-state
功能描述
Daily mood / energy / soreness / sleep capture primitive. Other lifekit skills read this to make state-aware suggestions instead of generic templates.
使用说明 (SKILL.md)

life-state

A boring, durable state primitive. NOT a chat experience — it's the integration glue that lets other skills (morning_brief, future workout suggester, bedtime brief) adapt to your current state instead of returning the same template every day.

When to invoke

User describes how they feel, their energy level, soreness, or sleep quality. Examples:

  • "feeling tired today, energy 4, sore chest"
  • "slept well, energy 8"
  • "good mood but quads are wrecked"
  • "headache, low energy"
  • "morning check-in: normal mood, energy 6, slept ok"

How to invoke

Use the life-state CLI via Bash. YAML output to stdout.

Capture state (merge semantics — only updates the fields you pass)

life-state set --mood tired --energy 4 --sore chest,triceps --sleep poor --note "headache, late night"

Flags (all optional, at least one required):

  • --mood \x3Cm>great | good | normal | tired | terrible (freeform accepted; lowercased)
  • --energy \x3Cn> — 1-10 (rejected outside that range)
  • --sleep \x3Cq>good | ok | poor (freeform accepted)
  • --sore \x3Clist> — comma-separated muscle groups (e.g. chest,triceps)
  • --note "\x3Ctext>" — free-text annotation
  • --date YYYY-MM-DD — override (default: today)

Merge semantics: calling set twice on the same day updates only the fields passed. Morning check-in + post-workout check-in compose cleanly.

Read today's state

life-state get
life-state get --date 2026-05-15

Week aggregate

life-state week              # last 7 days
life-state week --days 14    # last 14 days

Returns avg energy, mood histogram, top soreness areas, and per-day rollup.

Data location

~/.life/state/\x3Cdate>.json — one JSON file per day. Stable, known location every other lifekit skill should read from.

Schema:

{
  "date": "2026-05-15",
  "mood": "tired",
  "energy": 4,
  "soreness": ["chest", "triceps"],
  "sleep_quality": "poor",
  "note": "headache, late night",
  "updated_at": "2026-05-15T19:30:00.000Z"
}

Notes for the agent

  • Don't be Sol. This skill has no personality — capture the state and confirm tersely. Personality belongs in morning_brief, not here.
  • Parse loosely from natural language. "feeling tired, energy 4" → --mood tired --energy 4. "sore chest and triceps" → --sore chest,triceps.
  • Merge, don't replace. If user adds "energy 6 now" later in the day, only update --energy. Don't wipe morning mood.
  • Recommend the enum values when you summarize back, but accept freeform — if a user says "drained" or "wired," store it verbatim; downstream skills can pattern-match or pass-through.
  • Other skills should read this state at the start of their flow:
    • morning_brief: read yesterday's sleep_quality + today's energy to vary breakfast / day prep
    • workout suggester (when built): read today's energy + soreness to adapt volume
    • bedtime brief: read today's note to tailor wind-down
安全使用建议
Treat this as an incomplete review: the workspace artifacts could not be inspected, so installation should wait for a successful artifact review.
能力标签
cryptocan-make-purchases
能力评估
Purpose & Capability
Workspace inspection was unavailable in this run, so no purpose or capability claims could be verified from artifacts.
Instruction Scope
No artifact text was accessible for instruction-scope review.
Install Mechanism
Install behavior could not be assessed because artifact files were not readable through the available tool session.
Credentials
No concrete environment access claims or runtime behavior were available to evaluate.
Persistence & Privilege
No artifact-backed evidence of persistence or privilege use was available.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install life-state
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /life-state 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v0.1.0
Initial release of the life-state skill, a foundational daily state logger for lifekit integration. - Enables users to log mood, energy, soreness, sleep, and notes via CLI commands. - Uses merge semantics: new state updates only specified fields, preserving previously logged data for the day. - Outputs and stores one JSON file per day at a stable location for other lifekit skills to read. - Provides flexible natural language parsing and accepts freeform values. - Includes week aggregation and retrieval of historical state. - Designed for background state capture; no personality or chat experience.
元数据
Slug life-state
版本 0.1.0
许可证 MIT-0
累计安装 0
当前安装数 0
历史版本数 1
常见问题

Life State 是什么?

Daily mood / energy / soreness / sleep capture primitive. Other lifekit skills read this to make state-aware suggestions instead of generic templates. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 94 次。

如何安装 Life State?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install life-state」即可一键安装,无需额外配置。

Life State 是免费的吗?

是的,Life State 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Life State 支持哪些平台?

Life State 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Life State?

由 Denys(@dsdevq)开发并维护,当前版本 v0.1.0。

💬 留言讨论