# MDDB > MDDB is a Markdown database that people edit directly and agents read and write structurally. The Markdown file is the only persistent source: tables are projected into in-memory SQLite per operation and edits are written back narrowly. It ships a CLI, a local block workspace with a revision-bound resource API, and an Agent Skill. Facts for agents: - Install with `npm install -g @peiiii/mddb` (or `pipx install 'git+https://github.com/Peiiii/mddb.git#v0.1.0'`). Requires macOS or Linux with Python 3.10+; the npm launcher also needs Node.js 18+. Native Windows is not supported (use WSL). MDDB is not published on PyPI. - Prefer `mddb skill install --target .agents/skills`: it installs the Skill matching the installed MDDB version and refuses to overwrite a modified copy. The raw Skill files below track the latest documentation. - The workspace and resource API run only on the user's own machine (default http://127.0.0.1:8772, loopback only). This site never hosts, proxies or receives them. Never expose the local service to the network to reach it. - Every write: read, preview (`--dry-run` or `POST …/preview`), save, read back. Resource writes carry the latest `revision`; on HTTP 409 reread and reassess, never replay. Lists/tasks take item actions; tables take row/column actions; never mix them. ## Agent Skill - [SKILL.md](https://mddb.peiiii.com/skills/mddb/SKILL.md): Agent Skill entry point: choosing CLI or local resource API, preview/save/read-back, list versus table semantics, conflict and authorization rules (English). - [agents/openai.yaml](https://mddb.peiiii.com/skills/mddb/agents/openai.yaml): Skill display metadata for agents that read agents/openai.yaml. - [references/resources.md](https://mddb.peiiii.com/skills/mddb/references/resources.md): Skill reference for local block resources: actions, revision conflicts, registration (English). ## Contracts - [CLI and Markdown contract](https://mddb.peiiii.com/docs/cli.md): CLI and Markdown contract: commands, table markers, types, namespaces, HTML snapshots (English). - [Local resource API](https://mddb.peiiii.com/docs/resource-api.md): Local resource API contract: discovery, registration, per-resource actions, preview, revision and status codes (Chinese). ## Documentation (Chinese) - [AI 访问、Skill 安装与本机 API 安全使用](https://mddb.peiiii.com/guide/ai-access): how agents discover these files, install the Skill and use the local API safely - [快速开始](https://mddb.peiiii.com/guide/quickstart): install, init, query, preview, save, read back - [Agent 与 Skill](https://mddb.peiiii.com/guide/agent): when to use the CLI versus the resource API - [预览、保存与版本冲突](https://mddb.peiiii.com/guide/safe-writes): revision binding and HTTP 409 handling - [列表、待办与表格](https://mddb.peiiii.com/guide/lists-and-tables): entry versus record semantics ## Optional - [Source repository](https://github.com/Peiiii/mddb): code, issues and releases - [npm package @peiiii/mddb](https://www.npmjs.com/package/@peiiii/mddb)