StateLog
Skill này làm gì
Ghi lại các lần tự đánh giá ngắn mỗi ngày, như tâm trạng, năng lượng, giấc ngủ và tập luyện, theo thang điểm đơn giản từ một đến năm. Dành cho người muốn theo dõi xu hướng cảm xúc theo thời gian.
Khi nào nên dùng
- ✓Khi bạn muốn ghi lại tâm trạng hoặc năng lượng của mình bằng một ghi chú nhanh.
- ✓Khi bạn muốn xem các trạng thái gần đây của mình so với nhau thế nào.
- ✓Khi bạn muốn ghi lại một buổi tập hoặc đi bộ mà không cần viết nhật ký.
Liên kết skill
https://github.com/danielmiessler/LifeOS/blob/main/LifeOS/install/skills/StateLog/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Ghi lại tâm trạng của tôi là 4 và năng lượng là 2 cho hôm nay.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Skill lưu từng mục ghi kèm dấu thời gian vào nhật ký riêng tư của bạn chỉ trong một bước, rồi gửi xác nhận ngắn. Skill chỉ ghi các điểm do chính bạn nêu và không tự bịa ra. Khi kiểm tra trạng thái, nó hiển thị giá trị mới nhất và thời gian của mỗi chỉ số.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
StateLog
Contents: Ideal State · Intent Routing · The grammar · Data & Config · Tool contract · Gotchas · Examples
Two keystrokes to a durable journal entry. The user sends M2 on any channel; it lands timestamped in the state log and the statusline reflects it. The point is zero-friction capture of mood and state so correlations (mood vs sleep vs workouts) become computable later.
Ideal State
- Every entry the user states lands in the log in one tool call and gets one short acknowledgment, with no follow-up questions or analysis.
- Ratings come only from the user's own words; inferred events reset freshness counters and never write a rating.
- A status read shows each dimension's latest value and age, and names what is stale or never logged in one line.
- The journal stays the user's: it lives under
LIFEOS/USER/STATE/and never enters this skill or any public artifact.
Intent Routing
| Intent | Trigger | File |
|---|---|---|
| Log | A shorthand entry, "log my state/mood", "just worked out", "went for a walk" | Intents/Log.md |
| Status | "current state", "state check-in", "how am I tracking" | Intents/Status.md |
| File | Read when |
|---|---|
Setup.md |
first-time setup, or Config.md is missing |
EvalState.md |
checking the state-shorthand eval suite's latest scores (machine-owned, never hand-edited) |
The grammar
<Letter><Digit 1-5> plus optional note (M2 slept badly). Bare W or K resets that freshness counter.
| Letter | Dimension | Kind |
|---|---|---|
| H | overall | rating 1-5 |
| M | mood | rating 1-5 |
| E | energy | rating 1-5 |
| S | sleep | rating 1-5 |
| R | relationships | rating 1-5 |
| F | financial | rating 1-5 |
| C | overall creativity | rating 1-5 |
| CF | creative freedom | rating 1-5 |
| W | workout | freshness (days-since) |
| K | walk | freshness (days-since) |
| A | affirmation | freshness (days-since) |
Scale (star-rating semantics, higher is better): 1 really bad · 2 bad · 3 fine (shown yellow, never treated as a crisis) · 4 and 5 the preferred range (shown green). The parser clamps 0/6-9 into range and preserves the raw value. Every dimension reads the same direction — there are no inverted dimensions.
Data & Config
What each dimension means to the user, where the creativity pair's framing comes from, the affirmation practice file, and the workout signal source: <configRoot>/LIFEOS/USER/CUSTOMIZATIONS/SKILLS/StateLog/Config.md (configRoot is $CLAUDE_CONFIG_DIR when set, else ~/.claude). First-time setup is in Setup.md. Read it when discussing the creativity pair, logging an A, or deciding whether an event counts as a workout signal. Logging itself works without it; when Config.md is missing, say so once, point the user at Setup.md, skip the streak bump and signal resets, and still log the entry. The letters and 1-5 scale are the tool's defaults in State.ts; Config.md only records what they mean to the user.
Tool contract
The deterministic engine is ~/.claude/LIFEOS/TOOLS/State.ts (cross-consumer: statusline, interview, this skill):
bun ~/.claude/LIFEOS/TOOLS/State.ts log "M4" # rate
bun ~/.claude/LIFEOS/TOOLS/State.ts log "M2 rough day" # rate + note
bun ~/.claude/LIFEOS/TOOLS/State.ts log "W" # freshness reset
bun ~/.claude/LIFEOS/TOOLS/State.ts log "H5" --source interview
bun ~/.claude/LIFEOS/TOOLS/State.ts reset W # signal-driven reset
bun ~/.claude/LIFEOS/TOOLS/State.ts current [--json] # snapshot with freshness tiers
bun ~/.claude/LIFEOS/TOOLS/State.ts statusline # compact segment
bun ~/.claude/LIFEOS/TOOLS/State.ts rebuild # re-derive current.json from log
Data: LIFEOS/USER/STATE/log.jsonl (append-only) + current.json (derived). The statusline reads current.json directly with jq — never spawn the tool from render paths.
Gotchas
- A bare rating letter with no digit (
M) is an error, not a default — only W/K/A accept bare-letter resets. - Bare
A= "did today's affirmation reps". Config.md names the practice file (Affirmation practice file); on anAentry, also bump the streak line in that file's Active section. With no practice file configured, log theAand touch nothing else. --sourcerecords where an entry came from, for later correlation:manual(default),interview,signal.reset W|Kstampssignalitself, so an entry inferred
Câu hỏi thường gặp
Các chữ cái có nghĩa gì?
H là tổng thể, M là tâm trạng, E là năng lượng và S là giấc ngủ. Các chữ cái khác dành cho những mục như mối quan hệ, tài chính, sáng tạo, tập luyện, đi bộ và lời khẳng định.
Nó có phân tích các mục ghi của tôi không?
Nó giữ các mục để so sánh sau này. Khi bạn ghi, nó không thêm phân tích hay câu hỏi theo dõi.
Ai có thể xem nhật ký của tôi?
Nhật ký nằm trong thư mục riêng tư của bạn và không được chia sẻ.
Chi tiết
Mô tả gốc của tác giả
State journaling from shorthand like M4, H2, CF5 (H overall, M mood, E energy, S sleep, R relationships, F financial, C creativity, CF creative freedom, W workout, K walk, A affirmation) on 1-5, with freshness resets. USE WHEN a message is only dimension shorthand (M4, e4 cf3, W, K, A), log my state, log my mood, state check-in, how am I tracking, just worked out, went for a walk, did my affirmations. NOT FOR life-goal percentages (use `Telos`), health imports, macOS stats (Vitals).
repo: danielmiessler/LifeOS
Độ phổ biến
- Sao GitHub
- 20k
- Vị trí xếp hạng
- #10460
- Giấy phép
- MIT
- Cập nhật
- 28/10/2026
Bình luận
- …
Thêm skill từ kho mã này
LifeOS
20kGiúp agent của bạn thiết lập LifeOS, một hệ thống cá nhân ánh xạ trạng thái hiện tại tới trạng thái lý tưởng qua một cuộc phỏng vấn và một bảng điều khiển.
AnnualReports
20kGiúp agent của bạn tìm và so sánh báo cáo an ninh mạng thường niên từ các nhà cung cấp lớn, như xu hướng vi phạm và ransomware, có nguồn cho mọi số liệu.
ApertureOscillation
20kDạy agent của bạn kiểm tra một câu hỏi thiết kế ở phạm vi hẹp và phạm vi rộng, rồi chỉ ra chỗ hai câu trả lời mâu thuẫn trước khi bạn xây dựng.
Aphorisms
20kCho phép agent của bạn tìm, ghép và theo dõi các câu trích dẫn có ghi tác giả từ một bộ sưu tập được chọn lọc, tránh những câu vừa được dùng trong bản tin.
Skill tương tự
blucli
394kGiúp agent của bạn tìm, phát, tạm dừng, nhóm và chỉnh âm lượng loa Bluesound và NAD qua lệnh blu.
camsnap
394kGiúp agent của bạn chụp ảnh, quay clip ngắn hoặc lấy sự kiện chuyển động từ camera mạng và webcam nội bộ mà bạn đã thiết lập.
eightctl
394kGiúp agent của bạn kiểm tra và điều khiển thiết bị Eight Sleep pod, gồm nhiệt độ, báo thức và lịch ngủ.