Memorize logo

Memorize

OrganizationPopular
NeoLabHQ
memorize

Curates insights from reflections and critiques into CLAUDE.md using Agentic Context Engineering

Overview

PublisherNeoLabHQ
Repositorycontext-engineering-kit
Skill namememorize
Stars
1.7K
Forks
159
Bundled files
Instructions only
LicenseGPL-3.0
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by NeoLabHQ on GitHub. Read the source before you install it.

Installation

Install the Memorize AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/NeoLabHQ/context-engineering-kit.git /tmp/context-engineering-kit
mkdir -p .claude/skills
cp -r /tmp/context-engineering-kit/antigravity/skills/memorize .claude/skills/memorize
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Memorize in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Memorize on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Memorize is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

Memory Consolidation: Curate and Update CLAUDE.md

Output must add precise, actionable bullets that future tasks can immediately apply.

Memory Consolidation Workflow

Phase 1: Context Harvesting

First, gather insights from recent reflection and work:

  1. 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.)”

  1. 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.

  1. 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
bash
# 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:

  1. Consolidation Check:

    • Can this insight be merged with existing knowledge?
    • Does it contradict something already documented?
    • Is it specific enough to be actionable?
  2. Specificity Preservation:

    • Keep concrete examples and code snippets
    • Maintain specific metrics and thresholds where available
    • Include failure conditions alongside success patterns
  3. 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):

  1. Project Context

    • Domain Knowledge: Business domain insights
    • Technical constraints discovered
    • User behavior patterns
  2. Code Quality Standards

    • Performance criteria that matter
    • Security considerations
    • Maintainability patterns
  3. Architecture Decisions

    • Patterns that worked well
    • Integration approaches
    • Scalability considerations
  4. Testing Strategies

    • Effective test patterns
    • Edge cases to always consider
    • Quality gates that catch issues
  5. Development Guidelines

    • APIs to Use for Specific Information
    • Formulas and Calculations
    • Checklists for Common Tasks
    • Review criteria that help
    • Documentation standards
    • Debugging techniques
  6. 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:

markdown
## [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:

  1. Coherence Check:

    • Do new entries fit with existing context?
    • Are there any contradictions introduced?
    • Is the structure still logical and navigable?
  2. 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?
  3. 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?
  4. Scoped: Names technologies, files, or flows when relevant

  5. 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
  1. Incremental Updates: Add insights gradually rather than massive rewrites
  2. Evidence-Based: Only memorize patterns with clear supporting evidence
  3. Context-Aware: Consider project phase, team size, constraints when curating
  4. Version Awareness: Note when insights become obsolete due to tech changes
  5. 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

bash
# 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

  1. Short summary of additions (counts by section)
  2. Confirmation that CLAUDE.md was 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.

Frequently asked questions

What does the Memorize AI skill do?

Curates insights from reflections and critiques into CLAUDE.md using Agentic Context Engineering

Why use Memorize on TypingMind?

Because you install it once and use it with any model. Memorize is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Memorize in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/NeoLabHQ/context-engineering-kit/tree/master/antigravity/skills/memorize. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Memorize?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Memorize?

As many as you like. As long as a model supports skills, you can use Memorize with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Memorize AI skill free?

Yes. It is published on GitHub by NeoLabHQ under the GPL-3.0 license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇