ots-write
Commit a temporal node. The model proposes body text; this script writes frontmatter.
- License 许可
- MIT
- 最近更新
- 2026-09-13
- Stars
- ★ 0
- Forks
- 1
01 前言 Front Matter
- name
- ots-write
- description
- Commit a temporal node. The model proposes body text; this script writes frontmatter.
03 SKILL.md 正文
python3 "${CLAUDE_PLUGIN_ROOT}/scripts/ots_common.py" write-session \
--id software_engineer__atlas__001 \
--period 2026-08-21T14 \
--agent-name atlas --agent-role software_engineer \
--author "$SECOND_BRAIN_IDENTITY" --bundle "$SECOND_BRAIN_ROOT"
Hour nodes come from tick-hour, not from session writes. --ensure-spine is off by default. Pass it only for fixtures.
A session that crosses an hour boundary closes its segment and opens the next (close-segment --period YYYY-MM-DDTHH), so each segment belongs to exactly one Hour.
Host JSONL is ingested by ots_tail_jsonl.py as .source.jsonl (see ots-tail). Pipeline: tail → tick-hour → summarize-hour → rollup → overnight pointers (separate).
Never write frontmatter by hand. Children before parent aggregates. Do not invent summary prose in rollup — the model proposes, the script only links.
04 同仓库更多 Skills
ots-watchdog
Close sessions open longer than the global watchdog (default one hour). Per-role is phase two.
ots-walk
Walk Year → Month → Week → Day → Hour → Session using only the filesystem.
ots-validate
暂无简介
ots-tick
Scheduled hourly tick. Writes an Hour node only when the window has closed segments and no open ones. Sparse.
ots-tail
Copy a host JSONL transcript into an immutable sessions/<slug>.source.jsonl snapshot. No LLM.
ots-summarize
After tick-hour, read .source.jsonl, apply the host-switch filter, write summary and saliency. Edition A (host CLI) or B (API key). Does not touch the snapshot.