ai-learnt/SKILL.md
Use when the user says "learnt", "remember that", "teach claude", "update the rules", "save that lesson", or at the end of a session where Claude was corrected or a pattern was validated. Extracts lessons from the current session and saves them to the right place so Claude gets smarter over time. Always invoke this skill — don't just write memories ad-hoc.
npx skillsauth add paulund/ai ai-learntInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Review the current conversation and extract non-obvious lessons worth keeping. The goal is to make the next session smarter, not to record everything that happened.
Look for:
Ignore:
Is this a universal rule for a language, framework, or tool?
├── Yes → the relevant global skill file in ~/.claude/skills/
└── No → Is it specific to this codebase's architecture or conventions?
├── Yes → {repo}/CLAUDE.md
└── No → Is it about the user, or project context?
├── Working preference / correction → auto-memory (type: feedback)
├── Project fact / decision → auto-memory (type: project)
└── Personal context about the user → auto-memory (type: user)
The project memory directory is shown in your system prompt context — look for the path ending in /memory/. This is project-specific and changes per repo.
File naming: feedback_<slug>.md, project_<slug>.md, user_<slug>.md
Frontmatter:
---
name: Short title
description: One-line hook used to decide relevance in future sessions — be specific
type: feedback | project | user
---
Body structure for feedback:
Lead with the rule. Then Why: (the reason given or inferred). Then How to apply: (when this kicks in).
Body structure for project:
Lead with the fact or decision. Then Why: (the motivation). Then How to apply: (how this should shape suggestions).
Body structure for user:
Describe what you learned about the user's role, knowledge, or preferences in plain terms.
After writing each memory file, add a one-line pointer to MEMORY.md in the same directory under the right section heading:
- [Title](filename.md) — one-line hook under 150 chars
Check MEMORY.md first — update an existing entry rather than creating a duplicate.
When a lesson is a universal rule (language, framework, or tooling pattern), append it to the relevant skill file at ~/.claude/skills/. Keep additions concise — one rule, one short explanation.
When a lesson is project-specific (this codebase's architecture, conventions, or patterns), add it to the CLAUDE.md in the current repo root. Put it in the most relevant section, or add a new one if needed.
After saving, give the user a short summary:
Keep it to a few bullet points. No waffle.
testing
Remove signs of AI-generated writing from text. Use when editing or reviewing text to make it sound more natural and human-written. Based on Wikipedia's comprehensive "Signs of AI writing" guide. Detects and fixes patterns including: inflated symbolism, promotional language, superficial -ing analyses, vague attributions, em dash overuse, rule of three, AI vocabulary words, negative parallelisms, and excessive conjunctive phrases.
development
TypeScript project conventions. Auto-load when editing *.ts or *.tsx files.
development
Use when writing or fixing PHP code, implementing classes, traits, or interfaces, applying PSR standards, or working with PHP 8.3+ patterns like readonly properties, enums, named arguments, match expressions, and union types.
tools
Next.js 15 App Router project conventions. Auto-load when working in app/, src/app/, components/, server actions, or route handlers.