// Design things that AI agents can operate effectively — CLIs, tools, file formats, codebases, context layers, skills, visual assets, and any interface where agents are the primary or frequent consumer. Use when building a CLI for agents to use, structuring a codebase or repo for AI-assisted development, choosing file formats for agent-readable content, designing MCP tools or skills, creating agent-operable assets (HTML templates, markdown-driven workflows), setting up context infrastructure (AGENTS.md, SKILL.md, progressive disclosure), or making any existing system more agent-friendly. Also use when the user asks about agent DX, agent UX, or how to make something easy for agents to work with.
Design things that AI agents can operate effectively — CLIs, tools, file formats, codebases, context layers, skills, visual assets, and any interface where agents are the primary or frequent consumer. Use when building a CLI for agents to use, structuring a codebase or repo for AI-assisted development, choosing file formats for agent-readable content, designing MCP tools or skills, creating agent-operable assets (HTML templates, markdown-driven workflows), setting up context infrastructure (AGENTS.md, SKILL.md, progressive disclosure), or making any existing system more agent-friendly. Also use when the user asks about agent DX, agent UX, or how to make something easy for agents to work with.
license
MIT
Agent-Friendly Design
Design interfaces, formats, codebases, and systems that agents can operate effectively. This skill encodes the principles — read reference.md for deeper rationale, benchmarks, and source material.
Use alongside other skills
Use this skill to decide the agent-operability pattern and architecture, then pair it with more implementation-specific skills when needed:
skill-creator — when packaging a reusable Pi skill after deciding the structure, trigger, context split, and supporting references/scripts
extending-pi — when deciding whether the right solution is a skill, extension, prompt template, theme, package, or other Pi-native mechanism
mcp-builder — when the answer is to build a real MCP server or tool surface, not just capture workflow knowledge in Markdown
Artifact / implementation skills such as frontend-design, pptx, docx, pdf, or xlsx — when producing the final human-facing asset after choosing an agent-operable source format and workflow
Core mental model
Every agent task is either a knowledge problem or an execution problem. Getting this distinction wrong is the #1 source of waste.
Problem type
Solution
Format
Example
Agent needs to know something
Markdown file (skill, spec, guide)
.md
"Use squash merges, run tests before push"
Agent needs to do something
Tool, CLI, API, MCP server
JSON I/O
Query a database, send an email, create an issue
Both
Skill file that references tools
.md → CLI/API
Skill explains workflow, calls gog/gh/gws for execution
Most token-efficient, native to LLM training, human-readable
Structured config, nested data
YAML
Best accuracy on nested data retrieval (benchmark-proven)
API I/O, tool responses
JSON
Agents expect it; keep payloads lean with field masks
Visual assets agents produce/edit
HTML
Agents can generate, edit, and preview; no binary formats
Tabular data
CSV/TSV or YAML
Avoid XLSX as working format; convert at boundaries
Avoid XML (80% more tokens than Markdown for same content), binary formats (DOCX, PPTX) as primary working formats, and deeply nested JSON when YAML or Markdown would suffice.