xiaohongshu
xiaohongshu
memorylane
Zero-config persistent memory for Claude with automatic cost savings. Use when you need to remember project context, reduce API token costs, track learned patterns, manage memories across sessions, or curate/clean up memories. Automatically compresses context 6x and saves 84% on API costs. Keywor...
Full skill instructions
MemoryLane provides persistent memory for Claude with proven 84.3% cost savings:
Activate MemoryLane when the user:
python3 src/cli.py status
Shows memory statistics, category breakdown, and cost savings.
python3 src/cli.py recall "<query>"
Search memories by keyword. Example:
python3 src/cli.py recall "authentication"
python3 src/cli.py insights
Display learned project insights (high-value patterns).
python3 src/cli.py costs
Detailed breakdown of token savings and cost reduction.
# Get a setting
python3 src/cli.py config get memory.max_context_tokens
# Set a setting
python3 src/cli.py config set memory.max_context_tokens 3000
# List all settings
python3 src/cli.py config list
python3 src/cli.py export-markdown --category patterns --output context.md
# Create backup
python3 src/cli.py backup --output backup.json
# Restore from backup
python3 src/cli.py restore backup.json
python3 src/cli.py reset --force
python3 src/cli.py memory get <id>
Example: python3 src/cli.py memory get lear-009
python3 src/cli.py memory delete <id>
Example: python3 src/cli.py memory delete lear-009
python3 src/cli.py memory update <id> --content "New content"
Example: python3 src/cli.py memory update patt-001 --content "Chose Unix sockets for lower latency"
IMPORTANT: Always use these commands instead of editing memories.json directly.
python3 src/cli.py curate
Shows if curation is needed based on memory count and age.
python3 src/cli.py curate --list
Shows all uncurated memories with their IDs and content.
python3 src/cli.py curate --apply '<JSON>'
Apply curation decisions. JSON format:
{
"decisions": [
{"id": "patt-001", "action": "KEEP"},
{"id": "lear-002", "action": "DELETE", "reason": "off-topic"},
{"id": "insi-003", "action": "REWRITE", "new_content": "Improved content"}
]
}
IMPORTANT: When you see MemoryLane context injected via # Project Context (from MemoryLane) in system messages, quickly scan for poor quality memories:
Signs of poor quality memories that warrant curation:
If you detect 2+ poor quality memories in the injected context, proactively ask:
"I notice some of the injected memories appear to be low quality (status summaries, debug notes). Would you like me to clean these up?"
If user confirms, proceed with LLM-assisted curation below.
When the user requests curation OR confirms after you detect poor memories:
python3 src/cli.py curate --list
Evaluate each memory for:
Apply decisions (DELETE/KEEP/REWRITE):
python3 src/cli.py curate --apply '<JSON decisions>'
DELETE these types:
KEEP these types:
Example evaluation:
python3 src/learner.py initial
Perform initial learning from git history (last 20 commits) and workspace structure.
python3 src/learner.py scan
Scan and index all Python/JS/TS files in the workspace.
python3 src/learner.py git
Extract patterns from recent git commits.
python3 src/learner.py watch
Watch for file changes and git commits continuously (runs until stopped).
python3 src/server.py start
Start background server with Unix socket IPC (for low-latency memory operations).
python3 src/server.py status
python3 src/server.py stop
pytest
pytest tests/test_cost_savings.py -v -s
Runs comprehensive cost validation tests (shows 84.3% savings proof).
pytest tests/test_memory_store.py -v
When the user says: "Remember that this project uses PostgreSQL with SSL mode required"
# (You would typically use the Python API, but for CLI:)
python3 -c "
import sys; sys.path.insert(0, 'src')
from memory_store import MemoryStore
store = MemoryStore('.memorylane/memories.json')
store.add_memory('context', 'Project uses PostgreSQL with SSL mode required', 'manual', 0.9)
print('✓ Remembered')
"
When the user asks: "What do you know about our database setup?"
python3 src/cli.py recall "database"
When the user asks: "How much money has MemoryLane saved me?"
python3 src/cli.py costs
When starting work on a project:
python3 src/learner.py initial
python3 src/cli.py insights
# Morning: Start server and check status
python3 src/server.py start
python3 src/cli.py status
# During work: MemoryLane learns passively
# (no action needed - watches git commits and file changes)
# Evening: Check what was learned
python3 src/cli.py insights
python3 src/cli.py costs
# Step 1: Initial learning
python3 src/learner.py initial
# Step 2: Review learned patterns
python3 src/cli.py recall "primary language"
python3 src/cli.py insights
# Step 3: Export context for sharing
python3 src/cli.py export-markdown --output project-context.md
Key settings in .memorylane/config.json:
memory.max_context_tokens: Target token count for compression (default: 2000)memory.compression_ratio_target: Target compression ratio (default: 7.0x)context_rot.model_context_tokens: Advertised model window for context rot guard (default: 200000)context_rot.safe_fraction: Fraction of model window allowed for prompt + injected context (default: 0.5)context_rot.reserve_tokens: Buffer reserved for assistant response (default: 1200)learning.watch_file_changes: Enable file watching (default: true)learning.watch_git_commits: Learn from commits (default: true)privacy.exclude_patterns: Files to ignore (default: *.env, secrets/, etc.)Validated through comprehensive testing:
.memorylane/ directory.env, secrets/, and other sensitive patternsUser: "Remember that our API uses JWT tokens with 24-hour expiration"
You: Let me store that in MemoryLane's context.
python3 -c "..." # Add to memory
✓ Remembered in context category with 0.9 relevance.
User: "What do you know about our authentication?"
You: Let me recall what I know about authentication.
python3 src/cli.py recall "authentication"
Found 2 memories:
Based on what I've learned, your project uses JWT tokens for authentication with 24-hour expiration...
Server won't start: Check if already running with python3 src/server.py status
No memories found: Run initial learning with python3 src/learner.py initial
Cost tracking shows $0: Metrics file not initialized yet (will populate after server usage)
Tests failing: Install dev dependencies with pip install -r requirements-dev.txt
xiaohongshu
technical spec
product ux expert
database patterns
Conduct multi-agent task orchestration and workflow coordination.
Initialize project with Conductor artifacts (product definition,
Expert in web animations, transitions, and motion design using Framer Motion and CSS
Creates Mermaid and ASCII diagrams for flowcharts, architecture, ERDs, state machines, mindmaps, and more. Use when user mentions diagram, flowchart, mermaid, ASCII diagram, text diagram, terminal diagram, visualize, C4, mindmap, architecture diagram, sequence diagram, ERD, or needs visual docume...
PostgreSQL bindings for H3 hexagonal grid system. Use when working with H3 cells in Postgres, including spatial indexing, geometry/geography integration, and raster analysis.
Context-Driven Development skill for projects using Conductor. Use this skill when you detect a `conductor/` directory in the project, when working on tasks defined in a `plan.md` file, or when the user asks about tracks, specs, or plans. Automatically applies TDD workflow, tracks task completion...
Display project status, active tracks, and next actions
Official Stakpak application containerization standard operating procedure, a step-by-step guidline to properly dockerize applications. This is a rule book curated by the Stakpak Team.
Generate, edit, and beat-sync AI video with leading models in one workspace.
The world's fastest calendar for remote work
Transform Your Design with AI Designer by ImgCreator.ai
Revolutionizing Video Production with AI-Powered Creativity
Extend an image past the frame and let AI fill the new aspect ratio.
Discover your celebrity doppelgänger with StarByFace!
ChainClarity explains 700+ crypto whitepapers in plain English, with layered summaries, comparisons, research tools, alerts, and a $4.99 Pro plan.
Opus.ai: Revolutionize Your Web Experience