mex
БесплатноЗапускает вложенные скриптыНе проверенDrive mex (`mex-agent`), persistent project memory and code graphs for AI coding agents. One command scaffolds a living wiki, builds a deterministic code…
от akillness★ 63 звезды на GitHubОб этом скилле
Mex — persistent project memory for AI coding agents
Mex maps your code, turns what agents learn into structured Markdown, and keeps that knowledge connected to the implementation it describes. Every coding session starts with relevant architectural context instead of another full-repository scan.
When to use this skill
- Setting up a new project scaffold for an AI-assisted codebase (
mex-agent setup) - Building a symbol-grounded living wiki tied to exact source locations
- Getting a project anchor file (
AGENTS.md,CLAUDE.md,.cursorrules, ...) auto-generated so an agent picks up mex context as a standing rule, with no manual wiring - Keeping architectural notes, decisions, and conventions synchronized with code
- Running drift detection (
mex-agent check) to catch stale documentation - Syncing the wiki back to code after meaningful changes (
mex-agent sync) - Retrieving compact, task-scoped context instead of a full-repo grep
(
mex-agent graph scope "<task>") - Migrating an existing pre-0.7 project into graph grounding (
mex-agent graph ground)
When not to use this skill
- The project has no meaningful history or architecture worth preserving as living documentation
- Documentation is generated purely from source comments (docstrings only, no structured memory needed)
- The user only wants an MCP server right now — mex's MCP package
(
packages/mex-mcp) is not published; do not promise MCP integration (see Compatibility above and Step 5 below) - Real-time code inspection is more urgent than architectural context — mex complements, not replaces, LSP/IDE tools
Instructions
Step 1: One-shot auto-install (recommended)
bash .agent-skills/mex/scripts/install.sh /path/to/project
This is the fully automated path: it registers the skill, resolves an actual
mex-agent executable in the order MEX_AGENT_BIN → mex-agent →
$HOME/.local/bin/mex-agent → bare mex only when its version is a mex-agent
semantic version, and installs mex-agent plus an unambiguous wrapper when none
is available ([email protected] by default; MEX_AGENT_NPM_SPEC overrides). It
then runs mex-agent setup non-interactively (skipped if .mex/ already
exists — pass --force to re-run): mex-agent >= 0.8 gets --yes --tool <tool>,
0.7.x gets its numbered menu answer piped in. Exit 2 (scaffold created,
population pending) is reported and the install continues; any other non-zero
setup exit stops the installer. It then ensures the default Codex/jeo path has a
root AGENTS.md bridge, builds the code graph, runs mex-agent check, and
reports the installed anchors. It is idempotent and safe to re-run.
See --help for flags (--mode agent-memory, --force, --skip-skill,
--tool <claude|cursor|windsurf|copilot|opencode|codex|multiple|none>,
GLOBAL=1, AGENTS=<list>).
Known collision: machines with TeX Live installed (common via Homebrew on
macOS) already have a mex command — the pdfTeX Multilingual TeX format,
unrelated to this tool. mex --version disambiguates them: mex-agent prints
a bare semver (e.g. 0.7.1); TeX Live's prints pdfTeX .... install.sh and
scripts/mex.sh both resolve the unambiguous mex-agent wrapper first and
still report any shadowing bare mex, so detection does not block execution.
Step 2: What auto-install produces
mex-agent setup scaffolds (verified against mex-agent 0.7.1; the README's
own diagram is slightly aspirational — it shows an events/decisions.jsonl
that does not exist until you actually run mex-agent log):
.mex/
|-- AGENTS.md # small, always-loaded anchor (mirrors the root anchor)
|-- ROUTER.md # maps task types to relevant wiki pages
|-- SETUP.md # the "copy this into your agent" population prompt
|-- SYNC.md # the drift-repair prompt used by `mex-agent sync`
|-- config.json # scaffold id, detected AI tool(s)
|-- graph.db # the deterministic code graph (SQLite)
|-- context/
| |-- architecture.md
| |-- stack.md
| |-- setup.md
| |-- decisions.md
| `-- conventions.md
`-- patterns/
|-- INDEX.md
`-- README.md
Every context/*.md and patterns/* file is an empty template at this
point — mex-agent setup does not read your codebase and fill them in.
mex-agent 0.8.x stops with exit 2 ("Setup paused: scaffold population is still
required."); an agent session must run mex-agent setup next --start and do
what it prints until mex-agent setup exits 0. mex-agent 0.7.x instead prints a
long prompt (bounded by "COPY ABOVE THIS LINE" banners) to paste into your
coding agent's chat. Either way, that agent session is what actually writes
project-specific content into the scaffold. scripts/install.sh reports the
pending population step so it is never silently skipped.
One consequence of automating that prompt: mex's follow-up "Has population
finished?" grounding step is TTY-only (confirmAndCaptureGrounding bails when
stdin is
Установить mex в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
BashReadWriteEditGlobGrepВложенные файлы
FAQ
Что делает скилл mex?
Drive mex (`mex-agent`), persistent project memory and code graphs for AI coding agents. One command scaffolds a living wiki, builds a deterministic code graph, and installs a project anchor file (CLAUDE.md, root AGENTS.md, .cursorrules, .windsurfrules, copilot-instructions.md, or .opencode/opencode.json) that your agent auto-loads as a standing rule document. Use when the user wants to `mex setup` a new project, build a symbol-grounded wiki, keep knowledge connected to implementation, route relevant context to agents, or run drift detection (`mex check`, `mex sync`). Triggers on: "mex setup", "project memory", "code graphs", "codebase documentation", "drift detection", "agent memory", "structured scaffolds", "architectural context", "living wiki", "project anchor file".
Как установить скилл mex?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл mex запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
docx
Use this skill whenever the user wants to create, read, edit, or manipulate Word documents (.docx files) or Word templates (.dotx files). Triggers include…
от AnthropicUse this skill whenever the user wants to do anything with PDF files. This includes reading or extracting text/tables from PDFs, combining or merging multiple…
от Anthropicxlsx
Use this skill any time a spreadsheet file is the primary input or output. This means any task where the user wants to: open, read, edit, or fix an existing…
от Anthropicpptx
Use this skill any time a .pptx or .potx file is involved in any way — as input, output, or both. This includes: creating slide decks, pitch decks, or…
от Anthropic