luna-vitals-extract
Use to backfill salus health series for one luna time-bucket — writes a per-bucket review artifact, never 50-Vitals/.
- License 许可
- MIT
- 最近更新
- 2026-11-15
- Stars
- ★ 15
- Forks
- 2
01 前言 Front Matter
- name
- luna-vitals-extract
- description
- Use to backfill salus health series for one luna time-bucket — writes a per-bucket review artifact, never 50-Vitals/.
03 SKILL.md 正文
Extract health-series rows for ONE time-bucket into a review artifact. Inputs: a date range
<START>..<END> and the artifact output path <ARTIFACT>. Tracked metrics: migraine, skin_flare,
sleep_hours, hrv_ms, rhr_bpm.
- Locate health-relevant notes in the bucket: use qmd over collection
salus(and 20-Timeline/, daily notes) filtered to the date range. Collect the file paths. - Deterministic pass: for each structured file, run
bun run <repo>/scripts/luna-vitals/cli.ts parse <file> --note-date <date-if-daily> --out <tmp/det-N.json>. - LLM pass: read the prose/timeline files. Extract ONLY explicit dated values (e.g. "14 Jun 2024 —
migraine, bad day" → migraine on 2024-06-14; map qualitative→the metric's scale using the registry
50-Vitals/_series.md). Do NOT infer from relative statements ("worse lately"). Record each as a row{metric,date,value,source}where source = "<file>: <quote>". Write these as one artifact{bucket:"<START>..<END>", rows:[...], conflicts:[]}to<tmp/llm.json>(same schema as the CLI). - Merge this bucket's artifacts, routing the deterministic-parse artifacts and the LLM artifact
into their respective pools so deterministic values win on overlap:
bun run <repo>/scripts/luna-vitals/cli.ts merge --det <tmp/det-*.json> --llm <tmp/llm.json> --out <ARTIFACT>. - Report the row count per metric and any conflicts. STOP — do not write 50-Vitals/. The operator
reviews
<ARTIFACT>, then the single-writer merge +writestep lands it.
04 同仓库更多 Skills
medic
Use inside a Salus medical vault to FILE a medical item into its structured place (skin photo → photo archive + capture note; lesion/symptom note; lab/PDF → 00-Sources) and auto-commit, OR to QUERY the vault for a health follow-up (grounded answer + flagged, non-diagnostic morphology read). Triggers on "file this photo / note / lab", "log this into the medical vault", "ask the medic", or any health follow-up while cwd = the medical vault. Organize & surface only — never diagnose (posture-A).
stuck-playbook
fixture skill, invoked in the basic transcript fixture
never-used-skill
fixture skill, never invoked in any fixture transcript
used-skill
fixture skill invoked via a Skill tool_use in the fixture transcript
dead-skill
fixture skill never invoked and never referenced
jira-transition
Move/transition a Jira issue status ("move PROJ-46 to In Progress"). Needs key + target status. Not PR status changes.