poml / poml-browser
CLAUDE.md5k starsChanged 15 months agoMITView on GitHub
This file provides guidance to Claude Code when working with the POML browser extension package. The POML Browser Extension (packages/poml-browser/) provides POML support in web browsers through a Chrome extension. It enables users to extract content from web pages, manage it as cards, and convert it to POML format. Important notes on building and testing for Claude: As developers usually run a long-running watch process, please do not emit build commands by yourself. Do not run tests on your own.…
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
The file
We split this CLAUDE.md into the rules it gives an agent
9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈6
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 76
Use TypeScript path aliases for clean imports:
- Distinctive: line 88
Use Mantine's theme system and built-in spacing instead of implementing ad-hoc styles.
- Distinctive: line 116
Use Mantine spacing values from theme documentation:
- Distinctive: line 136
Avoid over-implementing custom styles when Mantine components provide the functionality
- Very specific: line 137
Use Mantine's color system with proper opacity (e.g., ${theme.colors.purple[5]}15 for 15 opacity, in hex)
- Distinctive: line 138
Prefer component props over inline styles
- Very specific: line 139
Use useMantineTheme() hook to access theme values in components
- Very specific: line 188
Use the everywhere function from common/rpc.ts for cross-context calls:
- Distinctive: line 216
Use the notify API instead of console.log for controllable and visible logging.
≈ “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 - POML Browser Extension
This file provides guidance to Claude Code when working with the POML browser extension package.
Project Overview
The POML Browser Extension (packages/poml-browser/) provides POML support in web browsers through a Chrome extension. It enables users to extract content from web pages, manage it as cards, and convert it to POML format.
Architecture
Core Components
- Background Script (
background/): Extension lifecycle management and privileged operations - Content Script (
contentScript/): Webpage interaction and content extraction - UI Components (
ui/): React-based extension popup with Mantine components - Common (
common/): Common utilities for clipboard, document handling, and POML processing (see below)
Key Files
manifest.json: Chrome extension manifestrollup.config.mjs: Build configuration with browser-specific aliases and stubstsconfig.json: TypeScript configuration for browser environmentpackage.json: Dependencies and build scripts
Key Implementations
- Centralized Types (
common/types.ts): Shared TypeScript interfaces and types. This is the source of truth for data structures. You may see some duplication in other packages temporarily. We are migrating to this centralized system. - RPC System (
common/rpc.ts): Cross-context communication between background, content script, and UI using a unified RPC mechanism. - Notification System (
common/notification.ts): User notifications with different verbosity levels. - Data Handling (
common/imports/): Utilities for parsing and converting various data formats (text, HTML, images, tables) to POML. - Event Handling (
common/events/): Utilities for processing events from various sources (local, remote, clipboard, drag-and-drop).
Build System
Commands
# Development builds
npm run build:dev # Build for development
npm run watch # Watch mode for development
# Production builds
npm run build:prod # Build for production
npm run zip # Alias for package
# Testing
npm run build:test # Build for testing
npm run test:vitest # Run unit tests with Vitest
npm run test:playwright # Run browser extension tests with PlaywrightImportant notes on building and testing for Claude: As developers usually run a long-running watch process, please do not emit build commands by yourself. Do not run tests on your own. Instead, ask the developer to run them and provide feedback.
Build Configuration
The extension uses Rollup with special configuration for browser environment:
Aliases and Stubs
Browser-incompatible Node.js modules are stubbed. Including but not limited to:
fs→stubs/fs.ts: File system operations (throws errors)sharp→stubs/sharp.ts: Image processing (minimal stub)pdfjs-dist→stubs/pdfjs-dist.ts: PDF processing (not available in extension)
Bundle Targets
- UI Bundle (
dist/ui/): Extension side panel interface - Background Script (
dist/background.js): Service worker - Content Script (
dist/contentScript.js): Page injection script
Development Guidelines
Module Import Aliases
Use TypeScript path aliases for clean imports:
// Module aliases defined in tsconfig.json
import { something } from '@common/*'; // Common utilities
import { component } from '@ui/*'; // UI components
import { service } from '@background/*'; // Background services
import { helper } from '@contentScript/*'; // Content script helpersStyling with Mantine
Use Mantine's theme system and built-in spacing instead of implementing ad-hoc styles.
Theme Object Usage
Remember that the system is redesigned to work with both light and dark modes. Pay special attention to color contrasts and visibility in both modes. Use primary and secondary colors from the theme if applicable.
const theme = useMantineTheme();
// ✅ Good: Using theme values
<div style={{
backgroundColor: `${theme.colors.purple[5]}15`,
border: `3px dashed ${theme.colors.purple[6]}`,
borderRadius: theme.radius.md,
fontSize: theme.fontSizes.lg,
color: theme.colors.purple[8]
}}>
// ❌ Bad: Hard-coded values
<div style={{
backgroundColor: 'rgba(128, 0, 255, 0.15)',
borderRadius: '8px',
fontSize: '18px'
}}>Spacing System
Use Mantine spacing values from theme documentation:
xs: 10pxsm: 12pxmd: 16pxlg: 20pxxl: 32px
// ✅ Good: Mantine spacing props
<Stack p="md" gap="xs">
<Group justify="space-between" mb="md">
<Button fullWidth fz="md">
// ❌ Bad: Ad-hoc styles
<div style={{ padding: '16px', marginBottom: '12px' }}>Important Style Notes
- Avoid over-implementing custom styles when Mantine components provide the functionality
- Use Mantine's color system with proper opacity (e.g.,
${theme.colors.purple[5]}15for 15 opacity, in hex) - Prefer component props over inline styles
- Use
useMantineTheme()hook to access theme values in components
Chrome API Usage and Cross-Context Communication
Different Chrome APIs are available in different contexts. Always verify API availability before use.
API Availability by Context
Background Service Worker Only
// ✅ Available in background
chrome.tabs.query({ active: true });
chrome.windows.create({ url });
chrome.contextMenus.create({ title });
chrome.notifications.create({ message });
chrome.downloads.download({ url });
chrome.scripting.executeScript({ target });
chrome.storage.local.get(['key']);
chrome.storage.sync.set({ key: value });Content Script Only
// ✅ Available in content script
document.querySelector('#element');
window.location.href;
document.body.appendChild(element);
// Limited Chrome APIs
chrome.runtime.sendMessage({ data });
chrome.runtime.id;Side Panel (Extension Pages)
// ✅ Available in side panel
chrome.runtime.sendMessage({ data })
chrome.runtime.getURL(path)
// ❌ Not directly available - use RPC
chrome.tabs.* // Must call via background
chrome.storage.* // Must call via backgroundCross-Context Communication with RPC
Use the everywhere function from common/rpc.ts for cross-context calls:
import { everywhere } from '@common/rpc';
import { pingPong } from '@common/rpc';
// Define a function available in specific role
const myFunction = everywhere(
'functionName',
(arg1: string, arg2: number) => {
// Implementation
return result;
},
'background', // Role where this executes
);
// Register it in GlobalFunctions in common/types.ts
export interface GlobalFunctions extends FunctionRegistry {
// Please put the signatures of global functions here
functionName: (arg1: string, arg2: number) => ReturnType;
}
// Call function from any context
const result = await everywhere('functionName')(arg1, arg2);Notification System
Use the notify API instead of console.log for controllable and visible logging.
Notification Levels (from most to least verbose)
import {
notifyDebugMoreVerbose, // debug++ - Very detailed debugging (used very frequently especially for complex flows)
notifyDebugVerbose, // debug+ - Verbose debugging (log the input and output of complex functions)
notifyDebug, // debug - Standard debugging (log error-prone key steps in processes)
notifyInfo, // info - Informational messages (important state changes)
notifyWarning, // warning - Warning messages (should be looked at)
notifyError, // error - Error messages (don't auto-hide)
notifySuccess, // success - Success messages (briefly show successful big operations)
} from '@common/notification';
// ❌ Bad: Direct console logging
console.log('Operation completed');
console.error('Failed:', error);
// ✅ Good: Using notify API
notifySuccess('Operation completed');
notifyError('Failed to fetch data', error, {
title: 'Fetch Error',
duration: 0, // Don't auto-hide errors
});
// Debug with objects
notifyDebug('Processing item', { id: itemId, status: 'pending' });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.

