Note
Saves technical discoveries — debugging insights, non-obvious behaviors, integration gotchas that cost 30+ minutes — as flat files searchable across sessions, and searches them on demand.
/ai-note find ruff # search notes mentioning ruff
/ai-note find # list all notes
/ai-note gitleaks-staged # create/update note with this slug
Not for: architecture decisions (decision-store.json via
/ai-governance), incident analysis (/ai-postmortem), customer issues
(/ai-support), cross-session patterns (/ai-learn).
Workflow
§10.4 DRY — search before create; one flat note per slug at
.ai-engineering/notes/{slug}.md (kebab-case, <= 50 chars).
Mode find [query]:
- Scan
.ai-engineering/notes/*.mdfor filename/title/content matches. - Rank by relevance (title > content > date).
- Present title + date + first-line summary.
Mode create/update (by slug):
- Check
.ai-engineering/notes/{slug}.md; load if it exists. - Extract from the session: problem solved, what failed, what worked + why.
- Write using the template below.
- Validate: Problem and Findings MUST be non-empty (a note without findings is not a note).
# {Title}
**Discovery Date**: YYYY-MM-DD
**Context**: {What triggered this investigation}
**Spec**: {spec-NNN if applicable, otherwise "N/A"}
## Problem
{What was expected vs what happened}
## Findings
{The non-obvious insight — be specific, include versions/configs}
## Code Examples
{Minimal reproduction or working solution}
## Pitfalls
{What looks right but is wrong — save future-you from the same trap}
## Related
- {Links to docs, issues, PRs, other notes}
Save or skip
| Signal | Action |
|---|---|
| Took 30+ min to figure out | Save |
| Contradicts official docs | Save |
| Required reading source to understand | Save |
| Workaround for an upstream bug | Save |
| Standard usage documented in README | Skip |
| One-off config for this machine | Skip |
Examples
Example — save a debugging insight
User: "save this finding: pip-audit returns exit 1 even with no vulnerabilities when --dry-run is set"
/ai-note pip-audit-dry-run-exit-code
Writes .ai-engineering/notes/pip-audit-dry-run-exit-code.md with
Problem / Findings / Code Examples / Pitfalls sections.
Integration
Called by: user directly. Reads + writes: .ai-engineering/notes/. See
also: /ai-learn (synthesize patterns), /ai-session-watch (in-session
corrections), /ai-debug, /ai-postmortem.
$ARGUMENTS