@vesviet/agent-skills 5.8.0 → 5.11.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 +35 -22
- package/README.md +7 -18
- package/VERSION +1 -1
- package/adapters/antigravity/ANTIGRAVITY.md +40 -142
- package/adapters/antigravity/INDEX_TIER1.json +174 -146
- package/adapters/antigravity/a2a-config.template.yaml +1 -1
- package/adapters/antigravity/antigravity-tools.md +25 -0
- package/adapters/antigravity/role-skill-index.json +175 -58
- package/adapters/claude/CLAUDE_ADAPTER.md +3 -7
- package/adapters/claude/settings.template.json +18 -3
- package/adapters/cursor/README.md +1 -5
- package/adapters/cursor/hooks.template.json +4 -2
- package/core/contracts/README.md +0 -20
- package/core/contracts/schemas/compact-working-state.json +42 -1
- package/core/contracts/schemas/ui-component-spec.json +28 -2
- package/core/policies/README.md +0 -20
- package/core/policies/action-boundaries.yaml +10 -1
- package/core/policies/execution-sandbox.md +0 -12
- package/core/policies/mcp-tool-map.yaml +28 -0
- package/core/roles/3d-graphics-engineer.md +144 -208
- package/core/roles/README.md +1 -23
- package/core/roles/agent-coordinator.md +28 -147
- package/core/roles/agent-discovery-engineer.md +46 -39
- package/core/roles/ai-systems-engineer.md +2 -0
- package/core/roles/backend-developer.md +22 -117
- package/core/roles/cloudflare-engineer.md +1 -1
- package/core/roles/data-engineer.md +3 -1
- package/core/roles/devops-engineer.md +4 -3
- package/core/roles/ecommerce-engineer.md +18 -6
- package/core/roles/frontend-developer.md +146 -317
- package/core/roles/game-developer.md +2 -1
- package/core/roles/mobile-engineer.md +18 -204
- package/core/roles/product-manager.md +3 -3
- package/core/roles/project-manager.md +5 -5
- package/core/roles/references/3d-graphics-engineer-review-checklist.md +109 -109
- package/core/roles/references/agent-coordinator-responsibilities.md +120 -0
- package/core/roles/references/agent-coordinator-review-checklist.md +22 -4
- package/core/roles/references/agent-discovery-engineer-review-checklist.md +29 -20
- package/core/roles/references/backend-developer-responsibilities.md +47 -0
- package/core/roles/references/backend-developer-review-checklist.md +15 -0
- package/core/roles/references/business-analyst-responsibilities.md +2 -2
- package/core/roles/references/frontend-developer-responsibilities.md +14 -6
- package/core/roles/references/frontend-developer-review-checklist.md +13 -6
- package/core/roles/references/mobile-engineer-responsibilities.md +137 -0
- package/core/roles/references/mobile-engineer-review-checklist.md +63 -0
- package/core/roles/references/reviewer-review-checklist.md +54 -0
- package/core/roles/references/sdet-review-checklist.md +53 -0
- package/core/roles/references/solution-architect-responsibilities.md +134 -0
- package/core/roles/references/sre-review-checklist.md +81 -0
- package/core/roles/references/system-engineer-responsibilities.md +124 -0
- package/core/roles/references/technical-architect-responsibilities.md +192 -0
- package/core/roles/references/technical-architect-review-checklist.md +58 -0
- package/core/roles/references/technical-lead-review-checklist.md +65 -0
- package/core/roles/references/ui-ux-designer-anti-slop-standards.md +61 -35
- package/core/roles/references/ui-ux-designer-responsibilities.md +79 -226
- package/core/roles/references/ui-ux-designer-review-checklist.md +102 -116
- package/core/roles/references/vietnam-accounting-specialist-review-checklist.md +6 -6
- package/core/roles/researcher.md +3 -3
- package/core/roles/reviewer.md +2 -2
- package/core/roles/role-standard.md +79 -205
- package/core/roles/sdet.md +5 -6
- package/core/roles/security-engineer.md +4 -3
- package/core/roles/solution-architect.md +9 -130
- package/core/roles/sre.md +1 -0
- package/core/roles/system-engineer.md +15 -155
- package/core/roles/task-planner.md +1 -1
- package/core/roles/technical-architect.md +15 -244
- package/core/roles/technical-lead.md +1 -0
- package/core/roles/technical-writer.md +3 -3
- package/core/roles/ui-ux-designer.md +158 -303
- package/core/roles/vietnam-accounting-specialist.md +20 -20
- package/core/rules/README.md +0 -22
- package/core/rules/code.md +11 -6
- package/core/skills/README.md +12 -25
- package/core/skills/agent/agent-delegation/SKILL.md +11 -0
- package/core/skills/agent/agent-graph-orchestration/SKILL.md +5 -0
- package/core/skills/agent/agent-memory-compaction/SKILL.md +79 -82
- package/core/skills/agent/agent-memory-compaction/references/anchored-schema-and-compaction-algorithms.md +74 -115
- package/core/skills/agent/agent-model-routing/SKILL.md +2 -0
- package/core/skills/agent/agent-observability/SKILL.md +12 -6
- package/core/skills/agent/agent-observability/references/session-forensics-7-dimensions.md +41 -0
- package/core/skills/agent/agent-panel-meeting/SKILL.md +3 -3
- package/core/skills/agent/agent-quality-gate/SKILL.md +9 -0
- package/core/skills/agent/configure-agent-commerce/SKILL.md +2 -0
- package/core/skills/agent/configure-agent-commerce/examples/ucp-commerce-manifest-and-endpoints.json +55 -0
- package/core/skills/agent/configure-agent-commerce/references/acp-ucp-agent-commerce-manifest-specs.md +66 -0
- package/core/skills/agent/configure-agent-headers/SKILL.md +3 -0
- package/core/skills/agent/configure-agent-skills/SKILL.md +4 -4
- package/core/skills/agent/configure-oauth-metadata/SKILL.md +10 -7
- package/core/skills/agent/manage-agent-identity/SKILL.md +2 -0
- package/core/skills/agent/manage-agent-identity/examples/agent-identity-spire-workload.yaml +72 -0
- package/core/skills/agent/manage-agent-identity/references/nhi-lifecycle-and-token-rotation.md +45 -0
- package/core/skills/ai/deploy-vllm-inference/SKILL.md +2 -0
- package/core/skills/ai/deploy-vllm-inference/examples/vllm-production-serve-config.yaml +22 -0
- package/core/skills/ai/deploy-vllm-inference/references/vllm-v1-paged-attention-and-kv-tiering.md +20 -0
- package/core/skills/ai/openrouter-task/SKILL.md +5 -5
- package/core/skills/ai-agent/context-optimization/SKILL.md +2 -0
- package/core/skills/ai-agent/context-optimization/examples/context-pruner-and-reorderer.py +85 -0
- package/core/skills/ai-agent/context-optimization/references/token-budgeting-and-attention-allocation.md +47 -0
- package/core/skills/ai-agent/memory-hygiene/SKILL.md +13 -0
- package/core/skills/ai-agent/memory-hygiene/examples/memory-audit-and-compaction-routine.py +90 -0
- package/core/skills/ai-agent/memory-hygiene/references/agent-memory-vault-spec.md +137 -0
- package/core/skills/ai-agent/memory-hygiene/references/owasp-asi06-and-memory-poisoning-defense.md +38 -0
- package/core/skills/backend/add-api-endpoint/SKILL.md +9 -0
- package/core/skills/backend/add-api-endpoint/examples/express-zod-rfc9457-endpoint.md +329 -0
- package/core/skills/backend/add-api-endpoint/examples/kratos-go-clean-architecture-endpoint.md +405 -0
- package/core/skills/backend/add-api-endpoint/references/idempotency-and-rate-limiting.md +116 -0
- package/core/skills/backend/add-event-handler/SKILL.md +12 -1
- package/core/skills/backend/add-event-handler/examples/go-outbox-skip-locked-relay.go +97 -0
- package/core/skills/backend/add-event-handler/references/transactional-outbox-and-cloudevents.md +42 -0
- package/core/skills/backend/add-service-client/SKILL.md +2 -0
- package/core/skills/backend/add-service-client/examples/ts-circuit-breaker-full-jitter-client.ts +71 -0
- package/core/skills/backend/add-service-client/references/resilient-client-circuit-breaker-specs.md +25 -0
- package/core/skills/backend/build-mcp-server/SKILL.md +2 -0
- package/core/skills/backend/build-mcp-server/examples/ts-stateless-mcp-server-zod.ts +52 -0
- package/core/skills/backend/build-mcp-server/references/mcp-2026-stateless-contract-specs.md +21 -0
- package/core/skills/backend/design-caching-and-locking/SKILL.md +83 -0
- package/core/skills/backend/design-caching-and-locking/examples/redis-lua-atomic-reservation-fencing.lua +30 -0
- package/core/skills/backend/design-caching-and-locking/references/redis-lua-fencing-and-stampede-specs.md +25 -0
- package/core/skills/backend/design-caching-and-locking/scripts/verify_lua_atomicity.py +68 -0
- package/core/skills/backend/implement-auth/SKILL.md +9 -0
- package/core/skills/backend/implement-structured-outputs/SKILL.md +2 -0
- package/core/skills/backend/implement-structured-outputs/examples/python-pydantic-structured-output.py +65 -0
- package/core/skills/backend/implement-structured-outputs/references/constrained-decoding-and-double-validation.md +18 -0
- package/core/skills/backend/optimize-postgres/SKILL.md +9 -0
- package/core/skills/backend/scaffold-new-service/SKILL.md +2 -1
- package/core/skills/backend/scaffold-new-service/references/deep-modules-and-seams.md +43 -0
- package/core/skills/business/elicit-requirements/SKILL.md +2 -0
- package/core/skills/business/trace-requirements-impact/SKILL.md +1 -0
- package/core/skills/business/write-use-cases/SKILL.md +1 -0
- package/core/skills/commerce/handle-checkout-flow/SKILL.md +18 -66
- package/core/skills/commerce/handle-checkout-flow/examples/production-checkout-orchestrator.ts +185 -0
- package/core/skills/commerce/handle-checkout-flow/references/pci-dss-v4-and-agentic-checkout-specs.md +72 -0
- package/core/skills/commerce/integrate-payment-gateway/SKILL.md +22 -58
- package/core/skills/commerce/integrate-payment-gateway/examples/resilient-webhook-and-mpp-handler.ts +164 -0
- package/core/skills/commerce/integrate-payment-gateway/references/mpp-x402-and-webhook-security-specs.md +47 -0
- package/core/skills/commerce/manage-order-fulfillment/SKILL.md +17 -50
- package/core/skills/commerce/manage-order-fulfillment/examples/temporal-fulfillment-saga.ts +104 -0
- package/core/skills/commerce/manage-order-fulfillment/references/event-sourced-fulfillment-and-carrier-webhooks.md +58 -0
- package/core/skills/commerce/manage-product-catalog/SKILL.md +5 -1
- package/core/skills/commerce/manage-product-catalog/examples/hybrid-search-and-governance-pipeline.ts +120 -0
- package/core/skills/commerce/manage-product-catalog/references/semantic-vector-catalog-and-graphrag.md +54 -0
- package/core/skills/content/write-article/SKILL.md +1 -1
- package/core/skills/document/docx/SKILL.md +1 -0
- package/core/skills/document/pdf/SKILL.md +2 -0
- package/core/skills/document/pdf/references/pdf-acroforms-and-pdfplumber-specs.md +54 -0
- package/core/skills/document/pdf/scripts/check_fillable_fields.py +144 -0
- package/core/skills/document/pdf/scripts/fill_fillable_fields.py +145 -0
- package/core/skills/document/xlsx/SKILL.md +1 -0
- package/core/skills/documentation/configure-llms-txt/SKILL.md +3 -0
- package/core/skills/documentation/configure-llms-txt/examples/canonical-llms-txt-and-full-txt.md +45 -0
- package/core/skills/documentation/configure-llms-txt/references/llms-txt-and-llms-full-txt-standard.md +37 -0
- package/core/skills/documentation/write-documentation/SKILL.md +4 -1
- package/core/skills/documentation/write-documentation/examples/microservice-production-readme-and-api-docs.md +70 -0
- package/core/skills/documentation/write-documentation/references/diataxis-framework-and-doc-standards.md +62 -0
- package/core/skills/documentation/write-tech-radar/SKILL.md +1 -0
- package/core/skills/education/create-exercises/SKILL.md +1 -0
- package/core/skills/education/design-learning-plan/SKILL.md +1 -0
- package/core/skills/education/grade-and-review/SKILL.md +1 -0
- package/core/skills/foundation/accessibility-review/SKILL.md +1 -0
- package/core/skills/foundation/ai-risk-assessment/SKILL.md +4 -5
- package/core/skills/foundation/ai-risk-assessment/examples/genai-system-risk-register.md +67 -0
- package/core/skills/foundation/ai-risk-assessment/references/nist-ai-rmf-and-eu-ai-act-taxonomy.md +49 -0
- package/core/skills/foundation/combinatorial-testing/SKILL.md +1 -0
- package/core/skills/foundation/conduct-research/SKILL.md +2 -2
- package/core/skills/foundation/conduct-research/references/ai-era-source-discipline.md +1 -1
- package/core/skills/foundation/create-migration/SKILL.md +10 -0
- package/core/skills/foundation/design-review/SKILL.md +9 -10
- package/core/skills/foundation/design-ux-flow/SKILL.md +9 -7
- package/core/skills/foundation/discernment-nudge/SKILL.md +2 -0
- package/core/skills/foundation/hostile-component-stress-testing/SKILL.md +1 -0
- package/core/skills/foundation/incident-report/SKILL.md +1 -0
- package/core/skills/foundation/plan-technical-delivery/SKILL.md +3 -1
- package/core/skills/foundation/playwright-evidence-qa/SKILL.md +1 -0
- package/core/skills/foundation/refactor-legacy-code/SKILL.md +84 -0
- package/core/skills/foundation/refactor-legacy-code/examples/characterization-test-seam-extraction.py +34 -0
- package/core/skills/foundation/refactor-legacy-code/references/strangler-fig-seams-and-characterization-tests.md +17 -0
- package/core/skills/foundation/refactor-legacy-code/scripts/check_refactor_blast_radius.py +63 -0
- package/core/skills/foundation/release-notes/SKILL.md +3 -3
- package/core/skills/foundation/release-notes/examples/enterprise-platform-release-notes.md +42 -0
- package/core/skills/foundation/release-notes/references/keep-a-changelog-and-semver-governance.md +43 -0
- package/core/skills/foundation/systematic-debugging/SKILL.md +15 -0
- package/core/skills/foundation/webapp-server-runner/SKILL.md +1 -0
- package/core/skills/foundation/write-product-brief/SKILL.md +1 -0
- package/core/skills/foundation/write-tests/SKILL.md +9 -0
- package/core/skills/foundation/write-tests/examples/anti-tautological-tdd-walkthrough.md +204 -0
- package/core/skills/foundation/write-tests/examples/testcontainers-kratos-integration-test.md +186 -0
- package/core/skills/foundation/write-tests/references/contract-and-chaos-testing.md +187 -0
- package/core/skills/frontend/INDEX.json +16 -0
- package/core/skills/frontend/add-page-route/SKILL.md +10 -8
- package/core/skills/frontend/add-page-route/examples/streaming-rsc-page-with-view-transition.tsx +133 -0
- package/core/skills/frontend/add-page-route/references/rsc-routing-and-view-transitions.md +72 -0
- package/core/skills/frontend/add-ui-component/SKILL.md +4 -1
- package/core/skills/frontend/add-ui-component/examples/compound-dialog-and-form-actions.tsx +193 -0
- package/core/skills/frontend/add-ui-component/references/react19-component-standards-and-anti-slop.md +55 -0
- package/core/skills/frontend/component-composition/SKILL.md +12 -1
- package/core/skills/frontend/component-composition/examples/headless-combobox-compound-component.tsx +207 -0
- package/core/skills/frontend/design-md-specification/SKILL.md +5 -0
- package/core/skills/frontend/design-system-engineering/SKILL.md +4 -2
- package/core/skills/frontend/frontend-micro-polish/SKILL.md +1 -0
- package/core/skills/frontend/frontend-testing/SKILL.md +4 -1
- package/core/skills/frontend/frontend-testing/examples/playwright-e2e-with-msw-and-axe.spec.ts +87 -0
- package/core/skills/frontend/frontend-testing/references/playwright-msw-and-a11y-testing-standards.md +78 -0
- package/core/skills/frontend/implement-ai-disclosure/SKILL.md +119 -0
- package/core/skills/frontend/implement-view-transitions/SKILL.md +1 -0
- package/core/skills/frontend/implement-webmcp/SKILL.md +7 -4
- package/core/skills/frontend/implement-webmcp/examples/webmcp-provider-and-hitl-modal.tsx +163 -0
- package/core/skills/frontend/implement-webmcp/references/webmcp-architecture-and-hitl-security.md +48 -0
- package/core/skills/frontend/integrate-api-client/SKILL.md +12 -12
- package/core/skills/frontend/integrate-api-client/examples/orval-query-and-streaming-mutation.ts +102 -0
- package/core/skills/frontend/integrate-api-client/references/orval-tanstack-query-and-streaming-specs.md +57 -0
- package/core/skills/frontend/interactive-component-workbench/SKILL.md +1 -0
- package/core/skills/frontend/motion-performance-engineering/SKILL.md +1 -0
- package/core/skills/frontend/setup-design-system/SKILL.md +6 -3
- package/core/skills/frontend/setup-design-system/examples/tailwind-v4-theme-and-dtcg-tokens.css +87 -0
- package/core/skills/frontend/setup-design-system/references/tailwind-v4-oklch-and-dtcg-tokens.md +61 -0
- package/core/skills/frontend/setup-visual-regression/SKILL.md +8 -5
- package/core/skills/frontend/setup-visual-regression/examples/visual-regression-playwright.config.ts +83 -0
- package/core/skills/frontend/setup-visual-regression/references/visual-regression-docker-and-masking-specs.md +46 -0
- package/core/skills/frontend/ui-ux-designer-anti-slop-standards.md +64 -42
- package/core/skills/frontend/web-quality-audit/SKILL.md +1 -0
- package/core/skills/gamedev/abstract-input-actions/SKILL.md +2 -0
- package/core/skills/gamedev/abstract-input-actions/examples/input-action-manager.ts +85 -0
- package/core/skills/gamedev/abstract-input-actions/references/action-mapping-and-analog-deadzones.md +54 -0
- package/core/skills/gamedev/architect-ecs-systems/SKILL.md +2 -0
- package/core/skills/gamedev/architect-ecs-systems/examples/bevy-flecs-combat-system.rs +73 -0
- package/core/skills/gamedev/architect-ecs-systems/references/data-oriented-design-and-archetype-ecs.md +39 -0
- package/core/skills/gamedev/author-game-ai/SKILL.md +2 -0
- package/core/skills/gamedev/author-game-ai/examples/modular-behavior-tree-ai.ts +98 -0
- package/core/skills/gamedev/author-game-ai/references/behavior-trees-and-utility-ai-curves.md +47 -0
- package/core/skills/gamedev/configure-physics-collision/SKILL.md +2 -0
- package/core/skills/gamedev/configure-physics-collision/examples/kinematic-physics-substepping.cpp +100 -0
- package/core/skills/gamedev/configure-physics-collision/references/continuous-collision-detection-and-substepping.md +50 -0
- package/core/skills/gamedev/develop-gameplay-systems/SKILL.md +2 -0
- package/core/skills/gamedev/develop-gameplay-systems/examples/kinematic-character-controller.gd +86 -0
- package/core/skills/gamedev/develop-gameplay-systems/references/deterministic-gameplay-state-machines.md +42 -0
- package/core/skills/gamedev/implement-save-persistence/SKILL.md +2 -0
- package/core/skills/gamedev/implement-save-persistence/examples/versioned-save-manager.ts +127 -0
- package/core/skills/gamedev/implement-save-persistence/references/versioned-save-schemas-and-checksums.md +44 -0
- package/core/skills/gamedev/render-webgl-threejs/SKILL.md +14 -10
- package/core/skills/gamedev/render-webgl-threejs/examples/production-threejs-webgpu-scene.ts +116 -0
- package/core/skills/gamedev/render-webgl-threejs/references/webgpu-threejs-pbr-pipeline.md +72 -0
- package/core/skills/legal-compliance/audit-ai-compliance/SKILL.md +1 -0
- package/core/skills/legal-compliance/draft-legal-opinion/SKILL.md +1 -0
- package/core/skills/legal-compliance/manage-vietnam-legal/SKILL.md +1 -0
- package/core/skills/meetings-analysis/analyze-business-requirements/SKILL.md +1 -0
- package/core/skills/meetings-analysis/analyze-data/SKILL.md +1 -0
- package/core/skills/meetings-analysis/meeting-review/SKILL.md +1 -0
- package/core/skills/mmo/analyze-campaign-roi/SKILL.md +2 -0
- package/core/skills/mmo/analyze-campaign-roi/examples/campaign-roi-and-roas-dashboard.py +80 -0
- package/core/skills/mmo/analyze-campaign-roi/references/multi-touch-attribution-and-cpa-analytics.md +33 -0
- package/core/skills/mmo/create-automation-script/SKILL.md +2 -0
- package/core/skills/mmo/create-automation-script/examples/stealth-browser-automation-flow.ts +65 -0
- package/core/skills/mmo/create-automation-script/references/stealth-cdp-and-behavioral-mimicry.md +37 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/SKILL.md +3 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/examples/proxy-health-probe-and-rotation-daemon.py +75 -0
- package/core/skills/mmo/deploy-mmo-infrastructure/references/proxy-pool-rotation-and-anti-detect-specs.md +45 -0
- package/core/skills/mmo/deploy-proxyware-fleet/SKILL.md +3 -0
- package/core/skills/mmo/deploy-proxyware-fleet/examples/docker-compose-depin-light-node-fleet.yaml +52 -0
- package/core/skills/mmo/deploy-proxyware-fleet/references/depin-bandwidth-monetization-node-specs.md +43 -0
- package/core/skills/mmo/generate-mmo-content/SKILL.md +2 -0
- package/core/skills/mmo/generate-mmo-content/examples/pseo-programmatic-page-generator.ts +76 -0
- package/core/skills/mmo/generate-mmo-content/references/pseo-landing-pages-and-social-video-hooks.md +39 -0
- package/core/skills/mmo/manage-mmo-assets/SKILL.md +2 -0
- package/core/skills/mmo/manage-mmo-assets/examples/mmo-asset-vault-manager.py +63 -0
- package/core/skills/mmo/manage-mmo-assets/references/mmo-asset-rbac-and-vault-isolation.md +38 -0
- package/core/skills/mmo/setup-tracking-system/SKILL.md +2 -0
- package/core/skills/mmo/setup-tracking-system/examples/meta-capi-s2s-event-dispatcher.ts +79 -0
- package/core/skills/mmo/setup-tracking-system/references/server-to-server-postback-and-capi-specs.md +45 -0
- package/core/skills/mobile/deploy-mobile-app/SKILL.md +1 -0
- package/core/skills/mobile/develop-mobile-app/SKILL.md +1 -0
- package/core/skills/platform/add-telemetry-instrumentation/SKILL.md +2 -0
- package/core/skills/platform/add-telemetry-instrumentation/examples/kratos-otel-middleware-instrumentation.go +87 -0
- package/core/skills/platform/add-telemetry-instrumentation/references/opentelemetry-semantic-conventions-2026.md +37 -0
- package/core/skills/platform/agents-sdk/SKILL.md +1 -0
- package/core/skills/platform/aws-infrastructure/SKILL.md +2 -0
- package/core/skills/platform/aws-infrastructure/examples/opentofu-eks-pod-identity-vpc.tf +101 -0
- package/core/skills/platform/aws-infrastructure/references/opentofu-aws-zero-trust-and-irsa.md +40 -0
- package/core/skills/platform/cloudflare-email-service/SKILL.md +2 -2
- package/core/skills/platform/configure-ci-cd-pipeline/SKILL.md +83 -0
- package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml +33 -0
- package/core/skills/platform/configure-ci-cd-pipeline/references/github-actions-sha-pinning-and-slsa-specs.md +22 -0
- package/core/skills/platform/configure-ci-cd-pipeline/scripts/audit_workflow_pinning.py +74 -0
- package/core/skills/platform/debug-runtime-platform/SKILL.md +1 -2
- package/core/skills/platform/debug-workers-edge/SKILL.md +2 -2
- package/core/skills/platform/durable-objects/SKILL.md +1 -0
- package/core/skills/platform/orchestrate-chaos-experiment/SKILL.md +1 -0
- package/core/skills/platform/sandbox-sdk/SKILL.md +1 -0
- package/core/skills/platform/setup-deployment/SKILL.md +6 -2
- package/core/skills/platform/setup-deployment/examples/kustomize-production-service-manifests.yaml +123 -0
- package/core/skills/platform/setup-deployment/references/interactive-hitl-wizard.md +55 -0
- package/core/skills/platform/setup-deployment/references/k8s-gitops-and-kustomize-invariants.md +40 -0
- package/core/skills/platform/setup-gpu-finops/SKILL.md +2 -0
- package/core/skills/platform/setup-gpu-finops/examples/gpu-finops-prometheus-rules.yaml +23 -0
- package/core/skills/platform/setup-gpu-finops/references/dcgm-kubecost-gpu-attribution-specs.md +16 -0
- package/core/skills/platform/setup-llm-gateway/SKILL.md +2 -0
- package/core/skills/platform/setup-llm-gateway/examples/litellm-gateway-config.yaml +28 -0
- package/core/skills/platform/setup-llm-gateway/references/litellm-routing-budget-failover-specs.md +16 -0
- package/core/skills/platform/supply-chain-security/SKILL.md +3 -2
- package/core/skills/platform/supply-chain-security/examples/github-actions-sbom-cosign.yaml +57 -0
- package/core/skills/platform/supply-chain-security/references/slsa-provenance-and-sbom-sigstore.md +60 -0
- package/core/skills/platform/turnstile-spin/SKILL.md +2 -2
- package/core/skills/platform/web-perf/SKILL.md +2 -2
- package/core/skills/platform/workers-best-practices/SKILL.md +1 -0
- package/core/skills/platform/wrangler/SKILL.md +1 -0
- package/core/skills/product/build-story-map/SKILL.md +3 -0
- package/core/skills/product/define-product-strategy/SKILL.md +1 -0
- package/core/skills/product/model-saas-metrics/SKILL.md +1 -0
- package/core/skills/product/prioritize-roadmap/SKILL.md +1 -0
- package/core/skills/repo-ops/commit-code/SKILL.md +1 -0
- package/core/skills/repo-ops/navigate-service/SKILL.md +28 -132
- package/core/skills/repo-ops/navigate-service/examples/service-boundary-map-example.md +14 -0
- package/core/skills/repo-ops/navigate-service/references/service-topology-mapping-guide.md +18 -0
- package/core/skills/repo-ops/review-code/SKILL.md +12 -2
- package/core/skills/repo-ops/review-code/examples/adversarial-two-axis-pr-review.md +167 -0
- package/core/skills/repo-ops/review-code/examples/ai-vibe-slop-remediation.md +220 -0
- package/core/skills/repo-ops/review-code/references/supply-chain-and-migration-safety.md +103 -0
- package/core/skills/repo-ops/review-service/SKILL.md +4 -1
- package/core/skills/repo-ops/review-service/examples/service-release-audit-report.md +21 -0
- package/core/skills/repo-ops/review-service/references/release-readiness-audit-rubric.md +21 -0
- package/core/skills/repo-ops/troubleshoot-service/SKILL.md +1 -0
- package/core/skills/security-data/database-maintenance/SKILL.md +1 -1
- package/core/skills/security-data/manage-secrets/SKILL.md +2 -0
- package/core/skills/security-data/manage-secrets/examples/external-secrets-vault-crds.yaml +53 -0
- package/core/skills/security-data/manage-secrets/references/zero-trust-secret-rotation-and-eso.md +30 -0
- package/core/skills/security-data/manage-vietnam-accounting/SKILL.md +8 -7
- package/core/skills/security-data/prompt-injection-defense/SKILL.md +2 -0
- package/core/skills/security-data/prompt-injection-defense/examples/bounded-tool-execution-wrapper.py +78 -0
- package/core/skills/security-data/prompt-injection-defense/references/prompt-injection-taxonomy-and-delimiters.md +37 -0
- package/core/skills/security-data/reverse-engineer-binary/SKILL.md +3 -0
- package/core/skills/security-data/reverse-engineer-binary/examples/binary-triage-and-vulnerability-dossier.md +58 -0
- package/core/skills/security-data/reverse-engineer-binary/references/ghidra-radare2-and-rea-evidence-ledgers.md +43 -0
- package/core/skills/security-data/security-audit/SKILL.md +3 -1
- package/core/skills/security-data/security-audit/examples/enterprise-service-security-audit-report.md +54 -0
- package/core/skills/security-data/security-audit/references/owasp-asi-and-cvss4-threat-modeling.md +39 -0
- package/core/skills/security-data/skill-preflight-ast-check/SKILL.md +3 -0
- package/core/skills/security-data/skill-preflight-ast-check/references/ast-lethal-trifecta-and-static-vetting.md +38 -0
- package/core/skills/security-data/skill-preflight-ast-check/scripts/scan-skill-ast.py +127 -0
- package/core/skills/seo/audit-technical-seo/SKILL.md +1 -0
- package/core/skills/seo/implement-schema-markup/SKILL.md +1 -0
- package/core/workflows/README.md +0 -20
- package/overlays/README.md +2 -22
- package/overlays/astro-cloudflare/README.md +0 -20
- package/overlays/astro-cloudflare/rules/astro-cloudflare-conventions.md +0 -31
- package/overlays/b2b-catalog-golf/README.md +0 -20
- package/overlays/b2b-catalog-golf/rules/golf-project-rules.md +0 -31
- package/overlays/b2b-catalog-golf/skills/develop-b2b-golf-feature/SKILL.md +1 -0
- package/overlays/b2b-factory-catalog/README.md +0 -20
- package/overlays/b2b-factory-catalog/rules/icm-project-rules.md +0 -31
- package/overlays/b2b-factory-catalog/skills/develop-b2b-catalog-feature/SKILL.md +1 -0
- package/overlays/b2b-sport-catalog/README.md +0 -20
- package/overlays/b2b-sport-catalog/rules/sport-project-rules.md +0 -31
- package/overlays/cad-projection/README.md +0 -20
- package/overlays/cad-projection/rules/cad-conventions.md +0 -20
- package/overlays/cad-projection/skills/isometric-svg-projection/SKILL.md +1 -0
- package/overlays/data-analyst-stack/README.md +0 -20
- package/overlays/data-analyst-stack/rules/metric-dashboard-templates.md +0 -31
- package/overlays/data-analyst-stack/rules/stack-conventions.md +0 -31
- package/overlays/data-warehouse/README.md +0 -22
- package/overlays/data-warehouse/learning/learning-conventions.md +0 -31
- package/overlays/data-warehouse/learning/phase-roadmap.md +0 -31
- package/overlays/data-warehouse/rules/amis-accounting-standards.md +0 -33
- package/overlays/data-warehouse/rules/duckdb-concurrency.md +0 -37
- package/overlays/data-warehouse/rules/pii-scrubbing.md +0 -37
- package/overlays/data-warehouse/rules/stocktake-tolerance.md +0 -33
- package/overlays/ecommerce-microservices/README.md +22 -35
- package/overlays/ecommerce-microservices/config/README.md +3 -1
- package/overlays/ecommerce-microservices/rules/README.md +2 -1
- package/overlays/ecommerce-microservices/rules/microservices-conventions.md +30 -0
- package/overlays/ecommerce-microservices/skills/README.md +1 -1
- package/overlays/ecommerce-microservices/workflows/README.md +3 -1
- package/overlays/fintech-compliance/README.md +0 -20
- package/overlays/fintech-compliance/rules/credit-scorecard-rules.md +0 -20
- package/overlays/fintech-compliance/skills/build-credit-scorecard/SKILL.md +1 -0
- package/overlays/go-microservices/README.md +1 -21
- package/overlays/go-microservices/rules/go-conventions.md +0 -31
- package/overlays/hugo-authority-content/README.md +0 -20
- package/overlays/hugo-authority-content/roles/README.md +0 -20
- package/overlays/hugo-authority-content/rules/content-brand.md +0 -30
- package/overlays/hugo-authority-content/rules/link-topology.md +0 -30
- package/overlays/hugo-authority-content/rules/seo-authority.md +0 -30
- package/overlays/hugo-authority-content/rules/technical-article-2027.md +0 -30
- package/overlays/hugo-authority-content/skills/audit-technical-article/SKILL.md +1 -0
- package/overlays/hugo-authority-content/skills/write-hugo-twin-content/SKILL.md +1 -0
- package/overlays/hugo-authority-content/workflows/README.md +0 -20
- package/overlays/hvac-authority-content/README.md +0 -20
- package/overlays/hvac-authority-content/config/collections.md +0 -22
- package/overlays/hvac-authority-content/rules/content-schema.md +0 -30
- package/overlays/hvac-authority-content/rules/hvac-engineering-standards.md +0 -30
- package/overlays/hvac-authority-content/rules/silo-linking.md +0 -30
- package/overlays/hvac-authority-content/skills/write-hvac-authority-content/SKILL.md +1 -0
- package/overlays/hvac-authority-content/workflows/publish-hvac-content.md +0 -22
- package/overlays/laravel-ecommerce/README.md +0 -20
- package/overlays/laravel-ecommerce/rules/elomus-design-system.md +0 -31
- package/overlays/laravel-ecommerce/rules/laravel-ecommerce-rules.md +0 -31
- package/overlays/laravel-ecommerce/skills/develop-laravel-ecommerce-feature/SKILL.md +1 -0
- package/overlays/laravel-filament/README.md +0 -20
- package/overlays/laravel-filament/rules/laravel-conventions.md +0 -31
- package/overlays/laravel-filament/skills/develop-laravel-feature/SKILL.md +1 -0
- package/overlays/livestream-web/README.md +0 -20
- package/overlays/livestream-web/rules/livestream-web-ux-conventions.md +0 -31
- package/overlays/obj-configurator/README.md +0 -20
- package/overlays/obj-configurator/rules/obj-project-rules.md +0 -31
- package/overlays/obj-configurator/skills/develop-obj-feature/SKILL.md +1 -0
- package/overlays/r3f-stack/README.md +0 -20
- package/overlays/r3f-stack/rules/stub.md +0 -31
- package/overlays/r3f-stack/skills/debug-3d-scene/SKILL.md +4 -2
- package/overlays/r3f-stack/skills/integrate-r3f-three-legacy/SKILL.md +6 -5
- package/overlays/r3f-stack/skills/optimize-3d-assets/SKILL.md +4 -3
- package/overlays/real-estate-content/README.md +0 -20
- package/overlays/real-estate-content/roles/README.md +0 -20
- package/overlays/real-estate-content/rules/affiliate-links.md +0 -31
- package/overlays/real-estate-content/rules/content-schema.md +0 -31
- package/overlays/real-estate-content/rules/seo-baseline.md +0 -31
- package/overlays/real-estate-content/skills/write-real-estate-astro-data/SKILL.md +1 -0
- package/overlays/real-estate-content/workflows/README.md +0 -20
- package/overlays/security-research/README.md +0 -20
- package/overlays/security-research/rules/reverse-engineering-rules.md +0 -20
- package/overlays/seo-publishing/README.md +1 -21
- package/overlays/seo-publishing/rules/publish-log-conventions.md +0 -31
- package/overlays/seo-publishing/rules/publishing-cadence.md +0 -31
- package/overlays/seo-publishing/rules/site-mix-and-cannibalization.md +0 -31
- package/overlays/seo-publishing/rules/topic-board-template.md +0 -31
- package/overlays/ui-design-system/README.md +0 -20
- package/overlays/ui-design-system/rules/handoff-conventions.md +0 -31
- package/package.json +2 -2
- package/packs/README.md +3 -9
- package/packs/ecommerce-team/manifest.yaml +1 -1
- package/core/skills/commerce/2026_STANDARDS_SUMMARY.md +0 -316
- package/core/skills/commerce/handle-checkout-flow/UPGRADE_PLAN_2026.md +0 -99
- package/core/skills/commerce/integrate-payment-gateway/UPGRADE_PLAN_2026.md +0 -128
- package/core/skills/commerce/manage-order-fulfillment/UPGRADE_PLAN_2026.md +0 -136
- package/core/skills/commerce/manage-product-catalog/UPGRADE_PLAN_2026.md +0 -130
- package/core/skills/education/2026_STANDARDS_SUMMARY.md +0 -290
- package/core/skills/education/create-exercises/UPGRADE_PLAN_2026.md +0 -115
- package/core/skills/education/design-learning-plan/UPGRADE_PLAN_2026.md +0 -140
- package/core/skills/education/grade-and-review/UPGRADE_PLAN_2026.md +0 -141
- package/core/skills/frontend/2026_STANDARDS_SUMMARY.md +0 -345
- package/core/skills/frontend/add-page-route/UPGRADE_PLAN_2026.md +0 -102
- package/core/skills/frontend/add-ui-component/UPGRADE_PLAN_2026.md +0 -114
- package/core/skills/frontend/component-composition/UPGRADE_PLAN_2026.md +0 -103
- package/core/skills/frontend/frontend-testing/UPGRADE_PLAN_2026.md +0 -137
- package/core/skills/frontend/implement-view-transitions/UPGRADE_PLAN_2026.md +0 -118
- package/core/skills/frontend/implement-webmcp/UPGRADE_PLAN_2026.md +0 -108
- package/core/skills/frontend/integrate-api-client/UPGRADE_PLAN_2026.md +0 -118
- package/core/skills/frontend/setup-design-system/UPGRADE_PLAN_2026.md +0 -123
- package/core/skills/frontend/setup-visual-regression/UPGRADE_PLAN_2026.md +0 -121
- package/core/skills/meetings-analysis/2026_STANDARDS_SUMMARY.md +0 -236
- package/core/skills/meetings-analysis/analyze-business-requirements/UPGRADE_PLAN_2026.md +0 -97
- package/core/skills/meetings-analysis/analyze-data/UPGRADE_PLAN_2026.md +0 -143
- package/core/skills/meetings-analysis/meeting-review/UPGRADE_PLAN_2026.md +0 -125
- package/core/skills/mobile/2026_STANDARDS_SUMMARY.md +0 -209
- package/core/skills/mobile/deploy-mobile-app/UPGRADE_PLAN_2026.md +0 -122
- package/core/skills/mobile/develop-mobile-app/UPGRADE_PLAN_2026.md +0 -141
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: develop-mobile-app
|
|
3
3
|
description: Architect high-performance mobile applications using React Native New Architecture, Hermes bytecode engine, TurboModules/JSI, Bridgeless mode, FlashList recycling, Reanimated worklets, and offline-first state persistence with MMKV and WatermelonDB. Use when building or optimizing React Native apps, virtualizing heavy lists, creating 60/120 FPS UI animations, or designing offline-first mobile sync architectures.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -91,3 +91,5 @@ When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
|
91
91
|
- **incident-report**: Connect telemetry evidence and trace IDs to incident postmortems
|
|
92
92
|
- **setup-deployment**: Wire telemetry config into runtime source of truth
|
|
93
93
|
- **performance-profiling**: Measure latency, throughput, or resource bottlenecks
|
|
94
|
+
- Companion reference: `references/opentelemetry-semantic-conventions-2026.md`
|
|
95
|
+
- Companion example: `examples/kratos-otel-middleware-instrumentation.go`
|
|
@@ -0,0 +1,87 @@
|
|
|
1
|
+
package telemetry
|
|
2
|
+
|
|
3
|
+
import (
|
|
4
|
+
"context"
|
|
5
|
+
"time"
|
|
6
|
+
|
|
7
|
+
"github.com/go-kratos/kratos/v2/middleware"
|
|
8
|
+
"github.com/go-kratos/kratos/v2/transport"
|
|
9
|
+
"go.opentelemetry.io/otel"
|
|
10
|
+
"go.opentelemetry.io/otel/attribute"
|
|
11
|
+
"go.opentelemetry.io/otel/metric"
|
|
12
|
+
"go.opentelemetry.io/otel/propagation"
|
|
13
|
+
semconv "go.opentelemetry.io/otel/semconv/v1.26.0"
|
|
14
|
+
"go.opentelemetry.io/otel/trace"
|
|
15
|
+
)
|
|
16
|
+
|
|
17
|
+
// TelemetryMiddleware creates a Kratos middleware instrumenting distributed tracing and metrics.
|
|
18
|
+
func TelemetryMiddleware(tracerName string, meterName string) middleware.Middleware {
|
|
19
|
+
tracer := otel.GetTracerProvider().Tracer(tracerName)
|
|
20
|
+
meter := otel.GetMeterProvider().Meter(meterName)
|
|
21
|
+
|
|
22
|
+
durationHist, _ := meter.Float64Histogram(
|
|
23
|
+
"http_server_duration_seconds",
|
|
24
|
+
metric.WithDescription("HTTP server request latency in seconds"),
|
|
25
|
+
metric.WithUnit("s"),
|
|
26
|
+
)
|
|
27
|
+
|
|
28
|
+
return func(handler middleware.Handler) middleware.Handler {
|
|
29
|
+
return func(ctx context.Context, req interface{}) (interface{}, error) {
|
|
30
|
+
startTime := time.Now()
|
|
31
|
+
|
|
32
|
+
var operation string
|
|
33
|
+
if tr, ok := transport.FromServerContext(ctx); ok {
|
|
34
|
+
operation = tr.Operation()
|
|
35
|
+
// Extract W3C TraceContext from incoming headers
|
|
36
|
+
ctx = otel.GetTextMapPropagator().Extract(ctx, propagation.HeaderCarrier(tr.RequestHeader()))
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// Start active OpenTelemetry span
|
|
40
|
+
ctx, span := tracer.Start(
|
|
41
|
+
ctx,
|
|
42
|
+
operation,
|
|
43
|
+
trace.WithSpanKind(trace.SpanKindServer),
|
|
44
|
+
trace.WithAttributes(
|
|
45
|
+
semconv.RPCSystemKey.String("kratos"),
|
|
46
|
+
attribute.String("rpc.service", operation),
|
|
47
|
+
),
|
|
48
|
+
)
|
|
49
|
+
defer span.End()
|
|
50
|
+
|
|
51
|
+
reply, err := handler(ctx, req)
|
|
52
|
+
|
|
53
|
+
duration := time.Since(startTime).Seconds()
|
|
54
|
+
statusCode := "200"
|
|
55
|
+
if err != nil {
|
|
56
|
+
statusCode = "500"
|
|
57
|
+
span.RecordError(err)
|
|
58
|
+
span.SetAttributes(attribute.String("error.type", "internal_error"))
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
// Record Prometheus / OTel duration histogram
|
|
62
|
+
durationHist.Record(ctx, duration, metric.WithAttributes(
|
|
63
|
+
attribute.String("operation", operation),
|
|
64
|
+
attribute.String("status_code", statusCode),
|
|
65
|
+
))
|
|
66
|
+
|
|
67
|
+
return reply, err
|
|
68
|
+
}
|
|
69
|
+
}
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
// RecordGenAiSpan adds GenAI semantic convention attributes to an active span.
|
|
73
|
+
func RecordGenAiSpan(ctx context.Context, model string, inputTokens, outputTokens int, ttft time.Duration) {
|
|
74
|
+
span := trace.SpanFromContext(ctx)
|
|
75
|
+
if !span.IsRecording() {
|
|
76
|
+
return
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
span.SetAttributes(
|
|
80
|
+
attribute.String("gen_ai.system", "openai"),
|
|
81
|
+
attribute.String("gen_ai.response.model", model),
|
|
82
|
+
attribute.Int("gen_ai.usage.input_tokens", inputTokens),
|
|
83
|
+
attribute.Int("gen_ai.usage.output_tokens", outputTokens),
|
|
84
|
+
attribute.Int("gen_ai.usage.tokens", inputTokens+outputTokens),
|
|
85
|
+
attribute.Float64("gen_ai.server.time_to_first_token", ttft.Seconds()),
|
|
86
|
+
)
|
|
87
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# OpenTelemetry Semantic Conventions & GenAI Observability Standards (2026)
|
|
2
|
+
|
|
3
|
+
## 1. W3C TraceContext & Distributed Propagation
|
|
4
|
+
|
|
5
|
+
### 1.1 Trace Context Headers
|
|
6
|
+
Distributed tracing requires unbroken propagation of context across all process boundaries, asynchronous message queues (Kafka, Dapr, RabbitMQ), and network hops:
|
|
7
|
+
- **`traceparent`**: `00-{trace_id}-{parent_id}-{trace_flags}` (e.g. `00-4bf92f3577b34da6a3ce929d0e0e4736-00f067aa0ba902b7-01`).
|
|
8
|
+
- **`tracestate`**: Preserves vendor-specific telemetry attributes across multi-cloud boundaries.
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 2. OpenTelemetry GenAI Semantic Conventions (v1.30+)
|
|
13
|
+
|
|
14
|
+
When instrumenting LLM agent operations, opt-in via `OTEL_SEMCONV_STABILITY_OPT_IN=genai` and emit standardized attributes:
|
|
15
|
+
- `gen_ai.system`: Provider identifier (`openai`, `anthropic`, `vllm`).
|
|
16
|
+
- `gen_ai.request.model` & `gen_ai.response.model`: Model IDs (e.g. `gpt-4o`, `deepseek-r1`).
|
|
17
|
+
- `gen_ai.usage.input_tokens`: Count of prompt/context tokens.
|
|
18
|
+
- `gen_ai.usage.output_tokens`: Count of generated tokens.
|
|
19
|
+
- `gen_ai.usage.tokens`: Total aggregated token consumption.
|
|
20
|
+
- `gen_ai.response.finish_reasons`: Array of termination causes (`stop`, `length`, `tool_calls`).
|
|
21
|
+
- `gen_ai.server.time_to_first_token`: Duration from request initiation to arrival of the first streaming chunk (TTFT).
|
|
22
|
+
|
|
23
|
+
---
|
|
24
|
+
|
|
25
|
+
## 3. Multi-Window Multi-Burn-Rate (MWMBR) SLI Alerting
|
|
26
|
+
|
|
27
|
+
Alerting on simple error rates causes false positives during off-peak hours and delayed notification during catastrophic regressions:
|
|
28
|
+
- **Dual Window Evaluation**: Evaluate error budget consumption across short windows (5m, 30m, 2h) paired with long windows (1h, 6h, 3d).
|
|
29
|
+
- **Empty-Vector Coalescing**: Guard against alert flapping when traffic drops to zero:
|
|
30
|
+
```promql
|
|
31
|
+
(
|
|
32
|
+
sum(rate(http_requests_total{status=~"5.."}[5m]))
|
|
33
|
+
/
|
|
34
|
+
sum(rate(http_requests_total[5m]))
|
|
35
|
+
) > (14.4 * (1 - 0.999))
|
|
36
|
+
or on() vector(0)
|
|
37
|
+
```
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: agents-sdk
|
|
3
3
|
description: Builds, deploys, and maintains stateful AI agents on Cloudflare Workers and Durable Objects using the Cloudflare Agents SDK. Use when creating stateful agents, implementing RPC methods with @callable(), configuring SQLite-backed agent state, orchestrating agent workflows, running durable fibers, managing chat agents, or handling agent webhooks and schedules.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, wrangler_deploy, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -119,3 +119,5 @@ Skip emission for local sandbox experimentation where no cloud resources are pro
|
|
|
119
119
|
- **manage-secrets**: For configuring AWS Secrets Manager and External Secrets Operator (ESO) integration.
|
|
120
120
|
- **security-audit**: For auditing IAM policies, SCPs, and CIS AWS Foundations benchmarks.
|
|
121
121
|
- **system-design**: For cross-cloud architecture and hardware capacity modeling.
|
|
122
|
+
- Companion reference: `references/opentofu-aws-zero-trust-and-irsa.md`
|
|
123
|
+
- Companion example: `examples/opentofu-eks-pod-identity-vpc.tf`
|
|
@@ -0,0 +1,101 @@
|
|
|
1
|
+
terraform {
|
|
2
|
+
required_version = ">= 1.8.0"
|
|
3
|
+
required_providers {
|
|
4
|
+
aws = {
|
|
5
|
+
source = "hashicorp/aws"
|
|
6
|
+
version = "~> 5.75"
|
|
7
|
+
}
|
|
8
|
+
}
|
|
9
|
+
|
|
10
|
+
# Client-side State KMS Encryption Block (OpenTofu v1.13+)
|
|
11
|
+
encryption {
|
|
12
|
+
key_provider "aws_kms" "primary" {
|
|
13
|
+
kms_key_id = "arn:aws:kms:us-east-1:123456789012:key/3a8f7c19-b2e0-4d88-e7b5-1f0923a10582"
|
|
14
|
+
region = "us-east-1"
|
|
15
|
+
key_spec = "AES_256"
|
|
16
|
+
}
|
|
17
|
+
method "aes_gcm" "state_encryption" {
|
|
18
|
+
keys = key_provider.aws_kms.primary
|
|
19
|
+
}
|
|
20
|
+
state {
|
|
21
|
+
method = method.aes_gcm.state_encryption
|
|
22
|
+
enforced = true
|
|
23
|
+
}
|
|
24
|
+
plan {
|
|
25
|
+
method = method.aes_gcm.state_encryption
|
|
26
|
+
enforced = true
|
|
27
|
+
}
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
provider "aws" {
|
|
32
|
+
region = "us-east-1"
|
|
33
|
+
default_tags {
|
|
34
|
+
tags = {
|
|
35
|
+
Environment = "production"
|
|
36
|
+
Team = "platform-engineering"
|
|
37
|
+
Service = "eks-core"
|
|
38
|
+
CostCenter = "cc-9812"
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
}
|
|
42
|
+
|
|
43
|
+
# 1. Zero-Trust VPC Topology (Private Subnets with VPC Endpoints)
|
|
44
|
+
resource "aws_vpc" "main" {
|
|
45
|
+
cidr_block = "10.100.0.0/16"
|
|
46
|
+
enable_dns_hostnames = true
|
|
47
|
+
enable_dns_support = true
|
|
48
|
+
|
|
49
|
+
tags = {
|
|
50
|
+
Name = "prod-eks-vpc"
|
|
51
|
+
}
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
# 2. IAM Role for EKS Pod Identity
|
|
55
|
+
resource "aws_iam_role" "s3_access_role" {
|
|
56
|
+
name = "order-processing-s3-access"
|
|
57
|
+
|
|
58
|
+
assume_role_policy = jsonencode({
|
|
59
|
+
Version = "2012-10-17"
|
|
60
|
+
Statement = [
|
|
61
|
+
{
|
|
62
|
+
Effect = "Allow"
|
|
63
|
+
Principal = {
|
|
64
|
+
Service = "pods.eks.amazonaws.com"
|
|
65
|
+
}
|
|
66
|
+
Action = [
|
|
67
|
+
"sts:AssumeRole",
|
|
68
|
+
"sts:TagSession"
|
|
69
|
+
]
|
|
70
|
+
}
|
|
71
|
+
]
|
|
72
|
+
})
|
|
73
|
+
}
|
|
74
|
+
|
|
75
|
+
# 3. Scoped Least-Privilege Policy
|
|
76
|
+
resource "aws_iam_policy" "s3_order_receipts" {
|
|
77
|
+
name = "order-receipts-s3-bucket-access"
|
|
78
|
+
policy = jsonencode({
|
|
79
|
+
Version = "2012-10-17"
|
|
80
|
+
Statement = [
|
|
81
|
+
{
|
|
82
|
+
Effect = "Allow"
|
|
83
|
+
Action = ["s3:GetObject", "s3:PutObject"]
|
|
84
|
+
Resource = "arn:aws:s3:::prod-order-receipts-2026/*"
|
|
85
|
+
}
|
|
86
|
+
]
|
|
87
|
+
})
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
resource "aws_iam_role_policy_attachment" "attach_s3" {
|
|
91
|
+
role = aws_iam_role.s3_access_role.name
|
|
92
|
+
policy_arn = aws_iam_policy.s3_order_receipts.arn
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
# 4. EKS Pod Identity Association
|
|
96
|
+
resource "aws_eks_pod_identity_association" "order_service" {
|
|
97
|
+
cluster_name = "prod-core-eks"
|
|
98
|
+
namespace = "production"
|
|
99
|
+
service_account = "order-service-sa"
|
|
100
|
+
role_arn = aws_iam_role.s3_access_role.arn
|
|
101
|
+
}
|
package/core/skills/platform/aws-infrastructure/references/opentofu-aws-zero-trust-and-irsa.md
ADDED
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
# OpenTofu AWS Zero-Trust & EKS Pod Identity Architecture (2026)
|
|
2
|
+
|
|
3
|
+
## 1. OpenTofu Client-Side State Encryption with AWS KMS
|
|
4
|
+
|
|
5
|
+
### 1.1 In-Memory Encryption (AES-GCM)
|
|
6
|
+
Remote Terraform/OpenTofu state files frequently leak plaintext database passwords, private keys, and token hashes. OpenTofu v1.13+ enforces client-side state encryption before writing to S3:
|
|
7
|
+
- The execution engine encrypts both state and plan files in memory using an AWS KMS Customer Master Key (CMK).
|
|
8
|
+
- Unencrypted state files uploaded to remote storage buckets are blocked via strict S3 bucket policies (`aws:SecureTransport` and `s3:x-amz-server-side-encryption`).
|
|
9
|
+
|
|
10
|
+
---
|
|
11
|
+
|
|
12
|
+
## 2. AWS IAM Zero-Trust & EKS Pod Identity (v1.31+)
|
|
13
|
+
|
|
14
|
+
### 2.1 EKS Pod Identity Association
|
|
15
|
+
Legacy IAM Roles for Service Accounts (IRSA) required complex OIDC provider thumbprints, STS AssumeRoleWithWebIdentity calls, and mutual IAM trust relationship mutations for every cluster.
|
|
16
|
+
- **EKS Pod Identity**: Modern clusters deploy `pods.eks.amazonaws.com` trust policies.
|
|
17
|
+
- **Zero Static Keys**: Root SCPs deny `iam:CreateAccessKey` cluster-wide.
|
|
18
|
+
- Pods obtain temporary, automatically rotated 60-minute AWS session credentials injected into the container environment via the AWS SDK:
|
|
19
|
+
```json
|
|
20
|
+
{
|
|
21
|
+
"Version": "2012-10-17",
|
|
22
|
+
"Statement": [
|
|
23
|
+
{
|
|
24
|
+
"Effect": "Allow",
|
|
25
|
+
"Principal": { "Service": "pods.eks.amazonaws.com" },
|
|
26
|
+
"Action": ["sts:AssumeRole", "sts:TagSession"]
|
|
27
|
+
}
|
|
28
|
+
]
|
|
29
|
+
}
|
|
30
|
+
```
|
|
31
|
+
|
|
32
|
+
---
|
|
33
|
+
|
|
34
|
+
## 3. Bottlerocket Distroless EKS Node Pools
|
|
35
|
+
|
|
36
|
+
- **Distroless Immutable Root**: Worker nodes run AWS Bottlerocket container Linux.
|
|
37
|
+
- **Security Invariants**:
|
|
38
|
+
- `dm-verity`: Cryptographic kernel block-level integrity verification halting tampered nodes immediately.
|
|
39
|
+
- SELinux enforcing by default; no interactive shells, package managers, or Python interpreters installed.
|
|
40
|
+
- Updates apply atomically via A/B partition reboots.
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: cloudflare-email-service
|
|
3
3
|
description: Send and receive transactional emails with Cloudflare Email Service (Email Sending + Email Routing). Use when building email sending (Workers binding or REST API), email routing, Agents SDK email handling, or integrating email into any app — Workers, Node.js, Python, Go, etc. Also use for email deliverability, SPF/DKIM/DMARC, wrangler email setup, MCP email tools, or when a coding agent needs to send emails. Even for simple requests like "add email to my Worker" — this skill has critical config details.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, wrangler_deploy, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -137,8 +138,7 @@ Read the reference that matches your situation. You don't need all of them.
|
|
|
137
138
|
|
|
138
139
|
When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
139
140
|
|
|
140
|
-
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and
|
|
141
|
-
alidation_run. Set produced_by_role to the emitting developer role.
|
|
141
|
+
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and validation_run. Set produced_by_role to the emitting developer role.
|
|
142
142
|
|
|
143
143
|
Skip emission for solo refactor work where no downstream handoff is expected.
|
|
144
144
|
|
|
@@ -0,0 +1,83 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: configure-ci-cd-pipeline
|
|
3
|
+
description: Design and harden CI/CD pipelines with SHA-pinned GitHub Actions, least-privilege OIDC permissions, build-matrix caching, SBOM artifact attestation, and fail-closed security gates. Use when creating or auditing GitHub Actions workflows, test matrices, release pipelines, or supply-chain CI controls.
|
|
4
|
+
version: "1.0.0"
|
|
5
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
# Configure CI CD Pipeline
|
|
9
|
+
|
|
10
|
+
Use this skill when building, optimizing, or hardening automated CI/CD workflows (GitHub Actions or equivalent runners) for fast feedback and OWASP ASI04 supply-chain integrity.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- authoring or refactoring GitHub Actions workflows, test matrices, and cache keys
|
|
15
|
+
- hardening workflow security (`permissions`, SHA pinning, OIDC token federation, SBOM attestation)
|
|
16
|
+
- eliminating flaky CI retries, slow uncached dependency installs, or `pull_request_target` injection traps
|
|
17
|
+
- enforcing merge-blocking lint, typecheck, secret scanning, and test coverage gates
|
|
18
|
+
|
|
19
|
+
## Core Rules
|
|
20
|
+
|
|
21
|
+
- **Immutable Commit-SHA Action Pinning (OWASP ASI04)**: Pin EVERY third-party `uses:` step in CI workflows to a full 40-character commit SHA (`uses: actions/checkout@<40-hex-sha> # v4.x`), never mutable tags (`@v4`, `@main`).
|
|
22
|
+
- **Least-Privilege `permissions:` Block**: Declare top-level `permissions: { contents: read }` and elevate job-level scopes (`id-token: write`, `attestations: write`) only on jobs that require OIDC or artifact provenance.
|
|
23
|
+
- **Prevent `pull_request_target` Pwn-Request RCE**: Never check out untrusted PR head code inside a `pull_request_target` or privileged `workflow_run` job with write tokens or repository secrets.
|
|
24
|
+
- **OIDC Over Long-Lived Static Secrets**: Authenticate cloud/registry deploys via short-lived OIDC (`aws-actions/configure-aws-credentials`, npm Trusted Publishing) instead of standing API keys.
|
|
25
|
+
- **Fail-Closed Deterministic Gates**: Run secret scanning (`gitleaks`), lockfile-strict installs (`npm ci` / `uv sync --frozen`), unit/integration tests, and `audit_workflow_pinning.py` cleanly before promotion; cancel stale PR runs with `concurrency`.
|
|
26
|
+
|
|
27
|
+
## Suggested Process
|
|
28
|
+
|
|
29
|
+
### 1. Audit Trigger & Trust Boundary
|
|
30
|
+
Map triggers (`pull_request`, `push`, `workflow_dispatch`), separate untrusted fork PR checks from privileged deploy/release jobs, and declare top-level `permissions: read-all` or `contents: read`.
|
|
31
|
+
|
|
32
|
+
### 2. Design Fast Matrix & Deterministic Caching
|
|
33
|
+
Key caches strictly on OS + lockfile hash (`package-lock.json`, `uv.lock`, `go.sum`), enable fail-fast cancellation (`concurrency.cancel-in-progress`), and verify zero writable shared caches on fork PRs.
|
|
34
|
+
|
|
35
|
+
### 3. Pin Actions, Wire OIDC & Emit Provenance
|
|
36
|
+
Resolve full 40-char commit SHAs for every action, add dependency/secret scanning + SBOM generation (`CycloneDX`/`SPDX`), and attach SLSA build provenance attestation on release artifacts.
|
|
37
|
+
|
|
38
|
+
### 4. Lint & Dry-Run Verify
|
|
39
|
+
Run `audit_workflow_pinning.py` against all `.github/workflows/*.yml` files cleanly and verify CI pass on a clean PR branch.
|
|
40
|
+
|
|
41
|
+
## Checklist
|
|
42
|
+
|
|
43
|
+
- [ ] every third-party `uses:` reference pinned to a 40-char immutable commit SHA
|
|
44
|
+
- [ ] explicit minimal `permissions:` declared at workflow/job scope (zero default write-all)
|
|
45
|
+
- [ ] zero unsafe `pull_request_target` + PR head checkout combinations
|
|
46
|
+
- [ ] lockfile-enforced dependency installation and OS + lockfile hash caching active
|
|
47
|
+
- [ ] secret scanning, SAST/lint, and `audit_workflow_pinning.py` enforced fail-closed
|
|
48
|
+
|
|
49
|
+
## Red Flags
|
|
50
|
+
|
|
51
|
+
| Rationalization Thought | Reality & Risk | Positive Corrective Action |
|
|
52
|
+
| :--- | :--- | :--- |
|
|
53
|
+
| "Pinning `@v4` is official and easier to read than a 40-char SHA." | Compromised upstream tags silently inject malware into every CI run and secret. | Pin full 40-char commit SHA with a human version comment (`# v4.x`). |
|
|
54
|
+
| "Default `GITHUB_TOKEN` permissions save YAML lines." | Grants write access across code, packages, and checks on compromised steps. | Declare explicit `permissions: contents: read` at top level. |
|
|
55
|
+
| "Use `pull_request_target` so fork PRs can run deploy previews with secrets." | Untrusted PR code executes inside privileged runner and exfiltrates secrets. | Keep fork builds unprivileged under `pull_request` with zero write tokens. |
|
|
56
|
+
| "Ignore failing cache or secret-scan steps with `continue-on-error: true`." | Leaks credentials or broken builds directly to `main`. | Make security, pinning, and test gates fail-closed (`continue-on-error: false`). |
|
|
57
|
+
|
|
58
|
+
## Output Contracts
|
|
59
|
+
|
|
60
|
+
When pipeline changes cross DevOps/Release or Security boundaries, emit:
|
|
61
|
+
|
|
62
|
+
- **`contracts/schemas/deployment-plan.json`** capturing workflow paths, OIDC roles, SBOM/attestation steps, and gate verification results.
|
|
63
|
+
|
|
64
|
+
## Failure Modes
|
|
65
|
+
|
|
66
|
+
- **Tag-hijack supply chain compromise**: mutable `@v3` tag force-pushed to malicious commit steals secrets. Mitigation: enforce 40-char SHA pinning (`audit_workflow_pinning.py`).
|
|
67
|
+
- **Script injection via `${{ github.event.pull_request.title }}`**: untrusted PR title/branch name interpolated into `run:` shell executes arbitrary commands. Mitigation: pass event strings through `env:` variables and quote properly.
|
|
68
|
+
- **Cross-PR cache poisoning**: fork PR writes malicious artifacts into shared default cache key. Mitigation: scope caches by branch and exclude untrusted triggers from write-privileged jobs.
|
|
69
|
+
|
|
70
|
+
## Security Guardrails (OWASP ASI)
|
|
71
|
+
|
|
72
|
+
- **ASI03 Identity & Privilege Abuse**: use ephemeral OIDC federation instead of standing deploy secrets.
|
|
73
|
+
- **ASI04 Supply Chain**: enforce SHA-pinned actions and SLSA provenance attestations on release binaries/packages.
|
|
74
|
+
- **ASI05 RCE Guard**: forbid direct `${{ github.event.* }}` expression interpolation inside `run:` shell blocks.
|
|
75
|
+
|
|
76
|
+
## Related Skills
|
|
77
|
+
|
|
78
|
+
- **setup-deployment**: Coordinate application rollout steps triggered after CI gates pass
|
|
79
|
+
- **supply-chain-security**: Enforce SBOM, Cosign signing, and CycloneDX compliance
|
|
80
|
+
- **manage-secrets**: Rotate OIDC trust policies and scoped environment secrets
|
|
81
|
+
- **write-tests**: Ensure test suites run hermetically inside CI matrix runners
|
|
82
|
+
- Companion reference: [`references/github-actions-sha-pinning-and-slsa-specs.md`](references/github-actions-sha-pinning-and-slsa-specs.md)
|
|
83
|
+
- Companion example: [`examples/hardened-ci-matrix-workflow.yml`](examples/hardened-ci-matrix-workflow.yml)
|
package/core/skills/platform/configure-ci-cd-pipeline/examples/hardened-ci-matrix-workflow.yml
ADDED
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
name: hardened-ci-matrix
|
|
2
|
+
on:
|
|
3
|
+
pull_request:
|
|
4
|
+
branches: [main]
|
|
5
|
+
push:
|
|
6
|
+
branches: [main]
|
|
7
|
+
|
|
8
|
+
permissions:
|
|
9
|
+
contents: read
|
|
10
|
+
|
|
11
|
+
concurrency:
|
|
12
|
+
group: ci-${{ github.workflow }}-${{ github.ref }}
|
|
13
|
+
cancel-in-progress: true
|
|
14
|
+
|
|
15
|
+
jobs:
|
|
16
|
+
verify:
|
|
17
|
+
runs-on: ${{ matrix.os }}
|
|
18
|
+
strategy:
|
|
19
|
+
fail-fast: false
|
|
20
|
+
matrix:
|
|
21
|
+
os: [ubuntu-latest, windows-latest]
|
|
22
|
+
python-version: ["3.13"]
|
|
23
|
+
steps:
|
|
24
|
+
- name: Checkout repository (SHA-pinned)
|
|
25
|
+
uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
|
|
26
|
+
with:
|
|
27
|
+
persist-credentials: false
|
|
28
|
+
- name: Set up Python
|
|
29
|
+
uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
|
|
30
|
+
with:
|
|
31
|
+
python-version: ${{ matrix.python-version }}
|
|
32
|
+
- name: Audit workflow pinning
|
|
33
|
+
run: python core/scripts/validate-all.py --parallel
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
# GitHub Actions SHA Pinning, OIDC & SLSA Provenance Specifications
|
|
2
|
+
|
|
3
|
+
Normative reference for `configure-ci-cd-pipeline`.
|
|
4
|
+
|
|
5
|
+
## 1. Supply-Chain Pinning Rules (OWASP ASI04)
|
|
6
|
+
|
|
7
|
+
- Pin every remote action with its full 40-character hexadecimal git commit SHA:
|
|
8
|
+
`uses: actions/checkout@b4ffde65f46336ab88eb53be808477a3936bae11 # v4.1.1`
|
|
9
|
+
- Ban mutable major/minor tags (`@v4`, `@v4.2`) and branch names (`@main`, `@master`).
|
|
10
|
+
- Pin container runner images by `@sha256:...` digest where supported.
|
|
11
|
+
|
|
12
|
+
## 2. Script Injection & `pull_request_target` Ban
|
|
13
|
+
|
|
14
|
+
- Never interpolate untrusted GitHub context directly inside `run:`:
|
|
15
|
+
- Bad: `echo "${{ github.event.issue.title }}"`
|
|
16
|
+
- Good: bind to `env: ISSUE_TITLE: ${{ github.event.issue.title }}` and quote `"$ISSUE_TITLE"`.
|
|
17
|
+
- Never execute `actions/checkout` with `ref: ${{ github.event.pull_request.head.sha }}` under `pull_request_target`.
|
|
18
|
+
|
|
19
|
+
## 3. Permissions & OIDC Baseline
|
|
20
|
+
|
|
21
|
+
- Set workflow root `permissions: { contents: read }`.
|
|
22
|
+
- Grant `id-token: write` solely to dedicated publish/deploy jobs gated by GitHub Environment protection rules.
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""Static linter for GitHub Actions workflows: SHA pinning, minimal permissions, and pwn-request safety."""
|
|
3
|
+
|
|
4
|
+
from __future__ import annotations
|
|
5
|
+
|
|
6
|
+
import argparse
|
|
7
|
+
import re
|
|
8
|
+
import sys
|
|
9
|
+
from pathlib import Path
|
|
10
|
+
|
|
11
|
+
USES_RE = re.compile(r"^\s*(?:-\s*)?uses:\s*([^\s#]+)", re.M)
|
|
12
|
+
SHA_REF_RE = re.compile(r"@[0-9a-f]{40}$")
|
|
13
|
+
UNSAFE_INTERP_RE = re.compile(r"\$\{\{\s*github\.event\.(?:issue|pull_request|comment|head_commit)\.")
|
|
14
|
+
|
|
15
|
+
|
|
16
|
+
def audit_workflow_yaml(text: str) -> list[str]:
|
|
17
|
+
"""Return list of CI supply-chain or injection issues found in workflow text."""
|
|
18
|
+
errors: list[str] = []
|
|
19
|
+
if not re.search(r"(?m)^permissions:\s*", text):
|
|
20
|
+
errors.append("Missing top-level least-privilege 'permissions:' declaration.")
|
|
21
|
+
|
|
22
|
+
for match in USES_RE.finditer(text):
|
|
23
|
+
ref = match.group(1).strip().strip("\"'")
|
|
24
|
+
if ref.startswith("./") or ref.startswith("docker://"):
|
|
25
|
+
continue
|
|
26
|
+
if not SHA_REF_RE.search(ref):
|
|
27
|
+
errors.append(f"Action not pinned to 40-char commit SHA: {ref}")
|
|
28
|
+
|
|
29
|
+
if "pull_request_target" in text and "pull_request.head" in text:
|
|
30
|
+
errors.append("Critical pwn-request trap: pull_request_target checks out untrusted pull_request.head.")
|
|
31
|
+
|
|
32
|
+
if UNSAFE_INTERP_RE.search(text):
|
|
33
|
+
# Flag direct event payload interpolation in run lines
|
|
34
|
+
for line in text.splitlines():
|
|
35
|
+
stripped = line.strip()
|
|
36
|
+
if UNSAFE_INTERP_RE.search(stripped) and not stripped.startswith(("if:", "env:", "#")):
|
|
37
|
+
if any(k in stripped for k in ("run:", "echo ", "python ", "bash ")):
|
|
38
|
+
errors.append(f"Potential shell injection via untrusted github.event interpolation: {stripped}")
|
|
39
|
+
return errors
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def run_self_test() -> int:
|
|
43
|
+
ex = Path(__file__).resolve().parent.parent / "examples" / "hardened-ci-matrix-workflow.yml"
|
|
44
|
+
good = ex.read_text(encoding="utf-8")
|
|
45
|
+
assert audit_workflow_yaml(good) == [], f"Example workflow failed audit: {audit_workflow_yaml(good)}"
|
|
46
|
+
|
|
47
|
+
bad = "on: [pull_request_target]\njobs:\n b:\n steps:\n - uses: actions/checkout@v4\n - run: echo ${{ github.event.pull_request.title }}\n"
|
|
48
|
+
errs = audit_workflow_yaml(bad)
|
|
49
|
+
assert len(errs) >= 3, f"Expected >= 3 violations on insecure workflow, got {errs}"
|
|
50
|
+
print("audit_workflow_pinning self-test PASSED")
|
|
51
|
+
return 0
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
def main() -> int:
|
|
55
|
+
parser = argparse.ArgumentParser(description="Audit GitHub Actions workflow pinning and permissions.")
|
|
56
|
+
parser.add_argument("path", nargs="?", help="Path to workflow YAML file")
|
|
57
|
+
parser.add_argument("--self-test", action="store_true")
|
|
58
|
+
args = parser.parse_args()
|
|
59
|
+
|
|
60
|
+
if args.self_test:
|
|
61
|
+
return run_self_test()
|
|
62
|
+
if not args.path:
|
|
63
|
+
parser.error("Provide workflow YAML path or --self-test")
|
|
64
|
+
errs = audit_workflow_yaml(Path(args.path).read_text(encoding="utf-8"))
|
|
65
|
+
if errs:
|
|
66
|
+
for e in errs:
|
|
67
|
+
print(f"ERROR: {e}", file=sys.stderr)
|
|
68
|
+
return 1
|
|
69
|
+
print(f"OK: {args.path}")
|
|
70
|
+
return 0
|
|
71
|
+
|
|
72
|
+
|
|
73
|
+
if __name__ == "__main__":
|
|
74
|
+
sys.exit(main())
|
|
@@ -122,8 +122,7 @@ Confirm:
|
|
|
122
122
|
|
|
123
123
|
When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
124
124
|
|
|
125
|
-
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and
|
|
126
|
-
alidation_run. Set produced_by_role to the emitting developer role.
|
|
125
|
+
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and validation_run. Set produced_by_role to the emitting developer role.
|
|
127
126
|
|
|
128
127
|
Skip emission for solo refactor work where no downstream handoff is expected.
|
|
129
128
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: debug-workers-edge
|
|
3
3
|
description: Diagnose Cloudflare Pages and Workers failures at the edge — 5xx, binding errors, Wrangler deploy failures, DNS/cache issues, and context loss. Use when symptoms appear after deploy or only on Cloudflare runtime, not in local dev alone.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, wrangler_deploy, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -81,8 +82,7 @@ Run smoke_tests from edge-deployment-spec; update residual_risks for SRE/DevOps.
|
|
|
81
82
|
|
|
82
83
|
When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
83
84
|
|
|
84
|
-
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and
|
|
85
|
-
alidation_run. Set produced_by_role to the emitting developer role.
|
|
85
|
+
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and validation_run. Set produced_by_role to the emitting developer role.
|
|
86
86
|
|
|
87
87
|
Skip emission for solo refactor work where no downstream handoff is expected.
|
|
88
88
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: durable-objects
|
|
3
3
|
description: Create and review Cloudflare Durable Objects. Use when building stateful coordination (chat rooms, multiplayer games, booking systems), implementing RPC methods, SQLite storage, alarms, WebSockets, or reviewing DO code for best practices. Covers Workers integration, wrangler config, and testing with Vitest. Biases towards retrieval from Cloudflare docs over pre-trained knowledge.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, wrangler_deploy, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: orchestrate-chaos-experiment
|
|
3
3
|
description: Plan, execute, and verify controlled chaos engineering experiments and game days. Use when validating system resilience, steady-state hypotheses, automated failover, blast radius containment, or disaster recovery under injected faults.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: sandbox-sdk
|
|
3
3
|
description: Builds secure, isolated code execution environments on Cloudflare Workers using the Cloudflare Sandbox SDK — enabling AI code interpreters, interactive dev environments, and sandboxed application runtimes. Use when implementing LLM-generated code execution, user-submitted script running, or any scenario requiring isolated compute with file system access on the Cloudflare edge.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, wrangler_deploy, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: setup-deployment
|
|
3
3
|
description: Add or update deployment source-of-truth configuration for a service or component. Use when a change needs rollout manifests, release config, runtime settings, or environment wiring.
|
|
4
|
+
version: "1.0.0"
|
|
4
5
|
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
6
|
---
|
|
6
7
|
|
|
@@ -30,6 +31,7 @@ Use this skill when code changes need matching deployment or runtime configurati
|
|
|
30
31
|
- **GITOPS-APPLICATIONSET-RECONCILE**: When defining multi-environment or multi-service deployments via GitOps, use ArgoCD `ApplicationSet` with matrix/list generators and explicit `ignoreDifferences` for dynamically mutated fields (e.g. replica count managed by HPA, webhook-injected annotations) to prevent reconciliation loops.
|
|
31
32
|
- **ROLLOUTS-ANALYSIS-GATE**: For critical user-facing services, prefer Argo Rollouts or Flagger with automated Prometheus `MetricAnalysis` (P99 latency, 5xx error thresholds) over naive rolling updates; include empty vector coalescing (`or on() vector(0)`) to guard against false rollbacks during low-traffic windows.
|
|
32
33
|
- **EXTERNAL-SECRETS-DECLARATIVE**: Never commit raw secrets or base64-encoded credentials to deployment repositories; use External Secrets Operator (`ExternalSecret` manifests referencing `ClusterSecretStore`) to synchronize credentials from HashiCorp Vault or AWS Secrets Manager into native Kubernetes secrets at runtime.
|
|
34
|
+
- **INTERACTIVE-HITL-WIZARD**: For human-gated operational steps (OAuth grants, KMS secret injection, DB cutover), scaffold stage-checkpointed bash wizards (`set -euo pipefail`, silent `read -rsp`, `trap` cleanup for `Ctrl-C` resume) per [`references/interactive-hitl-wizard.md`](references/interactive-hitl-wizard.md).
|
|
33
35
|
|
|
34
36
|
## Suggested Process
|
|
35
37
|
|
|
@@ -114,8 +116,7 @@ For machine-to-machine handoff, output a structured JSON plan (e.g., `deployment
|
|
|
114
116
|
|
|
115
117
|
When this skill is invoked as part of a coordinated multi-role delivery, emit:
|
|
116
118
|
|
|
117
|
-
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and
|
|
118
|
-
alidation_run. Set produced_by_role to the emitting developer role.
|
|
119
|
+
- **contracts/schemas/deployment-plan.json** — Required fields: infrastructure_changes[], config_updates[], and validation_run. Set produced_by_role to the emitting developer role.
|
|
119
120
|
|
|
120
121
|
Skip emission for solo refactor work where no downstream handoff is expected.
|
|
121
122
|
|
|
@@ -134,3 +135,6 @@ Skip emission for solo refactor work where no downstream handoff is expected.
|
|
|
134
135
|
- **debug-runtime-platform**: Investigate rollout failures after config changes
|
|
135
136
|
- **commit-code**: Prepare deployment changes for delivery
|
|
136
137
|
- **deploy-mobile-app**: Deploy mobile applications via EAS Build, EAS Update (OTA), and App Store / Google Play submissions
|
|
138
|
+
- Companion reference: `references/k8s-gitops-and-kustomize-invariants.md`
|
|
139
|
+
- Companion reference: `references/interactive-hitl-wizard.md`
|
|
140
|
+
- Companion example: `examples/kustomize-production-service-manifests.yaml`
|