design-a2a-agent-card
정보
이 스킬은 상호 운용성을 위해 에이전트의 기능, 인증 및 지원 콘텐츠 유형을 정의하는 A2A 에이전트 카드 매니페스트(agent.json)를 생성합니다. 다른 A2A 호환 에이전트가 발견하거나 에이전트 레지스트리와 통합해야 하는 에이전트를 구축하거나 마이그레이션할 때 사용하세요. 이는 다중 에이전트 오케스트레이션을 위한 공개 계약을 설정하는 데 도움이 됩니다.
빠른 설치
Claude Code
추천npx skills add pjt222/agent-almanac -a claude-code/plugin add https://github.com/pjt222/agent-almanacgit clone https://github.com/pjt222/agent-almanac.git ~/.claude/skills/design-a2a-agent-cardClaude Code에서 이 명령을 복사하여 붙여넣어 스킬을 설치하세요
문서
Design A2A Agent Card
Make A2A Agent Card. Advertises agent identity, skills, auth, capabilities. Other agents find it.
When Use
- Build agent others must discover via A2A
- Expose agent capabilities for multi-agent orchestration
- Migrate existing agent to A2A (Agent-to-Agent) protocol
- Define public contract before implementation
- Integrate with agent registries that read Agent Cards
Inputs
- Required: Agent name + description
- Required: Skill list (name, description, input/output schemas)
- Required: Base URL where agent hosted
- Optional: Auth method (
none,oauth2,oidc,api-key) - Optional: Content types beyond
text/plain(e.g.,image/png,application/json) - Optional: Capability flags (streaming, push notifications, state history)
- Optional: Provider org name + URL
Steps
Step 1: Set Agent Identity + Description
1.1. Pick identity fields:
{
"name": "data-analysis-agent",
"description": "Performs statistical analysis, data visualization, and report generation on tabular datasets.",
"url": "https://agent.example.com",
"provider": {
"organization": "Example Corp",
"url": "https://example.com"
},
"version": "1.0.0"
}
1.2. Write clear, actionable description. Answer:
- What domains agent covers?
- What tasks handles?
- What limits?
1.3. Set canonical URL where Agent Card served at /.well-known/agent.json.
Got: Full identity block: name, description, URL, provider, version.
If fail: Agent covers many domains? Decide: one agent, many skills? Or many agents, focused scope? A2A prefers focused agents, clear boundaries.
Step 2: List Skills with I/O Schemas
2.1. Define each skill:
{
"skills": [
{
"id": "analyze-dataset",
"name": "Analyze Dataset",
"description": "Run descriptive statistics, correlation analysis, or hypothesis tests on a CSV dataset.",
"tags": ["statistics", "data-analysis", "csv"],
"examples": [
"Analyze the correlation between columns A and B in my dataset",
"Run a t-test comparing group 1 and group 2"
],
"inputModes": ["text/plain", "application/json"],
"outputModes": ["text/plain", "application/json", "image/png"]
},
{
"id": "generate-chart",
"name": "Generate Chart",
"description": "Create bar, line, scatter, or histogram charts from tabular data.",
"tags": ["visualization", "charts"],
"examples": [
"Create a scatter plot of height vs weight",
"Generate a histogram of the age column"
],
"inputModes": ["text/plain", "application/json"],
"outputModes": ["image/png", "image/svg+xml"]
}
]
}
2.2. Each skill needs:
- id: Unique ID (kebab-case)
- name: Human-readable name
- description: What skill does, 1-2 sentences
- tags: Keywords for discovery
- examples: Natural-language task examples that trigger skill
- inputModes: MIME types skill takes
- outputModes: MIME types skill produces
2.3. Skill boundaries must be clear, no overlap. Each task → one skill.
Got: Skills array. Each entry: id, name, description, tags, examples, I/O modes.
If fail: Skills overlap big? Merge into broader skill with more examples. Skill too broad? Split into focused sub-skills.
Step 3: Config Auth
3.1. Pick auth scheme by deploy context:
No auth (local/trusted network):
{
"authentication": {
"schemes": []
}
}
OAuth 2.0 (best for prod):
{
"authentication": {
"schemes": ["oauth2"],
"credentials": {
"oauth2": {
"authorizationUrl": "https://auth.example.com/authorize",
"tokenUrl": "https://auth.example.com/token",
"scopes": {
"agent:invoke": "Invoke agent skills",
"agent:read": "Read task status"
}
}
}
}
}
API Key (simple shared secret):
{
"authentication": {
"schemes": ["apiKey"],
"credentials": {
"apiKey": {
"headerName": "X-API-Key"
}
}
}
}
3.2. Pick minimum viable auth for env:
- Local dev:
none - Internal service:
apiKey - Public-facing:
oauth2oroidc
3.3. Document token/key provisioning in provider section or external docs.
Got: Auth block matches deploy security needs.
If fail: No OAuth 2.0 infra? Start with API key, plan migration. Never deploy public agent with none auth.
Step 4: Declare Capabilities
4.1. Declare protocol features agent supports:
{
"capabilities": {
"streaming": true,
"pushNotifications": false,
"stateTransitionHistory": true
}
}
4.2. Set each flag by impl readiness:
- streaming:
trueif agent supports SSE streaming viatasks/sendSubscribe. Real-time progress for long tasks. - pushNotifications:
trueif agent can send webhook callbacks on state change. Agent stores + calls webhook URLs. - stateTransitionHistory:
trueif agent keeps full state transition history (submitted, working, completed). Good for audit.
4.3. Only set true if impl fully supports. Fake flags break interop.
Got: Capabilities object. Flags match real impl.
If fail: Unsure if capability coming? Set false. Add later. Removing capability = breaking change.
Step 5: Validate + Publish Agent Card
5.1. Assemble full card:
{
"name": "data-analysis-agent",
"description": "Performs statistical analysis and visualization on tabular datasets.",
"url": "https://agent.example.com",
"version": "1.0.0",
"provider": {
"organization": "Example Corp",
"url": "https://example.com"
},
"authentication": {
"schemes": ["oauth2"],
"credentials": { ... }
},
"capabilities": {
"streaming": true,
"pushNotifications": false,
"stateTransitionHistory": true
},
"skills": [ ... ],
"defaultInputModes": ["text/plain"],
"defaultOutputModes": ["text/plain"]
}
5.2. Validate:
- Parse as JSON, check no syntax err
- All required fields present (name, description, url, skills)
- Each skill has id, name, description, min 1 I/O mode
- URL reachable, serves card at
/.well-known/agent.json
5.3. Publish:
- Serve at
https://<agent-url>/.well-known/agent.json - Set
Content-Type: application/json - Enable CORS if cross-origin discovery needed
- Register with relevant agent registries
5.4. Test by fetching:
curl -s https://agent.example.com/.well-known/agent.json | python3 -m json.tool
Got: Valid JSON Agent Card at well-known URL. Any A2A client can parse.
If fail: JSON invalid? Use linter to find syntax err. URL unreachable? Check DNS, SSL cert, web server config. CORS needed? Add Access-Control-Allow-Origin headers.
Checks
- Agent Card valid JSON, no syntax err
- Required fields present: name, description, url, skills
- Each skill has id, name, description, inputModes, outputModes
- Auth scheme matches deploy security
- Capability flags match impl
- Served at
/.well-known/agent.json, right Content-Type - A2A clients fetch + parse OK
- Examples realistic, trigger right skill
Pitfalls
- Overpromising capabilities:
streaming: trueorpushNotifications: truewithout impl = client fails when used. Be conservative. - Vague skill description: "does data stuff" blocks accurate matching. Be specific about inputs, outputs, domains.
- Missing CORS headers: Browser A2A clients can't fetch Agent Card without CORS.
- Skill overlap: Two skills handle same task → client can't pick. Keep boundaries clear.
- Forgetting default modes: No
defaultInputModes/defaultOutputModes→ clients unsure what content types to send. - Version stagnation: Bump version when skills/capabilities change. Clients cache old versions.
- Publish before impl: Agent Card = contract. Publishing unimplemented skills → runtime failure.
See Also
implement-a2a-server- impl server behind Agent Cardtest-a2a-interop- validate Agent Card conformance + interopbuild-custom-mcp-server- MCP as alt/complement to A2Aconfigure-mcp-server- MCP config patterns for A2A setup
GitHub 저장소
연관 스킬
content-collections
메타이 스킬은 콘텐츠 콜렉션(Content Collections)을 위한 프로덕션 검증된 설정을 제공합니다. 콘텐츠 콜렉션은 Markdown/MDX 파일을 Zod 검증이 포함된 타입 안전한 데이터 콜렉션으로 변환해주는 TypeScript 최우선 도구입니다. 블로그, 문서 사이트 또는 콘텐츠 중심의 Vite + React 애플리케이션을 구축할 때 타입 안전성과 자동 콘텐츠 검증을 보장하기 위해 사용하세요. Vite 플러그인 구성과 MDX 컴파일부터 배포 최적화 및 스키마 검증에 이르기까지 모든 것을 다룹니다.
polymarket
메타이 스킬은 개발자들이 Polymarket 예측 시장 플랫폼을 활용한 애플리케이션을 구축할 수 있도록 지원하며, 거래 및 시장 데이터를 위한 API 통합 기능을 포함합니다. 또한 WebSocket을 통한 실시간 데이터 스트리밍을 제공하여 실시간 거래와 시장 활동을 모니터링할 수 있습니다. 이를 통해 거래 전략을 구현하거나 실시간 시장 업데이트를 처리하는 도구를 생성하는 데 활용할 수 있습니다.
creating-opencode-plugins
메타이 스킬은 개발자들이 명령어, 파일, LSP 작업 등 25개 이상의 이벤트 유형에 연결되는 OpenCode 플러그인을 만들 수 있도록 돕습니다. JavaScript/TypeScript 모듈을 위한 플러그인 구조, 이벤트 API 명세, 구현 패턴을 제공합니다. OpenCode AI 어시스턴트의 라이프사이클을 사용자 정의 이벤트 기반 로직으로 가로채거나, 모니터링하거나, 확장해야 할 때 사용하세요.
sglang
메타SGLang은 RadixAttention 프리픽스 캐싱을 활용하여 JSON, 정규식, 에이전트 워크플로우를 위한 고속 구조화 생성에 특화된 고성능 LLM 서빙 프레임워크입니다. 특히 반복되는 프리픽스가 있는 작업에서 상당히 빠른 추론 속도를 제공하여 복잡한 구조화 출력 및 다중 턴 대화에 이상적입니다. 제약 디코딩이 필요하거나 광범위한 프리픽스 공유가 있는 애플리케이션을 구축할 때는 vLLM과 같은 대안보다 SGLang을 선택하십시오.
