Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

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от 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 json to extract IDs — table output truncates them"
  • "Always pass --output-dir .arize-tmp-traces to keep exports gitignored"

As one-line anti-patterns at the end of a skill:

  • Parsing IDs from table output (truncated with ...)
  • Assuming --stdout JSON from --all is parseable without redirecting stderr
  • Including id, created_at in 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:

  1. What it does — one sentence
  2. Use when — trigger conditions
  3. 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

Полный SKILL.md на GitHub

Установить 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), без исполняемых скриптов.

Похожие скиллы

Сравнить design-for-agents с