agentleFS
memi-designmemi-design/memi/AGENTS.md

memi

AGENTS.md47 starsChanged 7 months agoMITView on GitHub

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
  1. Very specific:

    After every Mémoire engine commit: add the hash and message to CHANGELOG.md, log architectural decisions, and keep preview/changelog.html …

    line 104

≈ “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.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
AGENTS.md

Mémoire — Guidelines for Codex

<!-- CRITICAL: These top rules are highest priority. Repeat at bottom for recency anchoring. -->

Prime Directives

  1. 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.
  2. 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.
  3. 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.)
  4. 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.
  5. 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

DirectoryPurpose
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

LevelOutput FolderComposition Rule
atomcomponents/ui/Standalone primitives — composesSpecs must be empty
moleculecomponents/molecules/Composes 2-5 atoms
organismcomponents/organisms/Composes molecules and/or atoms, manages state
templatecomponents/templates/Page layout skeleton — defines structure, not content
pageUses PageSpecTemplate 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.

CategoryPurposeExamples
craftDesign craftMobile design, systems thinking, accessibility, animation
researchUser researchCompetitive analysis, data synthesis, survey design
connectIntegrationsNotion, Linear, Slack, custom API connectors
generateSpecialized codegenReact 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.

CommandPurpose
memi connectConnect to Figma (auto-discovers plugin)
memi pullExtract 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|reportResearch pipeline
memi tokensExport design tokens
memi compose "<intent>"Agent orchestrator: classify → plan → execute → report
memi previewStart localhost preview server
memi dashboardLaunch Mémoire dashboard
memi ia extract|create|show|validate|listInformation architecture tools
memi watchWatch specs for changes, auto-regenerate code
memi status / memi syncProject status / full sync pipeline
memi notes install <source>Install a Note (local path or github:user/repo)
memi notes listShow 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

SkillFileWhen to Load
Frontend toolingskills/memoire-design-tooling/SKILL.mdDefault beta workflow
SUPERPOWERskills/SUPERPOWER.mdInactive historical reference
/figma-useskills/FIGMA_USE.mdAny Figma canvas operation (base for all /figma-* skills)
/figma-generate-designskills/FIGMA_GENERATE_DESIGN.mdCreating new screens/pages from components
/figma-generate-libraryskills/FIGMA_GENERATE_LIBRARY.mdBuilding component library from codebase
/figma-auditskills/FIGMA_AUDIT.mdDesign system quality checks
/figma-prototypeskills/FIGMA_PROTOTYPE.mdInteractive prototypes with flows
/multi-agentskills/MULTI_AGENT.mdParallel agent orchestration
Atomic Designskills/ATOMIC_DESIGN.mdComponent classification reference
Component Catalogskills/COMPONENT_CATALOG.md56-component universal registry, spec scaffolding
Dashboard from Researchskills/DASHBOARD_FROM_RESEARCH.mdResearch data → dashboards
/motion-videoskills/MOTION_VIDEO_DESIGN.mdAnimation, motion, video production
Design System Referenceskills/DESIGN_SYSTEM_REFERENCE.mdCross-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)

  1. Complete authorized work with explicit capabilities; locked is the default
  2. Reuse existing components, props, tokens and stories; preserve consumer conventions
  3. Self-heal after every canvas write — screenshot and validate
  4. Validate explicit mappings, including checked-in fallbacks, against current code
  5. Load the right skill before acting

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.