agentleFS
TyrealQTyrealQ/q-skills/skills/learn/SKILL.md

learn

Skill108 starsChanged 2 months agoMITView on GitHub

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.

133 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use open-gstack-browser, design-html and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • seek888Skill

    open-gstack-browser

    Launch GStack Browser — AI-controlled Chromium with the sidebar extension baked in. Opens a visible browser window where you can watch every action in real time. The sidebar shows a live activity feed and chat. Anti-bot stealth built in. Use when asked to "open gstack browser", "launch browser", "connect chrome", "open chrome", "real browser", "launch chrome", "side panel", or "control my browser". Voice triggers (speech-to-text aliases): "show me the browser".

    Also in 6 projects that use this

  • seek888Skill

    design-html

    Design finalization: generates production-quality Pretext-native HTML/CSS. Works with approved mockups from /design-shotgun, CEO plans from /plan-ceo-review, design review context from /plan-design-review, or from scratch with a user description. Text actually reflows, heights are computed, layouts are dynamic. 30KB overhead, zero deps. Smart API routing: picks the right Pretext patterns for each design type. Use when: "finalize this design", "turn this into HTML", "build me a page", "implement this design", or after any planning skill. Proactively suggest when user has approved a design or has a plan ready. (gstack) Voice triggers (speech-to-text aliases): "build the design", "code the mockup", "make it real".

    Also in 7 projects that use this

  • chloropineSkill

    setup-gbrain

    Set up gbrain for this coding agent: install the CLI, initialize a local PGLite or Supabase brain, register MCP, capture per-remote trust policy. One command from zero to "gbrain is running, and this agent can call it." Use when: "setup gbrain", "connect gbrain", "start gbrain", "install gbrain", "configure gbrain for this machine". (cgstack)

    Also in 4 projects that use this

  • TomGranotSkill

    add-anydoc

    Add local office-document-to-Markdown conversion to NanoClaw agent containers with the pinned Firecrawl AnyDoc CLI. Use when agents need to read attached Word, PowerPoint, Excel, OpenDocument, RTF, EPUB, CSV, or text-based PDF files without uploading them to a hosted parser.

    Also in 3 projects that use this

  • TomGranotSkill

    add-clidash

    Add clidash — a zero-dependency, read-only web dashboard that derives its tabs and tables at runtime from any CLI that lists resources as JSON. Ships pre-wired for NanoClaw's ncl CLI (agent groups, sessions, channels, users, roles), plus message-activity charts, a log tail, and a read-only file viewer for group skills/CLAUDE.md/profiles.

    Also in 3 projects that use this

  • chloropineSkill

    plan-tune

    Self-tuning question sensitivity + developer psychographic for cgstack (v1: observational). Review which AskUserQuestion prompts fire across cgstack skills, set per-question preferences (never-ask / always-ask / ask-only-for-one-way), inspect the dual-track profile (what you declared vs what your behavior suggests), and enable/disable question tuning. Conversational interface — no CLI syntax required.

    Also in 4 projects that use this

  • +1 more from seek888
  • +5 more from TomGranot

The file

Show its rules and text

We split this skill into the rules it gives an agent

18 rules. 0 are common, 10 are distinctive, and 8 are very specific to this project.

  • 0

    Common

    Most of the 114 edited versions we read keep these.

  • 10

    Distinctive

    This author's own choices. Worth a look.

  • 8

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    If a tentative pattern has been corrected 3+ times across sessions (check existing ~/CLAUDE.md for near-duplicates), surface it in Step 6 …

    line 66
  2. Very specific:

    Read ~/CLAUDE.md in full. Parse the section hierarchy (it evolves — always re-read).

    line 70
  3. Very specific:

    Read the current project's ~/.claude/projects/<project>/memory/MEMORY.md if it exists.

    line 72
  4. Distinctive:

    Do NOT silently overwrite the existing rule.

    line 79
  5. Distinctive:

    Use the Edit tool for surgical insertions

    line 141
  6. Very specific:

    Create new rule files as plain markdown with a descriptive # Heading

    line 147
  7. Very specific:

    Use paths frontmatter only if the rules apply to specific file types

    line 148
  8. Very specific:

    Follow the auto memory format: MEMORY.md as index, topic files for details

    line 153
  9. Distinctive:

    Use the same frontmatter format as existing memory files (name, description, type)

    line 154
  10. Distinctive:

    ALWAYS show proposed changes and get explicit approval before writing any file

    line 187
  11. Distinctive:

    NEVER delete or modify existing preferences — only add or refine

    line 188
  12. Distinctive:

    NEVER rewrite entire sections

    line 189
  13. Very specific:

    NEVER log preferences inferred from silence, context, or a single off-hand remark (see ## Anti-Patterns above)

    line 190
  14. Distinctive:

    NEVER save third-party preferences (e.g., "my coauthor likes…") — only the current user's own preferences

    line 191
  15. Distinctive:

    NEVER store credentials, API keys, health information, or PII, even if the user explicitly asks

    line 192
  16. Distinctive:

    If unsure which tier a preference belongs to, ask the user

    line 193
  17. Distinctive:

    If zero preferences are extracted, say so honestly — do not fabricate rules

    line 194
  18. Very specific:

    If ~/CLAUDE.md would exceed 200 lines after changes, warn and suggest moving content to ~/.claude/rules/

    line 195

“Common” is measured: kept by at least 6 in 10 of the 114 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

Personal Preference Learning

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.

Three-Tier Target Architecture

TierLocationLoadedUse for
User instructions~/CLAUDE.mdEvery session, in fullConcise behavioral rules that apply to all projects
User rules~/.claude/rules/*.mdEvery 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 demandProject-specific conventions, domain context

~/CLAUDE.md should stay under 200 lines. When it grows, move coherent rule groups to ~/.claude/rules/.

Workflow

Step 1: Scan conversation

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):

  • "always…", "never…", "from now on…", "I prefer…"
  • "remember that I…", "make sure you…"

Corrections (save if repeated, see Step 2):

  • "don't do X", "stop doing Y", "that's not right"
  • "actually, it should be…", "I told you before…"
  • User rewording or editing Claude's output in place

Positive reinforcement (save when the approach was non-obvious):

  • User thanking Claude for a specific behavior
  • Accepting an unusual choice without pushback (quieter signal — note why it was non-obvious)

Domain context (save as user-tier facts):

  • Role, expertise, institutional affiliation, teaching approach
  • Tools, frameworks, or workflows the user commits to long-term

Style edits (save as style rules):

  • User modifying prose, formatting, or structure Claude produced
  • Terminology corrections ("use X not Y")

Non-signals — skip these:

  • One-time instructions ("do X now", "for this file only")
  • Hypotheticals ("what if I wanted…", "could you also…")
  • Third-party preferences ("my coauthor likes…", "reviewers want…")
  • Silence (user didn't push back ≠ user approved)
  • Code error resolutions and library workarounds (covered by continuous-learning)
  • Patterns Claude's auto memory already captured this session

Step 2: Apply the repetition threshold

A single off-hand correction is not a durable preference. Before promoting any pattern to later steps:

  • Explicit rule ("always…", "never…", "from now on…") → save immediately
  • Repeated correction (same pattern corrected 2+ times this session or referenced as "I told you before") → save as tentative, note the repetition
  • One-time correction with no repetition and no explicit framing → skip, do not fabricate a rule
  • Inferred from silence or hypothetical → skip unconditionally (see ## 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.

Step 3: Read current state

  1. Read ~/CLAUDE.md in full. Parse the section hierarchy (it evolves — always re-read).
  2. List files in ~/.claude/rules/ to check existing rule files.
  3. Read the current project's ~/.claude/projects/<project>/memory/MEMORY.md if it exists.
  4. Identify what is already captured across all three tiers to avoid duplication.

Step 4: Detect conflicts with existing preferences

For each extraction, search the already-loaded ~/CLAUDE.md and rule files for contradicting text. If a conflict is found:

  1. Do NOT silently overwrite the existing rule.
  2. In Step 6's preview, show both entries side-by-side under a ## Conflicts heading and ask which supersedes which.
  3. Resolution defaults: more specific scope wins (project > user rule > ~/CLAUDE.md); within the same tier, the newer instruction wins only after explicit approval.

Step 5: Classify each extraction

For each pattern that survived Steps 1–4, decide its tier:

If the pattern...Route toExample
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.mdA full set of workflow preferences
Is specific to the current projectProject memory"TGL uses SDT framework with 1-7 scales"
Is already covered by an existing ruleSkip — note the existing rule
Is a one-time correctionSkip

Categories and typical tiers:

CategoryTypical TierTypical Location
Writing styleUser instructions~/CLAUDE.md under ## Academic Writing subsections
Email conventionsUser instructions~/CLAUDE.md under ## Email Drafting
Communication preferencesUser instructions~/CLAUDE.md under ## Communication (create if needed)
Workflow preferencesUser instructions or rules~/CLAUDE.md or ~/.claude/rules/workflow.md
Agent behaviorUser instructions or rules~/CLAUDE.md or ~/.claude/rules/agent-behavior.md
Project domain contextProject memory~/.claude/projects/<project>/memory/

Step 6: Present proposed changes

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.

Step 7: Apply approved changes

Tier 1 — ~/CLAUDE.md:

  • Use the Edit tool for surgical insertions
  • Insert new bullets at the end of the target section, before the next heading
  • For new sections, use ## heading level (same as ## Email Drafting)
  • Report the final line count

Tier 2 — ~/.claude/rules/:

  • Create new rule files as plain markdown with a descriptive # Heading
  • Use paths frontmatter only if the rules apply to specific file types
  • One topic per file; use descriptive filenames (e.g., workflow.md, communication.md)

Tier 3 — Project memory:

  • Write to ~/.claude/projects/<project>/memory/
  • Follow the auto memory format: MEMORY.md as index, topic files for details
  • Use the same frontmatter format as existing memory files (name, description, type)

Confirm all changes applied.

Query Mode

The skill can also answer questions about what has already been remembered, without writing anything. Trigger phrases:

User saysAction
"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.

Anti-Patterns

Common failure modes this skill must avoid. When any of these fire, skip the extraction and do not save anything.

TrapWhy it failsCorrect move
Inferring from silenceUser didn't object ≠ user approvedWait for explicit correction or repeated evidence
Promoting after one mentionFabricated rules pollute ~/CLAUDE.mdRequire explicit framing ("always…", "never…") or 2+ repetitions (see Step 2)
Learning from hypotheticals"What if I wanted X?" is a question, not a preferenceSkip unless the user commits to the framing
Learning third-party preferencesBelongs to someone else, may be wrong for current userOnly capture first-person statements
Over-generalizing from narrow context"For this one file" becomes a global rulePreserve the scope in the saved entry, or route to project memory
Learning style over substanceEchoing Claude's own phrasing back as rulesSave the behavior the user demanded, not metacommentary about it
Silently rewriting an existing ruleUser loses the audit trailSurface as a conflict in Step 4; get explicit approval

Safety Rules

  • ALWAYS show proposed changes and get explicit approval before writing any file
  • NEVER delete or modify existing preferences — only add or refine
  • NEVER rewrite entire sections
  • NEVER log preferences inferred from silence, context, or a single off-hand remark (see ## Anti-Patterns above)
  • NEVER save third-party preferences (e.g., "my coauthor likes…") — only the current user's own preferences
  • NEVER store credentials, API keys, health information, or PII, even if the user explicitly asks
  • If unsure which tier a preference belongs to, ask the user
  • If zero preferences are extracted, say so honestly — do not fabricate rules
  • If ~/CLAUDE.md would exceed 200 lines after changes, warn and suggest moving content to ~/.claude/rules/
  • New sections in ~/CLAUDE.md must use ## level to maintain flat hierarchy
  • For project memory, respect the existing MEMORY.md structure and index pattern

Out of Scope

This skill does NOT:

  • Track numeric confidence scores or usage-decay timers
  • Auto-sync to any external agent product config (Cursor, Gemini, OpenClaw, …)
  • Modify its own SKILL.md
  • Edit CHANGELOG.md, README.md, or git history
  • Capture code error resolutions or library workarounds (that is continuous-learning's job)

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.