skills/learn/SKILL.md
Persist user preferences and styles across sessions. Use for remember this, save preference, learn this, always do X, never do Y, from now on, update CLAUDE.md, update CM, forget X, what do you remember, or after repeated corrections in a session.
npx skillsauth add TyrealQ/q-skills learnInstall 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.
Extract preferences, styles, and behavioral patterns from the current conversation and persist them for all future sessions.
Scope: This skill captures how the user works, writes, and wants agents to behave. It does NOT capture code patterns, error fixes, or debugging techniques.
| Tier | Location | Loaded | Use for |
|------|----------|--------|---------|
| User instructions | ~/CLAUDE.md | Every session, in full | Concise behavioral rules that apply to all projects |
| User rules | ~/.claude/rules/*.md | Every session (or on file match) | Structured rule sets on a single topic; optionally path-scoped |
| Project memory | ~/.claude/projects/<project>/memory/ | First 200 lines of MEMORY.md; topic files on demand | Project-specific conventions, domain context |
~/CLAUDE.md should stay under 200 lines. When it grows, move coherent rule groups to ~/.claude/rules/.
Review all user messages for extractable patterns. Use the phrase families below as signals — do not infer preferences from silence or context alone.
Explicit rules (highest priority, save immediately):
Corrections (save if repeated, see Step 2):
Positive reinforcement (save when the approach was non-obvious):
Domain context (save as user-tier facts):
Style edits (save as style rules):
Non-signals — skip these:
continuous-learning)A single off-hand correction is not a durable preference. Before promoting any pattern to later steps:
## Anti-Patterns below)If a tentative pattern has been corrected 3+ times across sessions (check existing ~/CLAUDE.md for near-duplicates), surface it in Step 6 with a "Confirm as permanent rule?" flag so the user decides explicitly.
~/CLAUDE.md in full. Parse the section hierarchy (it evolves — always re-read).~/.claude/rules/ to check existing rule files.~/.claude/projects/<project>/memory/MEMORY.md if it exists.For each extraction, search the already-loaded ~/CLAUDE.md and rule files for contradicting text. If a conflict is found:
## Conflicts heading and ask which supersedes which.~/CLAUDE.md); within the same tier, the newer instruction wins only after explicit approval.For each pattern that survived Steps 1–4, decide its tier:
| If the pattern... | Route to | Example |
|-------------------|----------|---------|
| Is a concise rule for all projects | ~/CLAUDE.md — match to existing section or propose new ## section | "Never use em-dashes in emails" |
| Is part of 5+ rules on one topic | ~/.claude/rules/new-topic.md | A full set of workflow preferences |
| Is specific to the current project | Project memory | "TGL uses SDT framework with 1-7 scales" |
| Is already covered by an existing rule | Skip — note the existing rule | |
| Is a one-time correction | Skip | |
Categories and typical tiers:
| Category | Typical Tier | Typical Location |
|----------|-------------|-----------------|
| Writing style | User instructions | ~/CLAUDE.md under ## Academic Writing subsections |
| Email conventions | User instructions | ~/CLAUDE.md under ## Email Drafting |
| Communication preferences | User instructions | ~/CLAUDE.md under ## Communication (create if needed) |
| Workflow preferences | User instructions or rules | ~/CLAUDE.md or ~/.claude/rules/workflow.md |
| Agent behavior | User instructions or rules | ~/CLAUDE.md or ~/.claude/rules/agent-behavior.md |
| Project domain context | Project memory | ~/.claude/projects/<project>/memory/ |
Show a numbered preview grouped by tier:
## Tier 1: User Instructions (~/CLAUDE.md)
### [1] Add to "## Academic Writing > ### Style" (existing section)
+ - Do not use semicolons to join independent clauses in academic prose
### [2] New section: "## Workflow" (after last existing ## section)
+ - When re-running a pipeline, first check what outputs already exist in cache
+ - Prefer flat directory structures keyed by ID over nested semantic hierarchies
## Tier 2: User Rules (~/.claude/rules/)
### [3] New file: ~/.claude/rules/communication.md
+ # Communication Preferences
+ - Lead with the answer, not the reasoning
## Tier 3: Project Memory
### [4] Add to project memory MEMORY.md
+ - TGL project uses SDT framework (autonomy, competence, relatedness) scored 1-7
## Skipped
- "Use precise terminology" → already in ~/CLAUDE.md ### Word Choice
Approve all? Or specify numbers to modify/reject.
Tier 1 — ~/CLAUDE.md:
## heading level (same as ## Email Drafting)Tier 2 — ~/.claude/rules/:
# Headingpaths frontmatter only if the rules apply to specific file typesworkflow.md, communication.md)Tier 3 — Project memory:
~/.claude/projects/<project>/memory/MEMORY.md as index, topic files for detailsConfirm all changes applied.
The skill can also answer questions about what has already been remembered, without writing anything. Trigger phrases:
| User says | Action |
|-----------|--------|
| "What do you remember about me?" / "Show preferences" | Summarize ## sections in ~/CLAUDE.md + list ~/.claude/rules/*.md files with one-line descriptions |
| "What's in [topic]?" | Quote the matching section verbatim with its file path and line range |
| "Forget X" | Locate X across all three tiers, show the exact lines, and ask for confirmation before deletion |
| "What did you learn this session?" | List entries added in the current session only |
Query mode is read-only — only "Forget X" writes, and only after explicit confirmation. Never infer intent: if the request is ambiguous, ask before reading.
Common failure modes this skill must avoid. When any of these fire, skip the extraction and do not save anything.
| Trap | Why it fails | Correct move |
|------|--------------|--------------|
| Inferring from silence | User didn't object ≠ user approved | Wait for explicit correction or repeated evidence |
| Promoting after one mention | Fabricated rules pollute ~/CLAUDE.md | Require explicit framing ("always…", "never…") or 2+ repetitions (see Step 2) |
| Learning from hypotheticals | "What if I wanted X?" is a question, not a preference | Skip unless the user commits to the framing |
| Learning third-party preferences | Belongs to someone else, may be wrong for current user | Only capture first-person statements |
| Over-generalizing from narrow context | "For this one file" becomes a global rule | Preserve the scope in the saved entry, or route to project memory |
| Learning style over substance | Echoing Claude's own phrasing back as rules | Save the behavior the user demanded, not metacommentary about it |
| Silently rewriting an existing rule | User loses the audit trail | Surface as a conflict in Step 4; get explicit approval |
## Anti-Patterns above)~/CLAUDE.md would exceed 200 lines after changes, warn and suggest moving content to ~/.claude/rules/~/CLAUDE.md must use ## level to maintain flat hierarchyThis skill does NOT:
CHANGELOG.md, README.md, or git historycontinuous-learning's job)testing
Capture session decisions, conventions, and lessons into plan files, auto-memory, and CLAUDE.md so a fresh session resumes cleanly. Use for "hand off," "wrap up," "update docs for next session," or before /compact.
data-ai
Run exploratory data analysis on tabular datasets with measurement-appropriate statistics. Use for EDA, descriptive statistics, data exploration, or preparing data summaries for reports and manuscripts.
research
Orchestrate end-to-end academic manuscript preparation following APA 7th edition. Use for writing papers, drafting sections, or academic writing support.
development
Generate professional slide deck images from content with smart logo branding. Use for creating slides, presentations, decks, or PPT output.