@vesviet/agent-skills 0.0.0-stage → 5.6.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 +973 -0
- package/LICENSE +201 -0
- package/README.md +137 -2
- package/VERSION +1 -0
- package/adapters/antigravity/ANTIGRAVITY.md +136 -0
- package/adapters/antigravity/a2a-config.template.yaml +82 -0
- package/adapters/antigravity/capability-role-map.generated.yaml +41 -0
- package/adapters/antigravity/role-skill-index.json +4812 -0
- package/adapters/antigravity/rules.template.md +39 -0
- package/adapters/claude/CLAUDE_ADAPTER.md +271 -0
- package/adapters/claude/commands/check-policy.md +15 -0
- package/adapters/claude/commands/coordinate.md +17 -0
- package/adapters/claude/commands/review.md +17 -0
- package/adapters/claude/settings.template.json +36 -0
- package/adapters/cursor/README.md +186 -0
- package/adapters/cursor/hooks.template.json +71 -0
- package/bin/agent-skills.mjs +241 -0
- package/core/README.md +53 -0
- package/core/contracts/README.md +158 -0
- package/core/contracts/schemas/INDEX.md +227 -0
- package/core/contracts/schemas/a2a-artifact.json +171 -0
- package/core/contracts/schemas/a2a-jsonrpc-envelope.json +74 -0
- package/core/contracts/schemas/a2a-message.json +107 -0
- package/core/contracts/schemas/a2a-push-notification-config.json +57 -0
- package/core/contracts/schemas/a2a-task-cancel.json +36 -0
- package/core/contracts/schemas/a2a-task-progress.json +80 -0
- package/core/contracts/schemas/a2a-task-status.json +181 -0
- package/core/contracts/schemas/a2a-task.json +219 -0
- package/core/contracts/schemas/accounting-compliance-review.json +379 -0
- package/core/contracts/schemas/adr-spec.json +225 -0
- package/core/contracts/schemas/agent-card.json +382 -0
- package/core/contracts/schemas/agent-eval-report.json +490 -0
- package/core/contracts/schemas/agent-trace-span.json +146 -0
- package/core/contracts/schemas/ai-risk-register.json +198 -0
- package/core/contracts/schemas/amis-voucher-contract.json +541 -0
- package/core/contracts/schemas/api-contract-spec.json +191 -0
- package/core/contracts/schemas/architecture-options.json +128 -0
- package/core/contracts/schemas/assumptions-ledger.json +130 -0
- package/core/contracts/schemas/aws-infra-spec.json +248 -0
- package/core/contracts/schemas/code-review-finding.json +295 -0
- package/core/contracts/schemas/compact-working-state.json +282 -0
- package/core/contracts/schemas/content-audit-report.json +270 -0
- package/core/contracts/schemas/content-handoff.json +534 -0
- package/core/contracts/schemas/coordination-plan.json +530 -0
- package/core/contracts/schemas/data-analysis-report.json +492 -0
- package/core/contracts/schemas/data-pipeline-spec.json +420 -0
- package/core/contracts/schemas/deployment-plan.json +600 -0
- package/core/contracts/schemas/design-tokens-spec.json +539 -0
- package/core/contracts/schemas/document-manifest.json +155 -0
- package/core/contracts/schemas/documentation-handoff.json +137 -0
- package/core/contracts/schemas/edge-deployment-spec.json +375 -0
- package/core/contracts/schemas/feature-ticket.json +1293 -0
- package/core/contracts/schemas/implementation-result.json +165 -0
- package/core/contracts/schemas/incident-report.json +466 -0
- package/core/contracts/schemas/learning-assessment-report.json +285 -0
- package/core/contracts/schemas/learning-handoff.json +244 -0
- package/core/contracts/schemas/legal-compliance-review.json +287 -0
- package/core/contracts/schemas/legal-opinion-contract.json +248 -0
- package/core/contracts/schemas/memory-audit-report.json +283 -0
- package/core/contracts/schemas/mmo-campaign-spec.json +414 -0
- package/core/contracts/schemas/mmo-roi-report.json +312 -0
- package/core/contracts/schemas/performance-audit.json +239 -0
- package/core/contracts/schemas/period-end-closing-report.json +472 -0
- package/core/contracts/schemas/pull-request-spec.json +338 -0
- package/core/contracts/schemas/references/detailed/01-solution-and-governance.md +19 -0
- package/core/contracts/schemas/references/detailed/02-engineering-delivery.md +93 -0
- package/core/contracts/schemas/references/detailed/03-quality-and-review.md +67 -0
- package/core/contracts/schemas/references/detailed/04-finance-accounting-and-compliance.md +54 -0
- package/core/contracts/schemas/references/detailed/05-design-and-content.md +92 -0
- package/core/contracts/schemas/references/detailed/06-seo-and-publishing.md +48 -0
- package/core/contracts/schemas/references/detailed/07-a2a-protocol.md +85 -0
- package/core/contracts/schemas/references/detailed/08-agent-infrastructure.md +31 -0
- package/core/contracts/schemas/research-report.json +823 -0
- package/core/contracts/schemas/schema-migration.json +86 -0
- package/core/contracts/schemas/security-audit.json +131 -0
- package/core/contracts/schemas/seo-audit-report.json +1057 -0
- package/core/contracts/schemas/seo-content-brief.json +852 -0
- package/core/contracts/schemas/seo-metadata.json +292 -0
- package/core/contracts/schemas/seo-weekly-board.json +840 -0
- package/core/contracts/schemas/series-article.json +155 -0
- package/core/contracts/schemas/solution-brief.json +244 -0
- package/core/contracts/schemas/stock-audit-session.json +522 -0
- package/core/contracts/schemas/system-design-spec.json +434 -0
- package/core/contracts/schemas/technical-delivery-plan.json +453 -0
- package/core/contracts/schemas/test-report.json +530 -0
- package/core/contracts/schemas/ui-component-spec.json +314 -0
- package/core/contracts/schemas/ux-flow-spec.json +306 -0
- package/core/contracts/schemas/validation-result.json +109 -0
- package/core/policies/README.md +110 -0
- package/core/policies/action-boundaries.yaml +1492 -0
- package/core/policies/data-classification.yaml +126 -0
- package/core/policies/execution-sandbox.md +362 -0
- package/core/policies/mcp-tool-map.yaml +302 -0
- package/core/roles/3d-graphics-engineer.md +303 -0
- package/core/roles/README.md +314 -0
- package/core/roles/agent-coordinator.md +453 -0
- package/core/roles/agent-discovery-engineer.md +243 -0
- package/core/roles/ai-systems-engineer.md +365 -0
- package/core/roles/aws-engineer.md +339 -0
- package/core/roles/backend-developer.md +466 -0
- package/core/roles/business-analyst.md +402 -0
- package/core/roles/cloudflare-engineer.md +298 -0
- package/core/roles/content-manager.md +336 -0
- package/core/roles/content-writer.md +399 -0
- package/core/roles/data-analyst.md +421 -0
- package/core/roles/data-engineer.md +439 -0
- package/core/roles/devops-engineer.md +614 -0
- package/core/roles/ecommerce-engineer.md +274 -0
- package/core/roles/frontend-developer.md +414 -0
- package/core/roles/game-developer.md +213 -0
- package/core/roles/mmo-engineer.md +228 -0
- package/core/roles/mobile-engineer.md +485 -0
- package/core/roles/product-manager.md +382 -0
- package/core/roles/project-manager.md +279 -0
- package/core/roles/prompt-engineer.md +197 -0
- package/core/roles/qa-engineer.md +574 -0
- package/core/roles/references/3d-graphics-engineer-review-checklist.md +116 -0
- package/core/roles/references/agent-coordinator-review-checklist.md +165 -0
- package/core/roles/references/agent-discovery-engineer-review-checklist.md +125 -0
- package/core/roles/references/ai-systems-engineer-review-checklist.md +151 -0
- package/core/roles/references/aws-engineer-review-checklist.md +169 -0
- package/core/roles/references/backend-developer-review-checklist.md +105 -0
- package/core/roles/references/business-analyst-responsibilities.md +207 -0
- package/core/roles/references/business-analyst-review-checklist.md +228 -0
- package/core/roles/references/cloudflare-engineer-review-checklist.md +152 -0
- package/core/roles/references/content-manager-governance-standards.md +147 -0
- package/core/roles/references/content-manager-review-checklist.md +68 -0
- package/core/roles/references/content-writer-anti-ai-standards.md +199 -0
- package/core/roles/references/content-writer-review-checklist.md +58 -0
- package/core/roles/references/data-analyst-review-checklist.md +76 -0
- package/core/roles/references/data-engineer-review-checklist.md +77 -0
- package/core/roles/references/devops-engineer-review-checklist.md +195 -0
- package/core/roles/references/ecommerce-engineer-review-checklist.md +129 -0
- package/core/roles/references/frontend-developer-responsibilities.md +275 -0
- package/core/roles/references/frontend-developer-review-checklist.md +122 -0
- package/core/roles/references/game-developer-review-checklist.md +115 -0
- package/core/roles/references/mmo-engineer-review-checklist.md +125 -0
- package/core/roles/references/mobile-engineer-review-checklist.md +54 -0
- package/core/roles/references/product-manager-review-checklist.md +113 -0
- package/core/roles/references/project-manager-review-checklist.md +122 -0
- package/core/roles/references/prompt-engineer-review-checklist.md +70 -0
- package/core/roles/references/qa-engineer-review-checklist.md +190 -0
- package/core/roles/references/researcher-review-checklist.md +176 -0
- package/core/roles/references/reviewer-review-checklist.md +67 -0
- package/core/roles/references/sdet-review-checklist.md +66 -0
- package/core/roles/references/security-engineer-review-checklist.md +122 -0
- package/core/roles/references/seo-analyst-geo-standards.md +195 -0
- package/core/roles/references/seo-analyst-review-checklist.md +84 -0
- package/core/roles/references/solution-architect-review-checklist.md +71 -0
- package/core/roles/references/sre-review-checklist.md +35 -0
- package/core/roles/references/system-engineer-review-checklist.md +124 -0
- package/core/roles/references/task-planner-review-checklist.md +114 -0
- package/core/roles/references/teacher-review-checklist.md +47 -0
- package/core/roles/references/technical-architect-review-checklist.md +72 -0
- package/core/roles/references/technical-lead-review-checklist.md +57 -0
- package/core/roles/references/technical-writer-review-checklist.md +120 -0
- package/core/roles/references/ui-ux-designer-anti-slop-standards.md +1000 -0
- package/core/roles/references/ui-ux-designer-responsibilities.md +250 -0
- package/core/roles/references/ui-ux-designer-review-checklist.md +114 -0
- package/core/roles/references/vietnam-accounting-specialist-review-checklist.md +53 -0
- package/core/roles/references/vietnam-legal-counsel-review-checklist.md +31 -0
- package/core/roles/researcher.md +427 -0
- package/core/roles/reviewer.md +294 -0
- package/core/roles/role-standard.md +242 -0
- package/core/roles/sdet.md +198 -0
- package/core/roles/security-engineer.md +343 -0
- package/core/roles/seo-analyst.md +425 -0
- package/core/roles/solution-architect.md +523 -0
- package/core/roles/sre.md +260 -0
- package/core/roles/system-engineer.md +465 -0
- package/core/roles/task-planner.md +277 -0
- package/core/roles/teacher.md +298 -0
- package/core/roles/technical-architect.md +536 -0
- package/core/roles/technical-lead.md +367 -0
- package/core/roles/technical-writer.md +359 -0
- package/core/roles/ui-ux-designer.md +397 -0
- package/core/roles/vietnam-accounting-specialist.md +317 -0
- package/core/roles/vietnam-legal-counsel.md +306 -0
- package/core/rules/README.md +101 -0
- package/core/rules/code.md +46 -0
- package/core/rules/knowledge.md +69 -0
- package/core/skills/README.md +440 -0
- package/core/skills/agent/INDEX.json +396 -0
- package/core/skills/agent/agent-a2a-protocol/SKILL.md +189 -0
- package/core/skills/agent/agent-a2a-protocol/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-a2a-protocol/references/a2a-spec.md +60 -0
- package/core/skills/agent/agent-context-management/SKILL.md +187 -0
- package/core/skills/agent/agent-context-management/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-delegation/SKILL.md +168 -0
- package/core/skills/agent/agent-delegation/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-graph-orchestration/SKILL.md +172 -0
- package/core/skills/agent/agent-graph-orchestration/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-handoff/SKILL.md +156 -0
- package/core/skills/agent/agent-handoff/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-memory-compaction/SKILL.md +112 -0
- package/core/skills/agent/agent-memory-compaction/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +141 -0
- package/core/skills/agent/agent-model-routing/SKILL.md +175 -0
- package/core/skills/agent/agent-model-routing/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-observability/SKILL.md +168 -0
- package/core/skills/agent/agent-observability/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-panel-meeting/SKILL.md +153 -0
- package/core/skills/agent/agent-panel-meeting/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-prompt-lifecycle/SKILL.md +191 -0
- package/core/skills/agent/agent-prompt-lifecycle/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-prompt-lifecycle/references/output-format.md +32 -0
- package/core/skills/agent/agent-quality-gate/SKILL.md +174 -0
- package/core/skills/agent/agent-quality-gate/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-semantic-memory/SKILL.md +164 -0
- package/core/skills/agent/agent-semantic-memory/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-tool-orchestration/SKILL.md +193 -0
- package/core/skills/agent/agent-tool-orchestration/agents/openai.yaml +4 -0
- package/core/skills/agent/agent-tool-orchestration/references/2026-patterns.md +67 -0
- package/core/skills/agent/architect-mcp-server/SKILL.md +87 -0
- package/core/skills/agent/architect-mcp-server/agents/openai.yaml +4 -0
- package/core/skills/agent/architect-mcp-server/references/enterprise-mcp-server-architecture.md +217 -0
- package/core/skills/agent/configure-agent-commerce/SKILL.md +172 -0
- package/core/skills/agent/configure-agent-commerce/agents/openai.yaml +4 -0
- package/core/skills/agent/configure-agent-headers/SKILL.md +102 -0
- package/core/skills/agent/configure-agent-headers/agents/openai.yaml +4 -0
- package/core/skills/agent/configure-agent-skills/SKILL.md +108 -0
- package/core/skills/agent/configure-agent-skills/agents/openai.yaml +4 -0
- package/core/skills/agent/configure-mcp/SKILL.md +193 -0
- package/core/skills/agent/configure-mcp/agents/openai.yaml +4 -0
- package/core/skills/agent/configure-mcp/references/2026-07-28-migration.md +60 -0
- package/core/skills/agent/configure-oauth-metadata/SKILL.md +139 -0
- package/core/skills/agent/configure-oauth-metadata/agents/openai.yaml +4 -0
- package/core/skills/agent/debug-identity-provider/SKILL.md +109 -0
- package/core/skills/agent/debug-identity-provider/agents/openai.yaml +4 -0
- package/core/skills/agent/decompose-agentic-system/SKILL.md +88 -0
- package/core/skills/agent/decompose-agentic-system/agents/openai.yaml +4 -0
- package/core/skills/agent/decompose-agentic-system/references/recursive-decomposition-and-persistent-planning.md +200 -0
- package/core/skills/agent/manage-agent-identity/SKILL.md +187 -0
- package/core/skills/agent/manage-agent-identity/agents/openai.yaml +4 -0
- package/core/skills/agent/manage-api-catalog/SKILL.md +133 -0
- package/core/skills/agent/manage-api-catalog/agents/openai.yaml +4 -0
- package/core/skills/agent/manage-auth-md/SKILL.md +119 -0
- package/core/skills/agent/manage-auth-md/agents/openai.yaml +4 -0
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +163 -0
- package/core/skills/ai/deploy-vllm-inference/agents/openai.yaml +4 -0
- package/core/skills/ai/deploy-vllm-inference/references/vllm-production-guide.md +466 -0
- package/core/skills/ai-agent/agent-evaluation/SKILL.md +102 -0
- package/core/skills/ai-agent/context-optimization/SKILL.md +97 -0
- package/core/skills/ai-agent/memory-hygiene/SKILL.md +112 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +102 -0
- package/core/skills/backend/add-api-endpoint/agents/openai.yaml +4 -0
- package/core/skills/backend/add-api-endpoint/references/api-contracts-and-error-specs.md +127 -0
- package/core/skills/backend/add-event-handler/SKILL.md +130 -0
- package/core/skills/backend/add-event-handler/agents/openai.yaml +4 -0
- package/core/skills/backend/add-service-client/SKILL.md +166 -0
- package/core/skills/backend/add-service-client/agents/openai.yaml +4 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +100 -0
- package/core/skills/backend/build-mcp-server/agents/openai.yaml +4 -0
- package/core/skills/backend/implement-auth/SKILL.md +90 -0
- package/core/skills/backend/implement-auth/agents/openai.yaml +4 -0
- package/core/skills/backend/implement-auth/references/auth-flows-and-session-specs.md +229 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +94 -0
- package/core/skills/backend/implement-structured-outputs/agents/openai.yaml +4 -0
- package/core/skills/backend/optimize-postgres/SKILL.md +89 -0
- package/core/skills/backend/optimize-postgres/agents/openai.yaml +4 -0
- package/core/skills/backend/optimize-postgres/references/pooling-branching-and-tuning.md +218 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +97 -0
- package/core/skills/backend/scaffold-new-service/agents/openai.yaml +4 -0
- package/core/skills/backend/scaffold-new-service/references/service-scaffolding-guide.md +141 -0
- package/core/skills/business/elicit-requirements/SKILL.md +102 -0
- package/core/skills/business/elicit-requirements/references/elicitation-techniques-and-babok-criteria.md +60 -0
- package/core/skills/business/trace-requirements-impact/SKILL.md +97 -0
- package/core/skills/business/trace-requirements-impact/references/rtm-graph-and-prioritization-models.md +109 -0
- package/core/skills/business/write-use-cases/SKILL.md +106 -0
- package/core/skills/business/write-use-cases/references/cockburn-scoping-and-13-field-template.md +135 -0
- package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +316 -0
- package/core/skills/commerce/INDEX.json +72 -0
- package/core/skills/commerce/handle-checkout-flow/SKILL.md +192 -0
- package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +99 -0
- package/core/skills/commerce/handle-checkout-flow/agents/openai.yaml +4 -0
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +187 -0
- package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +128 -0
- package/core/skills/commerce/integrate-payment-gateway/agents/openai.yaml +4 -0
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +197 -0
- package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +136 -0
- package/core/skills/commerce/manage-order-fulfillment/agents/openai.yaml +4 -0
- package/core/skills/commerce/manage-product-catalog/SKILL.md +189 -0
- package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +130 -0
- package/core/skills/commerce/manage-product-catalog/agents/openai.yaml +4 -0
- package/core/skills/content/audit-content/SKILL.md +120 -0
- package/core/skills/content/audit-content/agents/openai.yaml +4 -0
- package/core/skills/content/audit-content/references/ai-semantic-flaw-rubric.md +43 -0
- package/core/skills/content/audit-content/references/citation-verification-guide.md +39 -0
- package/core/skills/content/audit-content/references/information-gain-rubric.md +51 -0
- package/core/skills/content/design-content-strategy/SKILL.md +108 -0
- package/core/skills/content/design-content-strategy/agents/openai.yaml +4 -0
- package/core/skills/content/design-content-strategy/references/distribution-loops-and-drift-prevention.md +109 -0
- package/core/skills/content/design-content-strategy/references/information-gain-and-decay-triage.md +149 -0
- package/core/skills/content/design-content-strategy/references/pillar-cluster-and-funnel-playbook.md +159 -0
- package/core/skills/content/optimize-seo/SKILL.md +179 -0
- package/core/skills/content/optimize-seo/agents/openai.yaml +4 -0
- package/core/skills/content/optimize-seo/references/entity-salience-and-schema.md +88 -0
- package/core/skills/content/optimize-seo/references/geo-ai-citation-playbook.md +42 -0
- package/core/skills/content/optimize-seo/references/process-and-checklist.md +116 -0
- package/core/skills/content/repurpose-content/SKILL.md +150 -0
- package/core/skills/content/repurpose-content/agents/openai.yaml +4 -0
- package/core/skills/content/repurpose-content/references/channel-repurposing-playbook.md +96 -0
- package/core/skills/content/repurpose-content/references/entity-fidelity-guide.md +42 -0
- package/core/skills/content/write-article/SKILL.md +169 -0
- package/core/skills/content/write-article/agents/openai.yaml +4 -0
- package/core/skills/content/write-article/references/ai-drafting-playbook.md +141 -0
- package/core/skills/content/write-article/references/anti-ai-style-guide.md +52 -0
- package/core/skills/content/write-article/references/authentic-source-matrix.md +36 -0
- package/core/skills/content/write-article/references/suggested-process.md +61 -0
- package/core/skills/content/write-copy/SKILL.md +102 -0
- package/core/skills/content/write-copy/agents/openai.yaml +4 -0
- package/core/skills/content/write-copy/references/behavioral-psychology-and-conversion.md +147 -0
- package/core/skills/content/write-copy/references/copywriting-frameworks-playbook.md +250 -0
- package/core/skills/content/write-copy/references/humanizer-voice-and-cadence-guide.md +134 -0
- package/core/skills/document/docx/SKILL.md +64 -0
- package/core/skills/document/pdf/SKILL.md +65 -0
- package/core/skills/document/pptx/SKILL.md +67 -0
- package/core/skills/document/pptx/scripts/add_slide.py +91 -0
- package/core/skills/document/pptx/scripts/clean.py +84 -0
- package/core/skills/document/pptx/scripts/thumbnail.py +112 -0
- package/core/skills/document/xlsx/SKILL.md +65 -0
- package/core/skills/document/xlsx/scripts/recalc.py +388 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +170 -0
- package/core/skills/documentation/configure-llms-txt/agents/openai.yaml +4 -0
- package/core/skills/documentation/write-documentation/SKILL.md +143 -0
- package/core/skills/documentation/write-documentation/agents/openai.yaml +4 -0
- package/core/skills/documentation/write-tech-radar/SKILL.md +149 -0
- package/core/skills/documentation/write-tech-radar/agents/openai.yaml +4 -0
- package/core/skills/education/2026_STANDARDS_SUMMARY.md +290 -0
- package/core/skills/education/INDEX.json +44 -0
- package/core/skills/education/create-exercises/SKILL.md +98 -0
- package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +115 -0
- package/core/skills/education/create-exercises/agents/openai.yaml +4 -0
- package/core/skills/education/create-exercises/references/dok-and-ai-resistant-exercise-design.md +115 -0
- package/core/skills/education/create-exercises/references/irt-calibration-and-scoring-matrices.md +113 -0
- package/core/skills/education/design-learning-plan/SKILL.md +109 -0
- package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +140 -0
- package/core/skills/education/design-learning-plan/agents/openai.yaml +4 -0
- package/core/skills/education/design-learning-plan/references/spaced-scheduling-and-socratic-scaffolding.md +117 -0
- package/core/skills/education/design-learning-plan/references/zpd-pathways-and-smart-objectives.md +108 -0
- package/core/skills/education/grade-and-review/SKILL.md +104 -0
- package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +141 -0
- package/core/skills/education/grade-and-review/agents/openai.yaml +4 -0
- package/core/skills/education/grade-and-review/references/analytic-rubrics-and-grading-hallucination-defense.md +117 -0
- package/core/skills/education/grade-and-review/references/cognitive-error-analysis-and-socratic-feedback.md +124 -0
- package/core/skills/foundation/accessibility-review/SKILL.md +160 -0
- package/core/skills/foundation/accessibility-review/agents/openai.yaml +4 -0
- package/core/skills/foundation/ai-risk-assessment/SKILL.md +198 -0
- package/core/skills/foundation/ai-risk-assessment/agents/openai.yaml +4 -0
- package/core/skills/foundation/combinatorial-testing/SKILL.md +165 -0
- package/core/skills/foundation/combinatorial-testing/agents/openai.yaml +4 -0
- package/core/skills/foundation/conduct-research/SKILL.md +132 -0
- package/core/skills/foundation/conduct-research/agents/openai.yaml +4 -0
- package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +58 -0
- package/core/skills/foundation/conduct-research/references/output-format.md +75 -0
- package/core/skills/foundation/conduct-research/references/sota-deep-research-architecture.md +733 -0
- package/core/skills/foundation/create-migration/SKILL.md +151 -0
- package/core/skills/foundation/create-migration/agents/openai.yaml +4 -0
- package/core/skills/foundation/create-migration/references/patterns-and-gotchas.md +58 -0
- package/core/skills/foundation/create-migration/references/suggested-process.md +111 -0
- package/core/skills/foundation/design-review/SKILL.md +138 -0
- package/core/skills/foundation/design-review/agents/openai.yaml +4 -0
- package/core/skills/foundation/design-ux-flow/SKILL.md +153 -0
- package/core/skills/foundation/design-ux-flow/agents/openai.yaml +4 -0
- package/core/skills/foundation/discernment-nudge/SKILL.md +64 -0
- package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +139 -0
- package/core/skills/foundation/incident-report/SKILL.md +119 -0
- package/core/skills/foundation/incident-report/agents/openai.yaml +4 -0
- package/core/skills/foundation/performance-profiling/SKILL.md +127 -0
- package/core/skills/foundation/performance-profiling/agents/openai.yaml +4 -0
- package/core/skills/foundation/performance-profiling/references/patterns-and-safety.md +57 -0
- package/core/skills/foundation/performance-profiling/references/suggested-process.md +113 -0
- package/core/skills/foundation/plan-technical-delivery/SKILL.md +118 -0
- package/core/skills/foundation/plan-technical-delivery/agents/openai.yaml +4 -0
- package/core/skills/foundation/plan-technical-delivery/references/spec-driven-planning.md +104 -0
- package/core/skills/foundation/playwright-evidence-qa/SKILL.md +139 -0
- package/core/skills/foundation/release-notes/SKILL.md +192 -0
- package/core/skills/foundation/release-notes/agents/openai.yaml +4 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +165 -0
- package/core/skills/foundation/systematic-debugging/agents/openai.yaml +4 -0
- package/core/skills/foundation/webapp-server-runner/SKILL.md +67 -0
- package/core/skills/foundation/webapp-server-runner/scripts/with_server.py +182 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +160 -0
- package/core/skills/foundation/write-product-brief/agents/openai.yaml +4 -0
- package/core/skills/foundation/write-tests/SKILL.md +173 -0
- package/core/skills/foundation/write-tests/agents/openai.yaml +4 -0
- package/core/skills/foundation/write-tests/references/advanced-testing-methodologies.md +102 -0
- package/core/skills/foundation/write-tests/references/patterns-and-ai-testing.md +78 -0
- package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +345 -0
- package/core/skills/frontend/INDEX.json +158 -0
- package/core/skills/frontend/add-page-route/SKILL.md +154 -0
- package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +102 -0
- package/core/skills/frontend/add-page-route/agents/openai.yaml +4 -0
- package/core/skills/frontend/add-ui-component/SKILL.md +162 -0
- package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +114 -0
- package/core/skills/frontend/add-ui-component/agents/openai.yaml +4 -0
- package/core/skills/frontend/anti-ui-slop-finish-gate/SKILL.md +128 -0
- package/core/skills/frontend/component-composition/SKILL.md +116 -0
- package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +103 -0
- package/core/skills/frontend/component-composition/agents/openai.yaml +4 -0
- package/core/skills/frontend/component-composition/references/composition-architecture-and-headless-specs.md +375 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +99 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +128 -0
- package/core/skills/frontend/frontend-micro-polish/SKILL.md +133 -0
- package/core/skills/frontend/frontend-testing/SKILL.md +196 -0
- package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +137 -0
- package/core/skills/frontend/frontend-testing/agents/openai.yaml +4 -0
- package/core/skills/frontend/implement-view-transitions/SKILL.md +109 -0
- package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +118 -0
- package/core/skills/frontend/implement-view-transitions/agents/openai.yaml +4 -0
- package/core/skills/frontend/implement-view-transitions/references/view-transitions-and-motion-specs.md +255 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +121 -0
- package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +108 -0
- package/core/skills/frontend/implement-webmcp/agents/openai.yaml +4 -0
- package/core/skills/frontend/integrate-api-client/SKILL.md +186 -0
- package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +118 -0
- package/core/skills/frontend/integrate-api-client/agents/openai.yaml +4 -0
- package/core/skills/frontend/interactive-component-workbench/SKILL.md +141 -0
- package/core/skills/frontend/motion-performance-engineering/SKILL.md +100 -0
- package/core/skills/frontend/setup-design-system/SKILL.md +179 -0
- package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +123 -0
- package/core/skills/frontend/setup-design-system/agents/openai.yaml +4 -0
- package/core/skills/frontend/setup-visual-regression/SKILL.md +115 -0
- package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +121 -0
- package/core/skills/frontend/setup-visual-regression/agents/openai.yaml +4 -0
- package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +1004 -0
- package/core/skills/frontend/web-quality-audit/SKILL.md +102 -0
- package/core/skills/gamedev/abstract-input-actions/SKILL.md +80 -0
- package/core/skills/gamedev/architect-ecs-systems/SKILL.md +80 -0
- package/core/skills/gamedev/author-game-ai/SKILL.md +78 -0
- package/core/skills/gamedev/automate-game-publishing/SKILL.md +80 -0
- package/core/skills/gamedev/build-game-ui-ux/SKILL.md +78 -0
- package/core/skills/gamedev/configure-physics-collision/SKILL.md +80 -0
- package/core/skills/gamedev/design-procedural-generation/SKILL.md +80 -0
- package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +71 -0
- package/core/skills/gamedev/direct-camera-systems/SKILL.md +79 -0
- package/core/skills/gamedev/generate-game-assets-pipeline/SKILL.md +82 -0
- package/core/skills/gamedev/implement-save-persistence/SKILL.md +84 -0
- package/core/skills/gamedev/inspect-blender-rigs-motion/SKILL.md +82 -0
- package/core/skills/gamedev/integrate-dialogue-narrative/SKILL.md +80 -0
- package/core/skills/gamedev/integrate-game-engine/SKILL.md +81 -0
- package/core/skills/gamedev/manage-scene-lifecycle/SKILL.md +80 -0
- package/core/skills/gamedev/mix-dynamic-game-audio/SKILL.md +80 -0
- package/core/skills/gamedev/profile-game-performance/SKILL.md +81 -0
- package/core/skills/gamedev/program-game-shaders/SKILL.md +83 -0
- package/core/skills/gamedev/render-webgl-threejs/SKILL.md +81 -0
- package/core/skills/gamedev/tune-game-feel/SKILL.md +75 -0
- package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +85 -0
- package/core/skills/legal-compliance/audit-ai-compliance/agents/openai.yaml +4 -0
- package/core/skills/legal-compliance/audit-ai-compliance/references/ai-law-compliance-guide.md +52 -0
- package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +89 -0
- package/core/skills/legal-compliance/draft-legal-opinion/agents/openai.yaml +4 -0
- package/core/skills/legal-compliance/draft-legal-opinion/references/legal-opinion-guide.md +53 -0
- package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +95 -0
- package/core/skills/legal-compliance/manage-vietnam-legal/references/statutory-checklists.md +208 -0
- package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +236 -0
- package/core/skills/meetings-analysis/INDEX.json +56 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +146 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +97 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/agents/openai.yaml +4 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/references/layered-requirements-pipeline-and-bdd-standards.md +107 -0
- package/core/skills/meetings-analysis/analyze-data/SKILL.md +164 -0
- package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +143 -0
- package/core/skills/meetings-analysis/analyze-data/agents/openai.yaml +4 -0
- package/core/skills/meetings-analysis/analyze-data/references/inprocess-analytics-and-hallucination-prevention.md +83 -0
- package/core/skills/meetings-analysis/analyze-data/references/semantic-catalog-and-drift-detection.md +87 -0
- package/core/skills/meetings-analysis/meeting-review/SKILL.md +199 -0
- package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +125 -0
- package/core/skills/meetings-analysis/meeting-review/agents/openai.yaml +4 -0
- package/core/skills/meetings-analysis/meeting-review/references/perspectives-and-process.md +90 -0
- package/core/skills/mmo/INDEX.json +126 -0
- package/core/skills/mmo/analyze-campaign-roi/SKILL.md +134 -0
- package/core/skills/mmo/analyze-campaign-roi/agents/openai.yaml +4 -0
- package/core/skills/mmo/create-automation-script/SKILL.md +139 -0
- package/core/skills/mmo/create-automation-script/agents/openai.yaml +4 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +137 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/agents/openai.yaml +4 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +133 -0
- package/core/skills/mmo/deploy-proxyware-fleet/agents/openai.yaml +4 -0
- package/core/skills/mmo/generate-mmo-content/SKILL.md +134 -0
- package/core/skills/mmo/generate-mmo-content/agents/openai.yaml +4 -0
- package/core/skills/mmo/manage-mmo-assets/SKILL.md +134 -0
- package/core/skills/mmo/manage-mmo-assets/agents/openai.yaml +4 -0
- package/core/skills/mmo/setup-tracking-system/SKILL.md +149 -0
- package/core/skills/mmo/setup-tracking-system/agents/openai.yaml +4 -0
- package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +209 -0
- package/core/skills/mobile/INDEX.json +40 -0
- package/core/skills/mobile/deploy-mobile-app/SKILL.md +132 -0
- package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +122 -0
- package/core/skills/mobile/deploy-mobile-app/agents/openai.yaml +4 -0
- package/core/skills/mobile/deploy-mobile-app/references/eas-build-ota-and-store-compliance-specs.md +217 -0
- package/core/skills/mobile/develop-mobile-app/SKILL.md +125 -0
- package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +141 -0
- package/core/skills/mobile/develop-mobile-app/agents/openai.yaml +4 -0
- package/core/skills/mobile/develop-mobile-app/references/react-native-new-architecture-and-offline-specs.md +246 -0
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +92 -0
- package/core/skills/platform/add-telemetry-instrumentation/agents/openai.yaml +4 -0
- package/core/skills/platform/agents-sdk/SKILL.md +90 -0
- package/core/skills/platform/aws-infrastructure/SKILL.md +120 -0
- package/core/skills/platform/aws-infrastructure/agents/openai.yaml +4 -0
- package/core/skills/platform/cloudflare-email-service/SKILL.md +166 -0
- package/core/skills/platform/cloudflare-email-service/agents/openai.yaml +4 -0
- package/core/skills/platform/cloudflare-email-service/references/cli-and-mcp.md +125 -0
- package/core/skills/platform/cloudflare-email-service/references/deliverability.md +285 -0
- package/core/skills/platform/cloudflare-email-service/references/rest-api.md +184 -0
- package/core/skills/platform/cloudflare-email-service/references/routing.md +199 -0
- package/core/skills/platform/cloudflare-email-service/references/sending.md +252 -0
- package/core/skills/platform/debug-runtime-platform/SKILL.md +143 -0
- package/core/skills/platform/debug-runtime-platform/agents/openai.yaml +4 -0
- package/core/skills/platform/debug-workers-edge/SKILL.md +111 -0
- package/core/skills/platform/debug-workers-edge/agents/openai.yaml +4 -0
- package/core/skills/platform/deploy-aws-eks-workloads/SKILL.md +168 -0
- package/core/skills/platform/deploy-aws-eks-workloads/agents/openai.yaml +4 -0
- package/core/skills/platform/deploy-aws-eks-workloads/references/aws-eks-workload-guide.md +353 -0
- package/core/skills/platform/durable-objects/SKILL.md +114 -0
- package/core/skills/platform/durable-objects/agents/openai.yaml +4 -0
- package/core/skills/platform/durable-objects/references/code-patterns.md +115 -0
- package/core/skills/platform/durable-objects/references/rules.md +295 -0
- package/core/skills/platform/durable-objects/references/testing.md +264 -0
- package/core/skills/platform/durable-objects/references/workers.md +346 -0
- package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +98 -0
- package/core/skills/platform/orchestrate-chaos-experiment/agents/openai.yaml +4 -0
- package/core/skills/platform/orchestrate-chaos-experiment/references/chaos-engineering-guide.md +237 -0
- package/core/skills/platform/sandbox-sdk/SKILL.md +183 -0
- package/core/skills/platform/sandbox-sdk/agents/openai.yaml +4 -0
- package/core/skills/platform/sandbox-sdk/references/api-quick-ref.md +113 -0
- package/core/skills/platform/sandbox-sdk/references/examples.md +49 -0
- package/core/skills/platform/setup-deployment/SKILL.md +136 -0
- package/core/skills/platform/setup-deployment/agents/openai.yaml +4 -0
- package/core/skills/platform/setup-gpu-finops/SKILL.md +107 -0
- package/core/skills/platform/setup-gpu-finops/agents/openai.yaml +4 -0
- package/core/skills/platform/setup-llm-gateway/SKILL.md +108 -0
- package/core/skills/platform/setup-llm-gateway/agents/openai.yaml +4 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +195 -0
- package/core/skills/platform/supply-chain-security/agents/openai.yaml +4 -0
- package/core/skills/platform/system-design/SKILL.md +184 -0
- package/core/skills/platform/system-design/agents/openai.yaml +4 -0
- package/core/skills/platform/system-design/references/cellular-topology-and-capacity-sizing.md +151 -0
- package/core/skills/platform/turnstile-spin/README.md +45 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +118 -0
- package/core/skills/platform/turnstile-spin/agents/openai.yaml +4 -0
- package/core/skills/platform/turnstile-spin/references/astro.md +102 -0
- package/core/skills/platform/turnstile-spin/references/code-patterns.md +132 -0
- package/core/skills/platform/turnstile-spin/references/hugo.md +62 -0
- package/core/skills/platform/turnstile-spin/references/nextjs-app.md +110 -0
- package/core/skills/platform/turnstile-spin/references/nextjs-pages.md +59 -0
- package/core/skills/platform/turnstile-spin/references/sveltekit.md +84 -0
- package/core/skills/platform/turnstile-spin/references/vanilla-html.md +62 -0
- package/core/skills/platform/turnstile-spin/scripts/auth-probe.sh +82 -0
- package/core/skills/platform/turnstile-spin/scripts/fetch-secret.sh +66 -0
- package/core/skills/platform/turnstile-spin/scripts/persist-skill.sh +53 -0
- package/core/skills/platform/turnstile-spin/scripts/validate.sh +87 -0
- package/core/skills/platform/turnstile-spin/scripts/widget-create.sh +57 -0
- package/core/skills/platform/turnstile-spin/scripts/worker-deploy.sh +102 -0
- package/core/skills/platform/turnstile-spin/templates/worker/LICENSE +21 -0
- package/core/skills/platform/turnstile-spin/templates/worker/README.md +196 -0
- package/core/skills/platform/turnstile-spin/templates/worker/package.json +39 -0
- package/core/skills/platform/turnstile-spin/templates/worker/public/post-deploy.html +287 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/errors.ts +29 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/index.ts +199 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/observability.ts +34 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/types.ts +95 -0
- package/core/skills/platform/turnstile-spin/templates/worker/src/validate.ts +101 -0
- package/core/skills/platform/turnstile-spin/templates/worker/test/deploy.test.ts +71 -0
- package/core/skills/platform/turnstile-spin/templates/worker/test/integration.test.ts +87 -0
- package/core/skills/platform/turnstile-spin/templates/worker/test/unit.test.ts +372 -0
- package/core/skills/platform/turnstile-spin/templates/worker/test/validation.test.ts +201 -0
- package/core/skills/platform/turnstile-spin/templates/worker/tsconfig.json +24 -0
- package/core/skills/platform/turnstile-spin/templates/worker/vitest.config.ts +12 -0
- package/core/skills/platform/turnstile-spin/templates/worker/wrangler.toml +31 -0
- package/core/skills/platform/turnstile-spin/tests/validation.md +69 -0
- package/core/skills/platform/web-perf/SKILL.md +151 -0
- package/core/skills/platform/web-perf/agents/openai.yaml +4 -0
- package/core/skills/platform/workers-best-practices/SKILL.md +93 -0
- package/core/skills/platform/workers-best-practices/agents/openai.yaml +4 -0
- package/core/skills/platform/workers-best-practices/references/review.md +174 -0
- package/core/skills/platform/workers-best-practices/references/rules.md +463 -0
- package/core/skills/platform/wrangler/SKILL.md +89 -0
- package/core/skills/platform/wrangler/agents/openai.yaml +4 -0
- package/core/skills/product/build-story-map/SKILL.md +104 -0
- package/core/skills/product/build-story-map/references/story-mapping-and-cpm-scheduling.md +101 -0
- package/core/skills/product/define-product-strategy/SKILL.md +105 -0
- package/core/skills/product/define-product-strategy/references/strategy-frameworks-and-pr-faq.md +142 -0
- package/core/skills/product/model-saas-metrics/SKILL.md +104 -0
- package/core/skills/product/model-saas-metrics/references/saas-unit-economics-and-pricing.md +110 -0
- package/core/skills/product/prioritize-roadmap/SKILL.md +106 -0
- package/core/skills/product/prioritize-roadmap/references/prioritization-scoring-and-kill-criteria.md +105 -0
- package/core/skills/repo-ops/commit-code/SKILL.md +190 -0
- package/core/skills/repo-ops/commit-code/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/commit-code/references/multi-repo-and-deployment.md +21 -0
- package/core/skills/repo-ops/navigate-service/SKILL.md +199 -0
- package/core/skills/repo-ops/navigate-service/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/review-code/SKILL.md +102 -0
- package/core/skills/repo-ops/review-code/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/review-code/references/adversarial-review-rubric.md +80 -0
- package/core/skills/repo-ops/review-code/references/process-and-format.md +100 -0
- package/core/skills/repo-ops/review-code/references/two-axis-review.md +78 -0
- package/core/skills/repo-ops/review-service/SKILL.md +186 -0
- package/core/skills/repo-ops/review-service/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +127 -0
- package/core/skills/repo-ops/troubleshoot-service/agents/openai.yaml +4 -0
- package/core/skills/repo-ops/troubleshoot-service/references/common-failure-areas.md +71 -0
- package/core/skills/repo-ops/troubleshoot-service/references/failure-modes-and-security.md +22 -0
- package/core/skills/repo-ops/troubleshoot-service/references/suggested-process.md +110 -0
- package/core/skills/security-data/build-data-pipeline/SKILL.md +139 -0
- package/core/skills/security-data/build-data-pipeline/agents/openai.yaml +4 -0
- package/core/skills/security-data/build-data-pipeline/references/producer-contracts-and-lakehouse.md +112 -0
- package/core/skills/security-data/build-data-pipeline/references/quality-gates-dlq-and-replayability.md +105 -0
- package/core/skills/security-data/database-maintenance/SKILL.md +102 -0
- package/core/skills/security-data/database-maintenance/agents/openai.yaml +4 -0
- package/core/skills/security-data/database-maintenance/references/lakehouse-ops-and-finops.md +125 -0
- package/core/skills/security-data/database-maintenance/references/relational-and-vector-maintenance.md +81 -0
- package/core/skills/security-data/manage-secrets/SKILL.md +137 -0
- package/core/skills/security-data/manage-secrets/agents/openai.yaml +4 -0
- package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +93 -0
- package/core/skills/security-data/manage-vietnam-accounting/agents/openai.yaml +4 -0
- package/core/skills/security-data/manage-vietnam-accounting/references/e-invoice-risk-playbook.md +270 -0
- package/core/skills/security-data/manage-vietnam-accounting/references/three-way-matching-and-controls.md +227 -0
- package/core/skills/security-data/manage-vietnam-accounting/references/vas-vfrs-chart-of-accounts.md +199 -0
- package/core/skills/security-data/optimize-olap-database/SKILL.md +108 -0
- package/core/skills/security-data/optimize-olap-database/agents/openai.yaml +4 -0
- package/core/skills/security-data/optimize-olap-database/references/olap-database-guide.md +325 -0
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +103 -0
- package/core/skills/security-data/query-analytical-engine/SKILL.md +92 -0
- package/core/skills/security-data/query-analytical-engine/agents/openai.yaml +4 -0
- package/core/skills/security-data/query-analytical-engine/references/analytical-query-guide.md +326 -0
- package/core/skills/security-data/security-audit/SKILL.md +119 -0
- package/core/skills/security-data/security-audit/agents/openai.yaml +4 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +132 -0
- package/core/skills/seo/audit-technical-seo/SKILL.md +109 -0
- package/core/skills/seo/audit-technical-seo/agents/openai.yaml +4 -0
- package/core/skills/seo/audit-technical-seo/references/core-web-vitals-and-performance.md +104 -0
- package/core/skills/seo/audit-technical-seo/references/crawl-budget-and-bot-access-guide.md +188 -0
- package/core/skills/seo/audit-technical-seo/references/redirects-canonicals-and-status-codes.md +145 -0
- package/core/skills/seo/implement-schema-markup/SKILL.md +103 -0
- package/core/skills/seo/implement-schema-markup/agents/openai.yaml +4 -0
- package/core/skills/seo/implement-schema-markup/references/connected-graph-schema-architecture.md +219 -0
- package/core/skills/seo/implement-schema-markup/references/entity-grounding-and-wikidata.md +155 -0
- package/core/skills/seo/implement-schema-markup/references/rich-results-and-validation-guide.md +83 -0
- package/core/workflows/README.md +140 -0
- package/core/workflows/add-new-feature.md +212 -0
- package/core/workflows/agent-a2a-delegation.md +142 -0
- package/core/workflows/bug-fix.md +147 -0
- package/core/workflows/build-deploy.md +208 -0
- package/core/workflows/code-review.md +137 -0
- package/core/workflows/content-audit.md +158 -0
- package/core/workflows/content-publishing.md +208 -0
- package/core/workflows/curriculum-delivery.md +181 -0
- package/core/workflows/data-migration.md +202 -0
- package/core/workflows/data-pipeline-incident.md +176 -0
- package/core/workflows/dependency-upgrade.md +193 -0
- package/core/workflows/feature-delivery.md +149 -0
- package/core/workflows/hotfix-production.md +172 -0
- package/core/workflows/mmo-campaign-lifecycle.md +123 -0
- package/core/workflows/period-end-closing.md +245 -0
- package/core/workflows/qa-validation.md +231 -0
- package/core/workflows/refactoring.md +154 -0
- package/core/workflows/revert-deployment.md +147 -0
- package/core/workflows/security-incident-response.md +191 -0
- package/core/workflows/seo-content-lifecycle.md +91 -0
- package/core/workflows/seo-keyword-brief.md +178 -0
- package/core/workflows/service-review-release.md +223 -0
- package/core/workflows/setup-new-service.md +214 -0
- package/core/workflows/tech-repo-review.md +245 -0
- package/core/workflows/troubleshooting.md +241 -0
- package/overlays/README.md +89 -0
- package/overlays/astro-cloudflare/README.md +93 -0
- package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +191 -0
- package/overlays/b2b-catalog-golf/README.md +50 -0
- package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +78 -0
- package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +84 -0
- package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/agents/openai.yaml +4 -0
- package/overlays/b2b-factory-catalog/README.md +54 -0
- package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +93 -0
- package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +68 -0
- package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/agents/openai.yaml +4 -0
- package/overlays/b2b-sport-catalog/README.md +64 -0
- package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +82 -0
- package/overlays/cad-projection/README.md +49 -0
- package/overlays/cad-projection/rules/cad-conventions.md +76 -0
- package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +132 -0
- package/overlays/data-analyst-stack/README.md +109 -0
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +135 -0
- package/overlays/data-analyst-stack/rules/stack-conventions.md +80 -0
- package/overlays/data-warehouse/README.md +133 -0
- package/overlays/data-warehouse/learning/README.md +40 -0
- package/overlays/data-warehouse/learning/learning-conventions.md +113 -0
- package/overlays/data-warehouse/learning/phase-roadmap.md +444 -0
- package/overlays/data-warehouse/learning/progress.md +38 -0
- package/overlays/data-warehouse/rules/amis-accounting-standards.md +271 -0
- package/overlays/data-warehouse/rules/duckdb-concurrency.md +362 -0
- package/overlays/data-warehouse/rules/pii-scrubbing.md +238 -0
- package/overlays/data-warehouse/rules/stocktake-tolerance.md +276 -0
- package/overlays/ecommerce-microservices/README.md +65 -0
- package/overlays/ecommerce-microservices/config/README.md +3 -0
- package/overlays/ecommerce-microservices/rules/README.md +3 -0
- package/overlays/ecommerce-microservices/skills/README.md +3 -0
- package/overlays/ecommerce-microservices/workflows/README.md +3 -0
- package/overlays/fintech-compliance/README.md +50 -0
- package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +98 -0
- package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +133 -0
- package/overlays/go-microservices/README.md +78 -0
- package/overlays/go-microservices/rules/go-conventions.md +223 -0
- package/overlays/hugo-authority-content/README.md +58 -0
- package/overlays/hugo-authority-content/config/sites.md +51 -0
- package/overlays/hugo-authority-content/roles/README.md +25 -0
- package/overlays/hugo-authority-content/rules/content-brand.md +124 -0
- package/overlays/hugo-authority-content/rules/link-topology.md +72 -0
- package/overlays/hugo-authority-content/rules/seo-authority.md +83 -0
- package/overlays/hugo-authority-content/rules/technical-article-2027.md +91 -0
- package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +77 -0
- package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +103 -0
- package/overlays/hugo-authority-content/skills/write-hugo-twin-content/agents/openai.yaml +4 -0
- package/overlays/hugo-authority-content/workflows/README.md +31 -0
- package/overlays/hugo-authority-content/workflows/affiliate-publishing.md +55 -0
- package/overlays/hugo-authority-content/workflows/article-creation-and-upgrade-lifecycle.md +426 -0
- package/overlays/hugo-authority-content/workflows/content-audit-refresh.md +105 -0
- package/overlays/hugo-authority-content/workflows/masterclass-batch-upgrade.md +66 -0
- package/overlays/hugo-authority-content/workflows/publish-series.md +126 -0
- package/overlays/hugo-authority-content/workflows/series-sync-upgrade.md +138 -0
- package/overlays/hvac-authority-content/README.md +54 -0
- package/overlays/hvac-authority-content/config/collections.md +70 -0
- package/overlays/hvac-authority-content/rules/content-schema.md +134 -0
- package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +62 -0
- package/overlays/hvac-authority-content/rules/silo-linking.md +73 -0
- package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +80 -0
- package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +102 -0
- package/overlays/laravel-ecommerce/README.md +39 -0
- package/overlays/laravel-ecommerce/config/README.md +3 -0
- package/overlays/laravel-ecommerce/roles/README.md +3 -0
- package/overlays/laravel-ecommerce/rules/elomus-design-system.md +89 -0
- package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +107 -0
- package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +125 -0
- package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/agents/openai.yaml +4 -0
- package/overlays/laravel-ecommerce/workflows/README.md +3 -0
- package/overlays/laravel-ecommerce/workflows/deploy-laravel-ecommerce.md +128 -0
- package/overlays/laravel-filament/README.md +90 -0
- package/overlays/laravel-filament/config/README.md +3 -0
- package/overlays/laravel-filament/roles/README.md +3 -0
- package/overlays/laravel-filament/rules/laravel-conventions.md +220 -0
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +141 -0
- package/overlays/laravel-filament/skills/develop-laravel-feature/agents/openai.yaml +4 -0
- package/overlays/laravel-filament/workflows/README.md +3 -0
- package/overlays/laravel-filament/workflows/deploy-laravel.md +134 -0
- package/overlays/livestream-web/README.md +45 -0
- package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +55 -0
- package/overlays/obj-configurator/README.md +42 -0
- package/overlays/obj-configurator/rules/obj-project-rules.md +111 -0
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +71 -0
- package/overlays/obj-configurator/skills/develop-obj-feature/agents/openai.yaml +4 -0
- package/overlays/r3f-stack/README.md +89 -0
- package/overlays/r3f-stack/rules/stub.md +43 -0
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +166 -0
- package/overlays/r3f-stack/skills/debug-3d-scene/agents/openai.yaml +4 -0
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +159 -0
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/agents/openai.yaml +4 -0
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +128 -0
- package/overlays/r3f-stack/skills/optimize-3d-assets/agents/openai.yaml +4 -0
- package/overlays/real-estate-content/README.md +51 -0
- package/overlays/real-estate-content/config/collections.md +64 -0
- package/overlays/real-estate-content/roles/README.md +25 -0
- package/overlays/real-estate-content/rules/affiliate-links.md +54 -0
- package/overlays/real-estate-content/rules/content-schema.md +89 -0
- package/overlays/real-estate-content/rules/seo-baseline.md +53 -0
- package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +102 -0
- package/overlays/real-estate-content/skills/write-real-estate-astro-data/agents/openai.yaml +4 -0
- package/overlays/real-estate-content/workflows/README.md +25 -0
- package/overlays/real-estate-content/workflows/publish-real-estate-content.md +68 -0
- package/overlays/security-research/README.md +50 -0
- package/overlays/security-research/rules/reverse-engineering-rules.md +82 -0
- package/overlays/security-research/skills/reverse-engineer-binary/SKILL.md +129 -0
- package/overlays/seo-publishing/README.md +93 -0
- package/overlays/seo-publishing/rules/publish-log-conventions.md +64 -0
- package/overlays/seo-publishing/rules/publishing-cadence.md +89 -0
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +52 -0
- package/overlays/seo-publishing/rules/topic-board-template.md +67 -0
- package/overlays/ui-design-system/README.md +59 -0
- package/overlays/ui-design-system/rules/handoff-conventions.md +73 -0
- package/package.json +47 -4
- package/packs/README.md +223 -0
- package/packs/affiliate-cashback-team/README.md +219 -0
- package/packs/affiliate-cashback-team/manifest.yaml +125 -0
- package/packs/affiliate-cashback-team/workflows/affiliate-tri-engine-lifecycle.md +178 -0
- package/packs/b2b-catalog-team/manifest.yaml +63 -0
- package/packs/b2b-golf-team/manifest.yaml +63 -0
- package/packs/b2b-sport-team/manifest.yaml +63 -0
- package/packs/content-sprint-team/manifest.yaml +61 -0
- package/packs/data-analyst-team/manifest.yaml +65 -0
- package/packs/data-warehouse/manifest.yaml +143 -0
- package/packs/ecommerce-team/manifest.yaml +65 -0
- package/packs/global-engineering/manifest.yaml +55 -0
- package/packs/hugo-authority-team/README.md +381 -0
- package/packs/hugo-authority-team/manifest.yaml +167 -0
- package/packs/hugo-authority-team/workflows/article-creation-and-upgrade-lifecycle.md +426 -0
- package/packs/hvac-content-team/README.md +194 -0
- package/packs/hvac-content-team/manifest.yaml +117 -0
- package/packs/hvac-content-team/workflows/publish-hvac-content.md +68 -0
- package/packs/landing-pages-team/README.md +115 -0
- package/packs/landing-pages-team/manifest.yaml +91 -0
- package/packs/landing-pages-team/workflows/landing-page-creation-lifecycle.md +70 -0
- package/packs/laravel-ecommerce-team/manifest.yaml +65 -0
- package/packs/livestream-team/manifest.yaml +61 -0
- package/packs/mmo-growth-team/README.md +206 -0
- package/packs/mmo-growth-team/manifest.yaml +131 -0
- package/packs/obj-team/manifest.yaml +68 -0
- package/packs/real-estate-team/README.md +208 -0
- package/packs/real-estate-team/manifest.yaml +117 -0
- package/packs/real-estate-team/workflows/publish-real-estate-content.md +73 -0
|
@@ -0,0 +1,99 @@
|
|
|
1
|
+
# handle-checkout-flow — 2026 Upgrade Plan
|
|
2
|
+
|
|
3
|
+
## Summary of 2026 Standards Changes
|
|
4
|
+
|
|
5
|
+
### PCI DSS v4.0.1 (Effective March 31, 2025)
|
|
6
|
+
- **Requirement 6.4.3**: All JavaScript on payment pages must be inventoried, justified, and loaded with Subresource Integrity (SRI) hashes + strict CSP nonce (`script-src 'nonce-...'`)
|
|
7
|
+
- **Requirement 11.6.1**: Automated tamper detection monitoring payment page HTTP headers and client-side scripts at least weekly (or continuously) for Magecart/formjacking detection
|
|
8
|
+
- SAQ A eligibility criteria updated (Jan 2025) — Requirements 6.4.3 and 11.6.1 removed from SAQ A for qualifying merchants
|
|
9
|
+
|
|
10
|
+
### Agentic Commerce Protocol (ACP) & Universal Commerce Protocol (UCP)
|
|
11
|
+
- **ACP** (OpenAI + Stripe, announced Sep 2025): Agentic Commerce Protocol for AI agents to execute purchases
|
|
12
|
+
- **UCP** (Google + partners, launched Jan 2026): Universal Commerce Protocol, Apache 2.0, compatible with A2A, AP2, MCP
|
|
13
|
+
- **Latest UCP v2026-08-25**: Multi-vertical foundations, grocery/location capabilities, 3DS2 flows, payment schedules, split payments, granular consent, loyalty support (breaking schema changes)
|
|
14
|
+
- **AP2 v0.2** (Apr 2026): Agent Payments Protocol donated to FIDO Alliance, Human Not Present payments for autonomous pre-authorized transactions
|
|
15
|
+
|
|
16
|
+
### EMV 3DS 2.3.1
|
|
17
|
+
- 100+ context attributes for frictionless risk-based authentication (>85% challenge-free)
|
|
18
|
+
- SCA exemption engine: Low-Value, TRA (Transaction Risk Analysis), Trusted Beneficiary
|
|
19
|
+
|
|
20
|
+
### Address Validation Lifecycle (Mandatory 2026)
|
|
21
|
+
- Must occur BEFORE tax calculation or shipping carrier requests
|
|
22
|
+
- API Standards: Google Maps Address Validation, Loqate, Smarty Streets
|
|
23
|
+
- Error handling: precise error subcodes for missing apartment numbers, invalid zip codes
|
|
24
|
+
|
|
25
|
+
### Tax Calculation Decision Tree (2026)
|
|
26
|
+
- **Stripe Tax**: Startups/mid-market within Stripe ecosystem, quick integration
|
|
27
|
+
- **TaxJar**: Multi-channel merchants (Shopify + custom), moderate volume, standard ERP
|
|
28
|
+
- **Avalara AvaTax**: Enterprise, high volume, complex Nexus, custom ERP, localized tax
|
|
29
|
+
|
|
30
|
+
### Economic Nexus Threshold Monitoring
|
|
31
|
+
- Track US state-by-state transaction count and sales volume programmatically
|
|
32
|
+
- Alert at 80% of threshold (e.g., 200 transactions or $100,000 sales)
|
|
33
|
+
- Most states: $100K sales OR 200 transactions (some dropped transaction count)
|
|
34
|
+
|
|
35
|
+
---
|
|
36
|
+
|
|
37
|
+
## Required Skill Upgrades
|
|
38
|
+
|
|
39
|
+
### 1. Core Rules Updates
|
|
40
|
+
| Current Rule | 2026 Upgrade |
|
|
41
|
+
|--------------|--------------|
|
|
42
|
+
| PCI DSS v4.0 references | Update to **PCI DSS v4.0.1** with 6.4.3 and 11.6.1 specifics |
|
|
43
|
+
| EMV 3DS generic | Specify **EMV 3DS 2.3.1** with 100+ context attributes |
|
|
44
|
+
| Agentic checkout mention | Add **ACP/UCP protocol integration** with pre-authorization gates, MoR assignment, programmatic checkout |
|
|
45
|
+
| Address validation | Add **mandatory address validation lifecycle** before tax/shipping |
|
|
46
|
+
| Tax engine selection | Add **decision tree** (Stripe Tax vs TaxJar vs Avalara) |
|
|
47
|
+
| Nexus monitoring | Add **80% threshold alerting** with automated registration triggers |
|
|
48
|
+
|
|
49
|
+
### 2. New 2026 Patterns to Add
|
|
50
|
+
- **Agentic Checkout Architecture** section (already partially there, expand with ACP/UCP specifics)
|
|
51
|
+
- **Address Validation Lifecycle** as mandatory isolated step
|
|
52
|
+
- **Stripe Tax / TaxJar / Avalara Decision Tree** with selection criteria
|
|
53
|
+
- **Economic Nexus Threshold Monitoring** with 80% alerting
|
|
54
|
+
- **Vietnam Decree 248/2026/ND-CP compliance** (seller identity verification, platform obligations)
|
|
55
|
+
|
|
56
|
+
### 3. Checklist Additions
|
|
57
|
+
- [ ] PCI DSS v4.0.1 Requirement 6.4.3: SRI hashes + CSP nonce on all payment page scripts
|
|
58
|
+
- [ ] PCI DSS v4.0.1 Requirement 11.6.1: Automated tamper detection (weekly/continuous)
|
|
59
|
+
- [ ] ACP/UCP protocol support for agentic checkout flows
|
|
60
|
+
- [ ] Pre-authorization gates and spending limits per agent session
|
|
61
|
+
- [ ] Merchant of Record (MoR) assignment for agentic transactions
|
|
62
|
+
- [ ] Programmatic checkout without interactive browser sessions
|
|
63
|
+
- [ ] Address validation via Google Maps/Loqate/Smarty Streets BEFORE tax/shipping
|
|
64
|
+
- [ ] Tax engine selection based on decision tree criteria
|
|
65
|
+
- [ ] Economic nexus monitoring at 80% threshold with alerts
|
|
66
|
+
- [ ] Vietnam Decree 248/2026 compliance: seller identity verification
|
|
67
|
+
|
|
68
|
+
### 4. Failure Mode Additions
|
|
69
|
+
- **Agentic checkout fraud**: Unauthorized agent spending beyond limits → Mitigation: Pre-authorization gates, spending limits, MoR assignment
|
|
70
|
+
- **Address validation bypass**: Tax/shipping calculated on invalid address → Mitigation: Mandatory validation gate before calculation
|
|
71
|
+
- **Nexus threshold breach**: Unregistered tax collection → Mitigation: 80% alerting, auto-registration workflow
|
|
72
|
+
- **PCI script injection**: Magecart via unverified third-party scripts → Mitigation: SRI + CSP nonce + weekly automated scanning
|
|
73
|
+
|
|
74
|
+
### 5. Output Contract Updates
|
|
75
|
+
- Add `contracts/schemas/agentic-commerce-spec.json` for ACP/UCP endpoints
|
|
76
|
+
- Add `contracts/schemas/address-validation-spec.json` for validation API contract
|
|
77
|
+
- Add `contracts/schemas/tax-engine-spec.json` for selected tax engine integration
|
|
78
|
+
|
|
79
|
+
---
|
|
80
|
+
|
|
81
|
+
## Implementation Priority
|
|
82
|
+
|
|
83
|
+
| Priority | Task | Effort |
|
|
84
|
+
|----------|------|--------|
|
|
85
|
+
| P0 | Update PCI DSS references to v4.0.1 with 6.4.3/11.6.1 specifics | Low |
|
|
86
|
+
| P0 | Add ACP/UCP agentic checkout architecture section | Medium |
|
|
87
|
+
| P0 | Add mandatory address validation lifecycle | Medium |
|
|
88
|
+
| P1 | Add tax engine decision tree (Stripe Tax/TaxJar/Avalara) | Medium |
|
|
89
|
+
| P1 | Add economic nexus 80% threshold monitoring | Medium |
|
|
90
|
+
| P1 | Add Vietnam Decree 248/2026 compliance notes | Low |
|
|
91
|
+
| P2 | Expand failure modes with 2026-specific scenarios | Low |
|
|
92
|
+
| P2 | Update output contracts for new specs | Low |
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
## Validation Gates
|
|
97
|
+
- Run `python3 core/scripts/validate-all.py` from agent-skills root after edits
|
|
98
|
+
- Verify INDEX.md regeneration if VERSION bumped
|
|
99
|
+
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
@@ -0,0 +1,187 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: integrate-payment-gateway
|
|
3
|
+
description: Integrate or extend a payment gateway (Stripe, VNPay, PayPal, Momo, etc.) into an e-commerce application. Use when adding, replacing, or auditing a payment provider's checkout, refund, or webhook flow.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, fetch]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Integrate Payment Gateway
|
|
8
|
+
|
|
9
|
+
Use this skill when a task requires connecting an application to a payment provider's API, including initial setup, webhook handling, refund flows, and PCI-DSS-compliant implementation.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- adding/replacing a payment provider
|
|
14
|
+
- auditing checkout, refund, or webhook flow
|
|
15
|
+
- Stripe, VNPay, PayPal, Momo, etc.
|
|
16
|
+
- payment integration in e-commerce
|
|
17
|
+
- **MPP/x402 programmatic agent payments**
|
|
18
|
+
- **BNPL messaging integration**
|
|
19
|
+
- **A2A Pay by Bank settlement flows**
|
|
20
|
+
|
|
21
|
+
## Core Rules
|
|
22
|
+
|
|
23
|
+
- never log, store, or return raw card numbers, CVV, or full PAN data — treat all card data as `restricted` per `core/policies/data-classification.yaml`; prefer **EMVCo Network Tokens** (Visa VTS, Mastercard MDES) with dynamic transaction cryptograms over raw PAN or gateway-specific tokens
|
|
24
|
+
- always use the provider's official SDK or API client; do not hand-roll raw HTTP calls to payment endpoints
|
|
25
|
+
- handle idempotency keys (UUID per transaction attempt) for all charge/capture operations to prevent double-billing
|
|
26
|
+
- **Webhook Signature Verification** (PCI DSS v4.0.1): compute HMAC over the **raw, unparsed request payload** before JSON parsing; use **constant-time comparison** (`crypto.timingSafeEqual` / `hmac.compare_digest`) to prevent timing side-channel attacks; reject any event with a timestamp older than 300 seconds to block replay attacks
|
|
27
|
+
- **Queue-First Webhook Ingestion**: return HTTP `200 OK` within **500 ms** after persisting the raw event — offload all state mutations to an async worker queue (Kafka, Cloudflare Queues, RabbitMQ); never perform heavy processing in the webhook handler synchronously
|
|
28
|
+
- enforce a **dual-write idempotency guard**: unique database index on `(provider, event_id, event_type)` combined with a distributed lock (Redis Redlock or Postgres Advisory Lock) during event processing to prevent duplicate state transitions
|
|
29
|
+
- store only tokenized references (e.g., `customer_id`, `payment_method_id`) — never raw payment credentials
|
|
30
|
+
- prefer dynamic payment methods (`automatic_payment_methods: { enabled: true }` in Stripe) over static backend payment method arrays
|
|
31
|
+
- support **HTTP 402 / MPP** programmatic machine payment challenges and off-session `SetupIntents` for autonomous agent checkout flows
|
|
32
|
+
- handle asynchronous clearing states (A2A bank transfers) via webhook state machine with inventory TTL lock during settlement pending
|
|
33
|
+
- **MPP Protocol** (Stripe + Tempo, Mar 2026): HTTP 402 flow — Request → 402 with payment requirements → Agent authorizes → Retry with credential → Verify → Return resource; Payment methods: Shared Payment Tokens (SPTs) for cards, stablecoins (USDC on Tempo), x402; Stripe integration: PaymentIntents API, `automatic_payment_methods: { enabled: true }`, off-session SetupIntents with `setup_future_usage: "off_session"`
|
|
34
|
+
- **x402 Protocol** (2025-2026): Internet-native HTTP-based payment standard for machine-to-machine; HTTP 402 with `payment-required` header (base64-encoded); Crypto: USDC on Base network, CDP facilitator (Coinbase Developer Platform); Stripe support: `2026-05-27.preview` API, `crypto` payment method, `mode: transaction_verification`; Deposit addresses: `POST /v1/crypto/deposit_addresses` (network=tempo)
|
|
35
|
+
- **BNPL & Subscription BNPL**: Messaging elements on PDP/cart (`stripe-payment-method-messaging`) with dynamic price/currency/country; Subscription BNPL for recurring payments; Flow: Initial installment → BNPL pays merchant → Subsequent payments via bank rails (ACH, A2A) or card rails
|
|
36
|
+
- **A2A Pay by Bank**: TrueLayer, Plaid, Stripe Pay by Bank; Lower fees than cards; Settlement state machine: `processing` → `pending` → `settled` webhooks; Inventory TTL lock during slow bank settlement
|
|
37
|
+
- **Stripe 2026 Roadmap**: Dynamic pricing for x402/MPP (Q3 public preview), Session payments for usage-based billing (Q3 public preview), Standalone 3DS (Q3 GA), Multi-account MCP (Q3 private preview), Shared Payment Tokens (Q4 GA US), Wero payments (Q4 private preview)
|
|
38
|
+
|
|
39
|
+
## Suggested Process
|
|
40
|
+
|
|
41
|
+
### 1. Clarify Integration Scope
|
|
42
|
+
|
|
43
|
+
Answer before building:
|
|
44
|
+
|
|
45
|
+
- which payment provider(s) are required?
|
|
46
|
+
- which flows: checkout, subscription, manual capture, refund, dispute handling, **MPP/x402 agent payments**, **BNPL**, **A2A**?
|
|
47
|
+
- what currency and locale requirements apply?
|
|
48
|
+
- is 3DS / SCA (Strong Customer Authentication) required?
|
|
49
|
+
- what is the test/live key management strategy?
|
|
50
|
+
- **MPP/x402 support needed for agentic commerce?**
|
|
51
|
+
|
|
52
|
+
### 2. Set Up Provider Configuration
|
|
53
|
+
|
|
54
|
+
- install the official SDK and pin the version
|
|
55
|
+
- configure environment-based keys (`STRIPE_SECRET_KEY`, `VNPAY_HASH_SECRET`, etc.) via `.env` — never hardcode
|
|
56
|
+
- configure webhook endpoints and register them with the provider dashboard
|
|
57
|
+
- set up idempotency key generation (UUID per transaction attempt)
|
|
58
|
+
- **MPP/x402**: configure crypto deposit addresses (`POST /v1/crypto/deposit_addresses`), CDP facilitator
|
|
59
|
+
- **BNPL**: configure messaging element with dynamic price/currency/country
|
|
60
|
+
- **A2A**: configure bank rails (TrueLayer/Plaid/Stripe Pay by Bank)
|
|
61
|
+
|
|
62
|
+
### 3. Implement the Payment Flow
|
|
63
|
+
|
|
64
|
+
- **create payment intent / order**: call the provider to initialize a transaction with amount, currency, and metadata
|
|
65
|
+
- **confirm / capture**: handle redirect or SDK confirmation; capture only after authorization succeeds
|
|
66
|
+
- **webhook handler**: verify signature → parse event → update order status atomically → return `200` quickly (offload side effects)
|
|
67
|
+
- **refund path**: expose a refund endpoint; pass original charge/transaction ID; log refund ID for audit trail
|
|
68
|
+
- **MPP/x402 flow**: HTTP 402 challenge → agent authorization → payment verification → resource return
|
|
69
|
+
- **BNPL messaging**: render on PDP/cart with dynamic pricing
|
|
70
|
+
- **A2A settlement**: webhook state machine with inventory TTL
|
|
71
|
+
|
|
72
|
+
### 4. Implement Error and Edge Case Handling
|
|
73
|
+
|
|
74
|
+
- map provider error codes to user-facing messages (do not expose raw gateway errors)
|
|
75
|
+
- handle card decline, insufficient funds, authentication required, network timeout distinctly
|
|
76
|
+
- implement retry logic with exponential backoff for transient network errors only — never retry a charge without user intent
|
|
77
|
+
- log payment events with metadata only (order_id, status, provider_event_id) — zero card data
|
|
78
|
+
- **MPP/x402 errors**: payment verification failure, crypto settlement timeout, facilitator errors
|
|
79
|
+
- **A2A errors**: settlement timeout, bank rejection, webhook state machine corruption
|
|
80
|
+
|
|
81
|
+
### 5. 2026 Modern Payment Paradigms
|
|
82
|
+
|
|
83
|
+
#### Stripe Dynamic Payment Methods
|
|
84
|
+
- Configure `automatic_payment_methods: { enabled: true }` when creating payment intent. Avoid hardcoded payment method types.
|
|
85
|
+
- Allows payment elements UI to render and prioritize available methods (cards, BNPL, bank transfers) dynamically based on client location, currency, dashboard settings.
|
|
86
|
+
|
|
87
|
+
#### Buy Now Pay Later (BNPL) Messaging
|
|
88
|
+
- Integrate BNPL messaging elements (e.g., `stripe-payment-method-messaging`) early in purchase funnel (PDP, cart pages).
|
|
89
|
+
- Pass item price, currency, consumer country dynamically for accurate Klarna/Affirm split calculations (e.g., "4 payments of $25").
|
|
90
|
+
- **Subscription BNPL**: Recurring payments beyond retail installments.
|
|
91
|
+
|
|
92
|
+
#### Account-to-Account (A2A) Pay by Bank
|
|
93
|
+
- Use bank-to-bank direct rails (TrueLayer, Plaid, Stripe Pay by Bank) to lower card processing fees.
|
|
94
|
+
- Manage intermediate status webhooks (`processing`, `pending`, `settled`) in DB state machine.
|
|
95
|
+
- Keep order state as payment pending; lock inventory with TTL while waiting for bank settlement.
|
|
96
|
+
|
|
97
|
+
#### Programmatic Agent Payments (x402 / MPP)
|
|
98
|
+
- For machine-to-machine / autonomous AI agent checkouts, avoid interactive frontend redirects.
|
|
99
|
+
- Respond to unauthorized agent requests with HTTP 402 Payment Required + payment headers.
|
|
100
|
+
- Support programmatic card and A2A billing via Stripe MPP or SetupIntents with `setup_future_usage: "off_session"`.
|
|
101
|
+
|
|
102
|
+
#### Stripe 2026 Roadmap Features (Evaluate for Integration)
|
|
103
|
+
- **Dynamic pricing for x402/MPP** (Q3 2026 public preview, global): Pay-as-you-go transactions on x402/MPP
|
|
104
|
+
- **Session payments** (Q3 2026 public preview, global): Usage-based billing at token consumption/API invocation granularity
|
|
105
|
+
- **Standalone 3DS** (Q3 2026 GA, global): Thin event destinations for all Stripe API resources
|
|
106
|
+
- **Multi-account MCP** (Q3 2026 private preview): Charge connected accounts for Stripe fees
|
|
107
|
+
- **Shared Payment Tokens** (Q4 2026 GA, US): Cross-merchant token sharing
|
|
108
|
+
- **Wero payments** (Q4 2026 private preview, global): European instant payment scheme
|
|
109
|
+
|
|
110
|
+
### 6. Test and Validate
|
|
111
|
+
|
|
112
|
+
- run against provider sandbox with documented test card numbers
|
|
113
|
+
- verify webhook delivery end-to-end (use provider dashboard or Stripe CLI)
|
|
114
|
+
- confirm idempotency: replay a webhook event; verify the order is not double-updated
|
|
115
|
+
- confirm no sensitive data appears in logs or error responses
|
|
116
|
+
- **MPP validation**: `npx mppx@latest validate http://localhost:4242`
|
|
117
|
+
- **x402 testing**: Stripe `2026-05-27.preview` API, crypto deposit addresses, facilitator settlement
|
|
118
|
+
- **BNPL testing**: messaging element renders correct splits for various price/currency/country combos
|
|
119
|
+
- **A2A testing**: settlement state machine transitions, inventory TTL lock/release, webhook replay
|
|
120
|
+
|
|
121
|
+
## Checklist
|
|
122
|
+
|
|
123
|
+
- [ ] provider SDK installed and version pinned
|
|
124
|
+
- [ ] all credentials in env vars — not in source code
|
|
125
|
+
- [ ] idempotency keys used for charge and capture calls
|
|
126
|
+
- [ ] webhook signature validation: HMAC over raw payload, constant-time comparison, 300s replay window
|
|
127
|
+
- [ ] **queue-first webhook ingestion**: 200 OK within 500ms, async worker offload (Kafka/Cloudflare Queues/RabbitMQ)
|
|
128
|
+
- [ ] **dual-write idempotency guard**: unique index on (provider, event_id, event_type) + distributed lock (Redis Redlock/Postgres Advisory Lock)
|
|
129
|
+
- [ ] error codes mapped to safe user-facing messages
|
|
130
|
+
- [ ] refund flow implemented with audit trail
|
|
131
|
+
- [ ] no card numbers, CVV, or PAN in logs or API responses (EMVCo Network Tokens preferred)
|
|
132
|
+
- [ ] sandbox tested end-to-end including failure cases
|
|
133
|
+
- [ ] webhook replay tested for idempotency
|
|
134
|
+
- [ ] dynamic payment methods enabled (`automatic_payment_methods: true`)
|
|
135
|
+
- [ ] BNPL messaging elements integrated on PDP and cart pages with dynamic price/currency/country
|
|
136
|
+
- [ ] A2A bank settlement webhook states handled (`processing`/`pending`/`settled`) with inventory TTL locks
|
|
137
|
+
- [ ] HTTP 402/MPP programmatic checkout path supported and tested for non-interactive agent payments
|
|
138
|
+
- [ ] off-session SetupIntents with `setup_future_usage: "off_session"` for stored method charging
|
|
139
|
+
- [ ] MPP protocol: HTTP 402 flow, SPTs for cards, stablecoins (USDC on Tempo), x402 support
|
|
140
|
+
- [ ] x402 protocol: crypto deposit addresses (USDC on Base/Tempo), CDP facilitator, `2026-05-27.preview` API
|
|
141
|
+
- [ ] Stripe 2026 roadmap features evaluated: dynamic pricing, session payments, standalone 3DS, Shared Payment Tokens, Wero
|
|
142
|
+
- [ ] MPP validation tested with `npx mppx@latest validate`
|
|
143
|
+
|
|
144
|
+
## Failure Modes
|
|
145
|
+
|
|
146
|
+
- **Provider webhook signature not verified**: webhook handler accepts payload without verifying signature. **Mitigation:** verify signature against provider's public key on every call; reject unsigned webhooks.
|
|
147
|
+
- **Currency mismatch between cart and gateway**: cart total in one currency sent to gateway in another. **Mitigation:** validate currency on cart and gateway call; reject mismatched calls.
|
|
148
|
+
- **Refund issued without original charge lookup**: refund sent without verifiable original charge id. **Mitigation:** require original charge id on every refund call; reject refunds without matching charge.
|
|
149
|
+
- **PCI scope drift**: new field added to checkout that includes card data. **Mitigation:** review data flow before merge; require security review for new card-handling code.
|
|
150
|
+
- **MPP/x402 payment verification bypass**: agent replays payment credential. **Mitigation:** nonce-based verification, facilitator settlement confirmation before resource release.
|
|
151
|
+
- **Crypto payment settlement failure**: on-chain transaction fails but agent received resource. **Mitigation:** transaction verification mode, facilitator webhook confirmation before resource release.
|
|
152
|
+
- **A2A settlement timeout**: bank transfer stuck in pending. **Mitigation:** inventory TTL with background sweeper, configurable max wait time.
|
|
153
|
+
- **BNPL messaging mismatch**: incorrect installment amounts displayed. **Mitigation:** dynamic price/currency/country passed to element, server-side validation.
|
|
154
|
+
- **Webhook replay attack**: attacker resends old webhook. **Mitigation:** 300s timestamp rejection, idempotency key deduplication.
|
|
155
|
+
- **Queue-first ingestion backlog**: webhook handler overwhelmed. **Mitigation:** async worker scaling, dead letter queue for failed events.
|
|
156
|
+
|
|
157
|
+
## Output Contracts
|
|
158
|
+
|
|
159
|
+
When the payment integration is consumed by storefront, checkout, or fulfillment agents, emit:
|
|
160
|
+
|
|
161
|
+
- **`contracts/schemas/api-contract-spec.json`** describing the gateway endpoints, the request/response shapes, and the auth requirements.
|
|
162
|
+
- **`contracts/schemas/edge-deployment-spec.json`** when the integration is part of a coordinated deploy handoff.
|
|
163
|
+
- **`contracts/schemas/mpp-payment-spec.json`** for MPP endpoints and HTTP 402 flow.
|
|
164
|
+
- **`contracts/schemas/x402-payment-spec.json`** for x402 crypto payment flow.
|
|
165
|
+
- **`contracts/schemas/bnpl-messaging-spec.json`** for BNPL element integration.
|
|
166
|
+
- **`contracts/schemas/a2a-settlement-spec.json`** for A2A webhook state machine.
|
|
167
|
+
|
|
168
|
+
Skip emission for local sandbox experiments that do not cross a role boundary.
|
|
169
|
+
|
|
170
|
+
## Security Guardrails (OWASP ASI)
|
|
171
|
+
|
|
172
|
+
- **ASI01 Goal Hijack**: a payment payload may try to reframe the order's amount or merchant. Validate against the declared cart and the merchant allowlist.
|
|
173
|
+
- **ASI03 Identity & Privilege Abuse**: payment endpoints must enforce authn/authz; reject anonymous or unscoped payment calls.
|
|
174
|
+
- **ASI05 RCE Guard**: never construct payment payloads, webhooks, or signing inputs from external or user-supplied content without strict schema validation.
|
|
175
|
+
- **ASI07 Inter-Agent Communication**: the gateway contract is consumed by storefront and checkout agents; emit a structured spec so each role can validate.
|
|
176
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present the integration as "PCI-compliant" without a real audit; surface the actual scope and the residual risk.
|
|
177
|
+
|
|
178
|
+
## Related Skills
|
|
179
|
+
|
|
180
|
+
- **handle-checkout-flow**: Orchestrate the full cart-to-confirmation flow that calls this skill
|
|
181
|
+
- **manage-order-fulfillment**: Update order status after payment confirmation
|
|
182
|
+
- **manage-secrets**: Rotate or audit gateway API keys
|
|
183
|
+
- **security-audit**: Review payment integration for PCI exposure
|
|
184
|
+
- **add-api-endpoint**: Scaffold the payment and webhook controller endpoints
|
|
185
|
+
- **configure-agent-commerce**: Implement x402 HTTP billing, MPP endpoints, and agent commerce registration
|
|
186
|
+
|
|
187
|
+
Last updated: 2026-09-25
|
|
@@ -0,0 +1,128 @@
|
|
|
1
|
+
# integrate-payment-gateway — 2026 Upgrade Plan
|
|
2
|
+
|
|
3
|
+
## Summary of 2026 Standards Changes
|
|
4
|
+
|
|
5
|
+
### Machine Payments Protocol (MPP) — Stripe + Tempo (March 2026)
|
|
6
|
+
- **Open protocol** for agents to pay programmatically without checkout UI
|
|
7
|
+
- **HTTP 402 Payment Required** flow: Agent requests resource → Server returns 402 with payment requirements → Agent authorizes payment → Retries request with payment credential → Server verifies and returns resource
|
|
8
|
+
- **Payment methods**: Shared Payment Tokens (SPTs) for cards, stablecoins (USDC on Tempo blockchain), x402 protocol
|
|
9
|
+
- **Stripe MPP integration**: PaymentIntents API, `automatic_payment_methods: { enabled: true }`, off-session SetupIntents with `setup_future_usage: "off_session"`
|
|
10
|
+
- **mppx SDK** for validation: `npx mppx@latest validate http://localhost:4242`
|
|
11
|
+
|
|
12
|
+
### x402 Protocol (2025-2026)
|
|
13
|
+
- **Internet-native HTTP-based payment standard** for machine-to-machine payments
|
|
14
|
+
- **HTTP 402** with `payment-required` header (base64-encoded payment requirements)
|
|
15
|
+
- **Crypto payments**: USDC on Base network, facilitator via Coinbase Developer Platform (CDP)
|
|
16
|
+
- **Stripe support**: `2026-05-27.preview` API version, `crypto` payment method with `mode: transaction_verification`
|
|
17
|
+
- **Deposit addresses**: `POST /v1/crypto/deposit_addresses` with network=tempo
|
|
18
|
+
|
|
19
|
+
### Stripe Roadmap 2026 (Q3/Q4)
|
|
20
|
+
- **Dynamic pricing for x402 and MPP** (public preview, global)
|
|
21
|
+
- **Session payments** for usage-based billing (token consumption, API invocations)
|
|
22
|
+
- **Standalone 3DS** (general availability, global)
|
|
23
|
+
- **Multi-account MCP** (private preview)
|
|
24
|
+
- **Shared Payment Tokens** (GA Q4 2026, US)
|
|
25
|
+
- **Wero payments** (private preview, global)
|
|
26
|
+
|
|
27
|
+
### BNPL & Subscription BNPL (2026)
|
|
28
|
+
- **Buy Now Pay Later** messaging elements on product detail/cart pages (stripe-payment-method-messaging)
|
|
29
|
+
- **Subscription BNPL** for recurring payments beyond retail installments
|
|
30
|
+
- **Flow**: Consumer pays initial installment → BNPL provider pays merchant → Consumer makes subsequent payments via bank rails (ACH, direct debit, A2A) or card rails
|
|
31
|
+
|
|
32
|
+
### A2A (Account-to-Account) Pay by Bank
|
|
33
|
+
- **Bank-to-bank direct rails**: TrueLayer, Plaid, Stripe Pay by Bank
|
|
34
|
+
- **Lower card processing fees**
|
|
35
|
+
- **Slow-settling transactions**: Manage intermediate status webhooks (processing, pending, settled) in DB state machine
|
|
36
|
+
- **Inventory TTL lock** while waiting for bank settlement
|
|
37
|
+
|
|
38
|
+
### Programmatic Agent Payments (x402 / MPP)
|
|
39
|
+
- **HTTP 402 / MPP** for machine-to-machine / autonomous AI agent checkouts
|
|
40
|
+
- **No interactive frontend redirects**
|
|
41
|
+
- **Stripe Machine Payments Protocol (MPP)** or SetupIntents with `setup_future_usage: "off_session"`
|
|
42
|
+
|
|
43
|
+
### PCI DSS v4.0.1 Webhook Requirements
|
|
44
|
+
- **Webhook signature verification**: HMAC over raw unparsed payload before JSON parsing
|
|
45
|
+
- **Constant-time comparison** (`crypto.timingSafeEqual` / `hmac.compare_digest`)
|
|
46
|
+
- **Replay attack prevention**: Reject events with timestamp older than 300 seconds
|
|
47
|
+
- **Queue-first ingestion**: Return 200 OK within 500ms after persisting raw event; offload to async worker (Kafka, Cloudflare Queues, RabbitMQ)
|
|
48
|
+
- **Dual-write idempotency guard**: Unique DB index on `(provider, event_id, event_type)` + distributed lock (Redis Redlock or Postgres Advisory Lock)
|
|
49
|
+
|
|
50
|
+
---
|
|
51
|
+
|
|
52
|
+
## Required Skill Upgrades
|
|
53
|
+
|
|
54
|
+
### 1. Core Rules Updates
|
|
55
|
+
| Current Rule | 2026 Upgrade |
|
|
56
|
+
|--------------|--------------|
|
|
57
|
+
| Webhook handling generic | **Queue-first ingestion** (200 OK within 500ms), async worker offload, dual-write idempotency guard |
|
|
58
|
+
| Payment methods static | **Dynamic payment methods** (`automatic_payment_methods: { enabled: true }`) |
|
|
59
|
+
| Agent payments mention | **Full MPP/x402 specification** with HTTP 402 flow, SPTs, stablecoins, off-session SetupIntents |
|
|
60
|
+
| BNPL mention | **BNPL messaging elements** on PDP/cart with dynamic price/currency/country |
|
|
61
|
+
| A2A mention | **Full A2A flow** with intermediate webhook states and inventory TTL locks |
|
|
62
|
+
| PCI DSS v4.0 | **PCI DSS v4.0.1** webhook specifics (raw payload HMAC, constant-time compare, 300s replay window) |
|
|
63
|
+
|
|
64
|
+
### 2. New 2026 Patterns to Add
|
|
65
|
+
- **MPP Payment Flow** section with complete HTTP 402 sequence diagram
|
|
66
|
+
- **x402 Protocol Integration** with crypto deposit addresses and CDP facilitator
|
|
67
|
+
- **Stripe Dynamic Payment Methods** configuration
|
|
68
|
+
- **BNPL Messaging Elements** integration on product/cart pages
|
|
69
|
+
- **A2A Pay by Bank** with settlement state machine and inventory TTL
|
|
70
|
+
- **Programmatic Agent Checkout** (HTTP 402, MPP, off-session SetupIntents)
|
|
71
|
+
- **Stripe 2026 Roadmap Features** (session payments, standalone 3DS, Shared Payment Tokens)
|
|
72
|
+
- **Webhook Security Hardening** (queue-first, dual-write guard, replay protection)
|
|
73
|
+
|
|
74
|
+
### 3. Checklist Additions
|
|
75
|
+
- [ ] MPP protocol implemented with HTTP 402 challenge/response flow
|
|
76
|
+
- [ ] x402 protocol support with crypto deposit addresses (USDC on Base/Tempo)
|
|
77
|
+
- [ ] `automatic_payment_methods: { enabled: true }` configured (no hardcoded payment method types)
|
|
78
|
+
- [ ] BNPL messaging elements (stripe-payment-method-messaging) on PDP and cart pages
|
|
79
|
+
- [ ] A2A bank settlement webhook states handled (processing/pending/settled) with inventory TTL locks
|
|
80
|
+
- [ ] HTTP 402/MPP programmatic checkout path tested for non-interactive agent payments
|
|
81
|
+
- [ ] Off-session SetupIntents with `setup_future_usage: "off_session"` for stored method charging
|
|
82
|
+
- [ ] Webhook signature verification: HMAC over raw payload, constant-time comparison, 300s replay window
|
|
83
|
+
- [ ] Queue-first webhook ingestion: 200 OK within 500ms, async worker offload
|
|
84
|
+
- [ ] Dual-write idempotency guard: unique index on (provider, event_id, event_type) + distributed lock
|
|
85
|
+
- [ ] Stripe 2026 roadmap features evaluated: session payments, standalone 3DS, Shared Payment Tokens
|
|
86
|
+
- [ ] No card numbers, CVV, PAN in logs or API responses (EMVCo Network Tokens preferred)
|
|
87
|
+
- [ ] Provider SDK version pinned, credentials in env vars only
|
|
88
|
+
|
|
89
|
+
### 4. Failure Mode Additions
|
|
90
|
+
- **MPP/x402 payment verification bypass**: Agent replays payment credential → Mitigation: Nonce-based verification, facilitator settlement confirmation
|
|
91
|
+
- **Crypto payment settlement failure**: On-chain transaction fails but agent received resource → Mitigation: Transaction verification mode, facilitator webhook confirmation before resource release
|
|
92
|
+
- **A2A settlement timeout**: Bank transfer stuck in pending → Mitigation: Inventory TTL with background sweeper, configurable max wait time
|
|
93
|
+
- **BNPL messaging mismatch**: Incorrect installment amounts displayed → Mitigation: Dynamic price/currency/country passed to element, server-side validation
|
|
94
|
+
- **Webhook replay attack**: Attacker resends old webhook → Mitigation: 300s timestamp rejection, idempotency key deduplication
|
|
95
|
+
- **Queue-first ingestion backlog**: Webhook handler overwhelmed → Mitigation: Async worker scaling, dead letter queue for failed events
|
|
96
|
+
|
|
97
|
+
### 5. Output Contract Updates
|
|
98
|
+
- Add `contracts/schemas/mpp-payment-spec.json` for MPP endpoints and flow
|
|
99
|
+
- Add `contracts/schemas/x402-payment-spec.json` for x402 crypto payment flow
|
|
100
|
+
- Add `contracts/schemas/bnpl-messaging-spec.json` for BNPL element integration
|
|
101
|
+
- Add `contracts/schemas/a2a-settlement-spec.json` for A2A webhook state machine
|
|
102
|
+
- Update `contracts/schemas/api-contract-spec.json` with new 2026 payment flows
|
|
103
|
+
|
|
104
|
+
---
|
|
105
|
+
|
|
106
|
+
## Implementation Priority
|
|
107
|
+
|
|
108
|
+
| Priority | Task | Effort |
|
|
109
|
+
|----------|------|--------|
|
|
110
|
+
| P0 | Add MPP protocol with HTTP 402 flow specification | High |
|
|
111
|
+
| P0 | Add x402 crypto payment integration (USDC on Base/Tempo) | High |
|
|
112
|
+
| P0 | Update webhook security to queue-first + dual-write guard | High |
|
|
113
|
+
| P0 | Add dynamic payment methods (`automatic_payment_methods: true`) | Medium |
|
|
114
|
+
| P1 | Add BNPL messaging elements integration | Medium |
|
|
115
|
+
| P1 | Add A2A Pay by Bank with settlement state machine | Medium |
|
|
116
|
+
| P1 | Add programmatic agent checkout (off-session SetupIntents) | Medium |
|
|
117
|
+
| P1 | Add Stripe 2026 roadmap feature evaluations | Low |
|
|
118
|
+
| P2 | Expand failure modes with 2026-specific scenarios | Low |
|
|
119
|
+
| P2 | Update output contracts for new payment specs | Low |
|
|
120
|
+
|
|
121
|
+
---
|
|
122
|
+
|
|
123
|
+
## Validation Gates
|
|
124
|
+
- Run `python3 core/scripts/validate-all.py` from agent-skills root after edits
|
|
125
|
+
- Verify INDEX.md regeneration if VERSION bumped
|
|
126
|
+
- Check adapter parity with `validate-rules.py` (9 parity groups)
|
|
127
|
+
- Test MPP flow with `npx mppx@latest validate`
|
|
128
|
+
- Test x402 flow with Stripe `2026-05-27.preview` API version
|
|
@@ -0,0 +1,197 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: manage-order-fulfillment
|
|
3
|
+
description: Implement and manage the post-purchase order lifecycle including order status management, packing, shipping label generation, carrier tracking, and refund or return processing. Use when building or maintaining fulfillment workflows after a successful payment.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, fetch]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Manage Order Fulfillment
|
|
8
|
+
|
|
9
|
+
Use this skill when the task involves the operations and engineering required to move a confirmed order through packing, shipping, delivery tracking, and post-delivery actions (returns, refunds, exchanges).
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- building post-purchase order lifecycle
|
|
14
|
+
- packing, shipping labels, carrier tracking
|
|
15
|
+
- refund or return processing
|
|
16
|
+
- fulfillment after successful payment
|
|
17
|
+
- **orchestration-based Saga (Temporal/AWS Step Functions)**
|
|
18
|
+
- **Vietnamese carrier webhook integrations (GHN/GHTK/GrabExpress)**
|
|
19
|
+
- **Vietnam Decree 248/2026/ND-CP compliance**
|
|
20
|
+
|
|
21
|
+
## Core Rules
|
|
22
|
+
|
|
23
|
+
- treat order data as `confidential` — customer PII (address, phone) must never appear in logs or public API responses
|
|
24
|
+
- **Event-Sourced State Machine (MANDATORY)**: model order status as an **append-only, immutable event log** (`order_placed`, `payment_captured`, `fulfillment_started`, `packed`, `shipped`, `delivered`, `returned`); derive current status by projecting the event stream — direct mutable status field updates are FORBIDDEN
|
|
25
|
+
- enforce state transitions via an **orchestration-based Saga** (Temporal / AWS Step Functions) with explicit compensating branches (`payment_failed`, `allocation_failed`, `cancelled`, `return_requested`, `refunded`); compensation order: reverse of success (Shipping → Inventory → Payment)
|
|
26
|
+
- refunds must always reference the original payment transaction ID — never issue a refund without a verified charge; refund amount must not exceed the captured total
|
|
27
|
+
- shipping label generation is irreversible and billable — validate carrier and shipping address before requesting a label; address validation is a mandatory step before tax/shipping calculations
|
|
28
|
+
- **Restock Inspection Gate (Enhanced)**: returned inventory must NOT be added back to sellable stock until a physical warehouse inspection event (Grade A confirmed) is logged — automatic restock on RMA creation is FORBIDDEN; event-sourced: `return_received` → `inspection_completed` (Grade A) → `restocked`
|
|
29
|
+
- validate agent-initiated fulfillment requests for a `fulfillment_authorized: true` JWT claim cryptographically scoped to the specific order ID before allocating inventory
|
|
30
|
+
- prefer **webhook callbacks** over polling for Vietnamese last-mile carriers (GHN, GHTK, Grab Express, Viettel Post, J&T Express); normalize all carrier status codes to unified internal milestones: `label_created` → `picked_up` → `in_transit` → `out_for_delivery` → `exception` / `delivered`
|
|
31
|
+
- **Vietnam Decree 248/2026/ND-CP Compliance** (effective July 1, 2026): seller identity verification required before fulfillment; platform obligations for rights disclosure, service standards, pricing transparency, affiliate marketing transparency; electronic ID verification for sellers/livestreamers from Jan 1, 2027
|
|
32
|
+
|
|
33
|
+
## Suggested Process
|
|
34
|
+
|
|
35
|
+
### 1. Define the Event-Sourced Order State Machine
|
|
36
|
+
|
|
37
|
+
Map the full lifecycle as immutable event log before implementing:
|
|
38
|
+
|
|
39
|
+
```
|
|
40
|
+
order_placed → payment_captured → fulfillment_started → packed → shipped → delivered → completed
|
|
41
|
+
↘ return_requested → returned → refunded
|
|
42
|
+
pending → cancelled (only before shipped)
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
- enforce state transitions in code — reject invalid transitions with a clear error
|
|
46
|
+
- **derive current status by projecting event stream** — NO mutable status field updates
|
|
47
|
+
- emit an event or webhook on each state change for downstream systems (warehouse, email, analytics)
|
|
48
|
+
- **Temporal/Step Functions Saga**: compensating branches for each failure mode, durable retries, automatic compensation registration
|
|
49
|
+
|
|
50
|
+
### 2. Implement Order Processing
|
|
51
|
+
|
|
52
|
+
- on payment confirmation: create the order record, decrement inventory, send confirmation email
|
|
53
|
+
- assign the order to a fulfillment queue (warehouse team, 3PL, or automated picker)
|
|
54
|
+
- allow operations team to view and manage orders through an admin interface
|
|
55
|
+
- **Temporal patterns**: declarative states with guards in config, pure decider owns decisions; derived UI steps via `deriveStep()`; price integrity with `reviewedCartVersion`; reservation management with TTL
|
|
56
|
+
|
|
57
|
+
### 3. Implement Shipping Label Generation
|
|
58
|
+
|
|
59
|
+
- integrate with carrier API (EasyPost, Shippo, DHL API, GHTK for Vietnam) to generate shipping labels
|
|
60
|
+
- validate the shipping address before requesting a label (reduce carrier correction fees)
|
|
61
|
+
- store the label URL and tracking number against the order record
|
|
62
|
+
- mark order as `shipped` after label is generated and send tracking info to customer
|
|
63
|
+
|
|
64
|
+
### 4. Implement Vietnamese Carrier Tracking (Webhook Callbacks)
|
|
65
|
+
|
|
66
|
+
**GHN (Giao Hang Nhanh)**: `ready_to_pick`, `delivering`, `delivered` webhooks; COD callback URL for real-time COD status; automated sortation system
|
|
67
|
+
**GHTK**: G1 Open API — sorting code, create/cancel/tracking/big bag order endpoints
|
|
68
|
+
**GrabExpress**: on-demand same-city courier, real-time courier tracking, webhook updates over delivery lifecycle
|
|
69
|
+
**Viettel Post**: government-backed, nationwide coverage
|
|
70
|
+
**J&T Express**: regional Southeast Asia coverage
|
|
71
|
+
|
|
72
|
+
- **Webhook callbacks OVER polling** for all carriers
|
|
73
|
+
- **Normalize carrier codes** to unified milestones: `label_created` → `picked_up` → `in_transit` → `out_for_delivery` → `exception` / `delivered`
|
|
74
|
+
- verify webhook signatures (HMAC) and carrier allowlist to prevent spoofing
|
|
75
|
+
|
|
76
|
+
### 5. Implement Refund and Returns
|
|
77
|
+
|
|
78
|
+
- create a `ReturnRequest` with reason, items, and quantity
|
|
79
|
+
- validate return eligibility: within return window, original order in `completed` or `delivered` state
|
|
80
|
+
- on approval: initiate refund via `integrate-payment-gateway` using original transaction ID
|
|
81
|
+
- **Restock Inspection Gate**: `return_received` → `inspection_completed` (Grade A) → `restocked`; automatic restock on RMA creation FORBIDDEN
|
|
82
|
+
- emit a `refund_issued` event for accounting systems
|
|
83
|
+
|
|
84
|
+
### 6. Agent-Initiated Fulfillment Authorization
|
|
85
|
+
|
|
86
|
+
- verify agent JWT contains `fulfillment_authorized: true` claim
|
|
87
|
+
- claim must be cryptographically verified and scoped to specific order ID
|
|
88
|
+
- verify BEFORE inventory lock or allocation routines
|
|
89
|
+
- reject unauthorized agent fulfillment requests
|
|
90
|
+
|
|
91
|
+
### 7. Vietnam Decree 248/2026/ND-CP Compliance
|
|
92
|
+
|
|
93
|
+
- **Seller Verification Gate**: verify seller identity before `fulfillment_started` event
|
|
94
|
+
- **Platform Obligations**: disclose rights/obligations, service standards, pricing, promotions, security, complaints
|
|
95
|
+
- **Affiliate Transparency**: roles, links, referral codes, responsibilities disclosed
|
|
96
|
+
- **Electronic ID Verification**: sellers and livestream sellers from Jan 1, 2027
|
|
97
|
+
|
|
98
|
+
## 2026 Fulfillment Architecture Patterns
|
|
99
|
+
|
|
100
|
+
### Event-Sourced Fulfillment (Mandatory)
|
|
101
|
+
- Immutable append-only event log: `order_placed`, `payment_captured`, `fulfillment_started`, `packed`, `shipped`, `delivered`, `returned`
|
|
102
|
+
- Derive status by projection — direct mutable status updates FORBIDDEN
|
|
103
|
+
- Benefits: audit trails, time-travel debugging, compliance evidence
|
|
104
|
+
|
|
105
|
+
### Orchestration-Based Saga (Temporal / AWS Step Functions)
|
|
106
|
+
- Replace choreography with orchestration: explicit compensating branches
|
|
107
|
+
- Temporal: durable execution, automatic retries, built-in compensation registration
|
|
108
|
+
- Step Functions: state machine with Lambda compensations
|
|
109
|
+
- Compensation order: reverse of success (Shipping → Inventory → Payment)
|
|
110
|
+
|
|
111
|
+
### Agent-Initiated Authorization
|
|
112
|
+
- JWT claim required: `fulfillment_authorized: true`, cryptographically scoped to order ID
|
|
113
|
+
- Verify BEFORE inventory lock or allocation
|
|
114
|
+
|
|
115
|
+
### Vietnamese Carrier Webhook Integrations
|
|
116
|
+
- **GHN**: `ready_to_pick`, `delivering`, `delivered`, COD callback
|
|
117
|
+
- **GHTK**: G1 Open API: sorting code, create/cancel/track/big bag
|
|
118
|
+
- **GrabExpress**: real-time courier tracking, delivery lifecycle
|
|
119
|
+
- **Normalize all** to unified milestones: `label_created` → `picked_up` → `in_transit` → `out_for_delivery` → `exception` / `delivered`
|
|
120
|
+
|
|
121
|
+
### Vietnam Decree 248/2026/ND-CP
|
|
122
|
+
- Seller verification before fulfillment; platform obligations; affiliate transparency; electronic ID from Jan 1, 2027
|
|
123
|
+
|
|
124
|
+
### Restock Inspection Gate (Enhanced)
|
|
125
|
+
- Physical inspection mandatory: Grade A before restock
|
|
126
|
+
- Event-sourced: `return_received` → `inspection_completed` (Grade A) → `restocked`
|
|
127
|
+
- Automatic restock on RMA creation FORBIDDEN
|
|
128
|
+
|
|
129
|
+
### Temporal E-Commerce Patterns
|
|
130
|
+
- Checkout workflow IS the saga; `updateWithStart` for atomic create-or-update
|
|
131
|
+
- Declarative states with guards; `deriveStep()` for UI; price integrity via `reviewedCartVersion`
|
|
132
|
+
- Reservation renewal at start, TTL release on timeout, confirmation on success
|
|
133
|
+
|
|
134
|
+
## Checklist
|
|
135
|
+
|
|
136
|
+
- [ ] order state machine modeled as immutable append-only event log
|
|
137
|
+
- [ ] current status derived by projecting event stream (no mutable status field)
|
|
138
|
+
- [ ] orchestration-based Saga with Temporal or AWS Step Functions
|
|
139
|
+
- [ ] explicit compensating branches for all failure modes
|
|
140
|
+
- [ ] Agent JWT contains `fulfillment_authorized: true` claim scoped to order ID
|
|
141
|
+
- [ ] cryptographic verification of agent authorization before inventory allocation
|
|
142
|
+
- [ ] GHN webhook integration: `ready_to_pick`, `delivering`, `delivered`, COD callback
|
|
143
|
+
- [ ] GHTK webhook integration: G1 Open API endpoints, status normalization
|
|
144
|
+
- [ ] GrabExpress webhook integration: real-time courier tracking, delivery lifecycle
|
|
145
|
+
- [ ] carrier status codes mapped to unified milestones (`label_created` → `delivered`)
|
|
146
|
+
- [ ] webhook signature verification (HMAC) and carrier allowlist
|
|
147
|
+
- [ ] Vietnam Decree 248/2026: seller verification workflow before `fulfillment_started`
|
|
148
|
+
- [ ] affiliate marketing transparency: roles, links, codes disclosed
|
|
149
|
+
- [ ] restock inspection gate: `return_received` → `inspection_completed` (Grade A) → `restocked`
|
|
150
|
+
- [ ] automatic restock on RMA creation forbidden
|
|
151
|
+
- [ ] declarative state transitions with guards in configuration
|
|
152
|
+
- [ ] price integrity: stale cart version aborts with `CART_CHANGED`
|
|
153
|
+
- [ ] inventory reservation renewal at fulfillment start, TTL release on timeout
|
|
154
|
+
- [ ] customer PII not in logs or non-admin API responses
|
|
155
|
+
- [ ] state change events emitted for downstream systems
|
|
156
|
+
|
|
157
|
+
## Failure Modes
|
|
158
|
+
|
|
159
|
+
- **Order fulfilled twice**: idempotency key on every fulfillment call; reject duplicates.
|
|
160
|
+
- **Inventory not decremented**: enforce decrement in same transaction; reject without it.
|
|
161
|
+
- **Tracking ID not propagated**: require notification step on every fulfillment.
|
|
162
|
+
- **Carrier mismatch**: validate carrier against destination at fulfillment time.
|
|
163
|
+
- **Agent fulfillment spoofing**: JWT `fulfillment_authorized: true` claim verification scoped to order ID.
|
|
164
|
+
- **Event log corruption**: DB constraint forbidding direct status updates, audit trigger.
|
|
165
|
+
- **Saga compensation failure**: Temporal durable retries, dead letter queue for manual intervention.
|
|
166
|
+
- **Carrier webhook spoofing**: webhook signature verification (HMAC), carrier allowlist.
|
|
167
|
+
- **Vietnam compliance gap**: Decree 248/2026 verification gate before `fulfillment_started` event.
|
|
168
|
+
- **Restock without inspection**: mandatory `inspection_completed` event with Grade A before `restocked`.
|
|
169
|
+
|
|
170
|
+
## Output Contracts
|
|
171
|
+
|
|
172
|
+
When the fulfillment workflow is consumed by warehouse, shipping, or support agents, emit:
|
|
173
|
+
|
|
174
|
+
- **`contracts/schemas/api-contract-spec.json`** describing the fulfillment endpoints, the request/response shapes, and the state transitions.
|
|
175
|
+
- Inline JSON deliverables for the event-sourced order log (event + projection shapes), the saga workflow definition (Temporal/Step Functions, compensation order), and the restock inspection gate.
|
|
176
|
+
- Inline specs for JWT `fulfillment_authorized` claim verification and carrier webhook normalization (GHN/GHTK/GrabExpress), plus a markdown state-machine summary for human reviewers.
|
|
177
|
+
|
|
178
|
+
Skip emission for single-order experiments that do not cross a role boundary.
|
|
179
|
+
|
|
180
|
+
## Security Guardrails (OWASP ASI)
|
|
181
|
+
|
|
182
|
+
- **ASI01 Goal Hijack**: a fulfillment request may try to reframe the order's state. Validate against the declared order id and the state machine.
|
|
183
|
+
- **ASI03 Identity & Privilege Abuse**: fulfillment endpoints must enforce role-based access; reject unscoped calls.
|
|
184
|
+
- **ASI05 RCE Guard**: never construct shipping labels, tracking IDs, or webhook payloads from external content without strict schema validation.
|
|
185
|
+
- **ASI07 Inter-Agent Communication**: the fulfillment contract is consumed by warehouse and support agents; emit a structured spec so each role can validate.
|
|
186
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present fulfillment as "automated" without the actual state transition evidence; surface the residual risk.
|
|
187
|
+
|
|
188
|
+
## Related Skills
|
|
189
|
+
|
|
190
|
+
- **integrate-payment-gateway**: Issue refunds against original payment transactions
|
|
191
|
+
- **handle-checkout-flow**: Creates the order that this skill fulfills
|
|
192
|
+
- **manage-product-catalog**: Decrements inventory and restocks on returns
|
|
193
|
+
- **add-event-handler**: Handle carrier tracking webhooks and order state events
|
|
194
|
+
- **add-api-endpoint**: Expose fulfillment status and return endpoints
|
|
195
|
+
- **incident-report**: Escalate lost packages, carrier failures, and refund disputes
|
|
196
|
+
|
|
197
|
+
Last updated: 2026-09-25
|