From automaker-tools
This skill should be used when the user asks to "manage Automaker memory", "add a learning", "create memory files", "organize project memory", "update .automaker/memory", "view agent learnings", or wants to interact with the Automaker memory system. Also use when discussing memory file YAML frontmatter, memory scoring, smart memory selection, or how to help AI agents learn from past feature implementations.
How this skill is triggered — by the user, by Claude, or both
Slash command
/automaker-tools:memory-managerThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
The Automaker memory system persists learnings across feature implementations so AI agents benefit from past experience. Memory files live at `.automaker/memory/*.md` within each project. Each file uses YAML frontmatter for metadata and a markdown body for the actual learnings. Automaker smart-selects the most relevant memory files for each feature based on a scoring algorithm, injecting them i...
The Automaker memory system persists learnings across feature implementations so AI agents benefit from past experience. Memory files live at .automaker/memory/*.md within each project. Each file uses YAML frontmatter for metadata and a markdown body for the actual learnings. Automaker smart-selects the most relevant memory files for each feature based on a scoring algorithm, injecting them into agent prompts under a # Project Memory heading.
.automaker/memory/patterns.md, gotchas.md)_index.md as a human-readable project overview (note: _index.md is explicitly excluded from agent memory loading and scoring — it serves as documentation only)The function loadRelevantMemory(projectPath, featureTitle, featureDescription, fsModule) in @automaker/utils drives memory selection:
_index.md (excluded from scoring and loading — use it only as human-readable project documentation).md file using weighted term matching against the feature title and description (see references/scoring-algorithm.md for the complete algorithm)score > 0 or importance >= 0.9gotchas.md even if not scored# Project MemorySupporting functions:
appendLearning(projectPath, category, learning) — add new entries programmaticallyincrementUsageStat(filePath, stat) — atomically update loaded/referenced/successfulFeatures countersEvery memory file requires YAML frontmatter. See references/memory-format.md for the complete field specification.
---
tags:
- authentication
- jwt
- middleware
relevantTo:
- login
- session
- auth
summary: Authentication patterns and JWT handling conventions
importance: 0.8
relatedFiles: []
usageStats:
loaded: 0
referenced: 0
successfulFeatures: 0
---
# Authentication Patterns
## JWT Token Handling
- Always validate tokens in middleware before route handlers
- Use RS256 algorithm, never HS256 in production
Follow these principles when writing memory content:
apps/server/src/routes/").connection.timeout to 30000ms in database config" beats "Use appropriate timeouts.".automaker/memory/usageStats to identify files that are never loaded (potential candidates for better tagging or removal)When a file grows too large or covers too many topics:
| File | Purpose | Importance |
|---|---|---|
_index.md | Human-readable project overview (not loaded into agent context — documentation only) | N/A |
gotchas.md | Critical warnings, known pitfalls, things that break builds (always loaded) | >= 0.9 |
| File | Purpose | Typical Importance |
|---|---|---|
patterns.md | Codebase patterns and architectural conventions | 0.7 - 0.8 |
api-conventions.md | API design decisions, endpoint naming, response formats | 0.6 - 0.8 |
testing.md | Test patterns, fixture locations, mocking strategies | 0.6 - 0.7 |
deployment.md | Build pipeline notes, environment configuration | 0.5 - 0.7 |
dependencies.md | Package choices, version constraints, compatibility notes | 0.5 - 0.7 |
debugging.md | Common issues and their solutions, error patterns | 0.6 - 0.8 |
Adjust categories to fit the project. A data-heavy project might add database.md or migrations.md. A frontend-focused project might add styling.md or state-management.md.
Follow these steps to bootstrap memory for a project that has no .automaker/memory/ directory:
.automaker/memory/_index.md with:
_index.md is excluded from agent loading — it serves as human-readable documentation and a memory indexgotchas.md with:
importance: 0.9 or higherpatterns.md, api-conventions.md, testing.mdpatterns.md, dependencies.md, debugging.mdpatterns.md, api-conventions.md, dependencies.md_index.md---
tags:
- overview
- architecture
- setup
relevantTo:
- all
- onboarding
- new-feature
summary: Project overview, tech stack, and directory layout
importance: 0.9
relatedFiles: []
usageStats:
loaded: 0
referenced: 0
successfulFeatures: 0
---
# Project Index
## Tech Stack
- Runtime: Node.js 22 with TypeScript 5.9
- Framework: Express 5 + React 19
- Database: PostgreSQL 16 with Drizzle ORM
- Testing: Vitest (unit), Playwright (E2E)
## Key Directories
- `apps/server/src/routes/` — API route handlers
- `apps/ui/src/components/` — React components
- `libs/` — Shared packages
## Critical Conventions
- Import shared code from `@project/package-name`, never relative paths
- Run `npm run build:packages` after modifying any lib
The scoring algorithm determines which memory files an agent receives. Understanding the weights helps write better frontmatter:
Usage score uses rate-based formula: 0.5 + (referenced/loaded) * 0.3 + (successfulFeatures/referenced) * 0.2. New files get a neutral score of 1.0.
Final score: (tagScore + relevantToScore + summaryScore) * importance * usageScore. See references/scoring-algorithm.md for the complete algorithm with worked examples.
authentication.md not auth-stuff.md)relevantTo to broader categories that encompass multiple featuresnpx claudepluginhub jbactad/claude-pluginsOrganizes, extracts, prunes, and verifies Claude Code persistent memory files to keep MEMORY.md under the 200-line truncation limit and topic files up to date with project state.
Loads and applies project memories from prior sessions for consistent decisions, conventions, and preferences. Stores new entries automatically or via /remember.
Manages persistent local memory in .nemp/memories.json for Claude Code agents, storing project stack, architecture decisions, user preferences, and enabling cross-session context retention.