AI-native design editor. Open-source Figma alternative.
CLI
Headless .fig inspection, export, linting, and scripting with citty. bun open-pencil --help lists current commands.
- Format all output with the
agentfmthelpers re-exported frompackages/cli/src/format.ts; do not hand-roll terminal formatting. - Data and inspection commands support
--json. - App-only commands (
documents,undo,redo,settings) print throughrunAppCommandinpackages/cli/src/app/command.ts;toollists and calls the same MCP-exposed Core tools as the app bridge, so add operations as tools rather than new RPC commands where they act on a document. - Commands own their CLI UX independently of tools;
evalexposes operations throughFigmaAPI(packages/core/AGENTS.md, Figma API). Keep the public docs underpackages/docs/programmable/cli/and the skill examples current when commands change. - The MCP
--rootdefault is the current directory on macOS and Linux and the home directory on Windows; seepackages/mcp/AGENTS.md.