
memorize
Curates insights from reflections and critiques into CLAUDE.md using Agentic Context Engineering
- Installs
- 1.3K
- Last 24h
- —
- Trending rank
- —
- Security
- Not audited
Install
Works with every agent the skills CLI supports.
npx skills add https://github.com/neolabhq/context-engineering-kit --skill memorize- 01
Install
Run the command in your project. The CLI asks which agents to install for.
- 02
Describe the task
Ask your agent for something this skill covers. It loads memorize automatically when relevant.
- 03
Review the result
The agent follows the SKILL.md steps, scripts and references bundled with the skill.
SKILL.md
The instructions your agent reads when the skill is triggered.
Memory Consolidation: Curate and Update CLAUDE.md
<role> You are a memory consolidation specialist implementing Agentic Context Engineering (ACE). Your role is to capture insights from reflection and debate processes, then curate and organize these learnings into CLAUDE.md to create an evolving context playbook that improves future agent performance through structured knowledge accumulation. </role> <task> Transform reflections, critiques, verification outcomes, and execution feedback into durable, reusable guidance by updating `CLAUDE.md`. Use Agentic Context Engineering (ACE) principles to grow-and-refine a living playbook that improves over time without collapsing into vague summaries. </task> <context> This command implements the **Curation** phase of the Agentic Context Engineering framework: - **Generation**: Initial solutions and approaches (handled by main conversation) - **Reflection**: Analysis and critique of solutions (handled by /reflexion:reflect and /reflexion:critique) - **Curation**: Memory consolidation and context evolution (this command)Output must add precise, actionable bullets that future tasks can immediately apply. </context>
Memory Consolidation Workflow
Phase 1: Context Harvesting
First, gather insights from recent reflection and work:
- Identify Learning Sources:
- Recent conversation history and decisions
- Reflection outputs from
/reflexion:reflect - Critique findings from
/reflexion:critique - Problem-solving patterns that emerged
- Failed approaches and why they didn't work
If scope is unclear, ask: “What output(s) should I memorize? (last message, selection, specific files, critique report, etc.)”
- Extract Key Insights (Grow):
- Domain Knowledge: Specific facts about the codebase, business logic, or problem domain
- Solution Patterns: Effective approaches that could be reused
- Anti-Patterns: Approaches to avoid and why
- Context Clues: Information that helps understand requirements better
- Quality Gates: Standards and criteria that led to better outcomes
Extract only high‑value, generalizable insights:
- Errors and Gaps
- Error identification → one line
- Root cause → one line
- Correct approach → imperative rule
- Key insight → decision rule or checklist item
- Repeatable Success Patterns
- When to apply, minimal preconditions, limits, quick example
- API/Tool Usage Rules
- Auth, pagination, rate limits, idempotency, error handling
- Verification Items
- Concrete checks/questions to catch regressions next time
- Pitfalls/Anti‑patterns
- What to avoid and why (evidence‑based)
Prefer specifics over generalities. If you cannot back a claim with either code evidence, docs, or repeated observations, don’t memorize it.
- Categorize by Impact:
- Critical: Insights that prevent major issues or unlock significant improvements
- High: Patterns that consistently improve quality or efficiency
- Medium: Useful context that aids understanding
- Low: Minor optimizations or preferences
Phase 2: Memory Curation Process
Step 1: Analyze Current CLAUDE.md Context
# Read current context file
@CLAUDE.md
Assess what's already documented:
- What domain knowledge exists?
- Which patterns are already captured?
- Are there conflicting or outdated entries?
- What gaps exist that new insights could fill?
Step 2: Curation Rules (Refine)
For each insight identified in Phase 1 apply ACE’s “grow‑and‑refine” principle:
- Relevance: Only include items helpful for recurring tasks in this repo/org
- Non‑redundancy: Do not duplicate existing bullets; merge or skip if similar
- Atomicity: One idea per bullet; short, imperative, self‑contained
- Verifiability: Avoid speculative claims; link docs when stating external facts
- Safety: No secrets, tokens, internal URLs, or private PII
- Stability: Prefer strategies that remain valid over time; call out version‑specifics
Step 3: Apply Curation Transformation
Generation → Curation Mapping:
- Raw insight: [What was learned]
- Context category: [Where it fits in CLAUDE.md structure]
- Actionable format: [How to phrase it for future use]
- Validation criteria: [How to know if it's being applied correctly]
Example Transformation:
Raw insight: "Using Map instead of Object for this lookup caused performance issues because the dataset was small (<100 items)"
Curated memory: "For dataset lookups <100 items, prefer Object over Map for better performance. Map is optimal for 10K+ items. Use performance testing to validate choice."
Step 4: Prevent Context Collapse
Ensure new memories don't dilute existing quality context:
-
Consolidation Check:
- Can this insight be merged with existing knowledge?
- Does it contradict something already documented?
- Is it specific enough to be actionable?
-
Specificity Preservation:
- Keep concrete examples and code snippets
- Maintain specific metrics and thresholds where available
- Include failure conditions alongside success patterns
-
Organization Integrity:
- Place insights in appropriate sections
- Maintain consistent formatting
- Update related cross-references
If a potential bullet conflicts with an existing one, prefer the more specific, evidence‑backed rule and mark the older one for future consolidation (but do not auto‑delete).
Phase 3: CLAUDE.md Updates
Update the context file with curated insights:
Where to Write in CLAUDE.md
Create the file if missing with these sections (top‑level headings):
-
Project Context
- Domain Knowledge: Business domain insights
- Technical constraints discovered
- User behavior patterns
-
Code Quality Standards
- Performance criteria that matter
- Security considerations
- Maintainability patterns
-
Architecture Decisions
- Patterns that worked well
- Integration approaches
- Scalability considerations
-
Testing Strategies
- Effective test patterns
- Edge cases to always consider
- Quality gates that catch issues
-
Development Guidelines
- APIs to Use for Specific Information
- Formulas and Calculations
- Checklists for Common Tasks
- Review criteria that help
- Documentation standards
- Debugging techniques
-
Strategies and Hard Rules
- Verification Checklist
- Patterns and Playbooks
- Anti‑patterns and Pitfalls
Place each new bullet under the best‑fit section. Keep bullets concise and actionable.
Memory Update Template
For each significant insight, add structured entries:
## [Domain/Pattern Category]
### [Specific Context or Pattern Name]
**Context**: [When this applies]
**Pattern**: [What to do]
```yaml
approach: [specific approach]
validation: [how to verify it's working]
examples:
- case: [specific scenario]
implementation: [code or approach snippet]
- case: [another scenario]
implementation: [different implementation]
Avoid: [Anti-patterns or common mistakes]
- [mistake 1]: [why it's problematic]
- [mistake 2]: [specific issues caused]
Confidence: [High/Medium/Low based on evidence quality]
Source: [reflection/critique/experience date]
Phase 4: Memory Validation
Quality Gates (Must Pass)
After updating CLAUDE.md:
-
Coherence Check:
- Do new entries fit with existing context?
- Are there any contradictions introduced?
- Is the structure still logical and navigable?
-
Actionability Test: A developer should be able to use the bullet immediately
- Could a future agent use this guidance effectively?
- Are examples concrete enough?
- Are success/failure criteria clear?
-
Consolidation Review: No near‑duplicates; consolidate wording if similar exists
- Can similar insights be grouped together?
- Are there duplicate concepts that should be merged?
- Is anything too verbose or too vague?
-
Scoped: Names technologies, files, or flows when relevant
-
Evidence‑backed: Derived from reflection/critique/tests or official docs
Memory Quality Indicators
Track the effectiveness of memory updates:
Successful Memory Patterns
- Specific Thresholds: "Use pagination for lists >50 items"
- Contextual Patterns: "When user mentions performance, always measure first"
- Failure Prevention: "Always validate input before database operations"
- Domain Language: "In this system, 'customer' means active subscribers only"
Memory Anti-Patterns to Avoid
- Vague Guidelines: "Write good code" (not actionable)
- Personal Preferences: "I like functional style" (not universal)
- Outdated Context: "Use jQuery for DOM manipulation" (may be obsolete)
- Over-Generalization: "Always use microservices" (ignores context)
Implementation Notes
- Incremental Updates: Add insights gradually rather than massive rewrites
- Evidence-Based: Only memorize patterns with clear supporting evidence
- Context-Aware: Consider project phase, team size, constraints when curating
- Version Awareness: Note when insights become obsolete due to tech changes
- Cross-Reference: Link related concepts within CLAUDE.md for better navigation
Expected Outcomes
After effective memory consolidation:
- Faster Problem Recognition: Agent quickly identifies similar patterns
- Better Solution Quality: Leverages proven approaches from past success
- Fewer Repeated Mistakes: Avoids anti-patterns that caused issues before
- Domain Fluency: Uses correct terminology and understands business context
- Quality Consistency: Applies learned quality standards automatically
Usage
# Memorize from most recent reflections and outputs
/reflexion:memorize
# Dry‑run: show proposed bullets without writing to CLAUDE.md
/reflexion:memorize --dry-run
# Limit number of bullets
/reflexion:memorize --max=5
# Target a specific section
/reflexion:memorize --section="Verification Checklist"
# Choose source
/reflexion:memorize --source=last|selection|chat:<id>
Output
- Short summary of additions (counts by section)
- Confirmation that
CLAUDE.mdwas created/updated
Notes
- This command is the counterpart to
/reflexion:reflect: reflect → curate → memorize. - The design follows ACE to avoid brevity bias and context collapse by accumulating granular, organized knowledge over time (
https://arxiv.org/pdf/2510.04618). - Do not overwrite or compress existing context; only add high‑signal bullets.
Remember: The goal is not to memorize everything, but to curate high-impact insights that consistently improve future agent performance. Quality over quantity - each memory should make future work measurably better.
FAQ
What does the memorize skill do?
Curates insights from reflections and critiques into CLAUDE.md using Agentic Context Engineering
How do I install memorize?
Run npx skills add https://github.com/neolabhq/context-engineering-kit --skill memorize in your project. The skills CLI detects the agents you use and copies the skill into the right folder. For Claude Code you can also place the skill folder at ~/.claude/skills/memorize/ (personal) or .claude/skills/memorize/ (project).
Which AI agents can use memorize?
Any agent that supports the open Agent Skills format (a folder with a SKILL.md file), including Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, Windsurf, Cline, OpenCode and more.
Is memorize safe to install?
No partner security audit is available yet. Skills can run commands and scripts, so read the SKILL.md and any bundled files before installing.
Who maintains memorize?
It is published by neolabhq in neolabhq/context-engineering-kit. It has 1,283 recorded installs.
More from neolabhq/context-engineering-kit
prompt-engineering
neolabhq/context-engineering-kit
Use this skill when you writing commands, hooks, skills for Agent, or prompts for sub agents or any other LLM interaction, including optimizing prompts, improving LLM outputs, or designing production prompt templates.
thought-based-reasoning
neolabhq/context-engineering-kit
Use when tackling complex reasoning tasks requiring step-by-step logic, multi-step arithmetic, commonsense reasoning, symbolic manipulation, or problems where simple prompting fails - provides comprehensive guide to Chain-of-Thought and related prompting techniques (Zero-shot CoT, Self-Consistency, Tree of Thoughts, Least-to-Most, ReAct, PAL, Reflexion) with templates, decision matrices, and research-backed patterns
context-engineering
neolabhq/context-engineering-kit
Understand the components, mechanics, and constraints of context in agent systems. Use when writing, editing, or optimizing commands, skills, or sub-agents prompts.
reflect
neolabhq/context-engineering-kit
Reflect on previus response and output, based on Self-refinement framework for iterative improvement with complexity triage and verification
write-concisely
neolabhq/context-engineering-kit
Apply writing rules to any documentation that humans will read. Makes your writing clearer, stronger, and more professional.
kaizen
neolabhq/context-engineering-kit
Use when Code implementation and refactoring, architecturing or designing systems, process and workflow improvements, error handling and validation. Provide tehniquest to avoid over-engineering and apply iterative improvements.
Popular ai & agents skills
google-agents-cli-publish
google/agents-cli
This skill should be used when the user wants to "publish an agent", "publish my ADK agent", "register an agent with Gemini", "publish to Gemini" (formerly Gemini Enterprise), or needs guidance on the agents-cli publish gemini command. Also use when the user wants to "manage agents in Agent Registry", "list/update/delete registered agents", or "register an MCP server". Covers ADK vs A2A registration modes, programmatic and interactive usage, flag reference, auto-detection from deployment metadata, Agent Registry fleet management, and troubleshooting. Part of the agents-cli skills suite. Do NOT use for deployment (use google-agents-cli-deploy).
google-agents-cli-eval
google/agents-cli
This skill should be used when the user wants to "run an evaluation", "evaluate my agent", "evaluate my ADK agent", "write an eval dataset", "analyze eval failures", "compare eval results", "optimize agent", or needs guidance on the Gemini platform eval methodology and the Quality Flywheel. Covers eval metrics, dataset schema, LLM-as-judge scoring, and common failure causes. Applies to any agents-cli project, whatever framework the agent is written in. Do NOT use for agent API code patterns (ADK: use google-agents-cli-adk-code), deployment (use google-agents-cli-deploy), or project scaffolding (use google-agents-cli-scaffold).
skill-creator
anthropics/skills
Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.
codex-pet
prime-skills/runcomfy-agent-skills
Codex Pet generator on RunComfy. Build a Codex-compatible Codex Pet spritesheet.webp + pet.json from a single reference image, drop it into ${CODEXHOME:-$HOME/.codex}/pets/ / and Codex picks it up as a custom Codex Pet next to the 8 built-ins. This skill produces the exact Codex Pet atlas Codex expects (1536x1872 PNG/WebP, 8 cols x 9 rows, 192x208 cells, 9 animation states — idle, running-right, running-left, waving, jumping, failed, waiting, running, review). Calls OpenAI GPT Image 2 edit ONCE via the local RunComfy CLI as runcomfy run openai/gpt-image-2/edit to produce a canonical Codex Pet pose, then assembles all 9 animation rows programmatically with ImageMagick micro-transforms — no Codex Pro, no $imagegen, no OPENAIAPIKEY required, only RUNCOMFYTOKEN. Triggers on "codex pet", "create codex pet", "make codex pet", "hatch codex pet", "/hatch image", "desktop pet codex", "codex pets", "spritesheet.webp", or any explicit ask to build a custom pet for OpenAI Codex.
full-output-enforcement
leonxlnx/taste-skill
Overrides default LLM truncation behavior. Enforces complete code generation, bans placeholder patterns, and handles token-limit splits cleanly. Apply to any task requiring exhaustive, unabridged output.
executing-plans
obra/superpowers
Use when executing an implementation plan in the current session as the implementer yourself — your human partner chose inline execution, or no subagent tool is available