name: notes-add description: Process a raw file into a properly formatted note in notes/. Handles splitting, frontmatter, naming, and index rebuild. disable-model-invocation: true
Notes Add
Process the file at: $ARGUMENTS
Steps
- Read the source file.
- Assess conceptual cohesion — if it covers multiple distinct topics, plan a split into separate notes.
- For each note:
- Choose a fully self-contained descriptive filename — the name alone must identify the content, no namespacing.
- Get the earliest git date:
git log --all --full-history --format="%ad" --date=short -- <path> | tail -1 - Write frontmatter:
--- date: YYYY-MM-DD tags: [tag1, tag2, ...] summary: What this contains. Important because... --- - Preserve all content fully.
- Write to
notes/<filename>.md.
- Delete the source file.
- Run
pnpm notesto rebuild INDEX.md and TAGS.md.