memi
AGENTS.md47 starsChanged 7 months agoMITView on GitHub
Where files are headingNew AGENTS.md files have more rules about keeping secrets out of the code, and fewer about checking a change actually works.
Of the AGENTS.md files we read, the 11,773 first seen in the last six months, against the older ones: the kind of rule that gained most share, and the kind that lost most. About files like this in general, not this one, and an estimate, since a kind is a pattern in the words.
In this repository8 other files it gives its agents.
- .claude/rules/agents.mdAGENTS.md
- CLAUDE.mdCLAUDE.md
- llms.txtllms.txt
- audit-frontend-designSkill
- build-swiftui-interfaceSkill
- enforce-design-ciSkill
- memoire-design-toolingSkill
- remember-design-systemSkill
The file
We split this AGENTS.md into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 104
After every Mémoire engine commit: add the hash and message to CHANGELOG.md, log architectural decisions, and keep preview/changelog.html …
≈ “Common” is an estimate: at least 1 in 5 of the 16,595 AGENTS.md files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Mémoire — Guidelines for Codex
<!-- CRITICAL: These top rules are highest priority. Repeat at bottom for recency anchoring. -->Prime Directives
- Complete authorized work autonomously — use the smallest relevant evidence and explicit execution capabilities. Memi's locked profile is the default; no skill or design artifact grants additional authority.
- Reuse the existing system — identify component responsibilities and reuse exports, props, tokens, and stories. Memi's own Atomic Design conventions do not require consumer repositories to migrate.
- Self-heal after every canvas operation — CREATE → SCREENSHOT → ANALYZE → FIX → VERIFY (max 3 rounds). (Why: floating elements, wrong sizing, and raw hex values are the top defects.)
- Check mappings before creating components — use native Code Connect when available, otherwise an explicitly sourced checked-in mapping. Validate it against current code; report stale or conflicting evidence.
- Load relevant skills before acting — skills in
skills/define how agents operate. Read the skill file that matches your task.
What is Mémoire
Memi supplies deterministic frontend evidence and interface checks to coding harnesses. The published 2.8.0-beta.2 beta on npm next reads bounded repository inputs, normalizes host-supplied Figma/Paper references, and identifies existing components/tokens/stories. Locked stdio does not autodiscover Figma, start sockets, or write project state. npm stable remains 2.7.9; see docs/FRONTEND_WORKFLOW.md and docs/trust/ACCEPTANCE_LEDGER.md for beta scope and remaining stable-release gates.
Architecture
| Directory | Purpose |
src/engine/ | Core orchestrator, project detection, registry |
src/figma/ | Figma bridge (WebSocket auto-discovery on ports 9223-9232), tokens, stickies |
src/research/ | Research engine (Excel, web, stickies → insights) |
src/specs/ | Spec types (component, page, dataviz, design, ia) + Zod validation |
src/codegen/ | Code generation (shadcn mapper, dataviz, pages) → atomic folders |
src/notes/ | Mémoire Notes — downloadable skill packs (loader, resolver, installer) |
src/preview/ | Localhost preview gallery (HTML + API server) |
src/agents/ | Agent orchestrator, multi-agent support, self-healing, box widgets |
src/tui/ | Terminal UI (Ink/React) |
src/commands/ | CLI commands (Commander.js) |
skills/ | Built-in skill definitions — ship with the npm package |
plugin/ | Figma plugin (auto-discovers Mémoire on ports 9223-9232) |
Atomic Design Levels
| Level | Output Folder | Composition Rule |
atom | components/ui/ | Standalone primitives — composesSpecs must be empty |
molecule | components/molecules/ | Composes 2-5 atoms |
organism | components/organisms/ | Composes molecules and/or atoms, manages state |
template | components/templates/ | Page layout skeleton — defines structure, not content |
page | Uses PageSpec | Template filled with real content and data |
Stack & Conventions
- shadcn/ui exclusively for components (Why: consistent API, Code Connect parity with Figma)
- Tailwind exclusively for styling — no CSS modules, no styled-components
- TypeScript strict — all code strictly typed
- Zod schemas — all data shapes validated
- Spec-first — every component starts as a JSON spec before code generation
- Node.js 20+, TypeScript 5.x, ESM modules, Commander.js, Ink, WebSocket, ExcelJS, Recharts, Vite
Mémoire Notes (Downloadable Skill Packs)
Notes extend what Mémoire can do. Each Note is a folder with note.json manifest + markdown skill files.
| Category | Purpose | Examples |
| craft | Design craft | Mobile design, systems thinking, accessibility, animation |
| research | User research | Competitive analysis, data synthesis, survey design |
| connect | Integrations | Notion, Linear, Slack, custom API connectors |
| generate | Specialized codegen | React Native, Vue, SwiftUI, Flutter |
Notes are loaded at engine init and injected into agent prompts when their activateOn context matches the classified intent. Built-in skills (in skills/) are auto-adapted as Notes.
Storage: .memoire/notes/{note-name}/note.json
Historical CLI Surface
The table below describes legacy product areas, not the 2.8 support contract. Many paths are deliberately deferred in every profile; use docs/trust/COMMAND_SUPPORT.json. Begin beta work with memi agent brief . --frontend --json --intent "<task>", memi diagnose . --no-write --json, or the four locked MCP read tools. Do not replay unavailable recipes or add broad grants to bypass a denial.
| Command | Purpose |
memi connect | Connect to Figma (auto-discovers plugin) |
memi pull | Extract design system from Figma |
memi spec component|page|dataviz <name> | Create a spec |
memi generate [name] | Generate code from specs → atomic folders |
memi research from-file|from-stickies|synthesize|report | Research pipeline |
memi tokens | Export design tokens |
memi compose "<intent>" | Agent orchestrator: classify → plan → execute → report |
memi preview | Start localhost preview server |
memi dashboard | Launch Mémoire dashboard |
memi ia extract|create|show|validate|list | Information architecture tools |
memi watch | Watch specs for changes, auto-regenerate code |
memi status / memi sync | Project status / full sync pipeline |
memi notes install <source> | Install a Note (local path or github:user/repo) |
memi notes list | Show all installed Notes with status |
memi notes remove <name> | Uninstall a Note |
memi notes create <name> | Scaffold a new Note |
memi notes info <name> | Show Note details |
Skills
| Skill | File | When to Load |
| Frontend tooling | skills/memoire-design-tooling/SKILL.md | Default beta workflow |
| SUPERPOWER | skills/SUPERPOWER.md | Inactive historical reference |
| /figma-use | skills/FIGMA_USE.md | Any Figma canvas operation (base for all /figma-* skills) |
| /figma-generate-design | skills/FIGMA_GENERATE_DESIGN.md | Creating new screens/pages from components |
| /figma-generate-library | skills/FIGMA_GENERATE_LIBRARY.md | Building component library from codebase |
| /figma-audit | skills/FIGMA_AUDIT.md | Design system quality checks |
| /figma-prototype | skills/FIGMA_PROTOTYPE.md | Interactive prototypes with flows |
| /multi-agent | skills/MULTI_AGENT.md | Parallel agent orchestration |
| Atomic Design | skills/ATOMIC_DESIGN.md | Component classification reference |
| Component Catalog | skills/COMPONENT_CATALOG.md | 56-component universal registry, spec scaffolding |
| Dashboard from Research | skills/DASHBOARD_FROM_RESEARCH.md | Research data → dashboards |
| /motion-video | skills/MOTION_VIDEO_DESIGN.md | Animation, motion, video production |
| Design System Reference | skills/DESIGN_SYSTEM_REFERENCE.md | Cross-industry component gallery, 110+ systems indexed |
Changelog Protocol
After every Mémoire engine commit: add the hash and message to CHANGELOG.md, log architectural decisions, and keep preview/changelog.html in sync. This tracks Mémoire the product — user project state lives in .memoire/ locally.
Prime Directives (Repeated — recency anchor)
- Complete authorized work with explicit capabilities; locked is the default
- Reuse existing components, props, tokens and stories; preserve consumer conventions
- Self-heal after every canvas write — screenshot and validate
- Validate explicit mappings, including checked-in fallbacks, against current code
- Load the right skill before acting
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

