# Notes Each project keeps its local working notes in `.notes/` at the project root, its own git repo with no remote, never pushed and never committed to the project. Every step that changes it ends with `commit`, which also regenerates the generated files (never committed): `index.html`, `notes.css`, `_pages/` (markdown rendered), `_out/` (`other/out/` made self-contained). Change the look only in `notes.css` next to this file. Who reads what: Matej reads the work item, starting at its brief's `## Your move`, the pages it links, and his questions; nothing else. Docs, follow-ups and the rest of a work folder are the lead's and the agents', shaped for them. The index lists only work items and questions; everything else is still rendered, so a link from a work item opens. ``` N=~/.config/claude/skills/lead/notes.py python3 $N init # create .notes/ if missing (idempotent) python3 $N next d|w|f|q # next free id, counts deleted items too python3 $N new d # docs/dNNN-slug.md on the skeleton; --html for a doc with a diagram python3 $N new w # work/wNNN-slug/brief.md on the skeleton python3 $N commit "" # regenerate, then commit all of .notes/ python3 $N index # regenerate only python3 $N status # open work items: move, next, decisions waiting, branches in main or not; counts python3 $N file wNNN --checked "" # the agent's final reply, verbatim, into work/wNNN-*/report-.md python3 $N serve # every project's notes on http://127.0.0.1:8765/, decide clicks recorded (the user runs this) ``` All commands take `--root `; the default is the git toplevel of the current dir. Never pick an id by hand: ids are `-` (`d` docs, `w` work, `f` follow-ups, `q` questions, three digits, kebab slug), never reused, and deleted ones live only in git history. Refer to items by id everywhere ("see q014", "per d007"); in markdown an id becomes a link. ``` .notes/ docs/ dNNN-slug.md, or .html / dNNN-slug/index.html for a doc with a diagram and its assets work/ wNNN-slug/ while in flight, removed at close-out followups/ fNNN-slug.md, removed when done or moot questions/ qNNN-slug.md, Matej's own, removed when he settles them other/in/ placed by the user, read only when pointed at other/out/ prepared for someone else ``` Markdown for everything, docs included: they are agent-facing. HTML only for a diagram Matej needs, linked from his work item. Screenshot a page (headless browser, light and dark) only when it has a diagram or a decide block. ## Docs Point-in-time records of a type: `plan` (a proposal to approve), `research` (findings with sources), `review` (what a review found and what was done), `as built` (the lasting design of finished work, written at close-out). - `new d `, then fill it in. The markdown skeleton's frontmatter holds `type`, `date` and `status`; the html one (`--html`) links `notes.css`, starts `main.page` with `nav.back`, and uses only the components listed at the top of `notes.css`, no `