create-memory
About
The create-memory skill generates documentation files to capture important project knowledge like architectural decisions, implementation patterns, and key learnings. Developers should use it when making significant system changes, establishing new standards, or solving complex problems that warrant documentation. It automatically organizes memories in a structured directory and integrates with Claude's file editing tools.
Quick Install
Claude Code
Recommended/plugin add https://github.com/majiayu000/claude-skill-registrygit clone https://github.com/majiayu000/claude-skill-registry.git ~/.claude/skills/create-memoryCopy and paste this command in Claude Code to install this skill
Documentation
Create Memory Files
Track important learnings and decisions in .claude/memory/ files.
When to Use
- Just implemented major feature or system
- Made important architectural decision
- Discovered critical project patterns
- User says "remember this" or "track this"
- Solved complex bug with important learnings
- Established new workflow or standard
Current Memory Files
.claude/memory/
├── research-first-enforcement.md # How research-first is enforced
├── coding-standards.md # TypeScript, style, errors
├── testing-standards.md # NO MOCKS, Bun, Playwright
├── architecture-patterns.md # Tech stack, patterns
├── common-workflows.md # DB migrations, API, 3D, git
├── build-commands.md # Dev, build, test commands
├── asset-forge-guide.md # Project specifics
└── security-protocols.md # Auth, API security, secrets
All imported in CLAUDE.md at root.
Memory File Template
# [Topic Name]
**Status**: [ACTIVE/DEPRECATED/IN-PROGRESS]
**Date**: [YYYY-MM-DD]
**Related**: [Other memory files, if any]
## Purpose
[Why this memory file exists - what problem does it solve?]
## Key Learnings
### 1. [Major Learning]
[Detailed explanation]
**Why it matters**: [Impact/importance]
### 2. [Major Learning]
[Detailed explanation]
**Example**:
\```[language]
[code example if applicable]
\```
## Implementation Details
[How this is actually implemented in the project]
**Files affected**:
- path/to/file1.ts
- path/to/file2.tsx
## Common Pitfalls
- ❌ [What NOT to do]
- ❌ [What NOT to do]
- ✅ [What to DO instead]
## Examples
### Good Example
\```[language]
[code showing correct pattern]
\```
### Bad Example
\```[language]
[code showing incorrect pattern]
\```
## Related Commands/Skills
- `/command-name` - [What it does]
- `skill-name` - [What it does]
## Future Considerations
[Things to watch out for, potential improvements]
Example Memory Files to Create
hyperscape-engine-integration.md
- How Hyperscape engine integrates with asset-forge
- Game world architecture
- Asset loading patterns
three-js-optimization-patterns.md
- LOD strategies
- Instancing for repeated models
- Material reuse
- Disposal patterns
privy-auth-integration.md
- JWT verification patterns
- User session management
- Auth middleware setup
drizzle-migration-workflow.md
- How we create migrations
- Schema change patterns
- Rollback strategies
api-testing-patterns.md
- How we test Elysia routes
- No-mock testing approach
- Integration test setup
After Creating Memory File
- Add to CLAUDE.md imports:
## [Section Name]
@.claude/memory/new-file-name.md
- Verify import:
grep "new-file-name" CLAUDE.md
Best Practices
- Be specific - Don't create vague "notes.md" files
- Include examples - Code examples make it memorable
- Date it - Track when learnings happened
- Update existing - Prefer updating existing memory over creating new
- Reference files - Link to actual code files affected
- Mark status - Is this current? Deprecated? In progress?
Memory File Lifecycle
- Create - When major learning happens
- Update - As patterns evolve
- Reference - Import in CLAUDE.md
- Deprecate - Mark outdated when patterns change
- Archive - Delete if truly obsolete (rare)
Memory vs Documentation
Memory files are for Claude, not users:
- Internal patterns and decisions
- "Why we do X instead of Y"
- Critical learnings from past mistakes
- Project-specific conventions
Documentation is for users:
- README.md
- API docs
- User guides
Keep them separate.
GitHub Repository
Related Skills
algorithmic-art
MetaThis Claude Skill creates original algorithmic art using p5.js with seeded randomness and interactive parameters. It generates .md files for algorithmic philosophies, plus .html and .js files for interactive generative art implementations. Use it when developers need to create flow fields, particle systems, or other computational art while avoiding copyright issues.
subagent-driven-development
DevelopmentThis skill executes implementation plans by dispatching a fresh subagent for each independent task, with code review between tasks. It enables fast iteration while maintaining quality gates through this review process. Use it when working on mostly independent tasks within the same session to ensure continuous progress with built-in quality checks.
executing-plans
DesignUse the executing-plans skill when you have a complete implementation plan to execute in controlled batches with review checkpoints. It loads and critically reviews the plan, then executes tasks in small batches (default 3 tasks) while reporting progress between each batch for architect review. This ensures systematic implementation with built-in quality control checkpoints.
cost-optimization
OtherThis Claude Skill helps developers optimize cloud costs through resource rightsizing, tagging strategies, and spending analysis. It provides a framework for reducing cloud expenses and implementing cost governance across AWS, Azure, and GCP. Use it when you need to analyze infrastructure costs, right-size resources, or meet budget constraints.
