context.md

Your AI is only
as good as

your context files

System prompts. CLAUDE.md files. Skills. Specs. You're writing the most critical artifacts of the AI era. MDBook is the editor built for exactly that.

system-prompt.md
knowledge-base.md
1# System Prompt
2
3You are a senior code
4reviewer. Focus on:
5
6- **Security** vulnerabilities
7- API design consistency
8- Performance bottlenecks

System Prompt

You are a senior code reviewer. Focus on:

  • Security vulnerabilities
  • API design consistency
  • Performance bottlenecks
Ln 8, Col 32 ● Saved

You're writing the most important documents of the AI era in the wrong tools

--- your-current-workflow.md 4 problems found
- VS Code: no synced WYSIWYG preview. You write blind.
- Notion: exports messy markdown full of artifacts and broken formatting.
- Google Docs: doesn't speak markdown. Period.
- Obsidian: local-only vault. No sharing, no team collaboration.
+ MDBook: dual-pane editor. WYSIWYG + source, bidirectionally synced.
+ MDBook: exports clean, standard .md — zero proprietary artifacts.
+ MDBook: share by email or public URL. Your .md served raw via HTTP.
+ MDBook: organize into projects and nested folders. Find anything.

Rich text and raw source.
Always in sync.

Write in WYSIWYG when you want speed. Drop into raw markdown when you need precision. Both panes stay bidirectionally synced.

claude-instructions.md
rag-context.md
api-prompt.md
● Saved
1# Claude Instructions
2
3You are the AI assistant
4for our developer docs.
5
6## Tone
7
8- Direct and technical
9- No marketing language
10- Include code examples
11
12## Rules
13
14Never hallucinate API
15endpoints. If unsure,
16say so.

Claude Instructions

You are the AI assistant for our developer docs.

Tone

  • Direct and technical
  • No marketing language
  • Include code examples

Rules

Never hallucinate API endpoints. If unsure, say so.

Everything else you need

01

Project organization

Group files into projects. Nest folders up to 5 levels deep. Sidebar navigation with breadcrumbs.

/ai-context/
  /system-prompts/
  /knowledge-bases/
  /rag-documents/
02

Share & collaborate

Invite by email with editor or viewer permissions. Or generate a public URL that serves raw .md over HTTP.

curl mdbook.app/s/prompt-a3x9.md
→ returns raw markdown
03

Clean exports

Download .md with zero proprietary formatting. Standard markdown. No preprocessing before feeding to your LLM.

# System Prompt\n\n
You are a senior...
→ clean. standard. done.

Sync to your filesystem.
Work offline with your agents.

MDBook works great in the browser. But your AI agents work with local files. The CLI bridges that gap — push and pull markdown between MDBook and your filesystem so tools like Claude Code, Cursor, and Copilot can read your context files directly.

terminal
# install once
$ npm install -g @prmworks/mdbook
# log in with your mdbook account
$ mdbook-cli login
Logged in as pradeep (pradeep@example.com)
# link this folder to a project
$ mdbook-cli link
Linked! ./skills → ai-skills-project
# pull your files locally
$ mdbook-cli pull
Pulled 12 files
# edit locally, then push back
$ mdbook-cli push
Pushed 3 new, 2 updated
push

Upload local .md files to your MDBook project. New files created, changed files updated.

pull

Download your MDBook project to the current directory. Edit in the browser, pick up locally.

diff

Preview what's changed between local and remote before syncing. No surprises.

Requires Node.js 18+ npm i -g @prmworks/mdbook
auth
Passwordless OTP
invite
Collaboration
permission
Agent access
export
Standard .md
cli
Push / Pull
price
Free

Questions

$ Is MDBook free?
Yes. Completely free. No credit card, no trial, no "premium" tier waiting around the corner. Sign in with your email and that's it.
$ What makes this different from Notion or Obsidian?
Notion exports messy markdown with weird artifacts. Obsidian is local-only. no sharing, no collaboration. We built MDBook specifically for markdown that ends up in AI systems. Dual-pane editor that stays in sync, clean exports, and shareable URLs that serve raw .md.
$ Can I use my files with Claude, ChatGPT, or other LLMs?
That's why we built this. Export any file as .md, or share it via a public URL that returns raw markdown. Paste into a chat, curl it into a script, or drop it in as a CLAUDE.md file. No preprocessing needed.
$ How does the dual-pane editor work?
Left pane is raw markdown with syntax highlighting. Right pane is rich text WYSIWYG. They stay bidirectionally synced — edit in either, changes show up in both. You can also go source-only or preview-only if that's your thing.
$ How does sharing work?
Two ways. Invite people by email with editor or viewer access. they'll see the project on their dashboard. Or flip on a public link and your file gets a clean URL that serves raw markdown. Anyone (or any script) can fetch it.
$ Do I need to create an account?
Just an email. We send a 6-digit code, you type it in, done. No password, no OAuth popup, no nonsense. Takes maybe 10 seconds.
$ Where is my data stored?
File content goes to Cloudflare R2 (object storage). Metadata and project structure live in D1 (SQLite at the edge). Everything runs on Cloudflare's network.
$ Do I need the CLI?
Nope. MDBook works completely in the browser — write, organize, share, export. The CLI is optional, for people who want their markdown on the local filesystem so AI agents like Claude Code or Cursor can read the files directly. If you don't need that, you don't need the CLI.
$ Can I organize files into folders?
Yep. Projects hold folders, folders hold files. Nest up to 5 levels deep. You get a sidebar with the full tree and breadcrumb navigation.

Write the context
your AI deserves.

free. no credit card. just email.