@vesviet/agent-skills 5.7.3 → 5.10.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 +21 -18
- package/README.md +11 -10
- package/VERSION +1 -1
- package/adapters/antigravity/ANTIGRAVITY.md +89 -4
- package/adapters/antigravity/INDEX_TIER1.json +1294 -0
- package/adapters/antigravity/a2a-config.template.yaml +22 -8
- package/adapters/antigravity/role-skill-index.json +48 -19
- package/adapters/claude/CLAUDE_ADAPTER.md +1 -1
- package/adapters/claude/settings.template.json +7 -3
- package/adapters/cursor/hooks.template.json +3 -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 +334 -2
- package/core/policies/mcp-tool-map.yaml +61 -4
- package/core/roles/3d-graphics-engineer.md +5 -1
- package/core/roles/README.md +1 -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 +10 -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/references/vietnam-accounting-specialist-review-checklist.md +6 -6
- 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 +23 -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 +10 -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 +26 -24
- package/core/roles/vietnam-legal-counsel.md +6 -4
- package/core/rules/code.md +11 -6
- package/core/skills/README.md +3 -2
- package/core/skills/agent/agent-a2a-protocol/SKILL.md +25 -93
- package/core/skills/agent/agent-memory-compaction/SKILL.md +27 -0
- package/core/skills/agent/architect-mcp-server/SKILL.md +35 -27
- package/core/skills/agent/configure-agent-commerce/SKILL.md +2 -0
- package/core/skills/agent/configure-agent-commerce/examples/ucp-commerce-manifest-and-endpoints.json +55 -0
- package/core/skills/agent/configure-agent-commerce/references/acp-ucp-agent-commerce-manifest-specs.md +66 -0
- package/core/skills/agent/configure-agent-skills/SKILL.md +60 -68
- package/core/skills/agent/manage-agent-identity/SKILL.md +2 -0
- package/core/skills/agent/manage-agent-identity/examples/agent-identity-spire-workload.yaml +72 -0
- package/core/skills/agent/manage-agent-identity/references/nhi-lifecycle-and-token-rotation.md +45 -0
- package/core/skills/ai/openrouter-task/SKILL.md +5 -5
- 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 +61 -60
- package/core/skills/ai-agent/context-optimization/examples/context-pruner-and-reorderer.py +85 -0
- package/core/skills/ai-agent/context-optimization/references/token-budgeting-and-attention-allocation.md +47 -0
- package/core/skills/ai-agent/memory-hygiene/SKILL.md +13 -0
- package/core/skills/ai-agent/memory-hygiene/examples/memory-audit-and-compaction-routine.py +90 -0
- package/core/skills/ai-agent/memory-hygiene/references/agent-memory-vault-spec.md +137 -0
- package/core/skills/ai-agent/memory-hygiene/references/owasp-asi06-and-memory-poisoning-defense.md +38 -0
- package/core/skills/backend/add-api-endpoint/examples/express-zod-rfc9457-endpoint.md +329 -0
- package/core/skills/backend/add-api-endpoint/examples/kratos-go-clean-architecture-endpoint.md +405 -0
- package/core/skills/backend/add-api-endpoint/references/idempotency-and-rate-limiting.md +116 -0
- package/core/skills/backend/add-event-handler/SKILL.md +1 -1
- package/core/skills/backend/scaffold-new-service/SKILL.md +2 -1
- package/core/skills/backend/scaffold-new-service/references/deep-modules-and-seams.md +43 -0
- package/core/skills/business/elicit-requirements/SKILL.md +1 -0
- package/core/skills/commerce/handle-checkout-flow/SKILL.md +3 -1
- package/core/skills/commerce/handle-checkout-flow/examples/production-checkout-orchestrator.ts +185 -0
- package/core/skills/commerce/handle-checkout-flow/references/pci-dss-v4-and-agentic-checkout-specs.md +72 -0
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +3 -1
- package/core/skills/commerce/integrate-payment-gateway/examples/resilient-webhook-and-mpp-handler.ts +164 -0
- package/core/skills/commerce/integrate-payment-gateway/references/mpp-x402-and-webhook-security-specs.md +47 -0
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +3 -1
- package/core/skills/commerce/manage-order-fulfillment/examples/temporal-fulfillment-saga.ts +104 -0
- package/core/skills/commerce/manage-order-fulfillment/references/event-sourced-fulfillment-and-carrier-webhooks.md +58 -0
- package/core/skills/commerce/manage-product-catalog/SKILL.md +3 -1
- package/core/skills/commerce/manage-product-catalog/examples/hybrid-search-and-governance-pipeline.ts +120 -0
- package/core/skills/commerce/manage-product-catalog/references/semantic-vector-catalog-and-graphrag.md +54 -0
- package/core/skills/content/write-article/SKILL.md +1 -1
- package/core/skills/document/pdf/SKILL.md +1 -0
- package/core/skills/document/pdf/references/pdf-acroforms-and-pdfplumber-specs.md +54 -0
- package/core/skills/document/pdf/scripts/check_fillable_fields.py +144 -0
- package/core/skills/document/pdf/scripts/fill_fillable_fields.py +145 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +2 -0
- package/core/skills/documentation/configure-llms-txt/examples/canonical-llms-txt-and-full-txt.md +45 -0
- package/core/skills/documentation/configure-llms-txt/references/llms-txt-and-llms-full-txt-standard.md +37 -0
- package/core/skills/documentation/write-documentation/SKILL.md +3 -1
- package/core/skills/documentation/write-documentation/examples/microservice-production-readme-and-api-docs.md +70 -0
- package/core/skills/documentation/write-documentation/references/diataxis-framework-and-doc-standards.md +62 -0
- package/core/skills/foundation/ai-risk-assessment/SKILL.md +3 -5
- package/core/skills/foundation/ai-risk-assessment/examples/genai-system-risk-register.md +67 -0
- package/core/skills/foundation/ai-risk-assessment/references/nist-ai-rmf-and-eu-ai-act-taxonomy.md +49 -0
- package/core/skills/foundation/conduct-research/SKILL.md +1 -1
- package/core/skills/foundation/discernment-nudge/SKILL.md +1 -0
- package/core/skills/foundation/plan-technical-delivery/SKILL.md +2 -1
- package/core/skills/foundation/release-notes/SKILL.md +2 -3
- package/core/skills/foundation/release-notes/examples/enterprise-platform-release-notes.md +42 -0
- package/core/skills/foundation/release-notes/references/keep-a-changelog-and-semver-governance.md +43 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +5 -0
- package/core/skills/foundation/write-tests/examples/anti-tautological-tdd-walkthrough.md +204 -0
- package/core/skills/foundation/write-tests/examples/testcontainers-kratos-integration-test.md +186 -0
- package/core/skills/foundation/write-tests/references/contract-and-chaos-testing.md +187 -0
- package/core/skills/frontend/INDEX.json +16 -0
- package/core/skills/frontend/add-page-route/SKILL.md +3 -1
- package/core/skills/frontend/add-page-route/examples/streaming-rsc-page-with-view-transition.tsx +133 -0
- package/core/skills/frontend/add-page-route/references/rsc-routing-and-view-transitions.md +72 -0
- package/core/skills/frontend/add-ui-component/SKILL.md +3 -1
- package/core/skills/frontend/add-ui-component/examples/compound-dialog-and-form-actions.tsx +193 -0
- package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +55 -0
- package/core/skills/frontend/component-composition/SKILL.md +2 -1
- package/core/skills/frontend/component-composition/examples/headless-combobox-compound-component.tsx +207 -0
- package/core/skills/frontend/frontend-testing/SKILL.md +3 -1
- package/core/skills/frontend/frontend-testing/examples/playwright-e2e-with-msw-and-axe.spec.ts +87 -0
- package/core/skills/frontend/frontend-testing/references/playwright-msw-and-a11y-testing-standards.md +78 -0
- package/core/skills/frontend/implement-ai-disclosure/SKILL.md +118 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +3 -1
- package/core/skills/frontend/implement-webmcp/examples/webmcp-provider-and-hitl-modal.tsx +163 -0
- package/core/skills/frontend/implement-webmcp/references/webmcp-architecture-and-hitl-security.md +48 -0
- package/core/skills/frontend/integrate-api-client/SKILL.md +3 -1
- package/core/skills/frontend/integrate-api-client/examples/orval-query-and-streaming-mutation.ts +102 -0
- package/core/skills/frontend/integrate-api-client/references/orval-tanstack-query-and-streaming-specs.md +57 -0
- package/core/skills/frontend/setup-design-system/SKILL.md +3 -1
- package/core/skills/frontend/setup-design-system/examples/tailwind-v4-theme-and-dtcg-tokens.css +87 -0
- package/core/skills/frontend/setup-design-system/references/tailwind-v4-oklch-and-dtcg-tokens.md +61 -0
- package/core/skills/frontend/setup-visual-regression/SKILL.md +3 -1
- package/core/skills/frontend/setup-visual-regression/examples/visual-regression-playwright.config.ts +83 -0
- package/core/skills/frontend/setup-visual-regression/references/visual-regression-docker-and-masking-specs.md +46 -0
- package/core/skills/gamedev/abstract-input-actions/SKILL.md +2 -0
- package/core/skills/gamedev/abstract-input-actions/examples/input-action-manager.ts +85 -0
- package/core/skills/gamedev/abstract-input-actions/references/action-mapping-and-analog-deadzones.md +54 -0
- package/core/skills/gamedev/architect-ecs-systems/SKILL.md +2 -0
- package/core/skills/gamedev/architect-ecs-systems/examples/bevy-flecs-combat-system.rs +73 -0
- package/core/skills/gamedev/architect-ecs-systems/references/data-oriented-design-and-archetype-ecs.md +39 -0
- package/core/skills/gamedev/author-game-ai/SKILL.md +2 -0
- package/core/skills/gamedev/author-game-ai/examples/modular-behavior-tree-ai.ts +98 -0
- package/core/skills/gamedev/author-game-ai/references/behavior-trees-and-utility-ai-curves.md +47 -0
- package/core/skills/gamedev/configure-physics-collision/SKILL.md +2 -0
- package/core/skills/gamedev/configure-physics-collision/examples/kinematic-physics-substepping.cpp +100 -0
- package/core/skills/gamedev/configure-physics-collision/references/continuous-collision-detection-and-substepping.md +50 -0
- package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +2 -0
- package/core/skills/gamedev/develop-gameplay-systems/examples/kinematic-character-controller.gd +86 -0
- package/core/skills/gamedev/develop-gameplay-systems/references/deterministic-gameplay-state-machines.md +42 -0
- package/core/skills/gamedev/implement-save-persistence/SKILL.md +2 -0
- package/core/skills/gamedev/implement-save-persistence/examples/versioned-save-manager.ts +127 -0
- package/core/skills/gamedev/implement-save-persistence/references/versioned-save-schemas-and-checksums.md +44 -0
- package/core/skills/gamedev/render-webgl-threejs/SKILL.md +2 -0
- package/core/skills/gamedev/render-webgl-threejs/examples/production-threejs-webgpu-scene.ts +116 -0
- package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +56 -0
- package/core/skills/mmo/analyze-campaign-roi/SKILL.md +2 -0
- package/core/skills/mmo/analyze-campaign-roi/examples/campaign-roi-and-roas-dashboard.py +80 -0
- package/core/skills/mmo/analyze-campaign-roi/references/multi-touch-attribution-and-cpa-analytics.md +33 -0
- package/core/skills/mmo/create-automation-script/SKILL.md +2 -0
- package/core/skills/mmo/create-automation-script/examples/stealth-browser-automation-flow.ts +65 -0
- package/core/skills/mmo/create-automation-script/references/stealth-cdp-and-behavioral-mimicry.md +37 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +2 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/examples/proxy-health-probe-and-rotation-daemon.py +75 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/references/proxy-pool-rotation-and-anti-detect-specs.md +45 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +2 -0
- package/core/skills/mmo/deploy-proxyware-fleet/examples/docker-compose-depin-light-node-fleet.yaml +52 -0
- package/core/skills/mmo/deploy-proxyware-fleet/references/depin-bandwidth-monetization-node-specs.md +43 -0
- package/core/skills/mmo/generate-mmo-content/SKILL.md +2 -0
- package/core/skills/mmo/generate-mmo-content/examples/pseo-programmatic-page-generator.ts +76 -0
- package/core/skills/mmo/generate-mmo-content/references/pseo-landing-pages-and-social-video-hooks.md +39 -0
- package/core/skills/mmo/manage-mmo-assets/SKILL.md +2 -0
- package/core/skills/mmo/manage-mmo-assets/examples/mmo-asset-vault-manager.py +63 -0
- package/core/skills/mmo/manage-mmo-assets/references/mmo-asset-rbac-and-vault-isolation.md +38 -0
- package/core/skills/mmo/setup-tracking-system/SKILL.md +2 -0
- package/core/skills/mmo/setup-tracking-system/examples/meta-capi-s2s-event-dispatcher.ts +79 -0
- package/core/skills/mmo/setup-tracking-system/references/server-to-server-postback-and-capi-specs.md +45 -0
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -0
- package/core/skills/platform/add-telemetry-instrumentation/examples/kratos-otel-middleware-instrumentation.go +87 -0
- package/core/skills/platform/add-telemetry-instrumentation/references/opentelemetry-semantic-conventions-2026.md +37 -0
- package/core/skills/platform/aws-infrastructure/SKILL.md +2 -0
- package/core/skills/platform/aws-infrastructure/examples/opentofu-eks-pod-identity-vpc.tf +101 -0
- package/core/skills/platform/aws-infrastructure/references/opentofu-aws-zero-trust-and-irsa.md +40 -0
- package/core/skills/platform/setup-deployment/SKILL.md +4 -0
- package/core/skills/platform/setup-deployment/examples/kustomize-production-service-manifests.yaml +123 -0
- package/core/skills/platform/setup-deployment/references/interactive-hitl-wizard.md +55 -0
- package/core/skills/platform/setup-deployment/references/k8s-gitops-and-kustomize-invariants.md +40 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +2 -0
- package/core/skills/platform/supply-chain-security/examples/github-actions-sbom-cosign.yaml +57 -0
- package/core/skills/platform/supply-chain-security/references/slsa-provenance-and-sbom-sigstore.md +60 -0
- package/core/skills/product/build-story-map/SKILL.md +2 -0
- package/core/skills/repo-ops/review-code/SKILL.md +2 -2
- package/core/skills/repo-ops/review-code/examples/adversarial-two-axis-pr-review.md +167 -0
- package/core/skills/repo-ops/review-code/examples/ai-vibe-slop-remediation.md +220 -0
- package/core/skills/repo-ops/review-code/references/supply-chain-and-migration-safety.md +103 -0
- package/core/skills/repo-ops/review-service/SKILL.md +1 -1
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -1
- package/core/skills/security-data/manage-secrets/SKILL.md +2 -0
- package/core/skills/security-data/manage-secrets/examples/external-secrets-vault-crds.yaml +53 -0
- package/core/skills/security-data/manage-secrets/references/zero-trust-secret-rotation-and-eso.md +30 -0
- package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +7 -7
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +2 -0
- package/core/skills/security-data/prompt-injection-defense/examples/bounded-tool-execution-wrapper.py +78 -0
- package/core/skills/security-data/prompt-injection-defense/references/prompt-injection-taxonomy-and-delimiters.md +37 -0
- package/core/skills/security-data/reverse-engineer-binary/SKILL.md +2 -0
- package/core/skills/security-data/reverse-engineer-binary/examples/binary-triage-and-vulnerability-dossier.md +58 -0
- package/core/skills/security-data/reverse-engineer-binary/references/ghidra-radare2-and-rea-evidence-ledgers.md +43 -0
- package/core/skills/security-data/security-audit/SKILL.md +3 -1
- package/core/skills/security-data/security-audit/examples/enterprise-service-security-audit-report.md +54 -0
- package/core/skills/security-data/security-audit/references/owasp-asi-and-cvss4-threat-modeling.md +39 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +2 -0
- package/core/skills/security-data/skill-preflight-ast-check/references/ast-lethal-trifecta-and-static-vetting.md +38 -0
- package/core/skills/security-data/skill-preflight-ast-check/scripts/scan-skill-ast.py +127 -0
- 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
|
@@ -0,0 +1,66 @@
|
|
|
1
|
+
# ACP & UCP Agentic Commerce Protocol Specifications (2026)
|
|
2
|
+
|
|
3
|
+
## 1. Protocol Architecture & Layering
|
|
4
|
+
|
|
5
|
+
Agentic commerce decouples tool orchestration, capability negotiation, payment settlement, and user delegation into four distinct architectural tiers:
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
┌────────────────────────────────────────────────────────┐
|
|
9
|
+
│ Tier 4: Delegation & Mandate (AP2 / FIDO Alliance) │
|
|
10
|
+
│ - Cryptographic purchase authorization & user intent │
|
|
11
|
+
├────────────────────────────────────────────────────────┤
|
|
12
|
+
│ Tier 3: Discovery & Negotiation (UCP / ACP) │
|
|
13
|
+
│ - Capability negotiation, product feed, cart saga │
|
|
14
|
+
├────────────────────────────────────────────────────────┤
|
|
15
|
+
│ Tier 2: Machine Payment Settlement (x402 / MPP) │
|
|
16
|
+
│ - HTTP 402, stablecoins (USDC/SOL) & card rails │
|
|
17
|
+
├────────────────────────────────────────────────────────┤
|
|
18
|
+
│ Tier 1: Tool Execution & Discovery (MCP / AAIF) │
|
|
19
|
+
│ - Model Context Protocol underlying transport │
|
|
20
|
+
└────────────────────────────────────────────────────────┘
|
|
21
|
+
```
|
|
22
|
+
|
|
23
|
+
## 2. Universal Commerce Protocol (UCP v2026-08-25)
|
|
24
|
+
|
|
25
|
+
The Universal Commerce Protocol defines how AI agents discover merchant capabilities and execute programmatic checkout sessions without DOM scraping.
|
|
26
|
+
|
|
27
|
+
### 2.1 Capability Discovery (`/.well-known/ucp`)
|
|
28
|
+
|
|
29
|
+
Merchants host a signed JSON manifest at `/.well-known/ucp`:
|
|
30
|
+
- `spec_version`: Identifies supported UCP revisions (`"2026-08-25"`).
|
|
31
|
+
- `capabilities`: Explicit array of supported features (`cart_management`, `atomic_checkout`, `dynamic_pricing`, `delegated_authorization`).
|
|
32
|
+
- `endpoints`: Canonical URL endpoints for cart mutation, payment intent, and order status verification.
|
|
33
|
+
- `signing_keys`: JWKS endpoint or embedded public keys for validating merchant order receipts.
|
|
34
|
+
|
|
35
|
+
### 2.2 UCP Cart & Checkout Lifecycle
|
|
36
|
+
|
|
37
|
+
1. **Session Negotiation (`POST /ucp/v1/sessions`)**:
|
|
38
|
+
Agent presents buyer credentials (agent DID and optional AP2 delegation token). Server issues `session_id` and ephemeral cart state.
|
|
39
|
+
2. **Item Synchronization (`PUT /ucp/v1/sessions/{id}/items`)**:
|
|
40
|
+
Strict JSON Schema validation: `sku`, `quantity`, `unit_price_cents`, and buyer constraint bounds.
|
|
41
|
+
3. **Fulfillment Resolution (`POST /ucp/v1/sessions/{id}/shipping-methods`)**:
|
|
42
|
+
Returns tax and shipping rate matrix computed deterministically based on shipping destination.
|
|
43
|
+
4. **Execution-Finality Check (`POST /ucp/v1/sessions/{id}/commit`)**:
|
|
44
|
+
Validates total transaction value against the buyer's mandate spend cap before triggering settlement.
|
|
45
|
+
|
|
46
|
+
## 3. Agentic Commerce Protocol (ACP) Specification
|
|
47
|
+
|
|
48
|
+
The Agentic Commerce Protocol standardizes card-rail checkout via RESTful contracts:
|
|
49
|
+
- `POST /v1/checkout_sessions`: Creates an agent-driven checkout instance with structured line items and payment allowances.
|
|
50
|
+
- `POST /v1/agentic_commerce/delegate_payment`: Binds a Stripe Shared Payment Token (SPT) to the active session.
|
|
51
|
+
- **Strict Headers**:
|
|
52
|
+
- `Idempotency-Key`: UUIDv4 ensuring zero double-charging on network retry.
|
|
53
|
+
- `X-Agent-DID`: Cryptographic Decentralized Identifier of the calling autonomous system.
|
|
54
|
+
|
|
55
|
+
## 4. Machine Payments Protocol (MPP) & x402 V2 Header Invariants
|
|
56
|
+
|
|
57
|
+
For micro-transactions and machine-to-machine settlements:
|
|
58
|
+
- `402 Payment Required` challenge must supply:
|
|
59
|
+
- Header: `PAYMENT-REQUIRED: scheme=x402; asset=USDC; network=base; amount=10000; pay_to=0x...; nonce=...`
|
|
60
|
+
- Response Body: Complete JSON schema detailing settlement networks, decimals, and expiry timestamp.
|
|
61
|
+
- Client retry must provide:
|
|
62
|
+
- Header: `PAYMENT-SIGNATURE: version=2; proof=...; nonce=...`
|
|
63
|
+
- Server verification:
|
|
64
|
+
- Replay cache lookup (Redis NX TTL 3600s).
|
|
65
|
+
- Signature validation against on-chain transaction or Stripe MPP verification API.
|
|
66
|
+
- Emission of `PAYMENT-RESPONSE: status=settled; tx_hash=0x...; receipt_id=rcpt_...`
|
|
@@ -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.
|
|
@@ -155,6 +155,8 @@ Produce an audit record for every production agent session:
|
|
|
155
155
|
- **manage-secrets**: Securely store and rotate agent credentials in secret managers.
|
|
156
156
|
- **security-audit**: Full security posture audit including NHI inventory review.
|
|
157
157
|
- **agent-observability**: Trace spans for session monitoring — NHI session ID is a required span attribute.
|
|
158
|
+
- Companion reference: `references/nhi-lifecycle-and-token-rotation.md`
|
|
159
|
+
- Companion example: `examples/agent-identity-spire-workload.yaml`
|
|
158
160
|
|
|
159
161
|
## Output Contracts
|
|
160
162
|
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
apiVersion: spire.spiffe.io/v1alpha1
|
|
2
|
+
kind: ClusterSPIFFEID
|
|
3
|
+
metadata:
|
|
4
|
+
name: agent-backend-developer-entry
|
|
5
|
+
spec:
|
|
6
|
+
spiffeIDTemplate: "spiffe://prod.internal/ns/{{ .PodMeta.Namespace }}/sa/{{ .PodSpec.ServiceAccountName }}/agent/{{ .PodMeta.Labels.agent_role }}"
|
|
7
|
+
podSelector:
|
|
8
|
+
matchLabels:
|
|
9
|
+
app.kubernetes.io/component: ai-agent-worker
|
|
10
|
+
agent_role: backend-developer
|
|
11
|
+
workloadSelectorTemplates:
|
|
12
|
+
- "k8s:container-name:agent-runtime"
|
|
13
|
+
- "k8s:ns:autonomous-agents"
|
|
14
|
+
---
|
|
15
|
+
apiVersion: v1
|
|
16
|
+
kind: ConfigMap
|
|
17
|
+
metadata:
|
|
18
|
+
name: agent-sts-exchange-config
|
|
19
|
+
namespace: autonomous-agents
|
|
20
|
+
data:
|
|
21
|
+
sts-config.json: |
|
|
22
|
+
{
|
|
23
|
+
"sts_endpoint": "https://auth.internal.example.com/oauth/v2/token",
|
|
24
|
+
"grant_type": "urn:ietf:params:oauth:grant-type:token-exchange",
|
|
25
|
+
"subject_token_type": "urn:ietf:params:oauth:token-type:jwt",
|
|
26
|
+
"requested_token_type": "urn:ietf:params:oauth:token-type:access_token",
|
|
27
|
+
"audience": "https://api.internal.example.com/v1",
|
|
28
|
+
"ttl_seconds": 1800,
|
|
29
|
+
"enforce_rfc8707_resource": true,
|
|
30
|
+
"revocation_webhook": "https://auth.internal.example.com/oauth/v2/revoke"
|
|
31
|
+
}
|
|
32
|
+
---
|
|
33
|
+
apiVersion: apps/v1
|
|
34
|
+
kind: Deployment
|
|
35
|
+
metadata:
|
|
36
|
+
name: agent-backend-worker
|
|
37
|
+
namespace: autonomous-agents
|
|
38
|
+
labels:
|
|
39
|
+
app.kubernetes.io/component: ai-agent-worker
|
|
40
|
+
agent_role: backend-developer
|
|
41
|
+
spec:
|
|
42
|
+
replicas: 1
|
|
43
|
+
selector:
|
|
44
|
+
matchLabels:
|
|
45
|
+
app.kubernetes.io/component: ai-agent-worker
|
|
46
|
+
agent_role: backend-developer
|
|
47
|
+
template:
|
|
48
|
+
metadata:
|
|
49
|
+
labels:
|
|
50
|
+
app.kubernetes.io/component: ai-agent-worker
|
|
51
|
+
agent_role: backend-developer
|
|
52
|
+
spec:
|
|
53
|
+
serviceAccountName: backend-developer-sa
|
|
54
|
+
containers:
|
|
55
|
+
- name: agent-runtime
|
|
56
|
+
image: ghcr.io/org/agent-runtime:v2.12.0
|
|
57
|
+
env:
|
|
58
|
+
- name: SPIFFE_ENDPOINT_SOCKET
|
|
59
|
+
value: unix:///run/spire/sockets/agent.sock
|
|
60
|
+
- name: AGENT_ROLE
|
|
61
|
+
value: backend-developer
|
|
62
|
+
- name: TOKEN_TTL_SECONDS
|
|
63
|
+
value: "1800"
|
|
64
|
+
volumeMounts:
|
|
65
|
+
- name: spire-agent-socket
|
|
66
|
+
mountPath: /run/spire/sockets
|
|
67
|
+
readOnly: true
|
|
68
|
+
volumes:
|
|
69
|
+
- name: spire-agent-socket
|
|
70
|
+
csi:
|
|
71
|
+
driver: "csi.spiffe.io"
|
|
72
|
+
readOnly: true
|
package/core/skills/agent/manage-agent-identity/references/nhi-lifecycle-and-token-rotation.md
ADDED
|
@@ -0,0 +1,45 @@
|
|
|
1
|
+
# Non-Human Identity (NHI) Lifecycle & Token Rotation (2026)
|
|
2
|
+
|
|
3
|
+
## 1. Executive Summary & Standards Alignment
|
|
4
|
+
|
|
5
|
+
In autonomous multi-agent environments, Non-Human Identities (NHI) outnumber human credentials at scale. This reference defines the zero-trust governance model adhering to:
|
|
6
|
+
- **IMDA Model AI Governance Framework for Agentic AI (2026)**
|
|
7
|
+
- **NIST AI 100-2 (EIV & Identity Proofing)**
|
|
8
|
+
- **RFC 8693 (OAuth 2.0 Token Exchange) & RFC 8707 (Resource Indicators)**
|
|
9
|
+
- **SPIFFE/SPIRE Workload Attestation Standards**
|
|
10
|
+
|
|
11
|
+
## 2. SPIFFE ID Taxonomy for Autonomous Agents
|
|
12
|
+
|
|
13
|
+
Agent workloads are assigned deterministic SPIFFE IDs reflecting cluster domain, namespace, role identity, and session instance:
|
|
14
|
+
|
|
15
|
+
```
|
|
16
|
+
spiffe://prod.internal/ns/agents/role/{role_name}/session/{session_uuid}
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Attestation Invariants
|
|
20
|
+
1. **Node Attestation**: AWS IID (Instance Identity Document) or K8s PSAT (Projected Service Account Token).
|
|
21
|
+
2. **Workload Attestation**: Unix process UID, container cgroup, and execution binary SHA256 digest.
|
|
22
|
+
3. **SVID Issuance**: X.509 SVID (mTLS) or JWT-SVID carrying cryptographically signed claims verifying agent role membership.
|
|
23
|
+
|
|
24
|
+
## 3. Just-In-Time (JIT) Credential Attenuation (RFC 8693)
|
|
25
|
+
|
|
26
|
+
Static API keys are prohibited. Agents negotiate task-scoped, ephemeral tokens:
|
|
27
|
+
- **Token Request**: Agent exchanges its short-lived JWT-SVID for an attenuated OAuth 2.0 access token via the central Security Token Service (STS).
|
|
28
|
+
- **Scope Attenuation**: The requested scope must be an exact subset of the role's declared `action-boundaries.yaml`.
|
|
29
|
+
- **TTL Bounds**: `min(task_estimated_duration * 1.2, 60 minutes)`.
|
|
30
|
+
- **Resource Constraints (RFC 8707)**: Token explicitly names authorized downstream target URIs.
|
|
31
|
+
|
|
32
|
+
## 4. Behavioral Baseline & Circuit Breaker Triggers
|
|
33
|
+
|
|
34
|
+
Active agent monitoring compares telemetry spans against the declared session baseline:
|
|
35
|
+
- **Tool Invocations**: An invocation of a tool not registered in `expected_tools` increments the anomaly counter. Three unexpected invocations trigger an immediate kill signal.
|
|
36
|
+
- **Path Traversal / Resource Boundary**: Single attempt to write outside `expected_resources` revokes the JWT-SVID and triggers automated quarantine.
|
|
37
|
+
- **Token Velocity**: Consumption of token budget > 150% halts execution pending human-in-the-loop (HITL) approval.
|
|
38
|
+
|
|
39
|
+
## 5. Automated Offboarding & Revocation Flow
|
|
40
|
+
|
|
41
|
+
Upon task completion or anomaly tripwire:
|
|
42
|
+
1. Revocation broadcast to OAuth introspection cache (Redis cluster blacklist).
|
|
43
|
+
2. SPIRE Server issues workload un-registration and terminates SVID renew loops.
|
|
44
|
+
3. Vault dynamic lease cancellation and immediate database credential purge.
|
|
45
|
+
4. Comprehensive audit log emitted adhering to `incident-report.json`.
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: openrouter-task
|
|
3
|
-
description: Offload lightweight tasks, boilerplate code generation, unit tests, summarization, and data transformations to OpenRouter FREE LLMs pool (:free) using the local environment key
|
|
3
|
+
description: Offload lightweight tasks, boilerplate code generation, unit tests, summarization, and data transformations to OpenRouter FREE LLMs pool (:free) using the local environment key configured via OPENROUTER_ENV_FILE (or local .env) to preserve Google Gemini quota. Use when running secondary, repetitive, or lightweight coding and data transformation tasks via free model rotation.
|
|
4
4
|
allowed-tools: [execute_command, read_file, write_file]
|
|
5
5
|
version: "1.1.0"
|
|
6
6
|
---
|
|
@@ -19,7 +19,7 @@ Use this skill when you need to run secondary, repetitive, or lightweight tasks
|
|
|
19
19
|
## Core Rules
|
|
20
20
|
|
|
21
21
|
- **Free Tier Enforcement (`:free`)**: only invoke models ending with `:free` or `openrouter/free` to guarantee zero token expenditure.
|
|
22
|
-
- **Zero Hardcoded Secrets**: load `OPENROUTER_API_KEY` exclusively from
|
|
22
|
+
- **Zero Hardcoded Secrets**: load `OPENROUTER_API_KEY` exclusively from environment variables or a local environment file (via `$OPENROUTER_ENV_FILE` or `.env`); never hardcode or log API keys in source files or outputs.
|
|
23
23
|
- **Round-Robin & Failover Resilience**: rotate across the free model pool and automatically fail over when an upstream provider returns HTTP 429 or 5xx.
|
|
24
24
|
- **Untrusted Output Validation**: treat all generated code and transformed data from external free models as untrusted; validate syntax, types, and tests locally before integration.
|
|
25
25
|
|
|
@@ -39,13 +39,13 @@ The default execution mode automatically rotates (Round-Robin) and fails over ac
|
|
|
39
39
|
### 1. Verify Pool Readiness
|
|
40
40
|
Check the free model rotation pool and environment key configuration:
|
|
41
41
|
```bash
|
|
42
|
-
python
|
|
42
|
+
python tools/openrouter_worker.py --check
|
|
43
43
|
```
|
|
44
44
|
|
|
45
45
|
### 2. Execute Task via CLI Runner or MCP Server
|
|
46
46
|
Invoke the Python CLI runner (automatically rotates and falls back across free models without needing `--model`):
|
|
47
47
|
```bash
|
|
48
|
-
python
|
|
48
|
+
python tools/openrouter_worker.py --prompt "<task_description>"
|
|
49
49
|
```
|
|
50
50
|
Or call the `call_openrouter` tool registered under the `openrouter` MCP server (`~/.gemini/config/mcp_config.json`).
|
|
51
51
|
|
|
@@ -71,7 +71,7 @@ When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
|
71
71
|
|
|
72
72
|
- **Upstream provider rate-limiting (HTTP 429)**: free tier endpoints experience burst throttling. Mitigation: rely on the built-in round-robin pool and automatic failover across the 7 registered `:free` models.
|
|
73
73
|
- **Truncated or malformed code generation**: smaller free models may emit incomplete syntax blocks. Mitigation: parse and lint all generated artifacts locally before applying edits.
|
|
74
|
-
- **Missing local `.env` key**: `OPENROUTER_API_KEY` is absent or expired in `
|
|
74
|
+
- **Missing local `.env` key**: `OPENROUTER_API_KEY` is absent or expired in the configured environment file (`$OPENROUTER_ENV_FILE` / `.env`). Mitigation: run `--check` preflight and surface configuration errors immediately without falling back to paid endpoints.
|
|
75
75
|
|
|
76
76
|
## Security Guardrails (OWASP ASI)
|
|
77
77
|
|