skills/dojocodinglabs/memory-management/SKILL.md
Context tracking and decision logging patterns for intentional memory management in Claude Code Waypoint Plugin. Use when you need to remember user preferences, track decisions, capture context across sessions, learn from corrections, or maintain project-specific knowledge. Covers when to persist context, how to track decisions, context boundaries, storage mechanisms, and memory refresh strategies.
npx skillsauth add aiskillstore/marketplace memory-managementInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Guide Claude Code to intentionally capture, store, and use context, decisions, and preferences across sessions, enabling true "memory" that survives context resets and improves over time.
Automatically activates when you mention:
Without intentional memory:
With intentional memory:
Track signal, not noise:
User should always know what's stored:
.claude/memory/)/show-memory)Only capture what adds value:
Never store sensitive data:
Examples:
Storage location: .claude/memory/{skill-name}/preferences.json
Example:
{
"naming": {
"convention": "camelCase",
"learned_from": "user_correction",
"correction_count": 2,
"examples": [
"userId (not user_id)",
"createdAt (not created_at)"
],
"confidence": "high",
"last_updated": "2025-01-15T10:30:00Z"
}
}
Examples:
Storage location: .claude/memory/project/decisions.json
Example:
{
"decisions": [
{
"id": "auth-jwt-2025-01-15",
"date": "2025-01-15",
"decision": "Use JWT authentication instead of sessions",
"rationale": "Need stateless auth for mobile apps",
"alternatives_considered": [
"Session-based auth (rejected: not stateless)",
"OAuth only (rejected: need custom auth flow)"
],
"impact": "Requires database migration for refresh tokens",
"files_affected": [
"lib/supabase/auth.ts",
"app/api/auth/**/*.ts"
]
}
]
}
Examples:
Storage location: .claude/memory/{skill-name}/corrections.json
Example:
{
"corrections": [
{
"pattern": "Import style",
"count": 3,
"first_seen": "2025-01-10T09:00:00Z",
"last_seen": "2025-01-15T14:30:00Z",
"examples": [
"import { Component } from 'lib' ✓",
"import Component from 'lib' ✗"
],
"action": "Always use named imports",
"confidence": "high"
}
]
}
Examples:
Storage location: .claude/memory/project/knowledge.json
Example:
{
"tech_stack": {
"frontend": "Next.js 14, React 19, shadcn/ui, Tailwind",
"backend": "Supabase Edge Functions, PostgreSQL",
"deployment": "Vercel (frontend), Supabase (backend)",
"last_verified": "2025-01-15"
},
"structure": {
"components": "app/components/",
"pages": "app/(routes)/",
"api": "app/api/",
"supabase_functions": "supabase/functions/"
}
}
Capture immediately when:
Capture after confirmation when:
Don't capture:
.claude/memory/
├── project/
│ ├── knowledge.json # Tech stack, structure
│ ├── decisions.json # Architectural decisions
│ └── context.json # Current feature context
├── {skill-name}/
│ ├── preferences.json # User preferences for this skill
│ ├── corrections.json # User corrections tracked
│ └── learned_patterns.json # Patterns learned over time
└── .gitignore # Don't commit sensitive memory
Use JSON with clear structure:
{
"version": "1.0",
"created": "2025-01-15T10:00:00Z",
"last_updated": "2025-01-15T14:30:00Z",
"data": {
// Actual content
}
}
interface MemoryEntry {
version: string;
created: string; // ISO timestamp
last_updated: string; // ISO timestamp
expires?: string; // Optional expiry
confidence: 'low' | 'medium' | 'high';
source: 'user_stated' | 'user_correction' | 'inferred';
data: Record<string, any>;
}
Include:
Example Template:
## Decision: [Short Title]
**Date**: 2025-01-15
**Context**: [What problem were we solving?]
**Decision**: [What we decided to do]
**Rationale**:
- [Key reason 1]
- [Key reason 2]
**Alternatives Considered**:
- **Option A**: [Why rejected]
- **Option B**: [Why rejected]
**Impact**:
- Files: [List of affected files]
- Breaking: [Yes/No - details]
- Migration: [What needs to change]
**Trade-offs**:
- ✅ Pro: [Benefit]
- ❌ Con: [Drawback]
Always log:
Optional logging:
Don't log:
User corrections happen when:
interface Correction {
pattern: string; // What's being corrected
count: number; // How many times
first_seen: string; // ISO timestamp
last_seen: string; // ISO timestamp
examples: string[]; // Examples of correct/incorrect
action: string; // What to do instead
threshold: number; // Apply after N corrections
confidence: 'low' | 'medium' | 'high';
}
After threshold corrections (typically 2-3):
## First Correction
User: "Use named imports, not default"
Action: Note correction, don't apply yet
## Second Correction (same pattern)
User: "Again, please use named imports"
Action: Log pattern, apply going forward
Notify: "📚 Learned: Always use named imports"
## Future Usage
Claude automatically uses named imports
User can reset with: /clear-memory import-style
In Memory (.claude/memory/):
In Code/Config:
Rule of Thumb: If it can be in code, put it in code. Memory is for what code can't capture.
Memory should refresh when:
function isStale(memory: MemoryEntry, maxAge: string): boolean {
const age = Date.now() - new Date(memory.last_updated).getTime();
const maxAgeMs = parseAge(maxAge); // "7 days", "30 days"
return age > maxAgeMs;
}
Automatic Refresh:
Manual Refresh:
/refresh-memory # Refresh all
/refresh-memory [skill] # Refresh specific skill
/clear-memory [skill] # Clear and start fresh
Provide these commands to users:
# View memory
/show-memory # Show all memory
/show-memory [skill] # Show specific skill memory
# Clear memory
/clear-memory [skill] # Clear specific skill
/clear-all-memory # Clear everything (confirm first)
# Refresh memory
/refresh-memory # Refresh all memory
/refresh-memory [skill] # Refresh specific skill
# Export/backup
/export-memory # Export for backup
/import-memory [file] # Restore from backup
Memory management stores preferences and patterns. Context persistence stores current task state.
Example:
Memory management stores approved decisions. Plan approval handles future decisions requiring approval.
Example:
First Correction:
User: "Please use named imports instead of default"
Claude: ✓ Fixed import style
Action: Log correction in memory (count: 1)
Second Correction (same pattern):
User: "Again, use named imports"
Claude: ✓ Fixed import style
Action: Mark as learned pattern (count: 2)
Notify: "📚 Learned preference: Always use named imports"
Storage: .claude/memory/project/preferences.json
Future Usage:
Claude automatically uses named imports
User sees: "✓ Using your preferred import style (named imports)"
User Can Reset:
User: /clear-memory import-style
Claude: ✓ Cleared import style preference
✅ Safe:
❌ Never Store:
Transparency:
Control:
Memory management enables Claude Code to:
Key principle: Be selective, transparent, intentional, and respectful of user privacy.
Storage: .claude/memory/ directory with JSON files
Commands: /show-memory, /clear-memory, /refresh-memory
Use this skill to make Claude Code feel like it truly "remembers" your project!
development
Apple Human Interface Guidelines for content display components. Use this skill when the user asks about charts component, collection view, image view, web view, color well, image well, activity view, lockup, data visualization, content display, displaying images, rendering web content, color pickers, or presenting collections of items in Apple apps. Also use when the user says how should I display charts, what's the best way to show images, should I use a web view, how do I build a grid of items, what component shows media, or how do I present a share sheet. Cross-references: hig-foundations for color/typography/accessibility, hig-patterns for data visualization patterns, hig-components-layout for structural containers, hig-platforms for platform-specific component behavior.
tools
Automate HelpDesk tasks via Rube MCP (Composio): list tickets, manage views, use canned responses, and configure custom fields. Always search tools first for current schemas.
testing
Expert Haskell engineer specializing in advanced type systems, pure functional design, and high-reliability software. Use PROACTIVELY for type-level programming, concurrency, and architecture guidance.
tools
GraphQL gives clients exactly the data they need - no more, no less. One endpoint, typed schema, introspection. But the flexibility that makes it powerful also makes it dangerous. Without proper controls, clients can craft queries that bring down your server. This skill covers schema design, resolvers, DataLoader for N+1 prevention, federation for microservices, and client integration with Apollo/urql. Key insight: GraphQL is a contract. The schema is the API documentation. Design it carefully.