Command Palette

Search for a command to run...

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

agent-card-templates

БесплатноБез исполняемых скриптовНе проверен

A2A agent card JSON templates with schema validation and examples for different agent types. Use when creating agent cards, implementing A2A protocol…

diegosouzapwот diegosouzapw★ 68 звёзд на GitHub

Об этом скилле

Agent Card Templates

Purpose: Provide reusable JSON templates for creating A2A (Agent-to-Agent) protocol agent cards following the official specification.

Activation Triggers:

  • Creating new A2A agent cards
  • Implementing agent discovery endpoints
  • Configuring authentication schemes
  • Defining agent capabilities and skills
  • Setting up service endpoints
  • Validating agent card JSON structure

Key Resources:

  • templates/schema.json - Complete JSON schema for validation
  • templates/basic-agent-card.json - Simple agent card template
  • templates/multi-capability-agent-card.json - Agent with multiple skills
  • templates/authenticated-agent-card.json - Agent with auth requirements
  • templates/streaming-agent-card.json - Agent with streaming support
  • examples/ - Real-world agent card examples
  • scripts/validate-agent-card.sh - Schema validation script
  • scripts/generate-agent-card.sh - Interactive card generator
  • scripts/test-agent-card.sh - Format and structure testing

Security: API Key Handling

CRITICAL: When generating any configuration files or code:

❌ NEVER hardcode actual API keys or secrets ❌ NEVER include real credentials in examples ❌ NEVER commit sensitive values to git

✅ ALWAYS use placeholders: your_service_key_here ✅ ALWAYS create .env.example with placeholders only ✅ ALWAYS add .env* to .gitignore (except .env.example) ✅ ALWAYS read from environment variables in code ✅ ALWAYS document where to obtain keys

Placeholder format: {service}_{env}_your_key_here

Agent Card Structure

Required Fields

Basic Identity:

  • id - Unique identifier (URI or UUID)
  • name - Human-readable display name
  • protocolVersion - A2A protocol version (e.g., "0.3")
  • serviceEndpoint - Base URL for agent's A2A service
  • provider - Organization information (name, contactEmail, url)

Security:

  • securitySchemes - Authentication scheme definitions
  • security - Required auth combinations

Capabilities:

  • capabilities - Feature flags (streaming, pushNotifications)

Optional Fields

  • description - Detailed agent purpose explanation
  • logo - URL to logo image
  • version - Agent implementation version
  • skills - Array of agent capabilities with schemas
  • extensions - Extension support declarations
  • metadata - Custom key-value pairs

Template Categories

1. Basic Agent Card

Use for: Simple agents with minimal configuration Template: templates/basic-agent-card.json Features:

  • Required fields only
  • Simple API key authentication
  • No streaming or advanced capabilities
  • Single skill definition

2. Multi-Capability Agent Card

Use for: Agents with multiple skills and capabilities Template: templates/multi-capability-agent-card.json Features:

  • Multiple skill definitions
  • Input/output schemas for each skill
  • Capability flags enabled
  • Comprehensive metadata

3. Authenticated Agent Card

Use for: Agents with complex authentication requirements Template: templates/authenticated-agent-card.json Features:

  • Multiple authentication schemes (API Key, Bearer, OAuth2)
  • Alternative auth combinations
  • Security scopes and permissions
  • OpenID Connect support

4. Streaming Agent Card

Use for: Agents supporting real-time updates Template: templates/streaming-agent-card.json Features:

  • Streaming capability enabled
  • Push notification support
  • WebHook configuration
  • SSE (Server-Sent Events) ready

Authentication Schemes

Supported Types

API Key:

{
  "type": "apiKey",
  "name": "X-API-Key",
  "in": "header"
}

Bearer Token:

{
  "type": "http",
  "scheme": "bearer"
}

OAuth 2.0:

{
  "type": "oauth2",
  "flows": {
    "authorizationCode": {
      "authorizationUrl": "https://provider.example/oauth/authorize",
      "tokenUrl": "https://provider.example/oauth/token",
      "scopes": {
        "read": "Read access",
        "write": "Write access"
      }
    }
  }
}

Basic Auth:

{
  "type": "http",
  "scheme": "basic"
}

Usage Workflow

1. Select Template

Choose template based on agent requirements:

# List available templates
ls templates/

# View template content
cat templates/basic-agent-card.json

2. Generate Agent Card

Use interactive generator:

./scripts/generate-agent-card.sh

# Or specify template directly
./scripts/generate-agent-card.sh --template basic

Generator prompts for:

  • Agent name and description
  • Service endpoint URL
  • Provider information
  • Authentication scheme
  • Capabilities and skills

3. Validate Agent Card

Validate against schema:

# Validate structure and required fields
./scripts/validate-agent-card.sh agent-card.json

# Test format and completeness
./scripts/test-agent-card.sh agent-card.json

Validation checks:

  • Required fields present
  • Valid JSON syntax
  • Schema compliance
  • URL format validation
  • Authe
Полный SKILL.md на GitHub

Установить agent-card-templates в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Read
Write
Bash
Grep
Glob

Вложенные файлы

metadata.json

FAQ

Что делает скилл agent-card-templates?

A2A agent card JSON templates with schema validation and examples for different agent types. Use when creating agent cards, implementing A2A protocol discovery, setting up agent metadata, configuring authentication schemes, defining agent capabilities, or when user mentions agent card, agent discovery, A2A metadata, service endpoint configuration, or agent authentication setup.

Как установить скилл agent-card-templates?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл agent-card-templates запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

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

Сравнить agent-card-templates с