{"data":{"slug":"discovered-fa1754dfbe2b94ccccdb16ada23260bf984653a479e269a8","title":"Nj Learn","summary":"Capture and record lessons learned from work experiences, such as unexpected failures, tool misbehavior, or user corrections, and route them to the appropriate location for visibility and reuse.","url":"https:\/\/skillshunter.net\/skills\/discovered-fa1754dfbe2b94ccccdb16ada23260bf984653a479e269a8","json_url":"https:\/\/skillshunter.net\/api\/public\/v1\/skills\/discovered-fa1754dfbe2b94ccccdb16ada23260bf984653a479e269a8","markdown_url":"https:\/\/skillshunter.net\/skills\/discovered-fa1754dfbe2b94ccccdb16ada23260bf984653a479e269a8.md","download_url":"https:\/\/skillshunter.net\/skills\/discovered-fa1754dfbe2b94ccccdb16ada23260bf984653a479e269a8\/download","category":{"slug":"software-development","name":"Software & Development"},"editor_note":"Before recording a lesson, ensure it is actionable and not a restatement of general knowledge or existing skill instructions. Use the `lessons.py` script with the `--feature` and `--signal` parameters to route the lesson appropriately, and always include the reason (why) behind the lesson, not just the rule.","instructions":"---\nname: nj-learn\ndescription: 'Capture a lesson the moment work teaches one and write it where it will be read: the owning skill, CLAUDE.md, memory, or the nj-kit manifest. Triggers: a surprise, a tool that lied, a non-obvious failure, a user correction, remember this.'\n---\n\n# Learning from the work\n\nMost of what makes this toolkit good was discovered by something going wrong.\nCairo was condemned by an audit that was itself broken. `npx` failed silently on\nWindows because it is `npx.cmd`. A change detector was blind to deletions.\nNone of that is in a manual; all of it cost real time.\n\nA lesson that stays in a transcript is a lesson paid for once and lost. This\nskill is the loop: **notice, route, record, verify.**\n\n## 1. Notice \u2014 what counts\n\nRecord when any of these happen. The bar is \"would a competent person have\nguessed wrong?\", not \"was this hard\".\n\n- A first attempt failed for a reason that was not obvious in advance.\n- A tool reported something untrue \u2014 silently wrong output, an exit code that\n  lied, \"0 tables\" on a page with a table.\n- An assumption turned out false, especially one that felt safe.\n- The user corrected an approach, or repeated an instruction.\n- A platform quirk bit: encoding, path, shell, permission.\n- **A skill's own instructions were wrong or incomplete.** These are the highest\n  value, because the skill will mislead again on its own authority.\n\nDo **not** record: one-off typos, anything already written in the skill that\ncovers it, or a restatement of general knowledge. A lessons file that fills with\ntruisms stops being read, and then the real lessons go unread too.\n\n## 2. Route \u2014 this is the judgement, and it is the whole skill\n\nWhere a lesson goes decides whether it is ever seen again.\n\n| The lesson is about | Put it in | Why there |\n| --- | --- | --- |\n| How to do a specific craft | **that skill's SKILL.md** | loads exactly when that work starts |\n| A trap inside a script | **a comment at the code that has the trap** | the only place someone editing it will look |\n| A fact that must be live from the first message | **`~\/.claude\/CLAUDE.md`** | every session, every project \u2014 keep it short, it costs tokens every turn |\n| How the user wants to be worked with | **memory, `type: feedback`** | survives sessions, includes the why |\n| A toolchain decision \u2014 font, extractor, binary | **`nj-kit\/manifest.json`** | travels to the next machine |\n| Nothing above fits | probably not a lesson yet | let it recur once |\n\n**Prefer the narrowest home that will be read.** `CLAUDE.md` is loaded on every\nturn of every session, so a lesson that belongs to one craft costs everybody\ntokens for ever if it goes there. A skill's own file is almost always right.\n\n**Write the why, not just the rule.** \"Use poppler\" is obeyed until someone has\na reason not to. \"Use poppler \u2014 mupdf and pdfium return Arabic in visual order,\nso correct words look missing, and two of them agreeing is one shared bug rather\nthan confirmation\" survives contact with a sceptic.\n\n## 3. Record \u2014 recurrence, so a fluke is not mistaken for a rule\n\nBookkeeping is `scripts\/lessons.py`, which does IDs, recurrence counting,\ncandidate\u2192confirmed promotion and quarantine. It arrived here from\n`tlc-spec-driven` on 18 September 2026, when the audit removed that skill: the\ndependency was on a foreign skill's script, so the delegation that once avoided\nduplication had become a broken path. The store it reads is unchanged \u2014\n`~\/.claude\/.specs\/lessons.json` \u2014 so every lesson recorded before the move is\nstill counted.\n\n```bash\nL=~\/.claude\/skills\/nj-learn\/scripts\/lessons.py\npython \"$L\" --root ~\/.claude init        # once\npython \"$L\" --root ~\/.claude add \\\n  --feature <skill-or-area-the-lesson-belongs-to> \\\n  --signal gate_fail \\\n  --source <file:line, or the command that lied> \\\n  --text \"<one actionable sentence>\"\npython \"$L\" --root ~\/.claude list        # confirmed lessons\n```\n\nTwo mappings, because the script was written for a spec workflow:\n\n- `--feature` holds **the skill or area the lesson belongs to**, not a product\n  feature. It is what recurrence is counted across.\n- `--signal` is effectively always `gate_fail` \u2014 \"a check failed and taught us\n  something\". The other values in its enum (`ac_gap`, `surviving_mutant`) belong\n  to spec-driven development and would be dishonest labels here.\n\nThe store is `~\/.claude\/.specs\/lessons.json`, machine-owned; read\n`~\/.claude\/.specs\/LESSONS.md`, never hand-edit either.\n\n**Recording is not the point \u2014 routing is.** A lesson recorded but not written\ninto the skill that needs it will not be there when it matters.\n\n## 4. Verify it stuck\n\nA lesson written and never tested is a belief, not a fix.\n\n- If it can be checked by a script, add the check. `scan.py` and the copy audit\n  both began as lessons.\n- If it changed a skill, read that section back and ask whether it would have\n  prevented the original mistake. If not, rewrite it.\n- If the same lesson recurs, the routing was wrong \u2014 it went somewhere unread.\n  Move it, do not restate it louder.\n\n## When a lesson turns out wrong\n\nSay so and remove it. This has already happened once and mattered: the note that\nCairo displaced letters was recorded from two extractors that shared a bug, and\nit very nearly caused the house font to be forked. The correction is now in the\nmemory that held the error, with the measurements.\n\n`python \"$L\" --root ~\/.claude penalize <id>` quarantines a confirmed lesson that\nfailed when applied. A lessons store nobody prunes becomes folklore.\n","use_cases":["Documenting unexpected tool failures or incorrect outputs","Recording user corrections or feedback for future reference","Capturing platform-specific quirks or issues","Updating skill instructions when they are found to be incorrect or incomplete"],"limitations":[],"compatibility":[],"setup_tip":null,"sample_input":null,"sample_output":null,"source_url":"https:\/\/github.com\/NJ-Burrito\/NJ-Kit\/blob\/2644ffdccb94c9eb0a65b23624abe9795e005faa\/nj-plugin\/skills\/nj-learn\/SKILL.md","source_commit":"2644ffdccb94c9eb0a65b23624abe9795e005faa","license":null,"version":null,"listing_approved_at":"2026-11-29","created_at":"2026-11-28T18:51:53.000000Z","updated_at":"2026-11-29T10:53:39.000000Z","seo_title":"Nj Learn - Record and Route Lessons from Work","seo_description":"A skill for capturing and organizing lessons learned from work, ensuring they are recorded in the right place for visibility and reuse.","seo_keywords":["lesson recording","work insights","tool misbehavior","user feedback","skill documentation"]}}