diff --git a/.claude/skills/nt-learn/SKILL.md b/.claude/skills/nt-learn/SKILL.md index c2354197..7bd4514d 100644 --- a/.claude/skills/nt-learn/SKILL.md +++ b/.claude/skills/nt-learn/SKILL.md @@ -40,9 +40,12 @@ ground but is outdated, propose an **update**/**supersede** of it (by id) instea ## 3. Present for approval — do not write yet Show a numbered list. Per item: bucket, proposed **title**, one-line -**description** (lessons in trigger-form "when X, do Y — not Z"), and target -folder+tag (`lessons/`+`lesson`, `rules/`+`rule`, `memory/`+`memory-core`, -`decisions/`/`ref/` for notes). Flag `rule`/`memory-core` items ⚠ +**description** (lessons in trigger-form "when X, do Y — not Z"), a +**`--project` or topical `--tag`** (never omit it — the structural +`lesson`/`rule` tag is stripped before the duplicate check, so a note carrying +only that one silently bypasses the guard and duplicates an existing lesson), +and target folder+tag (`lessons/`+`lesson`, `rules/`+`rule`, +`memory/`+`memory-core`, `decisions/`/`ref/` for notes). Flag `rule`/`memory-core` items ⚠ *always-in-context — costs tokens on every future request*. (The reverse pass — pruning rules that stopped earning that cost — is `/nt-distill rules`.) Then ask which to save (all, numbers, edits, or none) and **wait**. Save nothing without diff --git a/.claude/skills/nt/SKILL.md b/.claude/skills/nt/SKILL.md index 6b569e58..1149473c 100644 --- a/.claude/skills/nt/SKILL.md +++ b/.claude/skills/nt/SKILL.md @@ -86,10 +86,19 @@ When you hit a mistake, footgun, or dead-end, capture it as a **lesson** so the next session recalls it — put the trigger in the description ("when X, do Y — not Z"): ```bash -nt note "single-flight the refresh; parallel calls double-spend" --lesson --source claude +nt note "single-flight the refresh; parallel calls double-spend" --lesson \ + --project tripto --source claude # ALWAYS a --project or --tag; see below nt recall --lessons-only # bare: list every recorded lesson ``` +**Always give a lesson a `--project` or a topical `--tag`.** This is not +housekeeping — it is what keeps the duplicate guard alive. `--lesson` applies +only the *structural* `lesson` tag, which the near-duplicate check strips before +comparing; with nothing else on the note its tag set is empty, the check can +never fire, and nt will silently accept a near-copy of a lesson you already +have. A store captured without topical tags fragments into many one-line notes +saying the same thing, and neither `nt note` nor `nt distill` will tell you. + **Precision note:** recall returns the top-8 results by default (top-N, no hard precision guarantee). A very unrelated query can still return results that look confident — always check the **tier** before trusting a hit. There is an internal