Create and update personal documentation. Use when the user asks to "org-doc" something.
YYYY_MM_DD, e.g. 2026_02_18_my-topic.org.~/icloud/org.
~/icloud/org/_research.Use this structure for each snippet:
*** <Short snippet title>
<One or two lines describing what this snippet shows.>
- Permalink: [[https://github.com/<org>/<repo>/blob/<commit>/<path>#L<start>-L<end>][<file>#L<start>-L<end>]]
#+transclude: [[file:<path>]] :src <language> :lines <start>-<end>
Prefer multiple narrowly scoped snippets over one large snippet.
Permalink requirements:
.../<file>#L<start>-L<end>If diagrams are requested, include D2 source blocks in org documents.
#+begin_src d2 :file ./images/<diagram-name>.svg :exports results
<diagram definition>
#+end_src
If you cannot produce a GitHub permalink (for example, missing remote URL or commit SHA), ask for the missing details before finalizing the doc.