Markdown Flow CLAUDE.md
MarkdownFlow extends standard Markdown with AI to create personalized, interactive documents. Tagline: "Write Once, Deliver Personally"
> Sourced from [ai-shifu/markdown-flow](https://github.com/ai-shifu/markdown-flow) โ [CC0-1.0](https://github.com/ai-shifu/markdown-flow/blob/6e9f8740826cb56f7bd8a5d1b312388d607daab7/CLAUDE.md).
# MarkdownFlow Agent Guide
_This document is shared by `CLAUDE.md`, `AGENTS.md`, and `GEMINI.md`._
Follow these notes alongside any agent-specific instructions provided by the hosting platform.
## Project Overview
MarkdownFlow is a Markdown format extension that enables AI-powered, personalized, and interactive documents. The tagline is "Write Once, Deliver Personally" (ไธๆฌกๅไฝ๏ผๅไบบๅ้ข). Documents written in MarkdownFlow can be processed by MarkdownFlow Agents to create well-formatted, personalized pages tailored to each reader.
## Repository Structure
This is the main documentation and landing page repository for the MarkdownFlow ecosystem. It contains:
- `home/index.html` - Homepage with project overview and examples
- `docs/` - MkDocs-based documentation site
- `.github/workflows/` - GitHub Actions for automated deployment
The actual MarkdownFlow implementations are in separate repositories under the ai-shifu organization:
- Frontend: markdown-flow-ui, remark-flow, markdown-it-flow
- Backend: markdown-flow-agent-py, markdown-flow-agent-go
## Common Commands
### Documentation Development
```bash
# Install MkDocs dependencies
pip install mkdocs-material pymdown-extensions
# Run MkDocs locally
cd docs
mkdocs serve
# Build documentation
mkdocs build --site-dir site --clean
```
### Pre-commit Hooks
```bash
# Install pre-commit
pip install pre-commit
# Install hooks
pre-commit install
# Run manually on all files
pre-commit run --all-files
```
### Deployment
The site automatically deploys to GitHub Pages when pushing to main branch via `.github/workflows/deploy-gh-pages.yml`. The workflow:
1. Copies the static homepage from `home/` and shared assets into `_site/`
2. Builds MkDocs documentation to `_site/docs/`
3. Deploys to GitHub Pages
## MarkdownFlow Core Principle
**IMPORTANT**: MarkdownFlow documents are written **for AI agents, not for human readers**. This is the fundamental paradigm that must be understood and applied throughout all documentation and examples.
- Content in MarkdownFlow documents serves as **instructions/prompts for AI** to generate personalized content
- Examples should demonstrate **AI instructions**, not direct user-facing content
- Traditional approach: "Welcome, John!" (content for humans)
- MarkdownFlow approach: "Generate a welcoming message for {{user_name}}" (instruction for AI)
## MarkdownFlow Syntax
The core MarkdownFlow syntax extensions:
1. **Variables**: `{{variable_name}}` - Dynamic content placeholders
2. **User Input**: `?[%{{variable}}Option1|Option2]` - Interactive buttons that store user choices
3. **Preserved Content**: `===content===` - Content that should not be interpreted by AI
## Documentation Guidelines
When updating documentation:
- Main documentation entry point is `docs/docs/en/index.md`
- Use formal, official tone for documentation
- **ALL examples must follow MarkdownFlow core principle**: Show AI instructions, not user content
- Examples should demonstrate practical use cases with proper "writing for AI" approach
- Navigation structure is defined in `docs/mkdocs.yml`
- Ensure consistency with the paradigm: "You write prompts for AI, not content for humans"
## Linting and Formatting
The repository uses:
- **markdownlint** for Markdown linting (config: `.markdownlint.yaml`)
- **prettier** for Markdown formatting
- **pre-commit** hooks that run automatically on commit
Key linting rules:
- Use ATX-style headings (`#`)
- Use dashes for unordered lists (`-`)
- Use fenced code blocks
- Line length limit is disabled (MD013: false)
## Important Files
- `.github/workflows/deploy-gh-pages.yml` - GitHub Pages deployment configuration
- `docs/mkdocs.yml` - MkDocs configuration and navigation structure
- `.pre-commit-config.yaml` - Pre-commit hooks configuration
- `.markdownlint.yaml` - Markdown linting rules
## Translation Glossary (Chinese)
This glossary provides standardized Chinese translations for MarkdownFlow terminology. It should be used as reference for all Chinese localization work to ensure consistency.
### Core Brand Terms
| English | Chinese | Notes |
|---------|---------|-------|
| MarkdownFlow | MarkdownFlow | Keep English brand name |
| MDFlow | MDFlow | Keep English abbreviation |
| MDF | MDF | Keep English abbreviation |
### Core Concepts
| English | Chinese | Notes |
|---------|---------|-------|
| Write Once, Deliver Personally | ไธๆฌกๅไฝ๏ผๅไบบๅ้ข | Project tagline |
| Write prompts for AI, not content for humans | ไธบ AI ๅๆ็คบ่ฏ๏ผ่้ไธบไบบ็ฑปๅๅ
ๅฎน | Core principle |
| AI-powered personalized documents | AI ้ฉฑๅจ็ไธชๆงๅๆๆกฃ | |
| Instructions for AI | AI ๆไปค | |
### Syntax Elements
| English | Chinese | Notes |
|---------|---------|-------|
| Variables | ๅ้ | `{{variable}}` |
| Interactive Elements | ไบคไบๅ
็ด | |
| Button| ๆ้ฎ| `?[%{{var}}Option]` |
| Input | ่พๅ
ฅๆก| `?[%{{var}}...input hint]` |
| Preserved Content | ็กฎๅฎๅ
ๅฎน | `===content===` |
| Preserved Output | ็กฎๅฎ่พๅบ| Same as above |
### Document Structure
| English | Chinese | Notes |
|---------|---------|-------|
| Content Prompt | ๅ
ๅฎนๆ็คบ่ฏ | Document body |
| Document Prompt | ๆๆกฃๆ็คบ่ฏ | Global settings |
| Template | ๆจกๆฟ | |
| Block | ๅ | |
| Content Block | ๅ
ๅฎนๅ | |
| Interaction Block | ไบคไบๅ | |
| Interaction | ไบคไบ | |
| Preserved Content | ็กฎๅฎๅ
ๅฎน | |
### Technical Components
| English | Chinese | Notes |
|---------|---------|-------|
| MarkdownFlow Agent | MarkdownFlow ๆบ่ฝไฝ | Processing engine |
| Frontend | ๅ็ซฏ | |
| Backend | ๅ็ซฏ | |
| SDK | SDK | Keep English |
| Playground | ไฝ้ชๅฐ | Interactive testing platform |
| Parser | ่งฃๆๅจ | |
| Renderer | ๆธฒๆๅจ | |
### Operations
| English | Chinese | Notes |
|---------|---------|-------|
| Parse | ่งฃๆ | |
| Render | ๆธฒๆ | |
| Generate | ็ๆ | |
| Process | ๅค็ | |
| Execute | ๆง่ก | |
| Analyze | ๅๆ | |
| Build | ๆๅปบ | |
| Deploy | ้จ็ฝฒ | |
### Documentation Sections
| English | Chinese | Notes |
|---------|---------|-------|
| Getting Started | ๅฟซ้ๅผๅง | |
| Introduction | ็ฎไป | |
| Core Concepts | ๆ ธๅฟๆฆๅฟต | |
| Quick Start | ๅฟซ้ไธๆ | |
| Integration | ้ๆ | |
| Next Steps | ไธไธๆญฅ | |
| Specification | ่ง่่ฏดๆ | |
| Overview | ๆฆ่ง | |
| How It Works | ๅทฅไฝๅ็ | |
## Content Consistency Rules
### Homepage Content Management
**CRITICAL**: The homepage has two content sources that MUST be kept in sync:
1. **Static HTML** (`home/index.html` and `home/zh/index.html`) - For SEO and initial page load
2. **Dynamic JavaScript** (`home/translations.js`) - The actual content users see
**The single source of truth is `home/translations.js`**. When updating homepage content:
1. ALWAYS update `home/translations.js` first (both English and Chinese sections)
2. Then update `home/index.html` to match the English version from translations.js
3. Update `home/zh/index.html` to match the Chinese version from translations.js
4. Update README files to use the same descriptions from translations.js
5. Never update only one file - they must always be synchronized
This prevents inconsistencies where:
- Search engines index different content than what users see
- Static HTML shows outdated information before JavaScript loads
- Different descriptions appear in various project locations
### Areas Requiring Synchronization
- Hero section (title and description)
- Features section (icons, titles, descriptions)
- Playground section (CTA text and subtext)
- Projects section (all project descriptions)
- Footer text
Add to your project
Paste into your project's CLAUDE.md or ~/.claude/CLAUDE.md for global rules.
More for Java
Node.js Express API
by @Claude Rules
Building scalable Node.js REST APIs with Express, middleware, and proper async patterns.
Awesome Claude Notes CLAUDE.md
by @loulanyue
๐ ๅธฎๅฉไฝ ๅฟซ้ๆญๅปบ Claude Code ไธ AI Agent ็ไบงๅๅทฅไฝๆต็ๅฎๆไปๅบ ๐ A practical toolkit to help you quickly build high-productivity workflows for Claude Code and AI agents
Coolify Docs CLAUDE.md
by @coollabsio
Documentation for Coolify
Transcriber CLAUDE.md
by @kossakovsky
Automated video-to-text transcription powered by ElevenLabs Scribe API with multi-language support and speaker diarization
Llm Driven System Design CLAUDE.md
by @evgenyvinnik
Collection of the system designs driven by LLMs
Obsidian Wechat Converter CLAUDE.md
by @DavidLam-oss
Obsidian ๅพฎไฟกๅ ฌไผๅทๆ็ๆไปถใๆฏๆ Markdown ่ฝฌๅ ฌไผๅทๆ ทๅผใไธ้ฎๅๆญฅ่็จฟ็ฎฑใๆฌๅฐๅพ็่ชๅจไธไผ ใๅฎ็พๆฏๆ LaTeX ๆฐๅญฆๅ ฌๅผ (SVG)ใๆฏๆๆ ็น็ฌฆๅทไธญๆๆ ๅๅๅค็ใ่ฎฉๆๆฏๅไฝๅๅฝ็บฏ็ฒนใ
MCP servers for Java
netdata/netdata#Netdata
๐๏ธ ๐ โ๏ธ ๐ ๐ ๐ช ๐ง - Discovery, exploration, reporting and root cause analysis using all observability data, including metrics, logs, systems, containers, processes, and network connections
eyaltoledano/claude-task-master
๐ โ๏ธ ๐ - AI-powered task management system for AI-driven development. Features PRD parsing, task expansion, multi-provider support (Claude, OpenAI, Gemini, Perplexity, xAI), and selective tool loadi
PipedreamHQ/pipedream
โ๏ธ ๐ - Connect with 2,500 APIs with 8,000+ prebuilt tools, and manage servers for your users, in your own app.
Browse by Tag
Get the Claude Code Starter Pack
Top CLAUDE.md rules for Next.js, TypeScript, Python, Go, and React โ free.
