name: summarize_to_notes description: Summarize raw text (chat transcripts, build logs, code snippets) into structured Markdown notes with YAML front matter and write them to a local notes git repo. Use when you need deterministic, local summarization and note creation from unstructured text.
Summarize to Notes
Run the skill
python -m skills.summarize_to_notes.skill < input.jsonpython skills/summarize_to_notes/skill.py --input input.json
Input and output
- Accept JSON input from stdin (default) or
--inputfile. - Write a Markdown note into the notes repo and return JSON status to stdout.
- See
config.schema.jsonfor the expected input fields.
Behavior
- Build a note path as
{notes_repo_path}/notes/YYYY/YYYY-MM/YYYY-MM-DD-<topic-slug>.md. - Derive
<topic-slug>frommeta.topic, elseslug_hint, else the inferred title. automode defaults to summary; usemode=documentto store a full Markdown body.- Extract key error/warning lines and file:line patterns for evidence.
- Generate tags using simple heuristics and de-duplicate to a max of 12.
- Write required front matter fields:
title,date,project,topic. - Reject likely mojibake/garbled input to avoid writing corrupted notes.
- Fail gracefully with
ok=falseif the notes repo path is missing or input is invalid. - A masked default repo path is built in. Replace
DEFAULT_NOTES_REPO_PATHinskill.pyafter installing, or passnotes_repo_pathin input.