@vesviet/agent-skills 5.7.3 → 5.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/INDEX.md +15 -13
- package/README.md +10 -10
- package/VERSION +1 -1
- package/adapters/antigravity/ANTIGRAVITY.md +88 -3
- package/adapters/antigravity/INDEX_TIER1.json +1287 -0
- package/adapters/antigravity/a2a-config.template.yaml +22 -8
- package/adapters/antigravity/role-skill-index.json +28 -8
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/core/contracts/README.md +4 -1
- package/core/contracts/schemas/INDEX.md +7 -1
- package/core/contracts/schemas/a2a-artifact.json +9 -2
- package/core/contracts/schemas/a2a-jsonrpc-envelope.json +7 -2
- package/core/contracts/schemas/a2a-task-progress.json +15 -4
- package/core/contracts/schemas/a2a-task.json +11 -3
- package/core/contracts/schemas/agent-card.json +48 -1
- package/core/contracts/schemas/agent-skills-discovery.json +91 -0
- package/core/contracts/schemas/compliance-report.json +255 -0
- package/core/contracts/schemas/mcp-server-card.json +193 -0
- package/core/contracts/schemas/seo-content-brief.json +1 -1
- package/core/contracts/schemas/seo-weekly-board.json +1 -1
- package/core/contracts/schemas/series-article.json +1 -1
- package/core/policies/action-boundaries.yaml +324 -1
- package/core/policies/mcp-tool-map.yaml +33 -4
- package/core/roles/3d-graphics-engineer.md +5 -1
- package/core/roles/agent-coordinator.md +21 -3
- package/core/roles/agent-discovery-engineer.md +27 -8
- package/core/roles/ai-systems-engineer.md +3 -1
- package/core/roles/aws-engineer.md +6 -8
- package/core/roles/backend-developer.md +5 -5
- package/core/roles/business-analyst.md +4 -2
- package/core/roles/cloudflare-engineer.md +4 -2
- package/core/roles/content-manager.md +3 -1
- package/core/roles/content-writer.md +3 -1
- package/core/roles/data-analyst.md +3 -1
- package/core/roles/data-engineer.md +3 -1
- package/core/roles/devops-engineer.md +9 -9
- package/core/roles/ecommerce-engineer.md +7 -7
- package/core/roles/frontend-developer.md +9 -8
- package/core/roles/game-developer.md +5 -3
- package/core/roles/mmo-engineer.md +8 -9
- package/core/roles/mobile-engineer.md +5 -3
- package/core/roles/product-manager.md +8 -9
- package/core/roles/project-manager.md +10 -13
- package/core/roles/prompt-engineer.md +6 -4
- package/core/roles/qa-engineer.md +9 -9
- package/core/roles/researcher.md +12 -14
- package/core/roles/reverse-engineer.md +5 -2
- package/core/roles/reviewer.md +7 -5
- package/core/roles/role-standard.md +15 -1
- package/core/roles/sdet.md +7 -5
- package/core/roles/security-engineer.md +9 -7
- package/core/roles/seo-analyst.md +9 -7
- package/core/roles/solution-architect.md +8 -9
- package/core/roles/sre.md +8 -6
- package/core/roles/system-engineer.md +20 -20
- package/core/roles/task-planner.md +8 -10
- package/core/roles/teacher.md +8 -6
- package/core/roles/technical-architect.md +9 -8
- package/core/roles/technical-lead.md +9 -7
- package/core/roles/technical-writer.md +8 -6
- package/core/roles/ui-ux-designer.md +8 -7
- package/core/roles/vietnam-accounting-specialist.md +6 -4
- package/core/roles/vietnam-legal-counsel.md +6 -4
- package/core/skills/README.md +1 -1
- package/core/skills/agent/agent-a2a-protocol/SKILL.md +25 -93
- package/core/skills/agent/architect-mcp-server/SKILL.md +35 -27
- package/core/skills/agent/configure-agent-skills/SKILL.md +60 -68
- package/core/skills/ai-agent/agent-evaluation/resources/eval-benchmarks/eval-cases.json +529 -0
- package/core/skills/ai-agent/agent-evaluation/resources/eval-benchmarks/eval-manifest.yaml +61 -0
- package/core/skills/ai-agent/agent-evaluation/scripts/run-eval-benchmark.py +856 -0
- package/core/skills/ai-agent/agent-evaluation/tests/test_golden_benchmarks.py +248 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +59 -60
- package/overlays/README.md +1 -1
- package/overlays/security-research/README.md +1 -1
- package/package.json +2 -2
- package/overlays/security-research/skills/reverse-engineer-binary/SKILL.md +0 -129
|
@@ -36,105 +36,37 @@ Use this skill for **complete A2A 1.0** behavior beyond single-hop `agent-delega
|
|
|
36
36
|
- target the current protocol floor **A2A v1.0.1 (2026-05-26)** and treat governance references as **AAIF/Linux Foundation** (A2A joined the Agentic AI Foundation on 2026-08-27 alongside MCP, goose, AGENTS.md, and agentgateway)
|
|
37
37
|
- when paginating coordinator dashboards, use `ListTasks` with cursor pagination instead of unbounded task dumps
|
|
38
38
|
|
|
39
|
-
|
|
39
|
+
## Dual-Stack Wire Protocol Transformers
|
|
40
40
|
|
|
41
|
-
|
|
41
|
+
The dual-stack architecture bridges local Antigravity runtime bindings and AAIF A2A v1.0.1+ wire operations:
|
|
42
42
|
|
|
43
|
-
| Operation |
|
|
44
|
-
|
|
45
|
-
|
|
|
46
|
-
|
|
|
47
|
-
|
|
|
48
|
-
|
|
|
49
|
-
|
|
|
50
|
-
|
|
|
51
|
-
| Deliver | `a2a-artifact.json` | Worker completion |
|
|
43
|
+
| Antigravity Local Binding | AAIF A2A v1.0.1 Wire Operation | Transport | Local State | Wire Enum State |
|
|
44
|
+
|---|---|---|---|---|
|
|
45
|
+
| `agent.invoke` | `message/send` (unary RPC) | HTTP POST | `submitted` | `TASK_STATE_SUBMITTED` |
|
|
46
|
+
| `agent.stream` | `message/stream` (SSE stream) | HTTP Chunked | `working` | `TASK_STATE_WORKING` |
|
|
47
|
+
| `task.status` | `tasks/get` (status poll) | HTTP GET/POST | `input-required` | `TASK_STATE_INPUT_REQUIRED` |
|
|
48
|
+
| `task.cancel` | `tasks/cancel` (cancellation) | HTTP POST | `completed` | `TASK_STATE_COMPLETED` |
|
|
49
|
+
| `tasks/list` | `tasks/list` (paginated query) | HTTP POST | `failed` | `TASK_STATE_FAILED` |
|
|
50
|
+
| `agent/getCard` | `GET /.well-known/agent-card.json` | HTTP GET | `canceled` | `TASK_STATE_CANCELED` |
|
|
52
51
|
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
- `./references/a2a-spec.md` — signed Agent Cards (JWS/JWK), streaming transport (SSE vs pack binding), full spec-event-to-pack-event mapping, webhook push notification auth, scatter-gather pattern, and the raw JSON-RPC wire example
|
|
56
|
-
|
|
57
|
-
Load the reference file when you need the exact spec-vs-pack mapping behind a Core Rule above — the rules already state the pack-local aliases; the reference has the full spec text they summarize.
|
|
58
|
-
|
|
59
|
-
## Antigravity Integration
|
|
60
|
-
|
|
61
|
-
1. Load `core/a2a/.well-known/agent-registry.json`.
|
|
62
|
-
2. Resolve `assignee_role` → `core/a2a/registry/<role>.agent-card.json`.
|
|
63
|
-
3. Set `assignee_agent_card` on the task when using registry discovery.
|
|
64
|
-
4. Prefer `agent.stream` for engineering-tier tasks; `agent.invoke` for short sync work.
|
|
65
|
-
5. Apply `.antigravity/rules.md` from `adapters/antigravity/rules.template.md`.
|
|
66
|
-
|
|
67
|
-
Config template: `adapters/antigravity/a2a-config.template.yaml`.
|
|
52
|
+
SSE events map symmetrically: `task.status` $\leftrightarrow$ `TaskStatusUpdateEvent`, `task.artifact` $\leftrightarrow$ `TaskArtifactUpdateEvent`, `task.heartbeat` $\leftrightarrow$ `TaskHeartbeatEvent`.
|
|
68
53
|
|
|
69
54
|
## Suggested Process
|
|
70
55
|
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
-
|
|
84
|
-
|
|
85
|
-
- full `input_data`, `success_criteria`, `constraints`
|
|
86
|
-
- `parent_task_id` when part of `coordination-plan.json`
|
|
87
|
-
|
|
88
|
-
### 3. Monitor (Stream Or Poll)
|
|
89
|
-
|
|
90
|
-
**Stream:** emit progress events:
|
|
91
|
-
|
|
92
|
-
```json
|
|
93
|
-
{"event":"task.status","task_id":"...","state":"working","progress_percent":40}
|
|
94
|
-
```
|
|
95
|
-
|
|
96
|
-
**Poll:** build `a2a-task-status.json` with `messages` history.
|
|
97
|
-
|
|
98
|
-
### 4. Handle input-required
|
|
99
|
-
|
|
100
|
-
If worker needs delegator decision:
|
|
101
|
-
|
|
102
|
-
- set `state: input-required`
|
|
103
|
-
- append `a2a-message.json` with question
|
|
104
|
-
- resume with new message and `state: working`
|
|
105
|
-
|
|
106
|
-
### 5. Complete Or Fail
|
|
107
|
-
|
|
108
|
-
Worker returns `a2a-artifact.json`:
|
|
109
|
-
|
|
110
|
-
- set `status` and mirror `state`
|
|
111
|
-
- populate `parts` for multimodal results
|
|
112
|
-
- include `trace_id` and `token_usage`
|
|
113
|
-
|
|
114
|
-
Delegator validates `result` against `output_schema_ref`.
|
|
115
|
-
|
|
116
|
-
### 6. Cancel
|
|
117
|
-
|
|
118
|
-
On timeout or user abort:
|
|
119
|
-
|
|
120
|
-
- compose `a2a-task-cancel.json` with `task_id`, `cancel_reason`, optional `force`
|
|
121
|
-
- apply via `tasks/cancel` (JSON-RPC) or file update → `a2a-task-status.json` with `state: canceled`
|
|
122
|
-
|
|
123
|
-
### 7. Push Notifications (Long-Running)
|
|
124
|
-
|
|
125
|
-
When the client cannot hold SSE open:
|
|
126
|
-
|
|
127
|
-
- attach `a2a-push-notification-config.json` to the task
|
|
128
|
-
- worker emits terminal event to `callback_url` on completed / failed / canceled
|
|
129
|
-
|
|
130
|
-
### 8. Three-Layer Error Recovery
|
|
131
|
-
|
|
132
|
-
When a task fails or drops:
|
|
133
|
-
- **Layer 1 (Schema Error):** Feed the schema validation error back into the worker model in an immediate correction turn.
|
|
134
|
-
- **Layer 2 (Transient Drop):** Retry HTTP/SSE connection with exponential backoff and randomized jitter.
|
|
135
|
-
- **Layer 3 (Semantic Failure):** After 3 failed attempts, trip circuit breaker and escalate to human review (HITL).
|
|
136
|
-
|
|
137
|
-
See `./references/a2a-spec.md` for signed Agent Card verification, the full streaming/event spec-to-pack mapping, webhook auth details, the scatter-gather coordinator pattern, and the raw JSON-RPC wire example.
|
|
56
|
+
1. **Discover Worker Capabilities**: Resolve `assignee_role` via `core/a2a/.well-known/agent-registry.json` or fetch `/.well-known/agent-card.json` to verify `skills[].id`, `output_schema_refs`, streaming support, and `policy_profile`.
|
|
57
|
+
2. **Submit Task**: Compose `a2a-task.json` with unique `task_id` (UUID v4), `state: TASK_STATE_SUBMITTED` (`submitted`), `interaction_mode` (`sync` | `stream` | `push`), and schema constraints.
|
|
58
|
+
3. **Monitor Stream or Poll**: For streaming, emit SSE events (`TaskStatusUpdateEvent` / `task.status`). For polling, query `tasks/get` and build `a2a-task-status.json` with message history.
|
|
59
|
+
4. **Handle input-required**: If worker requires input, transition to `TASK_STATE_INPUT_REQUIRED` (`input-required`), append `a2a-message.json`, and resume with `TASK_STATE_WORKING`.
|
|
60
|
+
5. **Complete or Fail with Unified Parts**: Emit `a2a-artifact.json` with monotonic terminal state (`TASK_STATE_COMPLETED` or `TASK_STATE_FAILED`) and unified `parts` (discriminate by `"text"`, `"data"`, `"file"` without `kind`).
|
|
61
|
+
6. **Cancel Task**: Post `tasks/cancel` (`task.cancel`) with `cancel_reason` and transition state to `TASK_STATE_CANCELED` (`canceled`).
|
|
62
|
+
7. **Three-Layer Error Recovery & Wire Errors**:
|
|
63
|
+
- *Layer 1 (Schema Error)*: Immediate prompt reflection loop for invalid schemas.
|
|
64
|
+
- *Layer 2 (Transient Drop)*: Exponential backoff with full jitter for connection drops.
|
|
65
|
+
- *Layer 3 (Semantic Failure)*: Circuit breaker escalation to HITL after $N=3$ consecutive failures.
|
|
66
|
+
- Wire errors are encoded as `google.rpc.Status` with typed `google.rpc.ErrorInfo`:
|
|
67
|
+
```json
|
|
68
|
+
{"jsonrpc":"2.0","id":"req-1","error":{"code":-32000,"message":"Task rejected","data":{"@type":"type.googleapis.com/google.rpc.Status","code":3,"message":"INVALID_ARGUMENT","details":[{"@type":"type.googleapis.com/google.rpc.ErrorInfo","reason":"SCHEMA_VIOLATION","domain":"a2a-protocol.org","metadata":{"taskId":"uuid","field":"payload"}}]}}}
|
|
69
|
+
```
|
|
138
70
|
|
|
139
71
|
## Checklist
|
|
140
72
|
|
|
@@ -11,22 +11,29 @@ Architect enterprise-grade Model Context Protocol (MCP) servers, tool surfaces,
|
|
|
11
11
|
|
|
12
12
|
## Core Rules
|
|
13
13
|
|
|
14
|
-
- **Stateless
|
|
15
|
-
- **
|
|
16
|
-
-
|
|
14
|
+
- **Stateless HTTP Architecture (MCP Revision 2026-07-28)**: Default to Stateless HTTP transport. Completely abolish all legacy session header identifiers and session handshakes (`initialize`, `notifications/initialized`). Every HTTP POST request is connectionless, standalone, and self-contained; reserve stdio strictly for local CLI development.
|
|
15
|
+
- **Client Metadata Injection (`params._meta`)**: Mandate per-request client metadata injected via JSON-RPC `params._meta`:
|
|
16
|
+
- `trace_parent`: W3C distributed trace context (`traceparent` header / metadata).
|
|
17
|
+
- `auth_context`: Authenticated caller identity, tenant ID, or SPIFFE SVID token.
|
|
18
|
+
- `idempotency_key`: Client-generated UUIDv7/hash preventing duplicate execution of mutating tools.
|
|
19
|
+
- **Multi-Route Tool Routing (MRTR SEP-2322)**: Mandate `Mcp-Tool-Route: <domain>_<action>` (or `Mcp-Name`) HTTP headers so API gateways route individual tools directly to microservices without parsing JSON bodies. For interactive workflows, servers return `resultType: "input_required"` with `stateHandle` and `expectedFields`.
|
|
20
|
+
- **State Externalization (SEP-2567)**: Externalize multi-turn state, continuation tokens, and pagination cursors to durable remote storage (Redis, Cloudflare D1/KV) keyed by opaque `stateHandle` with 900s TTL. Zero in-memory server session affinity.
|
|
21
|
+
- **Stateless Gateway Routing Headers**:
|
|
22
|
+
`Mcp-Protocol-Version: 2026-07-28`, `Mcp-Method: tools/call`, `Mcp-Name: <domain>_<action>`, `Mcp-Tool-Route: <domain>_<action>`, `Accept: text/event-stream, application/json`.
|
|
23
|
+
- **Action-Oriented Domain Prefixes**: Name tools with explicit verb-noun domain syntax (`<domain>_<action>`, e.g., `fs_read_file`, `billing_issue_refund`).
|
|
24
|
+
- **Strict Schema Validation**: Define strict input parameters and return types using Zod or Pydantic v2; prohibit untyped JSON blobs or generic string inputs.
|
|
17
25
|
- **OutputSchema & Structured Content**: Constrain returned payloads with `outputSchema` and emit `structuredContent` separating structured JSON from textual explanations.
|
|
18
|
-
- **Actionable Error Ergonomics**: Error responses MUST return typed error categories, machine-readable error codes, and explicit remediation hints enabling autonomous
|
|
19
|
-
- **State Externalization (SEP-2567)**: Externalize session state, pagination cursors, and continuation tokens to durable stores (Redis, Cloudflare D1); prohibit sticky server memory.
|
|
26
|
+
- **Actionable Error Ergonomics**: Error responses MUST return typed error categories, machine-readable error codes, and explicit remediation hints enabling autonomous recovery.
|
|
20
27
|
- **OAuth 2.1 RFC 8707 Resource Indicators**: Require clients to specify target MCP server URIs in authorization requests to prevent token forwarding and replay attacks.
|
|
21
28
|
- **Registry Allowlisting & Supply Chain**: Production MCP servers must originate from vetted registries with publisher verification, code-signing, and SBOM audits (`MCP-REGISTRY LOCK`).
|
|
22
|
-
- **Shadow MCP Governance**: Enforce
|
|
29
|
+
- **Shadow MCP Governance**: Enforce gateway inspection to detect and block unregistered, rogue MCP servers (`MCP-GATEWAY LOCK`).
|
|
23
30
|
|
|
24
31
|
## When to Use
|
|
25
32
|
|
|
26
33
|
- Architecting enterprise MCP server boundaries, tool surfaces, and input/output contracts
|
|
27
|
-
-
|
|
28
|
-
- Standardizing
|
|
29
|
-
-
|
|
34
|
+
- Specifying MCP Revision 2026-07-28 Stateless HTTP transport and gateway routing headers
|
|
35
|
+
- Standardizing per-request client metadata injection (`params._meta`)
|
|
36
|
+
- Configuring Multi-Route Tool Routing (MRTR SEP-2322) and SEP-2567 external state handles
|
|
30
37
|
- Designing OAuth 2.1 RFC 8707 Resource Indicators and Enterprise-Managed Authorization
|
|
31
38
|
- Establishing Shadow MCP discovery, gateway routing, and supply-chain allowlisting
|
|
32
39
|
|
|
@@ -35,36 +42,39 @@ Architect enterprise-grade Model Context Protocol (MCP) servers, tool surfaces,
|
|
|
35
42
|
1. **Define Domain Boundary & Tool Surface**: Inventory operations, apply `<domain>_<action>` naming, calibrate granularity (single-action atomic vs. composite), and describe disambiguating triggers.
|
|
36
43
|
2. **Specify Strict Input & Output Schemas**: Author Zod or Pydantic schemas with field descriptions, validation constraints, enum values, and explicit `outputSchema` declarations.
|
|
37
44
|
3. **Design Actionable Error Envelopes**: Format error returns with `is_error`, `error_code`, `message`, `remediation_hint`, and `is_retriable` flags for agent self-correction.
|
|
38
|
-
4. **
|
|
45
|
+
4. **Configure Stateless HTTP & Routing**: Specify stateless HTTP headers (`Mcp-Protocol-Version: 2026-07-28`, `Mcp-Tool-Route`), inject `params._meta` (`trace_parent`, `auth_context`, `idempotency_key`), and externalize state via SEP-2567 handles (900s TTL).
|
|
39
46
|
5. **Architect Resources & Prompts**: Declare URI-addressable resources (`system://metrics/{host}`) and reusable prompt workflows (`prompts/get`) with parameter validation.
|
|
40
47
|
6. **Enforce Auth & RFC 8707 Scoping**: Configure OAuth 2.1 authorization servers with PKCE, audience-restricted Resource Indicators, and Enterprise-Managed Authorization policies.
|
|
41
|
-
7. **Establish Governance & Emit Contracts**: Validate against OWASP ASI and MCP Top 10 guardrails, define gateway telemetry, and emit `adr-spec.json
|
|
48
|
+
7. **Establish Governance & Emit Contracts**: Validate against OWASP ASI and MCP Top 10 guardrails, define gateway telemetry, and emit `mcp-server-card.json`, `adr-spec.json`, and `architecture-options.json`.
|
|
42
49
|
|
|
43
50
|
## Checklist
|
|
44
51
|
|
|
52
|
+
- [ ] Production transport adheres to MCP Revision 2026-07-28 Stateless HTTP (zero session IDs, zero handshakes).
|
|
45
53
|
- [ ] Tool names adhere to action-oriented domain prefix naming (`<domain>_<action>`).
|
|
46
54
|
- [ ] Every tool defines strict Zod/Pydantic input schemas and explicit `outputSchema` contracts.
|
|
55
|
+
- [ ] Per-request client metadata injected via `params._meta` (`trace_parent`, `auth_context`, `idempotency_key`).
|
|
56
|
+
- [ ] Multi-Route Tool Routing (MRTR SEP-2322) configured with `Mcp-Tool-Route` HTTP headers.
|
|
57
|
+
- [ ] Multi-turn session handles and pagination cursors externalized via SEP-2567 to Redis/D1 (900s TTL).
|
|
47
58
|
- [ ] Output responses separate typed JSON from natural language via `structuredContent`.
|
|
48
59
|
- [ ] Error responses supply machine-readable error codes and self-correction remediation hints.
|
|
49
|
-
- [ ] Production transport defaults to stateless streamable HTTP (MCP 2026-07-28 revision).
|
|
50
|
-
- [ ] Multi-turn session handles and pagination cursors externalized via SEP-2567 to Redis or D1.
|
|
51
60
|
- [ ] OAuth 2.1 RFC 8707 Resource Indicators bound to target MCP server URI.
|
|
52
|
-
- [ ]
|
|
53
|
-
- [ ] Architecture decision record emitted conforming to `contracts/schemas/adr-spec.json`.
|
|
61
|
+
- [ ] Architecture decision record emitted conforming to `contracts/schemas/mcp-server-card.json` and `adr-spec.json`.
|
|
54
62
|
|
|
55
63
|
## Output Contracts
|
|
56
64
|
|
|
57
65
|
When architectural design is complete or ready for downstream implementation slices:
|
|
58
66
|
|
|
59
|
-
- **`contracts/schemas/
|
|
67
|
+
- **`contracts/schemas/mcp-server-card.json`**: Primary stateless server card discovery contract defining transports, MRTR support, tools, and auth schemes.
|
|
68
|
+
- **`contracts/schemas/adr-spec.json`**: Architectural decision record detailing MCP server contracts, transport choices, state externalization, and trust boundaries.
|
|
60
69
|
- **`contracts/schemas/architecture-options.json`**: Comparative options evaluation documenting trade-offs between transport modes, schema strategies, and authorization patterns.
|
|
61
70
|
|
|
62
71
|
## Failure Modes
|
|
63
72
|
|
|
64
|
-
- **
|
|
65
|
-
- **
|
|
66
|
-
- **
|
|
67
|
-
- **
|
|
73
|
+
- **Session Affinity Regression**: Relying on legacy session headers or server memory causes failure on serverless edge runtimes. Mitigation: Enforce connectionless HTTP POST with SEP-2567 external state handles.
|
|
74
|
+
- **Gateway Routing Failure**: Omitting `Mcp-Tool-Route` header forces API gateways to parse request bodies. Mitigation: Mandate `Mcp-Tool-Route: <domain>_<action>` header on every tool call.
|
|
75
|
+
- **Expired State Handle**: Client supplies expired continuation token. Mitigation: Return typed `HANDLE_EXPIRED` (`is_retriable: false`) with hint to restart flow.
|
|
76
|
+
- **Vague Tool Naming**: Tools with overlapping names cause model confusion. Mitigation: Mandate `<domain>_<action>` naming with explicit negative triggers.
|
|
77
|
+
- **Token Replay Vulnerability**: Forwarding caller tokens without audience restriction. Mitigation: Enforce OAuth 2.1 RFC 8707 Resource Indicators.
|
|
68
78
|
|
|
69
79
|
## Security Guardrails (OWASP ASI + MCP Top 10)
|
|
70
80
|
|
|
@@ -78,10 +88,8 @@ When architectural design is complete or ready for downstream implementation sli
|
|
|
78
88
|
|
|
79
89
|
## Related Skills
|
|
80
90
|
|
|
81
|
-
- **build-mcp-server**: Implement the backend code, handlers, and tests specified by this architectural design
|
|
82
|
-
- **configure-mcp**: Publish server discovery cards and browser WebMCP provider components
|
|
83
|
-
- **system-design**: Plan overall system topologies, compute sizing, and infrastructure resilience
|
|
84
|
-
- **
|
|
85
|
-
- **
|
|
86
|
-
- **security-audit**: Audit MCP authentication flows, token scopes, and transport encryption
|
|
87
|
-
- **add-telemetry-instrumentation**: Instrument MCP gateways with OpenTelemetry tracing and error metrics
|
|
91
|
+
- **build-mcp-server**: Implement the backend code, handlers, and tests specified by this architectural design.
|
|
92
|
+
- **configure-mcp**: Publish server discovery cards and browser WebMCP provider components.
|
|
93
|
+
- **system-design**: Plan overall system topologies, compute sizing, and infrastructure resilience.
|
|
94
|
+
- **agent-tool-orchestration**: Orchestrate tool call sequences, fallback chains, and parameter injection.
|
|
95
|
+
- **security-audit**: Audit MCP authentication flows, token scopes, and transport encryption.
|
|
@@ -11,98 +11,90 @@ Use this skill when exposing API capabilities or developer instructions through
|
|
|
11
11
|
|
|
12
12
|
## Core Rules
|
|
13
13
|
|
|
14
|
-
- The manifest MUST be placed at `/.well-known/agent-skills/index.json` at the domain root.
|
|
15
|
-
- The
|
|
16
|
-
- Each skill entry MUST
|
|
17
|
-
-
|
|
18
|
-
-
|
|
19
|
-
-
|
|
20
|
-
-
|
|
21
|
-
-
|
|
22
|
-
-
|
|
14
|
+
- The manifest MUST be placed at `/.well-known/agent-skills/index.json` at the domain root (RFC 8615).
|
|
15
|
+
- The manifest envelope MUST conform to agentskills.io 0.2.0: declare `$schema: "https://schemas.agentskills.io/discovery/0.2.0/schema.json"` and a non-empty `skills` array.
|
|
16
|
+
- Each skill entry MUST declare:
|
|
17
|
+
- `name`: stable kebab-case identifier (`^[a-z0-9]+(-[a-z0-9]+)*$`) matching directory and SKILL.md slug.
|
|
18
|
+
- `type`: packaging type enum `["skill-md", "archive"]` (`skill-md` for standalone Markdown, `archive` for bundled tools).
|
|
19
|
+
- `description`: 20 to 1024 characters with an explicit "Use when..." operational trigger clause.
|
|
20
|
+
- `url`: relative or absolute URI reference to the full SKILL.md or archive package.
|
|
21
|
+
- `digest`: lowercase hexadecimal SHA-256 digest prefixed with `sha256:` (`^sha256:[a-f0-9]{64}$`).
|
|
22
|
+
- **Progressive Disclosure**: Expose capabilities in two tiers:
|
|
23
|
+
- *Tier 1 (Passive Discovery Index)*: Compact manifest index strictly $< 5\text{ KB}$ containing metadata descriptors without instruction bodies, loaded into agent context at session startup.
|
|
24
|
+
- *Tier 2 (JIT Asset Retrieval)*: Full `SKILL.md` instructions or unpacked tool archives fetched Just-In-Time (JIT) into the execution sandbox only when an active intent matches the skill trigger.
|
|
25
|
+
- **Canonical Cryptographic Verification**: Compute SHA-256 digests using RFC 8785 JSON Canonicalization Scheme (JCS) or raw asset bytes; verify fetched asset digest before loading to prevent supply-chain tampering (OWASP AST02).
|
|
26
|
+
- **Discovery Headers & CORS**: Manifest HTTP response MUST set `Content-Type: application/json` and `Access-Control-Allow-Origin: *` (with 204 response on CORS `OPTIONS` preflight).
|
|
27
|
+
- **Passive Link Discovery**: The server MUST advertise the manifest via RFC 8288 Link header on the domain root: `Link: </.well-known/agent-skills/index.json>; rel="agent-skills"`.
|
|
28
|
+
- **Cache Freshness**: Serve `ETag` and `Last-Modified` headers to enable conditional HTTP requests (`If-None-Match`), preventing stale contract execution (OWASP ASI01).
|
|
29
|
+
- **Identity Triad Parity**: Enforce strict parity: $\text{Directory Slug} \equiv \text{Frontmatter Name} \equiv \text{Manifest Name}$.
|
|
23
30
|
|
|
24
31
|
## When to Use
|
|
25
32
|
|
|
26
|
-
-
|
|
27
|
-
- Updating the
|
|
28
|
-
-
|
|
29
|
-
-
|
|
33
|
+
- Exposing agent skills and tool capabilities via the agentskills.io 0.2.0 discovery standard
|
|
34
|
+
- Updating the capability manifest after adding, modifying, or deprecating skill endpoints
|
|
35
|
+
- Implementing two-tier progressive disclosure (Tier 1 passive index vs Tier 2 JIT asset loading)
|
|
36
|
+
- Verifying SHA-256 asset digests and cross-origin CORS/Link headers for orchestrator discovery
|
|
30
37
|
|
|
31
38
|
## Suggested Process
|
|
32
39
|
|
|
33
|
-
1. **
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
- `id`: stable unique slug (e.g., `assign-order-courier`)
|
|
37
|
-
- `name`: human-readable name
|
|
38
|
-
- `description`: what the skill does and when to invoke it
|
|
39
|
-
- `endpoint`: the API path (can be relative or absolute)
|
|
40
|
-
- `method`: HTTP method
|
|
41
|
-
- `auth`: authentication scheme required (e.g., `bearer`, `oauth2`, `none`)
|
|
42
|
-
- `input_schema`: JSON Schema for the request payload (optional but strongly recommended)
|
|
43
|
-
- `output_schema`: JSON Schema for the response (optional but strongly recommended)
|
|
44
|
-
|
|
45
|
-
3. **Build the index.json**: Wrap skill entries in the agentskills.io manifest envelope:
|
|
40
|
+
1. **Inventory Capabilities & Calibrate Triggers**: Define skill `name` (kebab-case), select packaging `type` (`skill-md` for standalone markdown, `archive` for bundled assets), author an operational `description` with an explicit `Use when...` trigger clause, and assign stable `url`.
|
|
41
|
+
2. **Compute Canonical SHA-256 Digest**: Calculate the SHA-256 hash across canonical asset bytes (RFC 8785 JCS canonicalization for JSON or raw byte stream for Markdown/tar archives) and format as `sha256:<64-hex-chars>`.
|
|
42
|
+
3. **Build agentskills.io 0.2.0 Manifest**: Wrap capability descriptors in the normative 0.2.0 envelope:
|
|
46
43
|
```json
|
|
47
44
|
{
|
|
48
|
-
"
|
|
49
|
-
"skills": [
|
|
45
|
+
"$schema": "https://schemas.agentskills.io/discovery/0.2.0/schema.json",
|
|
46
|
+
"skills": [
|
|
47
|
+
{
|
|
48
|
+
"name": "pdf-processing",
|
|
49
|
+
"type": "skill-md",
|
|
50
|
+
"description": "Extract text, tables, and form fields from PDF files. Use when extracting data from invoices, forms, or documents.",
|
|
51
|
+
"url": "/.well-known/agent-skills/pdf-processing/SKILL.md",
|
|
52
|
+
"digest": "sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855"
|
|
53
|
+
}
|
|
54
|
+
]
|
|
50
55
|
}
|
|
51
56
|
```
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
5. **Configure response headers**: Ensure `Content-Type: application/json` and `Access-Control-Allow-Origin: *` (or scoped origin) are set on the response.
|
|
56
|
-
|
|
57
|
-
6. **Validate and test**: Fetch the manifest via `curl https://yourdomain.com/.well-known/agent-skills/index.json` and validate against the agentskills.io schema. Test that agent clients can parse and invoke declared skills.
|
|
58
|
-
|
|
59
|
-
7. **Wire up discovery**: Add a Link header via `configure-agent-headers` pointing to the manifest for passive discovery without requiring active crawl.
|
|
60
|
-
|
|
61
|
-
## Output Format
|
|
62
|
-
|
|
63
|
-
- `/.well-known/agent-skills/index.json` — JSON manifest
|
|
64
|
-
- Response headers: `Content-Type: application/json`, `Access-Control-Allow-Origin`
|
|
57
|
+
4. **Deploy at Well-Known Path**: Place the manifest at `/.well-known/agent-skills/index.json`. For Cloudflare Pages, publish under `public/.well-known/agent-skills/index.json`; for Workers, handle on router.
|
|
58
|
+
5. **Configure Response & Discovery Headers**: Set `Content-Type: application/json`, `Access-Control-Allow-Origin: *`, `ETag`, `Last-Modified`, and add `Link: </.well-known/agent-skills/index.json>; rel="agent-skills"` on the domain root.
|
|
59
|
+
6. **Validate Progressive Disclosure**: Verify passive Tier 1 index payload remains $< 5\text{ KB}$ without instruction bodies; test JIT resolution and validate manifest against `contracts/schemas/agent-skills-discovery.json`.
|
|
65
60
|
|
|
66
61
|
## Checklist
|
|
67
62
|
|
|
68
|
-
- [ ]
|
|
69
|
-
- [ ]
|
|
70
|
-
- [ ]
|
|
71
|
-
- [ ]
|
|
72
|
-
- [ ]
|
|
73
|
-
- [ ] Manifest
|
|
74
|
-
- [ ]
|
|
75
|
-
- [ ]
|
|
76
|
-
- [ ] Link header pointing to the manifest is configured (via `configure-agent-headers`).
|
|
63
|
+
- [ ] Manifest envelope specifies `$schema: "https://schemas.agentskills.io/discovery/0.2.0/schema.json"`.
|
|
64
|
+
- [ ] Every skill declares `name`, `type` (`skill-md` or `archive`), `description`, `url`, and `digest`.
|
|
65
|
+
- [ ] Skill descriptions include explicit "Use when..." or "Use for..." trigger clauses.
|
|
66
|
+
- [ ] Canonical SHA-256 digests computed and formatted with `sha256:` prefix.
|
|
67
|
+
- [ ] Passive Tier 1 discovery index size is strictly $< 5\text{ KB}$ without embedded instruction bodies.
|
|
68
|
+
- [ ] Manifest endpoint served with `Content-Type: application/json` and `Access-Control-Allow-Origin: *`.
|
|
69
|
+
- [ ] RFC 8288 Link header pointing to discovery manifest configured on domain root.
|
|
70
|
+
- [ ] Manifest validated against `contracts/schemas/agent-skills-discovery.json`.
|
|
77
71
|
|
|
78
72
|
## Related Skills
|
|
79
73
|
|
|
80
|
-
- **configure-mcp**: Expose model context server capability endpoint —
|
|
74
|
+
- **configure-mcp**: Expose model context server capability endpoint — co-deployed with agent skills manifest.
|
|
81
75
|
- **manage-api-catalog**: Wire up RFC 9727 API catalog linkset — complementary discovery mechanism.
|
|
82
|
-
- **
|
|
76
|
+
- **agent-a2a-protocol**: Implement full A2A 1.0 task lifecycle across discovered agent endpoints.
|
|
77
|
+
- **configure-agent-headers**: Expose well-known discovery paths via HTTP Link headers for passive discovery.
|
|
83
78
|
|
|
84
79
|
## Output Contracts
|
|
85
80
|
|
|
86
|
-
The manifest itself is the primary
|
|
87
|
-
to another agent (CI pipeline, infra agent, or registry publisher), emit:
|
|
88
|
-
|
|
89
|
-
- **`contracts/schemas/api-contract-spec.json`** describing the manifest shape, the schema version, the list of skill ids, and any deprecated entries. The consuming agent can then validate before publishing.
|
|
90
|
-
- For human-readable reports, a markdown diff against the previous `schema_version` is sufficient.
|
|
81
|
+
The manifest itself is the primary discovery contract. When communicating manifest changes:
|
|
91
82
|
|
|
92
|
-
|
|
83
|
+
- **`contracts/schemas/agent-skills-discovery.json`**: Primary schema contract for `/.well-known/agent-skills/index.json`, enforcing agentskills.io 0.2.0 structure, packaging types, and SHA-256 digests.
|
|
84
|
+
- **`contracts/schemas/api-contract-spec.json`**: Emitted when communicating service endpoint shape changes across agent boundaries.
|
|
93
85
|
|
|
94
86
|
## Failure Modes
|
|
95
87
|
|
|
96
|
-
- **Schema
|
|
97
|
-
- **
|
|
98
|
-
- **
|
|
99
|
-
- **
|
|
100
|
-
- **
|
|
88
|
+
- **Schema Drift**: Manifest deployed without valid 0.2.0 `$schema` or missing mandatory fields. Mitigation: CI gate validates against `agent-skills-discovery.json`.
|
|
89
|
+
- **Digest Mismatch**: Skill asset modified without updating `digest`. Mitigation: Runtime aborts with `E_DIGEST_MISMATCH` to prevent supply chain poisoning (AST02).
|
|
90
|
+
- **Context Bloat**: Ingesting full markdown instruction bodies into `index.json`. Mitigation: Enforce Tier 1 passive discovery index $< 5\text{ KB}$; fetch full markdown JIT.
|
|
91
|
+
- **CORS Blockade**: Browser orchestrator blocked from reading manifest. Mitigation: Return `Access-Control-Allow-Origin: *` and 204 on preflight `OPTIONS`.
|
|
92
|
+
- **Stale Cache Execution**: Agent client executing cached manifest after capability changes. Mitigation: Set `ETag` and `Last-Modified` for conditional HTTP revalidation.
|
|
101
93
|
|
|
102
94
|
## Security Guardrails (OWASP ASI)
|
|
103
95
|
|
|
104
|
-
- **ASI01 Goal Hijack**:
|
|
105
|
-
- **ASI03 Identity & Privilege Abuse**:
|
|
106
|
-
- **ASI04 Supply Chain**:
|
|
107
|
-
- **ASI07 Inter-Agent Communication**:
|
|
108
|
-
- **ASI09 Human-Agent Trust Exploitation**:
|
|
96
|
+
- **ASI01 Goal Hijack**: Malicious manifest redirecting agents to untrusted endpoints. Validate `url` against trusted domain allowlist.
|
|
97
|
+
- **ASI03 Identity & Privilege Abuse**: Declared skills must align with role policy profile and action boundaries; do not infer authority from URLs.
|
|
98
|
+
- **ASI04 Supply Chain**: Enforce SHA-256 cryptographic verification before loading any JIT skill asset into the execution sandbox.
|
|
99
|
+
- **ASI07 Inter-Agent Communication**: Treat manifest as a signed public contract; validate all changes in CI prior to deployment.
|
|
100
|
+
- **ASI09 Human-Agent Trust Exploitation**: Surface validator output in deploy records; never claim compliance without passing validation.
|