@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,195 @@
|
|
|
1
|
+
## DevOps Engineer Review Checklist
|
|
2
|
+
|
|
3
|
+
This reference checklist provides detailed platform engineering, delivery safety, infrastructure-as-code, and runtime verification criteria for DevOps engineering to meet 2026–2027 SOTA standards. It synthesizes The Great Architectural Convergence across declarative universal control planes, progressive canary delivery, sidecarless service mesh, deep eBPF observability, cloud-native AI/GPU infrastructure, cryptographic supply chain provenance, and Senior Team Lead Kubernetes development debugging standards.
|
|
4
|
+
|
|
5
|
+
### 1. Declarative GitOps & Universal Control Plane (ArgoCD SSA & Crossplane)
|
|
6
|
+
- **Server-Side Apply (SSA) & Closed-Loop Reconciliation**:
|
|
7
|
+
- all Kubernetes workloads deployed via ArgoCD v2.12+ enforcing Server-Side Apply (`syncOptions: [ServerSideApply=true]`) to transfer field management to Kubernetes API Server, completely eliminating 264KB `kubectl.kubernetes.io/last-applied-configuration` annotation limits and race conditions
|
|
8
|
+
- automated drift detection and reconciliation configured with `RespectIgnoreDifferences=true`, `ApplyOutOfSyncOnly=true`, and `PruneLast=true`
|
|
9
|
+
- explicit `ignoreDifferences` rules configured for dynamically mutated fields (e.g. HPA `/spec/replicas`, admission webhook annotations, dynamic token timestamps)
|
|
10
|
+
- explicit `syncWaves` (e.g., Wave -1: namespaces/CRDs, Wave 0: secrets/configmaps, Wave 1: storage/stateful workloads, Wave 2: stateless deployments/rollouts, Wave 3: ingress/monitoring) and lifecycle phase hooks (`PreSync`, `Sync`, `PostSync`, `SyncFail`) governing multi-tier dependencies; zero manual out-of-band `kubectl apply` in production
|
|
11
|
+
- **ApplicationSets & Dynamic Fleet Fan-Out**:
|
|
12
|
+
- standardized `ApplicationSet` manifests combining Git directory discovery (`apps/services/*`) and Matrix/List generators (`staging`, `production`) using Go templating (`goTemplate: true`, `goTemplateOptions: ["missingkey=error"]`)
|
|
13
|
+
- progressive sync waves and rolling update strategies configured within ApplicationSets to prevent thundering-herd API server exhaustion during mass fleet synchronizations
|
|
14
|
+
- **Crossplane v1.16+ Compositions as Code**:
|
|
15
|
+
- cloud infrastructure managed as Kubernetes custom resources via Composite Resource Definitions (XRDs); platform teams expose high-level schemas, shielding developers from raw cloud provider parameter complexity
|
|
16
|
+
- Crossplane Compositions powered by compiled Go (`function-go-templating`) or KCL (`function-kcl`) functions, replacing fragile YAML patch-and-transform with compile-time type validation, conditionals, and deterministic loops
|
|
17
|
+
- continuous closed-loop reconciliation actively correcting out-of-band cloud drift against desired XRD state
|
|
18
|
+
- **Controller Scale & Reconciliation Storm Prevention**:
|
|
19
|
+
- ArgoCD controller deployed with dynamic sharding (`ARGOCD_CONTROLLER_SHARDING_METHOD="consistent-hashing"`) across $\ge 3$ replicas to distribute application workqueues
|
|
20
|
+
- client-go rate limits tuned to `ARGOCD_K8S_CLIENT_QPS="300"` and `ARGOCD_K8S_CLIENT_BURST="600"` to prevent API Priority and Fairness (APF) request shedding
|
|
21
|
+
- `argocd-repo-server` mounted on in-memory `tmpfs` volume with 24-hour commit-SHA caching (`ARGOCD_REPO_CACHE_EXPIRATION="24h"`) and Redis HA with gzip compression to handle fleets $> 5,000$ applications without OOM crashes
|
|
22
|
+
|
|
23
|
+
### 2. Secret Management & Client-Side State Encryption (Vault, ESO, OpenTofu KMS)
|
|
24
|
+
- **External Secrets Operator (ESO v1beta1) Declarative Sync**:
|
|
25
|
+
- zero plaintext, base64-encoded, or encrypted secrets committed to Git repositories; all sensitive credentials synchronized declaratively via `ExternalSecret` manifests referencing namespace-scoped `SecretStore`
|
|
26
|
+
- authentication to upstream secret vaults (HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager) leverages short-lived Kubernetes ServiceAccount OIDC tokens or AWS IAM Roles for Service Accounts (IRSA); hardcoded static tokens or long-lived IAM keys strictly prohibited
|
|
27
|
+
- wildcard cluster-wide `ClusterSecretStore` prohibited; secret synchronization intervals (`refreshInterval: 1h`) configured with automated secret rotation handling and Prometheus drift alerting
|
|
28
|
+
- **OpenTofu v1.8+ Client-Side State Encryption**:
|
|
29
|
+
- IaC state files (`.tfstate`) and plan files encrypted in-memory client-side using OpenTofu v1.8+ before transmitting bytes to remote S3/GCS/HTTP backends
|
|
30
|
+
- encryption keys managed through AWS KMS (`aws_kms`), GCP KMS, or HashiCorp Vault using authenticated AES-GCM (256-bit); unencrypted state storage in remote S3 buckets blocked via bucket policy and IaC policy-as-code gates
|
|
31
|
+
- key rotation policies enforced at KMS provider level without requiring state re-encryption downtime
|
|
32
|
+
- **Pipeline Push Protection & Secret Scanning**:
|
|
33
|
+
- automated pre-commit hooks and CI/CD secret scanning (Gitleaks, TruffleHog) active across all repository branches to catch high-entropy credentials before commit
|
|
34
|
+
- GitHub Advanced Security Secret Scanning Push Protection or GitLab Secret Detection enabled across all repositories to reject secret leaks at push time
|
|
35
|
+
|
|
36
|
+
### 3. Progressive Delivery & MetricAnalysis Canary Gates (Argo Rollouts & PromQL)
|
|
37
|
+
- **Argo Rollouts Canary Traffic Splitting**:
|
|
38
|
+
- deployments configured with Argo Rollouts (`argoproj.io/v1alpha1 Rollout`) replacing static `Deployment` objects; step-based progressive traffic shifting (e.g. 10% → 25% → 50% → 100%) integrated with Cilium L7 or Istio `VirtualService` / Gateway API
|
|
39
|
+
- explicit pause intervals (`pause: {duration: 5m}`) between steps to accumulate statistically significant metric telemetry before advancing
|
|
40
|
+
- **Prometheus MetricAnalysis Gates & Verification Criteria**:
|
|
41
|
+
- automated `AnalysisTemplate` checks bound to rollouts evaluating P99 latency (threshold: $< 250\text{ms}$, `result[0] < 0.250`) and HTTP 5xx error rate (threshold: $< 1.0\%$, `result[0] < 1.0`)
|
|
42
|
+
- consecutive failure limits (`failureLimit: 2`) and evaluation intervals (`interval: 30s`, `count: 10`) configured to trigger automated abort and emergency rollback upon metric breach
|
|
43
|
+
- **PromQL Zero-Traffic Vector-Drop Coalescing**:
|
|
44
|
+
- metric queries implement empty vector coalescing (`or on() vector(0)`) to guard against false rollbacks during low-traffic maintenance windows when zero requests drop the evaluation vector:
|
|
45
|
+
```promql
|
|
46
|
+
(
|
|
47
|
+
(
|
|
48
|
+
sum(rate(http_requests_total{job="kubernetes-service-endpoints", service="{{ args.service-name }}", status=~"5.*"}[2m]))
|
|
49
|
+
or vector(0)
|
|
50
|
+
)
|
|
51
|
+
/
|
|
52
|
+
(
|
|
53
|
+
(sum(rate(http_requests_total{job="kubernetes-service-endpoints", service="{{ args.service-name }}"}[2m])) > 0)
|
|
54
|
+
or vector(1)
|
|
55
|
+
)
|
|
56
|
+
* 100
|
|
57
|
+
) or on() vector(0)
|
|
58
|
+
```
|
|
59
|
+
- P99 latency queries using `histogram_quantile(0.99, ...)` similarly protected with `or on() vector(0)` to prevent undefined vector evaluation errors
|
|
60
|
+
|
|
61
|
+
### 4. Sidecarless Service Mesh & Kernel Networking (Cilium eBPF & Istio Ambient)
|
|
62
|
+
- **Sidecarless Architecture & Resource Efficiency**:
|
|
63
|
+
- zero intrusive Envoy sidecars injected into application pods; Layer 4 mutual TLS (mTLS) enforced at the node kernel layer via Cilium eBPF socket redirection (`sockops`) or Istio Ambient `ztunnel` over HBONE (HTTP/2 Based Overlay Network Encapsulation, port 15008)
|
|
64
|
+
- pod memory footprint reduced by 60–80% compared to traditional sidecar meshes; application restarts eliminated during mesh control plane upgrades
|
|
65
|
+
- **L7 Waypoint Proxies On-Demand**:
|
|
66
|
+
- Layer 7 routing, retries, header manipulation, and JWT authentication isolated to dedicated, per-namespace or per-service-account Waypoint proxies (`istio.io/use-waypoint`), provisioned only where L7 policies are strictly required
|
|
67
|
+
- **Path MTU & Redirection Loop Prevention**:
|
|
68
|
+
- Geneve/VXLAN overlay networks explicitly configured with clamped MTU (1,450 bytes on standard 1,500-byte physical networks) and TCP MSS clamping (`bpf.clamp-mss: true`) to prevent MTU black-hole packet drops with `DF` (Don't Fragment) flag set
|
|
69
|
+
- ambient redirection rules explicitly exclude HBONE port 15008 and 15021 (`ISTIO_INBOUND_PORTS: "*,!15008,!15021"`) to prevent kernel packet encapsulation loops
|
|
70
|
+
- dynamic BPF connection tracking maps sized to $\ge 524,288$ entries (`bpf-ct-global-any-max: 524288`) to avoid `-ENOSPC` map exhaustion under high connection churn
|
|
71
|
+
|
|
72
|
+
### 5. Deep Observability & OTel Collector Pipeline Architecture
|
|
73
|
+
- **OpenTelemetry Collector Contrib Processor Pipeline Order**:
|
|
74
|
+
- `memory_limiter` processor declared as the absolute **first processor** in every trace, log, and metric pipeline to guarantee load shedding before buffer allocation:
|
|
75
|
+
```yaml
|
|
76
|
+
processors: [memory_limiter, k8sattributes, tail_sampling, batch]
|
|
77
|
+
```
|
|
78
|
+
- declaring `memory_limiter` after `tail_sampling` is an anti-pattern that buffers spans until cgroup OOM kills the collector pod (exit code 137)
|
|
79
|
+
- memory limiter configured with `check_interval: 1s`, `limit_percentage: 75`, and `spike_limit_percentage: 15` relative to container memory limits
|
|
80
|
+
- **Tail-Based Sampling Configuration**:
|
|
81
|
+
- sampling decisions deferred until full trace completion; 100% of errors (`status_code: ERROR`, HTTP 5xx, gRPC error codes) and high-latency traces (`threshold_ms: 500`) retained, while healthy traces probabilistically downsampled (e.g. 5.0%)
|
|
82
|
+
- `decision_wait` capped at 5s–10s to prevent collector memory exhaustion; upstream routing tier deploys `loadbalancingexporter` hashing on `trace_id` so all spans for a trace arrive at the same collector pod
|
|
83
|
+
- **W3C Trace Propagation & GenAI Semantic Conventions**:
|
|
84
|
+
- unbroken propagation of W3C `traceparent` and `tracestate` headers across HTTP, gRPC, and asynchronous message queues (Kafka, RabbitMQ)
|
|
85
|
+
- AI and LLM inference workloads instrumented using stable OpenTelemetry GenAI semantic conventions (v1.28+, `OTEL_SEMCONV_STABILITY_OPT_IN=genai`) tracking `gen_ai.system`, `gen_ai.request.model`, `gen_ai.usage.input_tokens`, and `gen_ai.usage.output_tokens`
|
|
86
|
+
|
|
87
|
+
### 6. Kernel-Level Runtime Security & Forensics (Cilium Tetragon & Hubble)
|
|
88
|
+
- **In-Kernel Synchronous Enforcement (Tetragon)**:
|
|
89
|
+
- Tetragon `TracingPolicy` hooks attached to kernel system calls (`sys_execve`) and LSM hooks (`security_bprm_check`); synchronous in-kernel termination (`Sigkill`) triggered immediately upon detection of unauthorized interactive shells (`/bin/sh`, `/bin/bash`, `/bin/ash`, `/bin/zsh`), scripting runtimes (`/usr/bin/python`, `/usr/bin/perl`), or network utilities (`/usr/bin/nc`, `/usr/bin/netcat`) in production namespaces before execution returns to userspace
|
|
90
|
+
- scoped filtering enforced via `matchBinaryNames` and namespace filters; generic unscoped kprobes on high-volume IO calls (`sys_enter_read`, `sys_enter_write`, `sys_enter_close`) strictly prohibited to avoid ring buffer saturation
|
|
91
|
+
- **Kernel Platform Prerequisites**:
|
|
92
|
+
- worker nodes enforce Linux kernel $\ge 5.15$ LTS with BPF Type Format (BTF) enabled to prevent instruction ceiling limit verifier rejections (4,096 instruction ceiling on kernel $< 5.15$ vs 1,000,000 on 5.15+)
|
|
93
|
+
- Tetragon Helm values allocate $\ge 32\text{MB}$ BPF ring buffer (`bpf.mapSizes.ringBuffer: 33554432`)
|
|
94
|
+
- **Hubble L7 Protocol Flow Observability**:
|
|
95
|
+
- Hubble L7 protocol parsing enabled for HTTP, gRPC, DNS, and Kafka flows without sidecar proxies; flow records exported via Hubble Relay gRPC server to OpenTelemetry Collector and Grafana
|
|
96
|
+
- egress `CiliumNetworkPolicy` rules enforce DNS domain regex filtering (FQDN policies) to prevent unauthorized command-and-control communication and data exfiltration
|
|
97
|
+
|
|
98
|
+
### 7. Internal Developer Platforms & Self-Service Golden Paths (Backstage & Score)
|
|
99
|
+
- **Platform-as-a-Product & Golden Path Blueprints**:
|
|
100
|
+
- infrastructure provisioning exposed via self-service Golden Paths; ad-hoc individual team provisioning tickets rejected
|
|
101
|
+
- Golden Path templates encode security, observability (OTel), and GitOps by default; time-to-provision for new microservices targeted at $< 30$ minutes
|
|
102
|
+
- **Declarative Workload Intent via Score YAML**:
|
|
103
|
+
- workload intent declared using environment-agnostic `score.yaml` specifications describing service containers, ports, dependencies (`type: postgres`, `type: redis`), and resource requests
|
|
104
|
+
- Score CLI and providers translate workload intent into Compose for local development (`score-compose`) and Helm/ArgoCD manifests for Kubernetes (`score-k8s`) without developer manifest duplication
|
|
105
|
+
- **Backstage v1.30+ Dynamic Plugins & Catalog Ingestion**:
|
|
106
|
+
- service catalog maintains ownership, repository references, API contracts, and health scorecards; dynamic plugins loaded at runtime without rebuilding Backstage frontend container images
|
|
107
|
+
- event-driven catalog ingestion via Git push webhooks (`/api/catalog/refresh`) replaces periodic full-org polling to prevent database lock contention on PostgreSQL entities tables
|
|
108
|
+
- **Kratix Promises & Radius Recipes**:
|
|
109
|
+
- cloud capabilities packaged as Kratix Promises bundling CRDs, containerized request/configure pipelines, and GitOps state store placements
|
|
110
|
+
- Radius Universal Control Plane (UCP) decouples infrastructure recipes (Bicep/Terraform) from application topology, enabling self-service database/cache provisioning without cloud provider lock-in
|
|
111
|
+
|
|
112
|
+
### 8. Cloud-Native AI Model Serving & Distributed Orchestration (KubeRay & vLLM)
|
|
113
|
+
- **High-Throughput Model Serving (vLLM on RayService)**:
|
|
114
|
+
- distributed LLM inference clusters orchestrated via KubeRay `RayService` running vLLM; worker pods deploy high-throughput PagedAttention engines
|
|
115
|
+
- `--gpu-memory-utilization` capped at `0.88` to `0.90` to reserve dedicated VRAM headroom for dynamic PyTorch runtime activations, CUDA context overhead, and NCCL buffers; setting 0.95+ triggers CUDA OOM under batch spikes
|
|
116
|
+
- **PagedAttention & Prefix Caching Optimization**:
|
|
117
|
+
- `--enable-chunked-prefill` and `--enable-prefix-caching` enabled to eliminate redundant prompt processing on repeated system instructions and multi-turn conversations
|
|
118
|
+
- block size tuning (`--block-size 16` or `32`) aligned with workload prompt length distribution to minimize internal KV-cache fragmentation
|
|
119
|
+
- **High-Speed Shared Memory (`/dev/shm`)**:
|
|
120
|
+
- high-speed in-memory `tmpfs` volume mounted on `/dev/shm` (minimum 16GiB: `emptyDir: { medium: Memory, sizeLimit: 16Gi }`) across all inference worker pods; default Docker 64MB `/dev/shm` causes immediate NCCL bus deadlocks during inter-process tensor transfers
|
|
121
|
+
|
|
122
|
+
### 9. Hardware Virtualization, GPU Slicing & Queue-Depth Autoscaling (MIG, DRA, HPA)
|
|
123
|
+
- **Hardware-Level GPU Partitioning (NVIDIA MIG)**:
|
|
124
|
+
- multi-tenant or multi-workload GPU nodes enforce physical hardware slicing using NVIDIA Multi-Instance GPU (MIG, e.g. `nvidia.com/mig-3g.40gb`), providing isolated compute instances, memory controllers, and fault domains; unpartitioned time-sharing on production inference strictly prohibited to avoid noisy-neighbor CUDA OOM cascades
|
|
125
|
+
- **Dynamic Resource Allocation (DRA K8s 1.31+)**:
|
|
126
|
+
- GPU resources claimed via Kubernetes 1.31+ DRA `ResourceClaim` objects using Common Expression Language (CEL) device selectors (`device.attributes['gpu.nvidia.com'].memory >= 40.GiB`), matching specific hardware architectures, memory tiers, and topology-aware NVLink interconnects
|
|
127
|
+
- **Queue-Depth Driven HPA Autoscaling**:
|
|
128
|
+
- Horizontal Pod Autoscalers (`autoscaling/v2`) driven by PrometheusAdapter custom metrics tracking request queue depth (`vllm:num_requests_waiting` target: 5) and KV cache saturation (`vllm:gpu_cache_usage_factor` target: 0.80)
|
|
129
|
+
- autoscaling based solely on raw GPU compute utilization (`DCGM_FI_DEV_GPU_UTIL`) strictly rejected: transformer memory-bandwidth decoding stalls leave Tensor Cores at 30–40% utilization while request queues are completely saturated
|
|
130
|
+
|
|
131
|
+
### 10. AI FinOps, Cost Attribution & LLM Gateway Choke Point (OpenCost & LiteLLM)
|
|
132
|
+
- **Centralized LLM Gateway Choke Point**:
|
|
133
|
+
- 100% of application LLM calls route through centralized proxy gateways (LiteLLM, Portkey); direct calls to model provider endpoints using hardcoded API keys are a strict policy violation
|
|
134
|
+
- gateway enforces per-tenant token rate limits, automated multi-provider failover fallbacks (primary → secondary → tertiary model), and provider credential vaulting
|
|
135
|
+
- **Shift-Left FinOps & Metadata Tagging**:
|
|
136
|
+
- CI/CD pipelines block deployments lacking mandatory cost attribution headers (`x-team-id`, `x-service-name`, `x-budget-tier`) on LLM requests
|
|
137
|
+
- agentic circuit breakers configured to cap per-session token expenditure ($\le 10\%$ of daily budget) to terminate autonomous agent infinite loops
|
|
138
|
+
- **OpenCost DCGM GPU Cost Allocation**:
|
|
139
|
+
- OpenCost deployed with NVIDIA DCGM Prometheus exporter metrics (`DCGM_FI_DEV_GPU_UTIL`, `DCGM_FI_DEV_FB_USED`); all GPU workloads labeled with mandatory `cost-center` and `team` tags for namespace-level billing attribution and Value-Per-Token scorecard generation
|
|
140
|
+
|
|
141
|
+
### 11. Cryptographic Supply Chain Security & Provenance (SLSA, Syft SBOM, Cosign Keyless)
|
|
142
|
+
- **SLSA Level 3+ Build Provenance**:
|
|
143
|
+
- container images built inside isolated, ephemeral CI/CD environments generating cryptographic SLSA Level 3+ build provenance attestations (`https://slsa.dev/provenance/v0.2`)
|
|
144
|
+
- third-party GitHub Actions and build tools pinned to immutable 40-character commit SHAs, never mutable branch or tag names (`uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2`)
|
|
145
|
+
- **Software Bill of Materials (SBOM) Generation**:
|
|
146
|
+
- comprehensive Syft SPDX 2.3 (`spdx-json=sbom.spdx.json`) or CycloneDX 1.6 SBOM generated for every build artifact at compile time; SBOM attached as signed in-toto OCI attestation via Cosign (`cosign attest --type spdxjson --predicate sbom.spdx.json`)
|
|
147
|
+
- MCP servers and external agent skills audited for supply-chain provenance and included in SBOM with SCA scrutiny
|
|
148
|
+
- **Keyless Signing via Sigstore Cosign**:
|
|
149
|
+
- container images and SBOM attestations signed keylessly using Cosign via Fulcio OpenID Connect (OIDC) identity tokens and recorded in Rekor transparency logs (`https://rekor.sigstore.dev`)
|
|
150
|
+
- short-lived OIDC tokens ($\le 10$ min TTL) requested immediately prior to signing; unsigned or unverified container images treated as completely undeployable
|
|
151
|
+
|
|
152
|
+
### 12. Policy-as-Code & Fail-Closed Admission Enforcement (Kyverno Strict)
|
|
153
|
+
- **Fail-Closed Admission Controller Architecture**:
|
|
154
|
+
- Kyverno admission controllers deployed across failure zones with $\ge 3$ replicas, `PodDisruptionBudget` (`minAvailable: 2`), and `priorityClassName: system-cluster-critical`
|
|
155
|
+
- all production image validation policies enforce `failurePolicy: Fail` and `validationFailureAction: Enforce`; `failurePolicy: Ignore` strictly prohibited on security policies to prevent unverified containers from bypassing admission during controller restarts
|
|
156
|
+
- **Image Signature & Digest Verification**:
|
|
157
|
+
- Kyverno `ClusterPolicy` verifies Cosign keyless signatures against Rekor transparency logs before admitting pods; unsigned images blocked unconditionally
|
|
158
|
+
- automated tag-to-digest mutation (`mutateDigest: true`) enforced to convert mutable tags (`:latest`, `:hotfix`) into immutable cryptographic SHA256 digests
|
|
159
|
+
- **Minimal Distroless Attack Surface**:
|
|
160
|
+
- all containerized microservices utilize Wolfi or Chainguard distroless base images; package managers (`apk`, `apt`), interactive shells (`/bin/sh`, `/bin/bash`), and non-essential system utilities completely stripped from runtime images, reducing CVE attack surface to near-zero
|
|
161
|
+
|
|
162
|
+
### 13. Senior Fullstack / Team Lead Kubernetes Dev Debugging Standards
|
|
163
|
+
- **Kubernetes Dev Context & Namespace Isolation**:
|
|
164
|
+
- active kubectl context strictly verified and pinned to development clusters and namespaces (`kubectl config set-context --current --namespace=dev`); running commands against unverified or production contexts prohibited
|
|
165
|
+
- **Collision-Resistant Port-Forwarding Lifecycle**:
|
|
166
|
+
- multi-service port-forwarding scripts implement local port availability detection via `lsof -Pi :<port> -sTCP:LISTEN -t`, background PID file tracking (`/tmp/k8s-pf-*.pid`), and signal cleanup traps:
|
|
167
|
+
```bash
|
|
168
|
+
trap 'kill $(cat /tmp/k8s-pf-*.pid 2>/dev/null) 2>/dev/null' EXIT INT TERM
|
|
169
|
+
```
|
|
170
|
+
- zombie listener processes eliminated; automated netcat health probing (`nc -z 127.0.0.1 <port>`) verifies port readiness for PostgreSQL (5432), Redis (6379), Dapr HTTP (3500), Kratos HTTP (8000), gRPC (9000), and pprof (6060)
|
|
171
|
+
- **Structured JSON Logging with Trace Correlation**:
|
|
172
|
+
- application logs in dev pods emit structured JSON containing `ts`, `level`, `caller`, `msg`, `trace_id`, and `span_id` (Go Kratos `SlogLogger` adapter); streamable triage via `jq` verified:
|
|
173
|
+
```bash
|
|
174
|
+
kubectl logs -f -n dev -l app=payment-service --tail=200 | \
|
|
175
|
+
jq -R 'fromjson? | select(.level == "ERROR" or .level == "WARN") | {ts: .ts, level: .level, trace_id: .trace_id, caller: .caller, msg: .msg, err: .error}'
|
|
176
|
+
```
|
|
177
|
+
- **Non-Invasive Ephemeral Debug Containers**:
|
|
178
|
+
- distroless container diagnosis executed via `kubectl debug` attaching `nicolaka/netshoot:v0.13` with shared process namespaces (`--share-processes`), enabling live socket (`ss -tulpn`), packet (`tcpdump`), and process inspection without altering base images
|
|
179
|
+
- **Diagnostic In-Pod Profiling (`net/http/pprof`)**:
|
|
180
|
+
- Go microservices expose diagnostic HTTP endpoints on `:6060` with mutex profiling (`runtime.SetMutexProfileFraction(5)`); CPU (`/debug/pprof/profile?seconds=30`), heap (`/debug/pprof/heap`), goroutine (`/debug/pprof/goroutine`), and mutex contention profiles captured and analyzed via `go tool pprof` and SVG callgraph generation. Profile capture duration strictly capped at 30 seconds to prevent thread starvation.
|
|
181
|
+
|
|
182
|
+
### 14. AWS Cloud-Native Delivery & EKS Workloads Standards
|
|
183
|
+
- **EKS Pod Identity (v1.31+) Association**:
|
|
184
|
+
- all workload ServiceAccounts mapped via `aws eks create-pod-identity-association`; legacy IRSA OIDC trust policies eliminated; STS session tagging enabled for Attribute-Based Access Control (ABAC); zero static AWS keys in pods or secrets
|
|
185
|
+
- **Karpenter v1.0+ Declarative Compute Orchestration**:
|
|
186
|
+
- workload compute autoscaling declared via `karpenter.sh/v1` `NodePool` and `karpenter.k8s.aws/v1` `EC2NodeClass` manifests; consolidation policy set to `WhenEmptyOrUnderutilized` with 1m `consolidateAfter`; disruption budgets enforced (`budgets: [{nodes: "10%"}]`); instance families include Graviton4 (`c8g`, `m8g`) and specialized accelerators (`trn2`, `inf2`, `g6`); static EC2 Managed Node Groups eliminated
|
|
187
|
+
- **Sidecarless AWS VPC Lattice Service Mesh (Gateway API)**:
|
|
188
|
+
- cross-VPC and cross-account service communication declared via Kubernetes Gateway API (`HTTPRoute` bound to `GatewayClass: amazon-vpc-lattice`); weighted canary traffic splitting configured (e.g. 90/10); IAM authorization enforced at the network layer without running proxy sidecars
|
|
189
|
+
- **Amazon ECR Supply Chain Security & Signer Verification**:
|
|
190
|
+
- container images stored in KMS-encrypted ECR repositories with immutable tags (`imageTagMutability: IMMUTABLE`); Amazon Inspector v2 automated scanning with SPDX/CycloneDX SBOM export active; container image signatures verified via Kyverno fail-closed admission policies
|
|
191
|
+
- **AWS Distro for OpenTelemetry (ADOT) & Application Signals**:
|
|
192
|
+
- ADOT Collector deployed as DaemonSet with OpenTelemetry GenAI semantic conventions, X-Ray trace context propagation, and CloudWatch Application Signals SLO metrics tracking latency and error rate
|
|
193
|
+
- **Declarative Secret Synchronization via External Secrets Operator (ESO)**:
|
|
194
|
+
- `ExternalSecret` manifests retrieve database, cache, and third-party credentials from AWS Secrets Manager using the Pod Identity-backed `ClusterSecretStore`; automated secret rotation via EventBridge and Lambda active
|
|
195
|
+
|
|
@@ -0,0 +1,129 @@
|
|
|
1
|
+
## E-Commerce Engineer Review Checklist
|
|
2
|
+
|
|
3
|
+
This reference checklist provides operational architecture, transactional integrity, payment security, and fulfillment engineering criteria for e-commerce systems to meet SOTA 2026–2027 standards. It establishes non-negotiable verification gates across extreme-throughput checkout architectures (Alipay 610k TPS scale), server-side pricing authority, Redis Lua inventory fencing tokens, database idempotency ledgers, PCI-DSS v4.1.0 compliance, autonomous agentic commerce (AP2 / UCP mandates), double-entry financial ledgering, and anti-scalping traffic shields.
|
|
4
|
+
|
|
5
|
+
### 1. High-Throughput Checkout Architecture & Redis Lua Fencing (`TTL-RESERVATION LOCK`)
|
|
6
|
+
- **Atomic Inventory Fencing via Redis Lua**:
|
|
7
|
+
- inventory stock decrements executed atomically using evaluated Redis Lua scripts with monotonic fencing tokens, eliminating read-then-write race conditions and overselling under concurrent flash-sale bursts:
|
|
8
|
+
```lua
|
|
9
|
+
-- Atomic Available-to-Promise (ATP) Decrement with Monotonic Fencing Token
|
|
10
|
+
local stock = tonumber(redis.call('get', KEYS[1]) or 0)
|
|
11
|
+
local requested = tonumber(ARGV[1])
|
|
12
|
+
if stock >= requested then
|
|
13
|
+
redis.call('decrby', KEYS[1], requested)
|
|
14
|
+
local fencing_token = redis.call('incr', KEYS[2])
|
|
15
|
+
return {1, fencing_token}
|
|
16
|
+
end
|
|
17
|
+
return {0, 0}
|
|
18
|
+
```
|
|
19
|
+
- inventory reservations backed by a Time-To-Live (TTL) reservation state machine (e.g. 15-minute hold window); expired reservations returned to Available-to-Promise (ATP) stock automatically via scheduled reconciliation
|
|
20
|
+
- **Partitioned Stock Sharding & OceanBase 610k TPS Hotspot Protection**:
|
|
21
|
+
- high-velocity SKUs partitioned across virtual stock buckets (e.g. `SKU_1001_bucket_0..N`) to distribute write lock contention across database rows and Redis keys
|
|
22
|
+
- stock reservation operations guarantee bounded latency (P99 $\le 10\text{ms}$) under high-volume concurrency
|
|
23
|
+
- OceanBase / distributed relational databases configure row-level hotspot bypass and batch commit merging during flash-sale events
|
|
24
|
+
|
|
25
|
+
### 2. Server-Side Pricing Authority & Cart Tampering Defense (`SERVER-PRICING-AUTHORITY LOCK`)
|
|
26
|
+
- **Zero Client Price Trust & Fixed-Point Math**:
|
|
27
|
+
- all unit prices, tier discounts, coupon codes, shipping costs, and localized sales tax (VAT / GST) computed authoritatively server-side at the moment of charge creation:
|
|
28
|
+
```go
|
|
29
|
+
// POSITIVE: Server-Side Authoritative Pricing with Integer Cents
|
|
30
|
+
func CalculateOrderTotal(ctx context.Context, cart *Cart, promoCode string) (*OrderSummary, error) {
|
|
31
|
+
var subtotalCents int64 = 0
|
|
32
|
+
for _, item := range cart.Items {
|
|
33
|
+
unitPrice := catalogRepo.GetAuthoritativePrice(ctx, item.SKU) // Never trust cart.ItemPrice
|
|
34
|
+
subtotalCents += unitPrice * item.Quantity
|
|
35
|
+
}
|
|
36
|
+
discountCents := promoEngine.ApplyValidatedCoupon(ctx, promoCode, subtotalCents)
|
|
37
|
+
taxCents := taxService.ComputeStatutoryVAT(ctx, subtotalCents - discountCents)
|
|
38
|
+
return &OrderSummary{
|
|
39
|
+
SubtotalCents: subtotalCents,
|
|
40
|
+
DiscountCents: discountCents,
|
|
41
|
+
TaxCents: taxCents,
|
|
42
|
+
TotalCents: subtotalCents - discountCents + taxCents,
|
|
43
|
+
}, nil
|
|
44
|
+
}
|
|
45
|
+
```
|
|
46
|
+
- client-submitted price totals, discounts, or modified item amounts strictly ignored or rejected fail-closed
|
|
47
|
+
- **Coupon & Promotion State Machine**:
|
|
48
|
+
- promo codes validated against strict usage limit constraints (per-user limit, global budget ceiling, category exclusions, minimum spend) inside atomic database transactions
|
|
49
|
+
- expired, disabled, or non-stackable promotion combinations rejected fail-closed
|
|
50
|
+
|
|
51
|
+
### 3. Payment Gateway Integration & Idempotency Ledger (`IDEMPOTENCY-LEDGER LOCK`)
|
|
52
|
+
- **Deterministic Idempotency Keys**:
|
|
53
|
+
- every payment mutation, capture, authorization, and refund request requires a deterministic idempotency key (UUIDv7 or SHA-256 hash of order ID + attempt number)
|
|
54
|
+
- database unique constraint on `(idempotency_key)` guarantees zero duplicate charge executions on network retries or client double-clicks
|
|
55
|
+
- **Secure Webhook Ingestion & Signature Verification**:
|
|
56
|
+
- payment provider webhooks (Stripe, Adyen, MoMo, VNPay) must verify HMAC-SHA256 signatures before reading payload data
|
|
57
|
+
- webhook events recorded to an incoming event ledger table before processing; asynchronous workers handle event side effects to return HTTP 200 within $<2\text{s}$
|
|
58
|
+
|
|
59
|
+
### 4. PCI-DSS v4.1.0 Compliance & Cardholder Data Isolation (`PCI-DSS-401 LOCK` / `PAYMENT-LOCK`)
|
|
60
|
+
- **Zero Raw Cardholder Data on Backend (SAQ-A)**:
|
|
61
|
+
- backend systems strictly out of PCI scope (SAQ-A compliant); credit card numbers (PAN), CVV/CVC, and expiration dates tokenized directly in client browser via payment gateway SDK iframe / Elements
|
|
62
|
+
- logs, traces, APM spans, and database dumps audited to ensure 100% absence of raw card data
|
|
63
|
+
- **Subresource Integrity (SRI) & Script Tamper Detection (Req 6.4.3 / 11.6.1)**:
|
|
64
|
+
- all external JavaScript libraries loaded on checkout pages mandate cryptographic Subresource Integrity (`integrity="sha384-..."`) and strict Content Security Policy (CSP):
|
|
65
|
+
```http
|
|
66
|
+
Content-Security-Policy: default-src 'self'; script-src 'self' https://js.stripe.com 'sha384-...'; frame-src https://js.stripe.com; object-src 'none'
|
|
67
|
+
```
|
|
68
|
+
- automated script change monitoring alerts on unauthorized DOM modifications or unapproved script injections within payment flows
|
|
69
|
+
|
|
70
|
+
### 5. Autonomous Agent Commerce & Cryptographic User Mandates (`MANDATE-AUTHORIZATION LOCK` / `NHI-COMMERCE LOCK`)
|
|
71
|
+
- **Cryptographic User Mandate Verification (AP2 / Verifiable Credentials)**:
|
|
72
|
+
- autonomous AI purchasing agents must present a cryptographically signed User Mandate (e.g. W3C Verifiable Credential or signed AP2 token) authorizing transaction parameters:
|
|
73
|
+
```json
|
|
74
|
+
{
|
|
75
|
+
"mandate_id": "urn:ap2:mandate:7f8e4a88-8254-8e1f592e3894",
|
|
76
|
+
"type": ["VerifiableCredential", "AgentCommerceMandate"],
|
|
77
|
+
"issuer": "did:key:z6Mku...user",
|
|
78
|
+
"credentialSubject": {
|
|
79
|
+
"merchant_domain": "store.domain.internal",
|
|
80
|
+
"max_amount_cents": 50000,
|
|
81
|
+
"currency": "USD",
|
|
82
|
+
"valid_until": "2026-10-31T23:59:59Z"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
- mandate verified against: allowed merchant domain, explicit item category, per-transaction spending limit, and expiration timestamp
|
|
87
|
+
- **AI Agent Identity & Velocity Rate Limiting**:
|
|
88
|
+
- agent checkout sessions authenticated as distinct Non-Human Identities (NHI); rate limiting fences prevent algorithmic high-frequency order flooding
|
|
89
|
+
- transactions exceeding autonomous thresholds pause execution for Human-in-the-Loop (HITL) step-up approval
|
|
90
|
+
|
|
91
|
+
### 6. Double-Entry Accounting Ledger & Distributed Financial Sagas
|
|
92
|
+
- **Balanced Debit/Credit Ledger Invariant**:
|
|
93
|
+
- every monetary movement recorded as an immutable double-entry ledger entry satisfying the mathematical invariant:
|
|
94
|
+
$$\sum_{i=1}^N \text{Debits}_i \equiv \sum_{j=1}^M \text{Credits}_j$$
|
|
95
|
+
- monetary calculations strictly utilize integer cents or fixed-point decimal arithmetic (64-bit integer); IEEE 754 floating-point operations on currency are strictly prohibited
|
|
96
|
+
- **Compensating Sagas for Distributed Failures**:
|
|
97
|
+
- multi-stage checkout workflows (Auth $\rightarrow$ Inventory Deduct $\rightarrow$ Shipping Label Creation $\rightarrow$ Capture) orchestrated via distributed Sagas (Temporal or Dapr)
|
|
98
|
+
- failures at any step trigger automated compensating actions (e.g. authorization void, stock release) ensuring zero inconsistent state
|
|
99
|
+
|
|
100
|
+
### 7. Shopee Traffic Shield & Anti-Scalping Protection
|
|
101
|
+
- **Bot Mitigation & Virtual Waiting Rooms**:
|
|
102
|
+
- flash-sale traffic routed through edge waiting-room queues (Queue-it / Cloudflare Waiting Room) during traffic surges
|
|
103
|
+
- device fingerprinting, TLS JA4 inspection, and behavioral analysis identify and reject automated scalper bots before reaching cart APIs
|
|
104
|
+
- address normalization and fuzzy matching detect scalper rings attempting bulk checkout across coordinated dummy accounts
|
|
105
|
+
|
|
106
|
+
### 8. Vietnamese Statutory Accounting & AMIS Revenue Sync (`AMIS-REVENUE-SYNC-LOCK`)
|
|
107
|
+
- **Dual-Header Sales & Tax Record Synchronization**:
|
|
108
|
+
- checkout tax and revenue calculations in Vietnamese commerce operations must generate data compatible with Circular 200/133/99 and MISA AMIS 63-column dual-header sales records
|
|
109
|
+
- return merchandise authorizations (RMA) synchronized with AMIS 44-column return manifests
|
|
110
|
+
|
|
111
|
+
### 9. Operational Telemetry & Checkout SLOs
|
|
112
|
+
- **PromQL Operational Invariants**:
|
|
113
|
+
```promql
|
|
114
|
+
# Flash-sale checkout success rate (must be >= 99.0%)
|
|
115
|
+
sum(rate(checkout_success_total[5m])) / (sum(rate(checkout_success_total[5m])) + sum(rate(checkout_failed_total[5m]))) * 100 >= 99.0
|
|
116
|
+
|
|
117
|
+
# P99 Inventory reservation latency (must be < 10ms)
|
|
118
|
+
histogram_quantile(0.99, rate(inventory_reservation_duration_seconds_bucket[5m])) < 0.010
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
### 10. Gate Review & Contract Conformance Verification Table
|
|
122
|
+
| Verification Gate | Target Invariant | Required Tool / Command | Pass Criteria |
|
|
123
|
+
| :--- | :--- | :--- | :--- |
|
|
124
|
+
| **Lua Inventory Atomicity** | 0 oversell anomalies | `redis-benchmark -s redis.sock evalsha ...` | Monotonic fencing token returned |
|
|
125
|
+
| **Double-Entry Balance** | $\sum \text{Debits} = \sum \text{Credits}$ | Automated SQL ledger audit test | Balanced to the exact cent |
|
|
126
|
+
| **Idempotency Constraint** | 0 duplicate charges | `curl -X POST ... -H "Idempotency-Key: ..."` | Second call returns original result |
|
|
127
|
+
| **PCI SAQ-A Compliance** | 0 raw PAN in logs | `rg -E "[0-9]{13,16}" /var/log/app/` | 0 raw credit card matches |
|
|
128
|
+
| **AMIS Sync Alignment** | 63-col schema match | `python3 core/scripts/validate-contracts.py` | Valid revenue manifest schema |
|
|
129
|
+
| **AP2 Mandate Crypto** | ECDSA / Ed25519 valid | `verify-vc-mandate --input mandate.json` | Signature valid, unexpired |
|
|
@@ -0,0 +1,275 @@
|
|
|
1
|
+
# frontend-developer.md - Year-Tagged Responsibilities (extracted)
|
|
2
|
+
|
|
3
|
+
These sections were extracted from `## Core Responsibilities` in the role file to keep the main file under a manageable size while preserving the full content.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
### AI-Generated UI Governance (2025-2026)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
In 2026, AI tools (Cursor, Copilot, v0) generate significant UI volume. The frontend developer's role shifts from writer to **architect, validator, and quality lead**:
|
|
11
|
+
|
|
12
|
+
**Tiered validation by risk level** — apply validation depth proportional to risk:
|
|
13
|
+
| Risk Tier | Example | Validation Required |
|
|
14
|
+
| --------- | ------- | ------------------- |
|
|
15
|
+
| **High** | Auth/permission UI, payment flows, form validation with business rules, role-conditional rendering | Full manual review: behavior correctness + accessibility + state machine correctness + security boundary check |
|
|
16
|
+
| **Medium** | Complex state flows, shared hooks/stores, API integration components | Review logic paths, all UI states, shared component impact |
|
|
17
|
+
| **Low** | Static layouts, presentational components, boilerplate scaffolding | Visual review + automated lint/a11y scan |
|
|
18
|
+
|
|
19
|
+
**Mandatory validation checklist for AI-generated UI code:**
|
|
20
|
+
- **Behavior correctness**: all UI states handled (loading, empty, error, disabled, stale, success); transitions are correct; derived state is computed correctly
|
|
21
|
+
- **Accessibility**: keyboard navigation, ARIA roles, focus management, screen reader compatibility; do not accept AI output that fails basic a11y checks
|
|
22
|
+
- **State management**: no unintended shared state mutations; no race conditions in async flows; optimistic updates have rollback paths
|
|
23
|
+
- **Rendering strategy**: SSR vs CSR vs partial hydration is intentional, not accidental; AI defaults may introduce unnecessary client-side JS or break SSR hydration
|
|
24
|
+
- **Security boundary**: UI permission checks are supplementary, not the primary security boundary; AI-generated role checks must not replace server-side authorization
|
|
25
|
+
- **Bundle impact**: check if AI-generated code added unnecessary dependencies or duplicated functionality already in the design system
|
|
26
|
+
|
|
27
|
+
**AI as collaborator, human as architect** — human engineer retains ownership of:
|
|
28
|
+
- rendering strategy selection: SSR / CSR / SSG / ISR / partial hydration / islands architecture
|
|
29
|
+
- state management boundaries: what is global state, what is local, what lives in the URL
|
|
30
|
+
- design system adherence: AI may not know your token system, component API, or naming conventions — verify
|
|
31
|
+
- performance budget decisions: AI-generated code may introduce bundle bloat that exceeds CI budget gates
|
|
32
|
+
|
|
33
|
+
**Visual regression testing** — for AI-generated UI changes:
|
|
34
|
+
- run visual diff against baseline screenshots for affected routes/components before merge
|
|
35
|
+
- use CI-integrated tools: **Playwright** (`toHaveScreenshot`), **Chromatic** (Storybook-based), or **Percy** for branch-diff visual comparison; baseline screenshots must be committed to the test repository
|
|
36
|
+
- flag unexpected layout shifts (CLS contributors) or rendering changes as defects, not style preferences
|
|
37
|
+
- treat visual regressions in auth flows, payment UI, or permission-conditional rendering as P1 blocking defects
|
|
38
|
+
|
|
39
|
+
**Agent Context Sharing (WebMCP):**
|
|
40
|
+
- implement Model Context Protocol (WebMCP) in the browser to share frontend state, DOM context, and UI events securely with autonomous AI Agents, allowing them to debug or interact with the client application natively
|
|
41
|
+
|
|
42
|
+
|
|
43
|
+
|
|
44
|
+
---
|
|
45
|
+
|
|
46
|
+
### AI Streaming UI & GenUI (2026)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
In 2026, AI-powered UIs stream token responses and structured UI components in real time. Frontend developers own the streaming consumption layer:
|
|
50
|
+
|
|
51
|
+
**SSE-based AI token streaming:**
|
|
52
|
+
- use **Server-Sent Events (SSE)** as the primary protocol for streaming AI token responses — SSE is native to HTTP, works with CDNs and load balancers, and supports auto-reconnect; avoid WebSockets for unidirectional AI response streaming
|
|
53
|
+
- wire an `AbortController` to every SSE/streaming fetch request; cancel the stream in `useEffect` cleanup or on navigation away — missing `AbortController` creates stuck loading states and wasted token spend
|
|
54
|
+
- expose a visible stop/cancel button wired to `AbortController.abort()` for any streaming request that the user may want to interrupt mid-generation
|
|
55
|
+
|
|
56
|
+
**INP-safe streaming renders:**
|
|
57
|
+
- **AI token streaming is the #1 new INP risk in 2026**: token-by-token DOM updates block the main thread and cause INP failures; chunk streaming renders with `scheduler.yield()` or `requestIdleCallback` to release the main thread between batches
|
|
58
|
+
- wrap non-urgent streaming updates in `React.startTransition` to deprioritize them behind user interactions
|
|
59
|
+
- pre-size AI response containers with CSS min-height or aspect-ratio to prevent streaming text causing Cumulative Layout Shift (CLS); never allow containers to grow unconstrained as tokens arrive
|
|
60
|
+
|
|
61
|
+
**GenUI (Generative UI via RSC streaming):**
|
|
62
|
+
- when using `streamUI` or equivalent (Vercel AI SDK), frontend devs must understand the RSC streaming lifecycle: the server streams hydrated React components (not just text tokens), requiring correct Suspense boundary placement and streaming-compatible layout
|
|
63
|
+
- do not allow agents to stream arbitrary JSX or HTML — use the Component Registry pattern (see below) to ensure only pre-approved, type-safe components are rendered
|
|
64
|
+
|
|
65
|
+
**AG-UI event rendering:**
|
|
66
|
+
- for agentic pipelines using the AG-UI protocol, implement discrete UI states for each event type: `THOUGHT` (show thinking indicator), `TOOL_CALL` (show tool execution progress), `RESULT` (render structured output), `ERROR` (show error state with retry option)
|
|
67
|
+
- do not render AG-UI events as raw text; each event type maps to a specific UI component with defined visual treatment
|
|
68
|
+
|
|
69
|
+
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
### AI Disclosure & Agent-Safe Components (2026)
|
|
74
|
+
|
|
75
|
+
|
|
76
|
+
EU AI Act Article 50 is live from **2 August 2026**. Frontend developers are the implementation layer for legal disclosure compliance:
|
|
77
|
+
|
|
78
|
+
**Article 50 disclosure UI (legal requirement):**
|
|
79
|
+
- every AI-powered feature that interacts with natural persons must display a clear, accessible, non-dismissable disclosure **before or during the first meaningful interaction** — not after the first AI message
|
|
80
|
+
- the disclosure must use plain, unambiguous language: "You are interacting with an AI system" — must not be buried in terms, tooltips, or sub-menus
|
|
81
|
+
- build a reusable `<AIDisclosureBanner>` component with the EU-approved AI icon for AI-generated content labels; use this component consistently across all AI-powered features — do not recreate disclosure UI per feature
|
|
82
|
+
- for systems live before 2 August 2026: machine-readable marking (C2PA content credentials or equivalent) for AI-generated images, audio, and video must be implemented by **2 December 2026**; include this as a scheduled engineering item in scope planning
|
|
83
|
+
|
|
84
|
+
**AI-generated content marking:**
|
|
85
|
+
- embed `data-ai-generated="true"` attributes on all AI-rendered text containers for machine-readable marking
|
|
86
|
+
- for AI-generated media (images, audio, video): integrate C2PA (Coalition for Content Provenance and Authenticity) content credentials or equivalent technical watermark metadata
|
|
87
|
+
- the EU AI icon must accompany any labelled AI-generated content display in EU-market products
|
|
88
|
+
|
|
89
|
+
**Agent-safe Component Registry pattern:**
|
|
90
|
+
- never allow AI agents to generate arbitrary JSX, HTML strings, or raw component trees for direct rendering; this is a critical security and quality boundary
|
|
91
|
+
- implement a typed Component Registry: agent sends structured JSON (`{ "type": "invoice", "props": {...} }`), the registry maps the type to a pre-approved, security-reviewed React component that renders the trusted UI
|
|
92
|
+
- all components in the registry must pass full security and accessibility review before registration; the registry is the trust boundary, not the agent
|
|
93
|
+
|
|
94
|
+
**HITL approval gates:**
|
|
95
|
+
- all agent-triggered mutations (payments, data deletion, form submission, external communications) must require an explicit `<AgentActionApprovalModal>` before execution — never allow agents to trigger irreversible actions without user confirmation
|
|
96
|
+
- wire HITL approval modals to `AbortController`; if the user cancels, abort the agent action and return to safe state
|
|
97
|
+
- the HITL gate must be rendered as a visible, keyboard-accessible modal — not a background confirmation; screen readers must announce the approval request
|
|
98
|
+
|
|
99
|
+
**Calling AI APIs — always via backend proxy:**
|
|
100
|
+
- never call AI provider APIs (OpenAI, Anthropic, Gemini) directly from frontend code; API keys must never be in browser-accessible code
|
|
101
|
+
- all LLM calls must route through a backend proxy layer that owns: API key management, rate limiting, cost attribution, token logging, and response caching
|
|
102
|
+
- the frontend consumes the proxy API via SSE or standard REST — it has no knowledge of which AI provider is used or what system prompt is sent
|
|
103
|
+
|
|
104
|
+
|
|
105
|
+
|
|
106
|
+
---
|
|
107
|
+
|
|
108
|
+
### WCAG 2.2 AA Legal Compliance (2026)
|
|
109
|
+
|
|
110
|
+
|
|
111
|
+
WCAG 2.2 AA is the mandatory legal baseline under EU EN 301 549, the UK Equality Act 2010, and ADA/Section 508. Frontend developers must implement all 9 new success criteria introduced in WCAG 2.2:
|
|
112
|
+
|
|
113
|
+
**WCAG 2.2 AA — new criteria (legally required):**
|
|
114
|
+
| Criterion | Level | Frontend Implementation |
|
|
115
|
+
|-----------|-------|------------------------|
|
|
116
|
+
| **2.4.11 Focus Not Obscured (Minimum)** | AA | Sticky headers, footers, overlays, and chat widgets must not fully cover a focused element; use scroll-margin-top / scroll-padding CSS properties on focusable elements beneath fixed bars |
|
|
117
|
+
| **2.5.7 Dragging Movements** | AA | All drag-and-drop interactions must have a single-pointer (click/tap) alternative — buttons to move, reorder, or resize items |
|
|
118
|
+
| **2.5.8 Target Size (Minimum)** | AA | Interactive targets must be ≥ 24×24 CSS pixels, or have sufficient spacing; critical for AI chat input areas, send buttons, and action chips |
|
|
119
|
+
| **3.2.6 Consistent Help** | A | Help mechanisms (support chat, FAQ links, contact) must appear in the same relative location across all pages in the site |
|
|
120
|
+
| **3.3.7 Redundant Entry** | A | Auto-populate previously entered data in multi-step flows; do not force users to re-enter information already provided in the same session |
|
|
121
|
+
| **3.3.8 Accessible Authentication (Minimum)** | AA | Authentication must not rely on cognitive function tests (puzzles, memorization, image recognition); directly impacts CAPTCHA choice — Turnstile (Cloudflare) or audio CAPTCHA is compliant; standard image CAPTCHAs are not |
|
|
122
|
+
|
|
123
|
+
**WCAG 2.2 for AI-powered UIs specifically:**
|
|
124
|
+
- **`aria-live="polite"` on streaming containers** is mandatory: screen readers cannot announce streaming AI tokens without an aria-live region; add `role="log"` + `aria-live="polite"` to all AI response containers
|
|
125
|
+
- **focus management after agent actions**: when an agent modifies the DOM, move focus to a meaningful element (e.g., the newly rendered result or a status notification); do not leave focus on a trigger element that no longer reflects current state
|
|
126
|
+
- **AI-generated content must be accessible**: validate any AI-generated HTML markup with axe-core before DOM insertion; AI tools frequently generate inaccessible markup (missing alt attributes, missing labels, incorrect ARIA roles)
|
|
127
|
+
- **WCAG 3.0** is in working draft — not yet required, but monitor for the new scoring model; design system tokens and component patterns adopted now will ease the transition
|
|
128
|
+
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
---
|
|
132
|
+
|
|
133
|
+
### Performance-as-a-Product (2025-2026)
|
|
134
|
+
|
|
135
|
+
|
|
136
|
+
Performance is a direct revenue driver. A 100ms improvement in response time can increase conversion by 1%; a poor INP score degrades perceived quality for all users. Enforce this at the engineering level:
|
|
137
|
+
|
|
138
|
+
**Core Web Vitals (CWV) — the 2026 standards:**
|
|
139
|
+
| Metric | What it measures | Target |
|
|
140
|
+
| ------ | ---------------- | ------ |
|
|
141
|
+
| **INP** (Interaction to Next Paint) | Overall session responsiveness (replaced FID in 2024) | <200ms |
|
|
142
|
+
| **LCP** (Largest Contentful Paint) | Perceived load speed | <2.5s |
|
|
143
|
+
| **CLS** (Cumulative Layout Shift) | Visual stability | <0.1 |
|
|
144
|
+
|
|
145
|
+
- **INP is the definitive responsiveness metric** in 2026: it measures every interaction throughout the session, not just the first (FID). A page that loads fast but stutters on interactions will still fail CWV.
|
|
146
|
+
- prioritize **field data (CrUX)** over lab data (Lighthouse scores): a 100/100 Lighthouse score on a fast dev machine does not represent real users on slow devices or mobile networks
|
|
147
|
+
|
|
148
|
+
**Performance budgets in CI/CD:**
|
|
149
|
+
- define and enforce JS bundle size budgets per route; fail CI if a change causes a bundle to exceed the budget
|
|
150
|
+
- define CWV budgets per page type and integrate CWV regression detection in CI (Lighthouse CI or equivalent)
|
|
151
|
+
- treat a CWV budget breach as a blocking defect, not a polish item
|
|
152
|
+
|
|
153
|
+
**Rendering strategy decision framework** — choose intentionally for each route:
|
|
154
|
+
| Strategy | Use when | Performance profile |
|
|
155
|
+
| -------- | -------- | ------------------- |
|
|
156
|
+
| **SSG** (Static Site Generation) | Content rarely changes, no user personalization | Fastest: CDN-cached HTML |
|
|
157
|
+
| **SSR** (Server-Side Rendering) | Personalized or frequently updated content | Fast TTFB, full HTML for SEO |
|
|
158
|
+
| **ISR** (Incremental Static Regeneration) | Content changes on a schedule | CDN cache + background revalidation |
|
|
159
|
+
| **CSR** (Client-Side Rendering) | Highly interactive, auth-gated dashboards | Worst for initial load; acceptable for app-shell after hydration |
|
|
160
|
+
| **Partial hydration / Islands** | Content-heavy pages with isolated interactive islands | Minimal JS: only interactive components hydrate |
|
|
161
|
+
|
|
162
|
+
**Optimization tactics for INP:**
|
|
163
|
+
- **break up long tasks**: any JS task >50ms on the main thread delays interaction response; use `scheduler.yield()` or task chunking
|
|
164
|
+
- **defer non-essential third-party scripts**: analytics, chat widgets, and ad scripts must not block interaction readiness
|
|
165
|
+
- **prioritize LCP elements**: use `fetchpriority="high"` on above-the-fold images and critical resources
|
|
166
|
+
- **adaptive hydration**: prioritize hydrating components based on user viewport position and device capability, not page order
|
|
167
|
+
|
|
168
|
+
|
|
169
|
+
|
|
170
|
+
---
|
|
171
|
+
|
|
172
|
+
### Accessibility-as-CI-Gate (2025-2026)
|
|
173
|
+
|
|
174
|
+
|
|
175
|
+
Accessibility review as a manual, pre-merge concern is insufficient at 2026 delivery pace. The production standard is **automated a11y enforcement baked into CI as a hard quality gate**, blocking merge on regression rather than relying on manual checklists:
|
|
176
|
+
|
|
177
|
+
**axe-core CI enforcement (hard gate):**
|
|
178
|
+
- integrate `@axe-core/playwright` into the CI test suite; run a11y scans on every PR against all affected routes and component states
|
|
179
|
+
- configure CI to **fail the build** on any new axe-core violation (do not allow existing violations to suppress new ones via a blanket ignore list; use targeted `rules: { 'rule-id': { enabled: false } }` for known exceptions with documented rationale)
|
|
180
|
+
- scan all user-facing states: not only the happy path render; include empty states, error states, and permission-limited states in the scan scope
|
|
181
|
+
- treat axe-core scan failures as P1 blocking defects, not style preferences; inaccessible controls are a legal liability under WCAG 2.2 AA (required by EU EN 301 549, ADA, and Section 508)
|
|
182
|
+
|
|
183
|
+
**Lighthouse CI continuous a11y tracking:**
|
|
184
|
+
- configure Lighthouse CI to track the Accessibility score alongside CWV metrics on every PR; publish score trends in the CI report
|
|
185
|
+
- set a minimum Lighthouse Accessibility score budget (e.g., 95+); score drops below budget trigger the same review process as CWV budget breaches
|
|
186
|
+
- use Lighthouse CI historical comparison to catch gradual score erosion across many small PRs that individually pass the axe-core hard gate
|
|
187
|
+
|
|
188
|
+
**A11Y enforcement in AI-generated UI:**
|
|
189
|
+
- AI tools (Cursor, Copilot, v0) frequently omit ARIA roles, focus management, and keyboard navigation; the axe-core CI gate catches these automatically
|
|
190
|
+
- for High-tier AI-generated UI (auth, payment, permission-conditional rendering): manual a11y review remains mandatory in addition to the automated gate
|
|
191
|
+
- the axe-core CI gate does not replace manual testing with VoiceOver/NVDA/JAWS for complex interactive components; it catches the systematic, automatable failures
|
|
192
|
+
|
|
193
|
+
|
|
194
|
+
|
|
195
|
+
---
|
|
196
|
+
|
|
197
|
+
### Edge-Side Rendering — React Server Components at CDN Edge (2025-2026)
|
|
198
|
+
|
|
199
|
+
|
|
200
|
+
The rendering strategy table covers SSR/CSR/SSG/ISR/Islands. A new architectural option in 2026 is **React Server Components (RSC) executing directly on the CDN edge** (Cloudflare Workers + Vite Cloudflare plugin), which is architecturally distinct from origin-server SSR and changes the performance profile and constraint set:
|
|
201
|
+
|
|
202
|
+
**Edge RSC vs. origin SSR — key distinctions:**
|
|
203
|
+
| Dimension | Origin SSR | Edge RSC (Cloudflare Workers) |
|
|
204
|
+
|-----------|-----------|-------------------------------|
|
|
205
|
+
| **TTFB** | 50–200ms typical (origin round-trip) | Near-zero (executed at nearest PoP) |
|
|
206
|
+
| **Runtime** | Node.js (full API) | V8 isolate (no Node.js APIs, no filesystem, no native modules) |
|
|
207
|
+
| **Streaming** | Node.js `ReadableStream` | `TransformStream` (Web Streams API only) |
|
|
208
|
+
| **State** | In-memory / Redis | Durable Objects (stateful coordination at edge) |
|
|
209
|
+
| **Cold starts** | Container warm-up (100ms–1s) | Isolate cold start (<5ms) |
|
|
210
|
+
| **Cost** | Per-second compute | Per-request microsecond billing |
|
|
211
|
+
|
|
212
|
+
**Edge-compatibility constraints — must validate before deploying RSC to edge:**
|
|
213
|
+
- **No Node.js APIs**: "fs", "path", "crypto" (Node version), "child_process", "Buffer" (non-Web), and any npm package that wraps them will fail at the edge; use Web APIs equivalents (`crypto.subtle`, `TextEncoder`, `URL`)
|
|
214
|
+
- **No native Node modules** (`.node` binaries): any npm package with native bindings cannot run in a V8 isolate; audit all RSC dependencies with `wrangler types` or the CF compatibility checker
|
|
215
|
+
- **Streaming is TransformStream-based**: RSC streaming uses Web Streams; libraries that pipe via Node.js "stream" require adaptation
|
|
216
|
+
- **Durable Objects for stateful edge**: if RSC needs per-user session state at the edge, use Durable Objects (WebSocket hibernation for long-lived connections); do not attempt to hold state in V8 isolate memory across requests
|
|
217
|
+
- **Bundle size limit**: Cloudflare Workers have a 10MB (compressed) script limit; monitor RSC bundle size; code splitting is required for large component trees
|
|
218
|
+
|
|
219
|
+
**When to choose Edge RSC over origin SSR:**
|
|
220
|
+
- choose Edge RSC when: TTFB is the primary bottleneck, the route has no Node.js-specific dependencies, personalization data is available at the edge (via KV, D1, or Durable Objects), and the component tree is within bundle limits
|
|
221
|
+
- choose origin SSR when: the route requires Node.js APIs, uses native npm modules, or needs large database queries that benefit from origin proximity
|
|
222
|
+
- **EDGE-RENDERING-COMPAT LOCK** applies: the decision to deploy RSC to the edge is an architectural choice that must be validated, not an automatic optimization
|
|
223
|
+
|
|
224
|
+
|
|
225
|
+
|
|
226
|
+
---
|
|
227
|
+
|
|
228
|
+
### PWA-Agent Bridge — Service Workers as Agentic Control-Plane (2025-2026)
|
|
229
|
+
|
|
230
|
+
|
|
231
|
+
In 2026, Service Workers are evolving beyond caching and offline support into **agentic orchestration infrastructure**: managing background AI task delegation, polling agent status, and bridging AI task completion back to the user interface:
|
|
232
|
+
|
|
233
|
+
**Service Worker as agentic control-plane:**
|
|
234
|
+
- use Service Workers to orchestrate background AI task delegation: the SW intercepts fetch requests to AI endpoints, queues tasks when offline, and retries with exponential backoff using `Periodic Background Sync`
|
|
235
|
+
- `Background Sync API`: when the device regains connectivity, the SW automatically retries queued AI tasks without requiring the user to re-submit; critical for mobile users on unreliable connections
|
|
236
|
+
- `Periodic Background Sync API`: for agent check-in patterns where the app periodically polls for completed agent tasks, updates, or model refreshes without requiring the user to open the app
|
|
237
|
+
|
|
238
|
+
**Web Push API as HITL callback bridge:**
|
|
239
|
+
- for Human-in-the-Loop AI workflows (agent tasks that require user approval or input), use the `Push API` to deliver HITL notifications: the backend sends a push event when the agent reaches a decision point requiring user input
|
|
240
|
+
- the Service Worker receives the push event and shows a notification (even when the app is closed); the user taps to open the app and complete the HITL step
|
|
241
|
+
- this enables truly async agentic workflows: the user initiates a task, the agent works in the background, and the push notification bridges the HITL callback
|
|
242
|
+
|
|
243
|
+
**Service Worker scope and security constraints:**
|
|
244
|
+
- Service Workers must not execute LLM inference directly; inference must be delegated to cloud AI agents or native app layers; the SW is a control-plane, not a compute engine
|
|
245
|
+
- validate message origin for all `postMessage` communication between SW and the app; do not process messages from untrusted origins
|
|
246
|
+
- Service Worker registration scope limits which routes the SW controls; scope must be declared explicitly and reviewed for overly broad coverage
|
|
247
|
+
|
|
248
|
+
|
|
249
|
+
|
|
250
|
+
---
|
|
251
|
+
|
|
252
|
+
### Browser-Native Module Federation (2025-2026)
|
|
253
|
+
|
|
254
|
+
|
|
255
|
+
For micro-frontend architectures or large frontend applications with independent team delivery, 2026 introduces a production-viable alternative to Webpack Module Federation: **Import Maps + ESM (Browser-Native Federation)**:
|
|
256
|
+
|
|
257
|
+
**Import Maps (<script type="importmap">):**
|
|
258
|
+
- Import Maps are a W3C standard (~94.5% browser coverage in 2026, with es-module-shims for compatibility fallback); they allow remapping bare module specifiers to URLs at the browser level without a bundler
|
|
259
|
+
- use Import Maps to share singleton dependencies (React, a design system library) across independently deployed micro-frontends without bundler coordination; each micro-frontend declares its own modules, and the Import Map enforces shared singleton versions
|
|
260
|
+
- Import Maps are a static JSON declaration served with the HTML shell; updates to the map require an HTML shell deployment, not a library rebuild
|
|
261
|
+
|
|
262
|
+
**Native Federation decision framework — when to use which approach:**
|
|
263
|
+
| Approach | Use when |
|
|
264
|
+
|----------|----------|
|
|
265
|
+
| **Import Maps + ESM** | Small to medium micro-frontend teams; bundler-agnostic requirement; singleton enforcement is the primary concern; no complex shared state across micro-frontends |
|
|
266
|
+
| **Module Federation 2.0** (Webpack/Rspack) | Large teams with complex dynamic loading requirements; runtime feature flags for shared modules; need for runtime version negotiation between independently deployed apps |
|
|
267
|
+
| **Single bundled app** | Team size <5 FE engineers; feature velocity over deployment independence; complexity cost of federation exceeds the benefit |
|
|
268
|
+
|
|
269
|
+
**Singleton management with Import Maps:**
|
|
270
|
+
- the primary risk of module federation (any approach) is **duplicate framework instances** (two React copies in the same page); this causes silent failures (hooks state isolation, context disappearing, event system splits)
|
|
271
|
+
- in Import Maps: pin React, ReactDOM, and all shared singletons in the Import Map with exact version URLs; micro-frontends must not bundle their own copy of pinned singletons
|
|
272
|
+
- verify singleton enforcement at runtime with `window.__REACT_DEVTOOLS_GLOBAL_HOOK__` or equivalent; if two React instances are present, the Import Map has a gap
|
|
273
|
+
|
|
274
|
+
|
|
275
|
+
---
|