learn
Maintain persistent memory across sessions using a .context/ directory.
Skill by yokuze
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/yokuze-learn
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions
What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.
- Tools
- No tools found
- Secrets
- None asked for
- Install scripts
- None found
Network hosts it talks to 1
codeload.github.com· found in install command
Files it touches
~/.claude/skills/learn
What's inside
- Skill name
learn- Description
- Maintain persistent memory across sessions using a .context/ directory. Only activates when .context/ already exists OR the user explicitly asks to initialize it. When active, use it to recall prior context at session start, record learnings after significant tasks, or when the user asks you to remember something. Also handles memory consolidation and defragmentation.
- License
- MIT
- Instructions
- 121 lines in SKILL.md · view on GitHub
Files (3)
- SKILL.md
- CONSOLIDATION.md · references/
- FILE-FORMAT.md · references/
SKILL.md (first lines)
# Learn — Continuous Learning You maintain a `.context/` directory at the project root as your persistent memory. Inside it, structured markdown files with YAML frontmatter organize what you know. You control what stays loaded in context and what you retrieve on demand. **Important:** If no `.context/` directory exists, this skill is a complete no-op. Do not initialize, record, recall, or do anything else described here unless the user explicitly asks you to set up context tracking (e.g. "initialize .context", "start tracking context", "remember this"). ## When to use this skill - **No `.context/` directory exists** → Do nothing (no-op) unless the user explicitly asks to initialize - **User explicitly asks to initialize context tracking** → Initialize - **Starting a session with an existing `.context/`** → Recall - **After completing a task that changed code or a decision (`.context/` exists)** → Record - **User says "remember this" or similar** → Initialize first if needed, then Record - **Memory feels stale, disorganized, or bloated** → Consolidate or Defragment ## 1. Initialize Run this once per project, when no `.context/` directory exists. 1. Create the directory structure: ``` .context/ ├── system/ ├── domain/ └── learnings/ ``` 2. Add `.context/` to the project's `.gitignore` (if not already present). 3. Bootstrap initial memory by spawning concurrent subagents to explore the codebase. Assign each a distinct focus: - **Architecture** — entry points, module boundaries, data flow, deployment - **Patterns & conventions** — naming, file organization, component structure, idioms - **Dependencies & tooling** — key packages, build system, test framework, dev scripts 4. Merge subagent findings into initial memory files: - `system/overview.md` — project summary, tech stack, top-level structure - `system/preferences.md` — user preferences discovered so far (can be empty initially) - `domain/architecture.md` — system architecture and data flow - `domain/patterns.md` — recurring patterns and abstractions Follow the format in `references/FILE-FORMAT.md` for every file you create. ## 2. Record After completing a task or when the user asks you to remember something, persist the insight to `.context/`. ### What to record - Decisions and their rationale - Surprises — things that behaved differently than expected - Corrections to your prior understanding - User preferences and working style - Non-obvious relationships between parts of the codebase ### What to skip - Transient details (one-off debugging steps, temporary workarounds) - Things already documented in code comments or READMEs - Obvious facts about well-known libraries or frameworks ### How to record 1. Determine the right file. Check existing files in `.context/` first — append to an existing file if the topic matches. Create a new file only if no existing file covers the topic. 2. Write the entry following `references/FILE-FORMAT.md`. ## 3. Recall At the start of a task or session, load relevant memories. 1. List the `.context/` directory tree to see what memory files exist. 2. Read the YAML frontmatter (`description` field) of each file to understand its contents without loading the full body. 3. **Always load** every file in `system/`. 4. **Selectively load** files from `domain/` and `learnings/` based on the current task. Use the `description` and `importance` fields to decide. 5. If a task touches an area you have no memory of, note this as a gap — fill it during the Record step after the task. ## 4. Consolidate Periodically review and refine your memory. This converts raw, incremental notes into clean, organized knowledge. Do this: - After completing a major feature or multi-step task - At the end of a session, before the conversation closes - When you notice memory files have grown messy or contradictory - When the user asks you to clean up or consolidate your memory Follow the full checklist in `references/CONSOLIDATION.md`. The short version: 1. Review the files in `.context/` and the current conversation 2. Rewrite incremental notes into concise summaries 3. Promote stable learnings from `learnings/` into `domain/` 4. Delete information that is no longer accurate 5. Update all frontmatter descriptions Consider spawning a subagent for consolidation so it does not block the main interaction. ## 5. Defragment When memory files become unwieldy, reorganize them. - **Split** files that exceed ~200 lines into focused subtopic files - **Merge** small files that repeat each other into a single file - **Rename** files and directories whose names no longer reflect their contents - **Update** frontmatter descriptions after every structural change After defragmenting, verify the directory structure still makes sense by listing it and reading the updated frontmatter.
From yokuze/aix-config, MIT.
More from yokuze/aix-config
- 0.592score
app-store-readiness
yokuze
Prepare a mobile or desktop app, especially a Tauri v2 app, for App Store, Google Play, Mac App Store, and Microsoft Store publication.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
write-app-store-copy
yokuze
Research, write, rewrite, or review professional App Store and Google Play marketing copy for any kind of app or game, including names, subtitles, short…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
mobile-game-patterns
yokuze
Use any time you are designing new features, brainstorming solutions, or modifying the UI of a mobile or desktop video game
SkillAFreshness: A★ 1Claude Code +9 - 0.432score
new-repo-setup
yokuze
Standardize a new or freshly-scaffolded project repository.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
npm-search
yokuze
Search for npm packages to solve problems instead of writing custom code.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
five-whys
yokuze
Conduct root cause analysis using the Five Whys technique.
SkillDFreshness: D★ 1Claude Code +9
Signals
- Stars
- 1
- Forks
- 1
- Open issues
- 0
- Last commit (this folder)
- Sep 21, 2026 (1 month ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/yokuze/aix-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
More from yokuze
- 0.592score
app-store-readiness
yokuze
Prepare a mobile or desktop app, especially a Tauri v2 app, for App Store, Google Play, Mac App Store, and Microsoft Store publication.
SkillAFreshness: A★ 1Claude Code +9 - 0.592score
write-app-store-copy
yokuze
Research, write, rewrite, or review professional App Store and Google Play marketing copy for any kind of app or game, including names, subtitles, short…
SkillAFreshness: A★ 1Claude Code +9 - 0.584score
mobile-game-patterns
yokuze
Use any time you are designing new features, brainstorming solutions, or modifying the UI of a mobile or desktop video game
SkillAFreshness: A★ 1Claude Code +9 - 0.432score
new-repo-setup
yokuze
Standardize a new or freshly-scaffolded project repository.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
npm-search
yokuze
Search for npm packages to solve problems instead of writing custom code.
SkillDFreshness: D★ 1Claude Code +9 - 0.432score
five-whys
yokuze
Conduct root cause analysis using the Five Whys technique.
SkillDFreshness: D★ 1Claude Code +9
Cite this page
learn skill. Agent Mart. https://agentmart.dev/skills/yokuze-learn (last updated 2026-10-24)