poml
CLAUDE.md5k starsChanged 15 months agoMITView on GitHub
POML (Prompt Orchestration Markup Language) is a structured markup language for advanced prompt engineering with LLMs. It provides an HTML-like syntax with semantic components, comprehensive data handling, and a CSS-like styling system. The project consists of: The core POML processor is built with TypeScript and React:
- Installs packages
Trending
Quiet since August.about the whole repository
Who's talking about microsoft/poml
- A Hacker News story“POML: Prompt Orchestration Markup Language”Hacker News · Aug 10, 2025 · 109 points
- @matsuu.bsky.social“プロンプトオーケストレーション用マークアップ言語。Microsoftから。ほう”Bluesky · Aug 11, 2025 · 11 likes
- @github-trending.bsky.social“🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / poml ⭐ 634 (+307) 🗒 TypeScript Prompt Orchestration …”Bluesky · Aug 12, 2025 · 5 likes
- @buherator.bsky.social“LLM's let's you use natural language to extract data from computers. POML is a way to wrap your natural …”Bluesky · Aug 22, 2025 · 3 likes
- @github-trending.bsky.social“🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / poml ⭐ 2,643 (+511) 🗒 TypeScript Prompt Orchestration …”Bluesky · Aug 16, 2025 · 3 likes
The biggest 5 of 23 mentions linking to the repository that our crawl found. Each line is their own headline.
See all 23
Talked about on Bluesky, GitHub and Hacker News (23 times).
On Bluesky · 12
- Aug 11, 2025プロンプトオーケストレーション用マークアップ言語。Microsoftから。ほう — @matsuu.bsky.social11 likes and reposts
- Aug 12, 2025🚀 Skyrocketing! 🚀 (200+ new stars) 📦 microsoft / poml ⭐ 634 (+307) 🗒 TypeScript Prompt Orchestration Markup Language — @github-trending.bsky.social5 likes and reposts
- Aug 22, 2025LLM's let's you use natural language to extract data from computers. POML is a way to wrap your natural language prompts to XML to give it… — @buherator.bsky.social3 likes and reposts
- Aug 16, 2025🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / poml ⭐ 2,643 (+511) 🗒 TypeScript Prompt Orchestration Markup Language — @github-trending.bsky.social3 likes and reposts · 1 reply
- Sep 9, 2025Standardization of AI-Powered Development already started 🔥 ✅ AI Unified Process: aiup.dev ✅ spec-kit: github.com/github/spec-... ✅ Prompt… — @sivalabs.in2 likes and reposts
7 more on Bluesky
- Sep 6, 2025📦 microsoft / poml ⭐ 4,278 (+54) 🗒 TypeScript Prompt Orchestration Markup Language — @github-trending-js.bsky.social2 likes and reposts
- Aug 18, 2025GitHub - microsoft/poml: Prompt Orchestration Markup Language #microsoft #llms #prompt #markup #language #poml — @latitude77.bsky.social2 likes and reposts
- Aug 16, 2025🎉 Celebrating! 🎉 (500+ new stars) 📦 microsoft / poml ⭐ 2,682 (+511) 🗒 TypeScript Prompt Orchestration Markup Language — @github-trending-js.bsky.social2 likes and reposts · 1 reply
- Aug 13, 2025プロンプトマークアップ言語 "microsoft/poml: Prompt Orchestration Markup Language" https://github.com/microsoft/poml #LanguageModel #program — @azu.bsky.social2 likes and reposts
- Aug 12, 2025今日のGitHubトレンド microsoft/poml このリポジトリは、LLMの高度なプロンプトエンジニアリングを目的とした新しいマークアップ言語「POML」を提供します。… — @dailygithubtrends.bsky.social1 likes and repost
- Aug 10, 2025poml - Jazyk pro rychlou orchestraci promptů, zadání pro AI. Šikovný koncept — @365tipu.cz1 likes and repost
- Aug 10, 2025Microsoft POML – Prompt Orchestration Markup Language | Discussion — @hackernewsbot.bsky.social1 likes and repost
On GitHub · 10
- Aug 14, 2025[Feature request]: POML — danielmiessler/Fabric2 reactions · 1 comment
- Aug 5, 2026[Bug]: The MCP servers lack specification to specific models — LibreChat-AI/LibreChat0 reactions
- Jul 13, 2026feat(icon): add poml icon — vscode-icons/vscode-icons0 reactions · 1 comment
- Aug 16, 2025[News] 投稿 — Yuyz0112/koala-oss-app0 reactions · 6 comments
- Aug 14, 2025Check trending repo: microsoft/poml — uibm/trending-watcher0 reactions · 1 comment
5 more on GitHub
- Aug 14, 2025Weekly Journal Sources - Week of 2025-08-16 — beijaflor/gen-ai-journal0 reactions · 1 comment
- Aug 13, 2025AGENTS — future-ai-org/future-prototype-ts0 reactions
- Aug 13, 2025[Icon Request]: Prompt Orchestration Markup Language (.poml) — vscode-icons/vscode-icons0 reactions
- Aug 13, 2025Check trending repo: microsoft/poml — uibm/trending-watcher0 reactions · 1 comment
- Aug 11, 2025HN Top Posts 2025-08-11 — EFLql/hackernews-daily0 reactions
On Hacker News · 1
- Aug 10, 2025POML: Prompt Orchestration Markup Language109 points · 48 comments
In this repository2 other files it gives its agents.
- AGENTS.mdAGENTS.md
- packages/poml-browser/CLAUDE.mdCLAUDE.md
The file
We split this CLAUDE.md into the rules it gives an agent
5 rules. About 0 are common, 3 are distinctive, and 2 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
2
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 156
Create component in packages/poml/components/
- Very specific: line 159
Update component documentation by running npm run generate-component-spec
- Distinctive: line 166
Use Debug Console for inspection
- Distinctive: line 171
Test in VS Code with sample files
- Distinctive: line 172
Update syntax test cases
≈ “Common” is an estimate: at least 1 in 5 of the 12,729 CLAUDE.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.
Files
CLAUDE.md
This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
Project Overview
POML (Prompt Orchestration Markup Language) is a structured markup language for advanced prompt engineering with LLMs. It provides an HTML-like syntax with semantic components, comprehensive data handling, and a CSS-like styling system. The project consists of:
- VS Code Extension: Development environment with syntax highlighting, auto-completion, and live preview
- Node.js SDK: JavaScript/TypeScript library for POML processing
- Python SDK: Python wrapper around the Node.js implementation
- Browser Extension: Chrome extension for POML support in browsers
Development Commands
Build Commands
# Build all packages
npm run compile # Compile TypeScript to JavaScript
npm run build-extension # Build VS Code extension for production
npm run build-webview # Build webview components
npm run build-cli # Build CLI tool
# Build documentation and specs
npm run generate-component-spec # Generate componentDocs.json and components.md
npm run generate-vscodeignore # Generate .vscodeignore file to ignore node_modules except a few packages
# Build individual packages
cd packages/poml-build && npm run build # Build Node.js SDK
cd packages/poml-browser && npm run build # Build browser extension (with rollup)
# Development builds
npm run build-extension-dev # Build extension in dev mode
npm run watch-extension # Watch mode for extension
npm run watch # Watch mode for TypeScript compilationTesting Commands
npm test # Run all Jest tests
npm run test-vscode # Run VS Code extension tests
npm run lint # Run ESLint on packages directory
# Run specific test files
npx jest packages/poml/tests/components.test.tsPackage Management
npm run package # Create VSIX package for VS Code extension
npm run package:win # Create Windows-specific VSIX package
cd packages/poml-build && npm pack # Create Node.js SDK package, first compile TypeScript, then rollup
cd packages/poml-browser && npm run zip # Create browser extension ZIPPython Development
pip install -e . # Install Python package in development mode
pytest python/tests # Run Python testsArchitecture
Core Components (packages/poml/)
The core POML processor is built with TypeScript and React:
- File Handler (
file.ts): Handles POML file operations and context resolution - Reader System (current) (
base.tsx,presentation.tsx,util/reactRender.ts): Render the parsed POML elements to React server-side rendering components - Reader System (next) (
reader/): Lexer, tokenizer, CST/AST parsers for POML syntax (currently under development) - Components (
components/): React components for POML low-level elements (document, message, table, tree, webpage) - Writer (
writer.ts): Converts reader-produced intermediate representation to final output format - Utilities (
util/): Image processing, PDF handling, token counting, XML content assist
VS Code Extension (packages/poml-vscode/)
- Extension Entry (
extension.ts): Main activation and command registration - Panel System (
panel/): WebView panel management for preview functionality - LSP Server (
lsp/server.ts): Language Server Protocol implementation - Commands (
command/): Command handlers for preview, testing, gallery - Chat Integration (
chat/): VS Code chat participant for POML runner - Tests (
tests/,test-fixtures/): Tests based on VS Code extension testing framework (based on mocha)
Browser Extension (packages/poml-browser/)
- Background Script (
background/): Extension lifecycle management. Some privileged operations must be here. - Content Script (
contentScript): Webpage interaction scripts. Must be injected into the current opening tab to execute. - UI Components (
ui): React-based UI with Mantine components for sidebar panel. - Functions (
functions): Common utilities and functions. Clipboard, Google Docs, HTML, MS Word document handling.
Key File Patterns
- POML Files:
*.poml- Example or test files with POML markup - Test Files:
*.test.ts,*.test.js- Jest test files - Configuration:
tsconfig.json,webpack.config.*.js,rollup.config.* - Examples:
examples/*.poml- Sample POML files with various use cases - Gallery:
gallery/*.poml- Pre-built prompt templates available in the VS Code extension
Important Implementation Details
POML Processing Flow
- Parse: Tokenize and build AST from POML markup, and convert AST to React elements with component resolution
- Transform: Process React tree with data loading and template evaluation, transforming components into intermediate representation
- Render: Render the intermediate representation to final output format (HTML, JSON, etc.)
Data Component Loading
- Images: Supports base64 encoding, sharp processing for resizing
- Documents: Handles PDF, Word, Excel, CSV with specialized parsers
- Tables: CSV/Excel processing with D3-dsv
- Webpages: URL fetching with content extraction
Styling System
- CSS-like selectors for component styling
- Inline style attributes on POML elements
- Stylesheet definitions with cascading rules
- Presentation modes (text, JSON, XML formats)
Template Engine
- Variable interpolation with
{{ variable }} - Control flow:
<for>,<if>conditional rendering - Variable definitions with
<let>components - Context passing through component hierarchy
Environment Configuration
VS Code Settings
Configure in VS Code settings or .vscode/settings.json, if you have installed the extension:
poml.languageModel.provider: LLM provider (openai, openaiResponse, microsoft, anthropic, google)poml.languageModel.model: Model name or deploymentpoml.languageModel.apiKey: API authentication keypoml.languageModel.apiUrl: Custom API endpointpoml.languageModel.temperature: Sampling temperature (0-2)
Testing Strategy
- Unit Tests: Component-level testing with Jest
- Integration Tests: Full POML file processing validation
- Example Validation: Automated testing of example files
- VS Code Tests: Extension-specific test suite
- Python Tests: pytest for Python SDK wrapper
Common Development Tasks
Adding a New POML Component
- Create component in
packages/poml/components/ - Add TypeScript types
- Write unit tests
- Update component documentation by running
npm run generate-component-spec
Debugging the VS Code Extension
- Open project in VS Code
- Launch Extension Development Host
- Set breakpoints in TypeScript files
- Use Debug Console for inspection
Updating Language Grammar
- Modify
poml.tmLanguage.json - Test in VS Code with sample files
- Update syntax test cases
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
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.

