design-for-agents
БесплатноБез исполняемых скриптовНе проверенDesign skills, CLIs, docs, and onboarding flows for AI coding agents. Use when writing agent skills, authoring SKILL.md files, designing CLI tools agents will…
от amanaiproduct★ 80 звёзд на GitHubОб этом скилле
Design for Agents
Principles for designing artifacts — skills, CLIs, documentation, onboarding — where the primary consumer is an AI coding agent.
These principles were refined through building and testing Arize skills, studying evals-skills, and running E2E tests that exposed where agents actually break.
Core Principle
The agent is capable. It knows general programming, standard tools, and common concepts. It does NOT know your domain-specific CLI flags, data shapes, gotchas, and multi-step workflows. Write only what it can't figure out on its own.
Writing Skills
Write directives, not wisdom
The agent needs to be told what to do, not why.
Bad: "It's important to note that the Arrow Flight export path returns a different JSON shape than the REST path, which can cause confusion."
Good: "REST exports return nested JSON (context.trace_id). Flight exports (--all) return flat dot-separated keys (context.trace_id). Do not assume the same shape across both paths."
Cut general knowledge
Only include information the agent wouldn't already know. It knows what traces, datasets, JSON, CSV, and Parquet are. It knows jq, Python, and shell scripting.
Cut:
- Definitions of standard concepts ("A trace is a tree of spans...")
- General prompt engineering advice
- Workflow motivation ("The typical flow is...")
- Framework comparisons or tool descriptions
Keep:
- Exact CLI syntax with required and optional flags
- Data shape examples showing real JSON structure
- Domain-specific gotchas (truncated IDs, stdout pollution, silent defaults)
- Escalation rules (when to switch from one approach to another)
Scope every sentence
Ask: "Does this sentence help the agent run a command, process output, or avoid a known mistake?" If not, cut it.
Start with the default, then escalate
Show the simplest working command first. Show advanced options only when the default fails or the task requires them.
Good:
## Export Spans
\`\`\`bash
ax spans export PROJECT --trace-id TRACE_ID
\`\`\`
If the export returns exactly 500 spans (the REST page limit), re-run with `--all`:
\`\`\`bash
ax spans export PROJECT --all
\`\`\`
Bad: Listing REST and Flight as equivalent options with a comparison table before showing any command.
Be concrete about data shapes
Vague descriptions cause downstream parsing errors. Show exact JSON.
Bad: "The output is a JSON array of example objects with user-defined fields."
Good:
{
"id": "ex_001",
"additional_properties": {
"question": "What is 2+2?",
"answer": "4"
}
}
Convert warnings into directives
Instead of explaining why something is bad, tell the agent what to do (or not do).
As inline directives:
- "Use
-o jsonto extract IDs — table output truncates them" - "Always pass
--output-dir .arize-tmp-tracesto keep exports gitignored"
As one-line anti-patterns at the end of a skill:
- Parsing IDs from table output (truncated with
...) - Assuming
--stdoutJSON from--allis parseable without redirecting stderr - Including
id,created_atin create/append payloads
Anti-patterns should be one line each. If it takes a paragraph, convert it to a directive.
Skill Structure
---
name: skill-name
description: >
What this skill does. Use when [triggers]. Do NOT use when
[exclusions — reference sibling skills by name].
---
# Skill Title
One-line summary.
## Overview
[When to use, high-level procedure]
## Prerequisites
[Link to shared prereqs or inline if unique]
## Core Commands
[The actual CLI commands, organized by operation]
## Workflows
[Multi-step recipes chaining commands together]
## Anti-Patterns
[One-line list of domain-specific mistakes]
Not every skill needs every section. Required: YAML frontmatter with name and description, an Overview, and core instructions.
Description frontmatter
The description field controls when the agent activates the skill. Write it as natural language with:
- What it does — one sentence
- Use when — trigger conditions
- Do NOT use when — exclusions with cross-references to sibling skills
Good:
description: >
Export traces and spans from Arize. Use when the user needs trace
data for debugging or analysis. Do NOT use for creating datasets
(use arize-dataset) or setting up tracing (use arize-instrumentation).
Bad:
description: "INVOKE THIS SKILL when downloading Arize traces."
Why: "INVOKE THIS SKILL" is noise, no exclusions means overlapping activation, no sibling cross-references.
Keep files under 500 lines
Split reference material into separate files one level deep:
skills/my-skill/
SKILL.md # Core directives (<500 lines)
column-reference.md # Reference tables
Do not nest references (SKILL.md -> ref.md -> detail.md).
Extract shared content
Cont
Установить design-for-agents в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл design-for-agents?
Design skills, CLIs, docs, and onboarding flows for AI coding agents. Use when writing agent skills, authoring SKILL.md files, designing CLI tools agents will use, creating onboarding READMEs, or reviewing any artifact where the primary consumer is a coding agent. Do NOT use for general technical writing or user-facing documentation.
Как установить скилл design-for-agents?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл design-for-agents запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic