Life State

👤 dsdevq 📦 v0.2.0 ⭐ 4.3 ⬇️ 636 下載
🤖 AI-Agent 免費

📖 技能介紹


name: life-state description: Daily mood / energy / soreness / sleep capture primitive. Other lifekit skills read this to make state-aware suggestions instead of generic templates. author: Denys Sychov version: 0.2.0 metadata: {"openclaw":{"requires":{"bins":["life-state"]}}} triggers: - "how am I feeling" - "mood check" - "morning check-in" - "log mood" - "log energy" - "I feel" - "feeling tired" - "feeling good" - "feeling sore" - "energy is" - "slept badly" - "slept well" - "today I am"


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 <m>great | good | normal | tired | terrible (freeform accepted; lowercased) - --energy <n> — 1-10 (rejected outside that range) - --sleep <q>good | ok | poor (freeform accepted) - --sore <list> — comma-separated muscle groups (e.g. chest,triceps) - --note "<text>" — 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/<date>.json — one JSON file per day. Stable, known location every other lifekit skill should read from.

Set LIFE_STATE_DIR to relocate the store (containers, shared vaults) — the CLI reads it at startup.

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:

    小蔥技能站7w4.net,專業的AI技能分享平臺。

  • 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

🤖 AI 評測

這個工具能幫你記錄每天的心情、能量水平、肌肉痠痛和睡眠質量,資料存在本地檔案裡,其他相關技能可以讀取這些資訊給你更貼合實際狀態的建議。文件寫得很清楚,容易上手。不足的是壓縮包裡沒有可執行程式,需要額外安裝;另外如果遇到問題,缺少故障排查指南。對日常健康追蹤有需求的使用者來說是個實用的基礎工具。

📊 多維度評分

適應性4.7
規範性4.5
有效性4.6
可靠性3.6
可信度4.3

📁 包含檔案 (5 個)

📄 LICENSE 1 KB
📄 README.md 1.5 KB
📄 SKILL.md 3.5 KB
📄 _meta.json 129 B
📄 skill-card.md 2 KB