@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,105 @@
|
|
|
1
|
+
# Quality Gates, DLQ Quarantine & Deterministic Replayability — Reference
|
|
2
|
+
|
|
3
|
+
This reference establishes standards and implementation protocols for automated data quality gates (Great Expectations & dbt-expectations), Dead-Letter Queue (DLQ) quarantine isolation, and deterministic replayability for enterprise data pipelines.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Automated Data Quality (Great Expectations & dbt-expectations)
|
|
8
|
+
|
|
9
|
+
Data pipelines must enforce declarative quality assertions at each layer boundary (Bronze → Silver → Gold) to prevent data corruption from propagating downstream.
|
|
10
|
+
|
|
11
|
+
### 1.1 Quality Assertion Tiers
|
|
12
|
+
|
|
13
|
+
| Tier | Behavior on Failure | Scope of Rules | Example Assertions |
|
|
14
|
+
|---|---|---|---|
|
|
15
|
+
| **Critical** | Pipeline halted immediately; records routed to DLQ; alert dispatched | Primary keys, foreign key referential integrity, schema types, non-null guarantees | `expect_column_values_to_be_unique`<br>`expect_column_values_to_not_be_null` |
|
|
16
|
+
| **Advisory** | Warning emitted to monitoring catalog; processing continues | Statistical drift, expected volume bounds, categorical frequency | `expect_table_row_count_to_be_between`<br>`expect_column_quantile_values_to_be_between` |
|
|
17
|
+
|
|
18
|
+
### 1.2 Declarative dbt-expectations & Great Expectations Rules
|
|
19
|
+
|
|
20
|
+
```yaml
|
|
21
|
+
# Example: dbt schema test configuration
|
|
22
|
+
version: 2
|
|
23
|
+
|
|
24
|
+
models:
|
|
25
|
+
- name: silver_orders
|
|
26
|
+
tests:
|
|
27
|
+
- dbt_expectations.expect_table_row_count_to_be_between:
|
|
28
|
+
min_value: 1000
|
|
29
|
+
max_value: 5000000
|
|
30
|
+
columns:
|
|
31
|
+
- name: order_id
|
|
32
|
+
tests:
|
|
33
|
+
- unique
|
|
34
|
+
- not_null
|
|
35
|
+
- name: gross_amount_usd
|
|
36
|
+
tests:
|
|
37
|
+
- not_null
|
|
38
|
+
- dbt_expectations.expect_column_values_to_be_between:
|
|
39
|
+
min_value: 0.00
|
|
40
|
+
max_value: 100000.00
|
|
41
|
+
- name: status
|
|
42
|
+
tests:
|
|
43
|
+
- accepted_values:
|
|
44
|
+
values: ['PENDING', 'PAID', 'SHIPPED', 'CANCELLED', 'REFUNDED']
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
---
|
|
48
|
+
|
|
49
|
+
## 2. Dead-Letter Queue (DLQ) Quarantine Architecture
|
|
50
|
+
|
|
51
|
+
Invalid, malformed, or contract-violating records must never be discarded silently, nor should single record defects crash multi-million-row batch pipelines. Defective records must be isolated into a structured DLQ quarantine store.
|
|
52
|
+
|
|
53
|
+
### 2.1 Standard DLQ Quarantine Schema
|
|
54
|
+
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"quarantine_id": "7f8b89e2-3456-42ab-8c9e-10816b801a23",
|
|
58
|
+
"source_system": "kafka.payments.raw",
|
|
59
|
+
"payload_raw": "{\"order_id\": \"98124\", \"gross_amount\": -45.00, \"status\": \"UNKNOWN\"}",
|
|
60
|
+
"failure_stage": "silver_contract_validation",
|
|
61
|
+
"error_code": "ERR_CONTRACT_CHECK_FAILED",
|
|
62
|
+
"violated_contract_rule": "chk_positive_order_amount",
|
|
63
|
+
"quarantined_at": "2026-09-05T05:30:00Z",
|
|
64
|
+
"trace_id": "trace-98a72b0c-4d32"
|
|
65
|
+
}
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
### 2.2 Quarantine Circuit-Breaker
|
|
69
|
+
- **Threshold Limit**: Ingestion workers calculate the quarantine ratio for batches where total rows $N > 0$:
|
|
70
|
+
$$Q_r = \left( \frac{N_{\text{quarantined}}}{N_{\text{total}}} \right) \times 100\%$$
|
|
71
|
+
- **Circuit Trip**: Enforce critical threshold $\theta = 2.0\%$ with sample size floor $N \ge 50$:
|
|
72
|
+
- If $N \ge 50$ and $Q_r > 2.0\%$, trip the circuit breaker immediately, halt the pipeline, discard the uncommitted WAP branch transaction, and trigger high-severity incident notifications.
|
|
73
|
+
- If $N < 50$ and $Q_r > 2.0\%$, route non-conforming records to the DLQ quarantine store with diagnostic warnings without tripping the breaker.
|
|
74
|
+
|
|
75
|
+
---
|
|
76
|
+
|
|
77
|
+
## 3. Deterministic Replayability & Idempotency Protocol
|
|
78
|
+
|
|
79
|
+
Data pipelines must support re-running any historical processing window without creating duplicates, losing state, or leaving orphaned records.
|
|
80
|
+
|
|
81
|
+
### 3.1 Transactional Upsert / MERGE Mechanics
|
|
82
|
+
All Silver and Gold writes must utilize idempotent `MERGE INTO` operations keyed on the immutable natural primary key:
|
|
83
|
+
|
|
84
|
+
```sql
|
|
85
|
+
MERGE INTO lakehouse.silver.orders AS target
|
|
86
|
+
USING staging_orders AS source
|
|
87
|
+
ON target.order_id = source.order_id
|
|
88
|
+
WHEN MATCHED AND source._ingested_at > target._ingested_at THEN
|
|
89
|
+
UPDATE SET
|
|
90
|
+
target.customer_id = source.customer_id,
|
|
91
|
+
target.order_timestamp = source.order_timestamp,
|
|
92
|
+
target.gross_amount_usd = source.gross_amount_usd,
|
|
93
|
+
target.status = source.status,
|
|
94
|
+
target._updated_at = CURRENT_TIMESTAMP()
|
|
95
|
+
WHEN NOT MATCHED THEN
|
|
96
|
+
INSERT (order_id, customer_id, order_timestamp, gross_amount_usd, status, _ingested_at, _updated_at)
|
|
97
|
+
VALUES (source.order_id, source.customer_id, source.order_timestamp, source.gross_amount_usd, source.status, source._ingested_at, CURRENT_TIMESTAMP());
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### 3.2 Reprocessing Quarantined Records Runbook
|
|
101
|
+
1. **Remediation**: Correct producer payload defects or apply approved contract amendment.
|
|
102
|
+
2. **Replay Ingestion**: Read records from DLQ quarantine store filtered by `quarantine_id` or time window.
|
|
103
|
+
3. **Re-Validation**: Re-evaluate against the amended schema contract.
|
|
104
|
+
4. **Target MERGE**: Merge repaired records into Silver tables via standard idempotent MERGE keys.
|
|
105
|
+
5. **DLQ Reconciliation**: Mark quarantine records as `RESOLVED_REPLAYED` with resolution audit metadata.
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: database-maintenance
|
|
3
|
+
description: Plan and execute operational data store and modern lakehouse maintenance, including Apache Iceberg/Delta 256MB bin-pack compaction merging Deletion Vectors, manifest rewriting, 7-day/50-snapshot expiration, 72h orphan vacuuming, and FinOps cost attribution. Use for cleanup, compaction, repair, and operational performance tasks.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, query_db, read_database, run_tests]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Database Maintenance
|
|
8
|
+
|
|
9
|
+
Use this skill when planning or performing operational maintenance on relational databases, pgvector stores, or modern lakehouses to preserve health, query performance, and financial efficiency.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- compacting small files in Apache Iceberg or Delta Lake tables via bin-pack rewriting and merging Deletion Vectors to target 256MB Parquet blocks
|
|
14
|
+
- consolidating fragmented Avro manifests via `rewrite_manifests` for rapid query planning
|
|
15
|
+
- expiring stale lakehouse snapshots with 7-day TTL while preserving a 50-snapshot safety floor
|
|
16
|
+
- vacuuming orphaned data files with a mandatory 72-hour grace window to safeguard concurrent writers
|
|
17
|
+
- tuning multi-dimensional Z-Order clustering on high-cardinality columns and partition pruning strategies
|
|
18
|
+
- calculating Data FinOps metrics (file reduction ratio, storage reclaimed GB, monthly S3 GET savings) and tagging runs with CostCenter, Environment, and TableOwner
|
|
19
|
+
- monitoring analytical query costs, setting 50 GB scan limits, and enforcing warehouse auto-suspend (≤ 60s)
|
|
20
|
+
- rebuilding fragmented B-tree, HNSW, or IVFFlat pgvector indexes concurrently
|
|
21
|
+
|
|
22
|
+
## Core Rules
|
|
23
|
+
|
|
24
|
+
- assess store state and small file distribution before initiating maintenance
|
|
25
|
+
- **bin-pack file compaction**: run `rewrite_data_files` merging Deletion Vectors (Puffin RoaringBitmaps) to target 256 MB Parquet blocks (min 64 MB, max 512 MB)
|
|
26
|
+
- **manifest consolidation**: execute `rewrite_manifests` to coalesce micro-batch manifests into sorted manifest lists
|
|
27
|
+
- **snapshot lifecycle**: enforce 7-day TTL with an immutable minimum 50-snapshot safety floor (`retain_last = 50`)
|
|
28
|
+
- **orphan vacuuming**: execute `remove_orphan_files` strictly enforcing a 72-hour safety grace window to protect in-flight transactions
|
|
29
|
+
- **Data FinOps tracking**: calculate file reduction ratio, storage reclaimed (GB), and projected monthly S3 GET savings; tag every job with `CostCenter`, `Environment`, and `TableOwner`
|
|
30
|
+
- **query scan ceilings**: auto-abort queries projecting > 50 GB scans without partition filters; enforce warehouse auto-suspend (≤ 60s)
|
|
31
|
+
- **relational safety**: always use `REINDEX CONCURRENTLY` and enforce mandatory lock timeout `SET lock_timeout = '2s';`
|
|
32
|
+
- **object storage prefix hashing**: verify `write.object-storage.enabled = true` on Iceberg tables to eliminate AWS S3 503 Slow Down throttling
|
|
33
|
+
- require an approved rollback and backup plan before initiating any destructive or compaction operation
|
|
34
|
+
- detailed SQL runbooks, procedures, and FinOps policies are maintained in [`references/lakehouse-ops-and-finops.md`](references/lakehouse-ops-and-finops.md) and [`references/relational-and-vector-maintenance.md`](references/relational-and-vector-maintenance.md)
|
|
35
|
+
|
|
36
|
+
## Suggested Process
|
|
37
|
+
|
|
38
|
+
### 1. Assess Store State & Bloat Metrics
|
|
39
|
+
Inspect table bloat, dead tuple ratios, fragmented vector index graphs, or lakehouse small file counts and snapshot ages.
|
|
40
|
+
|
|
41
|
+
### 2. Formulate Maintenance Window & Rollback Plan
|
|
42
|
+
Determine online concurrency feasibility. Establish maintenance windows, lock timeout thresholds, and rollback criteria.
|
|
43
|
+
|
|
44
|
+
### 3. Execute Bin-Pack Compaction & Manifest Rewriting
|
|
45
|
+
Execute `rewrite_data_files` to merge files and resolve Deletion Vectors into target 256MB Parquet blocks. Run `rewrite_manifests` to consolidate Avro manifests.
|
|
46
|
+
|
|
47
|
+
### 4. Execute Snapshot Expiration & Orphan Vacuuming
|
|
48
|
+
Expire snapshots older than 7 days while retaining a minimum 50-snapshot floor. Vacuum unreferenced files older than 72 hours.
|
|
49
|
+
|
|
50
|
+
### 5. Enforce FinOps Cost Attribution & Tagging
|
|
51
|
+
Compute file reduction ratio, storage reclaimed (GB), and projected monthly S3 GET request savings. Tag execution with `CostCenter`, `Environment`, and `TableOwner`.
|
|
52
|
+
|
|
53
|
+
### 6. Verify Health & Post-Maintenance SLA
|
|
54
|
+
Validate query latency improvements, verify optimizer statistics, and confirm table integrity before closing the window.
|
|
55
|
+
|
|
56
|
+
## Checklist
|
|
57
|
+
|
|
58
|
+
- [ ] table bloat, small file distribution, and snapshot tree inspected before execution
|
|
59
|
+
- [ ] `write.object-storage.enabled = true` verified to distribute objects and prevent S3 503 throttling
|
|
60
|
+
- [ ] bin-pack compaction executed via `rewrite_data_files` merging Deletion Vectors to target 256MB Parquet blocks
|
|
61
|
+
- [ ] manifest files rewritten via `rewrite_manifests` to coalesce small Avro manifests
|
|
62
|
+
- [ ] snapshots older than 7 days expired via `expire_snapshots` preserving the 50-snapshot safety floor
|
|
63
|
+
- [ ] orphan files vacuumed via `remove_orphan_files` with a mandatory 72-hour grace period
|
|
64
|
+
- [ ] FinOps cost attribution calculated (file reduction ratio, reclaimed GB, projected monthly S3 GET savings)
|
|
65
|
+
- [ ] maintenance runs tagged with `CostCenter`, `Environment`, and `TableOwner` metadata
|
|
66
|
+
- [ ] relational maintenance executed with `CONCURRENTLY` and `SET lock_timeout = '2s';`
|
|
67
|
+
- [ ] query scan ceilings (≤ 50 GB) and warehouse auto-suspend (≤ 60s) enforced
|
|
68
|
+
- [ ] post-maintenance query benchmarks and plan emitted against `contracts/schemas/deployment-plan.json`
|
|
69
|
+
|
|
70
|
+
## Related Skills
|
|
71
|
+
|
|
72
|
+
- **build-data-pipeline**: Producer contract enforcement, WAP branches, and lakehouse ingestion architecture
|
|
73
|
+
- **analyze-data**: Semantic metric querying, statistical drift testing, and query cost profiling
|
|
74
|
+
- **create-migration**: Relational DDL schema changes and non-destructive migrations
|
|
75
|
+
- **performance-profiling**: Measure query latencies, execution plans, and compaction impact
|
|
76
|
+
- **troubleshoot-service**: Diagnose operational bottlenecks, metadata bloat, or lock contention
|
|
77
|
+
- **review-service**: Review release and operational risks following data store maintenance
|
|
78
|
+
- **commit-code**: Safely commit updated maintenance runbooks and configuration scripts
|
|
79
|
+
|
|
80
|
+
## Output Contracts
|
|
81
|
+
|
|
82
|
+
When maintenance operations are coordinated with SRE, release managers, or audit agents, emit:
|
|
83
|
+
|
|
84
|
+
- `contracts/schemas/deployment-plan.json` — detailing maintenance window, target tables, execution steps, rollback procedure, and validation benchmarks.
|
|
85
|
+
- `contracts/schemas/data-pipeline-spec.json` — verifying storage format properties, compaction schedule, and FinOps budget thresholds.
|
|
86
|
+
- Markdown runbook / FinOps report summarizing file reduction ratio, storage reclaimed (GB), projected monthly S3 GET savings, and resource tags (`CostCenter`, `Environment`, `TableOwner`).
|
|
87
|
+
|
|
88
|
+
## Failure Modes
|
|
89
|
+
|
|
90
|
+
- **Lakehouse metadata explosion**: unmanaged snapshot commits create gigabytes of metadata JSON and S3 503 storms. Mitigation: enforce automated 7-day TTL snapshot expiration with `rewrite_manifests` and S3 prefix hashing.
|
|
91
|
+
- **Corrupted snapshot cleanup**: aggressive vacuuming removes active time-travel references. Mitigation: maintain a strict 50-snapshot retention safety floor.
|
|
92
|
+
- **In-flight transaction deletion**: vacuuming removes files written by concurrent active commits. Mitigation: mandate a 72-hour grace window on orphan removal.
|
|
93
|
+
- **Exclusive lock starvation**: relational DDL blocks application queries. Mitigation: enforce `SET lock_timeout = '2s';` on every maintenance command.
|
|
94
|
+
- **Uncontrolled scan costs**: full table scans inflate warehouse bills. Mitigation: enforce 50 GB scan limits and warehouse auto-suspend timers (≤ 60s).
|
|
95
|
+
|
|
96
|
+
## Security Guardrails (OWASP ASI)
|
|
97
|
+
|
|
98
|
+
- **ASI03 Identity & Privilege Abuse**: restrict maintenance roles to least-privilege operations; avoid superuser connections for routine index or compaction work.
|
|
99
|
+
- **ASI04 Supply Chain**: validate maintenance CLI tools, database extensions, and catalog drivers against approved manifests.
|
|
100
|
+
- **ASI05 RCE Guard**: parameterize all maintenance commands; never build dynamic SQL from untrusted inputs.
|
|
101
|
+
- **ASI07 Inter-Agent Communication**: emit structured `deployment-plan.json` so coordinating agents share identical execution parameters.
|
|
102
|
+
- **ASI09 Human-Agent Trust Exploitation**: surface rollback risks, expected lock impacts, and storage reclaimed honestly without omitting failure probabilities.
|
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
# Lakehouse Storage Operations & Data FinOps — Reference
|
|
2
|
+
|
|
3
|
+
This reference details procedures, SQL runbooks, and policies for maintaining Apache Iceberg and Delta Lake storage layers, expiring historical metadata snapshots, merging Deletion Vectors, and enforcing Data FinOps query cost guardrails.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. Apache Iceberg & Delta Lakehouse Compaction
|
|
8
|
+
|
|
9
|
+
High-frequency streaming microbatches and frequent write operations inevitably cause the "small files problem," where thousands of sub-10 MB Parquet files degrade query planning speed and inflate cloud object storage GET/LIST costs.
|
|
10
|
+
|
|
11
|
+
### 1.1 Bin-Pack Compaction Procedure & Deletion Vector Resolution
|
|
12
|
+
Target file sizes must be maintained between **128 MB and 512 MB** (default standard: **256 MB**) using bin-pack rewriting. In Apache Iceberg v3, bin-pack compaction automatically resolves and merges active **Deletion Vectors** (Puffin RoaringBitmaps) into newly rewritten base Parquet data blocks, eliminating read amplification:
|
|
13
|
+
|
|
14
|
+
```sql
|
|
15
|
+
-- Iceberg SQL Compaction via Spark/Trino/DuckDB Iceberg Catalog
|
|
16
|
+
CALL system.rewrite_data_files(
|
|
17
|
+
table => 'lakehouse.silver.orders',
|
|
18
|
+
strategy => 'binpack',
|
|
19
|
+
options => map(
|
|
20
|
+
'min-input-files', '5',
|
|
21
|
+
'target-file-size-bytes', '268435456', -- 256 MB
|
|
22
|
+
'max-file-group-size-bytes', '10737418240' -- 10 GB per batch
|
|
23
|
+
)
|
|
24
|
+
);
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
### 1.2 Orphan File Vacuuming
|
|
28
|
+
Failed writes, aborted transactions, and dangling commits leave unreferenced Parquet and metadata files in object storage. Purge orphaned files safely using a strict **72-hour safety grace window** (`INTERVAL '72' HOUR`) to safeguard in-flight concurrent writes:
|
|
29
|
+
|
|
30
|
+
```sql
|
|
31
|
+
-- Remove unreferenced files older than 72 hours
|
|
32
|
+
CALL system.remove_orphan_files(
|
|
33
|
+
table => 'lakehouse.silver.orders',
|
|
34
|
+
older_than => CURRENT_TIMESTAMP() - INTERVAL '72' HOUR
|
|
35
|
+
);
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
---
|
|
39
|
+
|
|
40
|
+
## 2. Snapshot Expiration & Metadata Lifecycle
|
|
41
|
+
|
|
42
|
+
Unmanaged Iceberg snapshots cause metadata tree explosion, increasing query planning time from milliseconds to seconds.
|
|
43
|
+
|
|
44
|
+
### 2.1 7-Day TTL Snapshot Retention Policy
|
|
45
|
+
- Maintain time-travel capability for a maximum of 7 days in production.
|
|
46
|
+
- Retain a minimum safety floor of **50 recent snapshots** (`retain_last => 50`) regardless of age to protect rollback capability and ongoing downstream batch pipelines.
|
|
47
|
+
|
|
48
|
+
```sql
|
|
49
|
+
-- Expire stale snapshots past 7-day retention window while preserving 50-snapshot floor
|
|
50
|
+
CALL system.expire_snapshots(
|
|
51
|
+
table => 'lakehouse.silver.orders',
|
|
52
|
+
older_than => CURRENT_TIMESTAMP() - INTERVAL '7' DAY,
|
|
53
|
+
retain_last => 50
|
|
54
|
+
);
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 2.2 Manifest List Rewriting
|
|
58
|
+
Rewrite manifest files to eliminate micro-batch manifests and consolidate partition bounds:
|
|
59
|
+
|
|
60
|
+
```sql
|
|
61
|
+
CALL system.rewrite_manifests('lakehouse.silver.orders');
|
|
62
|
+
```
|
|
63
|
+
|
|
64
|
+
---
|
|
65
|
+
|
|
66
|
+
## 3. Clustering & Partitioning Key Optimization
|
|
67
|
+
|
|
68
|
+
### 3.1 Z-Order Multi-Dimensional Clustering
|
|
69
|
+
For tables queried frequently across multiple high-cardinality dimensions (e.g. `customer_id` and `order_date`), apply Z-Ordering during maintenance cycles:
|
|
70
|
+
|
|
71
|
+
```sql
|
|
72
|
+
CALL system.rewrite_data_files(
|
|
73
|
+
table => 'lakehouse.silver.orders',
|
|
74
|
+
strategy => 'sort',
|
|
75
|
+
sort_order => 'zorder(customer_id, status)'
|
|
76
|
+
);
|
|
77
|
+
```
|
|
78
|
+
|
|
79
|
+
### 3.2 Partition Evolution & S3 Object Storage Prefix Hashing
|
|
80
|
+
Apache Iceberg supports metadata-only partition evolution (tracked by integer `spec-id`) without rewriting historical Parquet data.
|
|
81
|
+
|
|
82
|
+
To eliminate AWS S3 `503 Slow Down` request throttling caused by high-throughput streaming writes to single directory prefixes, activate S3 prefix hashing:
|
|
83
|
+
```sql
|
|
84
|
+
ALTER TABLE lakehouse.silver.orders SET TBLPROPERTIES (
|
|
85
|
+
'write.object-storage.enabled' = 'true',
|
|
86
|
+
'write.data.path' = 's3://data-lake-bucket/tables/orders/data'
|
|
87
|
+
);
|
|
88
|
+
```
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
## 4. Query Cost Monitoring & Data FinOps
|
|
93
|
+
|
|
94
|
+
Cloud analytical engines (Snowflake, BigQuery, Databricks, Trino) generate runaway costs when queries execute full-table scans over billions of unpartitioned rows.
|
|
95
|
+
|
|
96
|
+
### 4.1 Query Scan Limits & Circuit-Breakers
|
|
97
|
+
- **Maximum Scan Ceiling**: Configure warehouse resource groups to auto-abort any query projected to scan **> 50 GB** without specifying partition filters (`event_date` or `event_time`).
|
|
98
|
+
- **Query Timeout Limits**: Enforce hard execution timeouts:
|
|
99
|
+
- Ad-hoc analyst exploration: 120 seconds maximum.
|
|
100
|
+
- Scheduled batch transformation: 1800 seconds maximum.
|
|
101
|
+
|
|
102
|
+
### 4.2 Compute Warehouse Auto-Suspension
|
|
103
|
+
- Set auto-suspend timers to **≤ 60 seconds** on all virtual warehouse compute clusters.
|
|
104
|
+
- Enforce slot limits to prevent unmonitored horizontal auto-scaling beyond budget allocations.
|
|
105
|
+
|
|
106
|
+
### 4.3 Storage Lifecycle Tiering
|
|
107
|
+
Automate cloud object storage transitions based on access frequency:
|
|
108
|
+
1. **Hot Tier**: Active Bronze, Silver, and Gold tables accessed within 30 days.
|
|
109
|
+
2. **Infrequent Access (IA)**: Historical snapshots and partitions between 30 and 180 days.
|
|
110
|
+
3. **Archive / Glacier Deep**: Cold compliance archives (e.g. EU AI Act 10-year lineage data) older than 180 days.
|
|
111
|
+
|
|
112
|
+
### 4.4 FinOps ROI Attribution & Resource Tagging
|
|
113
|
+
Quantify the return on investment of lakehouse table maintenance using standard FinOps equations:
|
|
114
|
+
1. **File Reduction Ratio**:
|
|
115
|
+
$$\text{Reduction Ratio} = \frac{\text{Files}_{\text{before}} - \text{Files}_{\text{after}}}{\text{Files}_{\text{before}}}$$
|
|
116
|
+
2. **Storage Reclaimed (GB)**:
|
|
117
|
+
$$\text{Storage Reclaimed (GB)} = \frac{\text{Bytes Reclaimed from Compaction and Vacuum}}{1024^3}$$
|
|
118
|
+
3. **Projected Monthly S3 API GET Request Savings**:
|
|
119
|
+
$$\text{Monthly Requests Saved} = (\text{Files}_{\text{before}} - \text{Files}_{\text{after}}) \times \text{Estimated Monthly Queries}$$
|
|
120
|
+
$$\text{Savings (USD)} = \left(\frac{\text{Monthly Requests Saved}}{1,000}\right) \times $0.0004$$
|
|
121
|
+
4. **Mandatory Tagging**:
|
|
122
|
+
Tag all maintenance runs, runbooks, and audit events with metadata:
|
|
123
|
+
- `CostCenter`: e.g. `data-platform-engineering`
|
|
124
|
+
- `Environment`: `production` | `staging` | `development`
|
|
125
|
+
- `TableOwner`: e.g. `analytics-engineering`
|
|
@@ -0,0 +1,81 @@
|
|
|
1
|
+
# Relational & Vector Database Maintenance — Reference
|
|
2
|
+
|
|
3
|
+
This reference provides operational runbooks, index tuning protocols, lock contention guardrails, and zero-downtime upgrade procedures for relational (PostgreSQL) and vector (pgvector) database systems.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 1. pgvector & Relational Index Tuning
|
|
8
|
+
|
|
9
|
+
High-throughput vector ingestion, embedding re-indexing, and bulk relational updates degrade query planner performance and cause severe B-tree and vector index bloat.
|
|
10
|
+
|
|
11
|
+
### 1.1 pgvector Index Maintenance (HNSW & IVFFlat)
|
|
12
|
+
Vector distance calculations (cosine, L2 distance) depend on balanced index graphs:
|
|
13
|
+
- **HNSW Rebuilds**: Hierarchical Navigable Small World graphs become fragmented after thousands of deletes or updates. Rebuild concurrently:
|
|
14
|
+
```sql
|
|
15
|
+
-- Rebuild vector index concurrently to prevent table write locks
|
|
16
|
+
REINDEX INDEX CONCURRENTLY idx_documents_embedding_hnsw;
|
|
17
|
+
```
|
|
18
|
+
- **IVFFlat Centroid Recalibration**: Inverted File Flat indexes require periodic reclustering to recompute optimal centroids when embedding distribution shifts:
|
|
19
|
+
```sql
|
|
20
|
+
-- Drop and recreate IVFFlat concurrently or with low lock timeout
|
|
21
|
+
REINDEX INDEX CONCURRENTLY idx_documents_embedding_ivfflat;
|
|
22
|
+
```
|
|
23
|
+
|
|
24
|
+
### 1.2 Bloat Detection & VACUUM ANALYZE
|
|
25
|
+
- **Bloat Measurement**: Monitor dead tuples and unvacuumed pages:
|
|
26
|
+
```sql
|
|
27
|
+
SELECT
|
|
28
|
+
relname AS table_name,
|
|
29
|
+
n_dead_tup,
|
|
30
|
+
n_live_tup,
|
|
31
|
+
round(100.0 * n_dead_tup / nullif(n_live_tup + n_dead_tup, 0), 2) AS dead_tuple_pct,
|
|
32
|
+
last_vacuum,
|
|
33
|
+
last_analyze
|
|
34
|
+
FROM pg_stat_user_tables
|
|
35
|
+
ORDER BY n_dead_tup DESC;
|
|
36
|
+
```
|
|
37
|
+
- **Optimizer Statistics Refresh**: Run `VACUUM ANALYZE` following bulk data loads to refresh histogram statistics, preventing poor join plan selection:
|
|
38
|
+
```sql
|
|
39
|
+
VACUUM (ANALYZE, VERBOSE) core_entities;
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
---
|
|
43
|
+
|
|
44
|
+
## 2. Lock Contention Guardrails & Safe DDL Execution
|
|
45
|
+
|
|
46
|
+
Long-running maintenance operations (adding indexes, rebuilding tables, vacuum full) acquire table locks that can block incoming application connections and starve the connection pool.
|
|
47
|
+
|
|
48
|
+
### 2.1 Mandatory Lock Timeout Standard
|
|
49
|
+
Every maintenance script or operational transaction must explicitly configure a strict lock timeout:
|
|
50
|
+
|
|
51
|
+
```sql
|
|
52
|
+
-- Abort immediately if unable to acquire table lock within 2 seconds
|
|
53
|
+
SET lock_timeout = '2s';
|
|
54
|
+
SET statement_timeout = '300s';
|
|
55
|
+
|
|
56
|
+
-- Example: Add non-blocking foreign key constraint
|
|
57
|
+
ALTER TABLE orders
|
|
58
|
+
ADD CONSTRAINT fk_orders_customer_id
|
|
59
|
+
FOREIGN KEY (customer_id) REFERENCES customers(id) NOT VALID;
|
|
60
|
+
|
|
61
|
+
-- Validate constraint asynchronously without table locks
|
|
62
|
+
ALTER TABLE orders VALIDATE CONSTRAINT fk_orders_customer_id;
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
### 2.2 Reindex Concurrently Rule
|
|
66
|
+
Never execute plain `REINDEX TABLE` or `REINDEX INDEX` in production environments. Always specify `REINDEX CONCURRENTLY` to allow read and write queries to proceed normally while the new index structure is built.
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
## 3. PostgreSQL 17 Zero-Downtime Upgrades
|
|
71
|
+
|
|
72
|
+
When executing major PostgreSQL version upgrades (e.g. Postgres 15/16 → Postgres 17):
|
|
73
|
+
|
|
74
|
+
### 3.1 Logical Replication via `pg_createsubscriber`
|
|
75
|
+
1. **Provision Target Node**: Deploy new PostgreSQL 17 replica matching existing cluster specifications.
|
|
76
|
+
2. **Convert to Subscriber**: Execute `pg_createsubscriber` to transform physical standby into logical subscriber:
|
|
77
|
+
```bash
|
|
78
|
+
pg_createsubscriber -D /var/lib/postgresql/17/data -P "host=primary-db port=5432 user=replicator"
|
|
79
|
+
```
|
|
80
|
+
3. **Synchronize Sequences & DDL**: Manually replicate and apply DDL schema changes and advance sequence values.
|
|
81
|
+
4. **Traffic Cutover**: Switch application connection pools to PostgreSQL 17 target with sub-second downtime.
|
|
@@ -0,0 +1,137 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: manage-secrets
|
|
3
|
+
description: Add, update, rotate, or review secret handling by following the repo's source-of-truth, access-control, and rollout patterns. Use when code or deployment work touches credentials, tokens, keys, or sensitive configuration.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, run_tests, run_linter, run_build, execute_command]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Manage Secrets
|
|
8
|
+
|
|
9
|
+
Use this skill when a change involves creating, rotating, wiring, or auditing secrets and other sensitive configuration.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- code/deploy touches credentials or tokens
|
|
14
|
+
- adding, updating, or rotating keys
|
|
15
|
+
- reviewing secret access control
|
|
16
|
+
- sensitive configuration rollout
|
|
17
|
+
|
|
18
|
+
## Core Rules
|
|
19
|
+
|
|
20
|
+
- never place real secret values in source-controlled user-visible artifacts unless the repo explicitly stores encrypted secret material that way
|
|
21
|
+
- treat secret creation, rotation, consumption, and rollback as separate concerns
|
|
22
|
+
- follow the repo's source of truth for secret storage and delivery
|
|
23
|
+
- minimize secret exposure in logs, examples, screenshots, and commits
|
|
24
|
+
- verify runtime consumers can read the updated secret before treating the change as complete
|
|
25
|
+
- prefer dynamic, short-lived credentials via OIDC workload identity federation (e.g., GitHub Actions to Vault/OpenBao, GCP Workload Identity, AWS IRSA) over static, long-lived access keys in CI/CD and deployments
|
|
26
|
+
- **WIMSE alignment (2027)**: for agent and workload identities, prefer SPIFFE/SVID issuance and short-lived WIMSE-style tokens (JOSE-based service-to-service chains) over static API keys; use RFC 8693 token exchange at trust boundaries — the first WIMSE RFCs are expected in 2027 as the IETF architecture (at IESG since July 2026) formalizes
|
|
27
|
+
- **Secrets-less preference**: prefer payment-native or federated access patterns (e.g., x402) that remove standing credentials entirely where the integration allows; where secrets remain, they must be NHI-scoped, rotated, and inventory-tracked
|
|
28
|
+
- maintain a **per-agent identity inventory**: every non-human identity (agent, service account, workload) recorded with owner, scope, and lifecycle state — untracked NHIs are prohibited
|
|
29
|
+
- mitigate the elevated risk (2× secrets leakage rate) in AI-assisted code generation by enforcing automated pre-commit and CI pipeline scanning using Gitleaks or TruffleHog
|
|
30
|
+
- evaluate secret storage provider choices (e.g., OpenBao vs. HashiCorp Vault) against the organization's governance policies, licensing models (MPL vs. BSL), and migration/support requirements
|
|
31
|
+
- treat every secret rotation as an irreversible action that requires explicit user confirmation; never rotate a production credential without an approval gate
|
|
32
|
+
- classify every secret with `data-classification.yaml`; tag the secret with the systems and roles authorized to consume it
|
|
33
|
+
- run a secret scan on every diff that touches secret-adjacent code; treat any high-entropy match as a CI failure and rotate the affected credential immediately
|
|
34
|
+
|
|
35
|
+
## Output Contracts
|
|
36
|
+
|
|
37
|
+
When the secret change is consumed by a deployment pipeline, an audit
|
|
38
|
+
system, or a downstream service, emit:
|
|
39
|
+
|
|
40
|
+
- **`contracts/schemas/incident-report.json`** adapted for secrets: capture the secret name (never the value), the rotation timestamp, the affected systems, the rollback path, and the operator who approved the rotation. The receiving agent can then validate the rotation without ever seeing the value.
|
|
41
|
+
- For human-readable reports, a markdown summary of the rotation event with name-only references.
|
|
42
|
+
- For secret-storage migration, emit a structured plan describing the source provider, the target provider, the migration order, and the rollback path.
|
|
43
|
+
|
|
44
|
+
Skip emission for trivial secret lookups that do not cross a role boundary.
|
|
45
|
+
|
|
46
|
+
## Failure Modes
|
|
47
|
+
|
|
48
|
+
- **Secret in source control**: a real secret value is committed to the repo. Mitigation: enable GitHub Advanced Security Push Protection or GitLab Secret Detection; treat any high-entropy match as a critical violation requiring immediate revocation.
|
|
49
|
+
- **Plaintext secret in Git**: a secret is committed to Git in plaintext or Base64. Mitigation: use SOPS with `age` (X25519) or Cloud KMS; PGP/GPG is deprecated for GitOps.
|
|
50
|
+
- **Cluster-wide `ClusterSecretStore`**: a cluster-wide `ClusterSecretStore` with wildcard access is used instead of a namespace-scoped `SecretStore`. Mitigation: scope `SecretStore` per namespace; reject cluster-wide wildcard stores.
|
|
51
|
+
- **Long-lived static key**: a static, long-lived access key is used in CI/CD instead of OIDC workload identity federation. Mitigation: prefer dynamic, short-lived credentials via OIDC; reject static keys in pipelines.
|
|
52
|
+
- **AI-generated code leaks secret**: an AI-assisted code suggestion includes a real secret. Mitigation: enforce pre-commit and CI secret scanning (Gitleaks or TruffleHog); the 2× AI leakage rate requires automated scanning.
|
|
53
|
+
- **No rollback path**: a rotation completes without a verified rollback path. Mitigation: capture the old credential state and the reversion procedure before rotation; never rotate without a tested rollback.
|
|
54
|
+
- **Push protection bypassed**: a developer bypasses push protection to land a secret. Mitigation: bypasses require security lead approval and immediate token rotation; never allow silent bypass.
|
|
55
|
+
- **Runtime consumer not validated**: a rotation completes but the consumer cannot read the new secret. Mitigation: verify runtime consumers before treating the change as complete; never mark a rotation done without a smoke test.
|
|
56
|
+
|
|
57
|
+
## Security Guardrails (OWASP ASI)
|
|
58
|
+
|
|
59
|
+
- **ASI03 Identity & Privilege Abuse**: every secret must be scoped to the minimum set of systems and roles that need it; reject secrets with wildcard access.
|
|
60
|
+
- **ASI04 Supply Chain**: secret storage providers (OpenBao, HashiCorp Vault, AWS Secrets Manager, GCP Secret Manager) must be schema-validated against the expected manifest; treat unknown versions as untrusted.
|
|
61
|
+
- **ASI05 RCE Guard**: never construct secret references, env var names, or rotation scripts from external content without strict schema validation.
|
|
62
|
+
- **ASI07 Inter-Agent Communication**: secret handoffs must never include the secret value; emit a structured `incident-report.json` with name-only references.
|
|
63
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present a secret rotation as "safe" without a verified rollback path; surface the residual risk honestly.
|
|
64
|
+
|
|
65
|
+
## Suggested Process
|
|
66
|
+
|
|
67
|
+
### 1. Identify The Secret Boundary
|
|
68
|
+
|
|
69
|
+
Clarify:
|
|
70
|
+
|
|
71
|
+
- what secret or credential is changing
|
|
72
|
+
- which systems produce and consume it
|
|
73
|
+
- where the source of truth lives
|
|
74
|
+
- what environments are affected
|
|
75
|
+
|
|
76
|
+
### 2. Inspect Existing Secret Patterns
|
|
77
|
+
|
|
78
|
+
Look for:
|
|
79
|
+
|
|
80
|
+
- secret naming conventions
|
|
81
|
+
- storage mechanism
|
|
82
|
+
- environment wiring
|
|
83
|
+
- access or permission model
|
|
84
|
+
- rotation or expiration rules
|
|
85
|
+
|
|
86
|
+
### 3. Apply The Smallest Safe Change
|
|
87
|
+
|
|
88
|
+
Examples:
|
|
89
|
+
|
|
90
|
+
- add a new secret reference
|
|
91
|
+
- rotate an existing credential
|
|
92
|
+
- update a secret mount or env var mapping
|
|
93
|
+
- remove unused secret consumption
|
|
94
|
+
|
|
95
|
+
Do not expand secret scope or audience unless required.
|
|
96
|
+
|
|
97
|
+
### 4. Check Rollout And Recovery
|
|
98
|
+
|
|
99
|
+
Verify:
|
|
100
|
+
|
|
101
|
+
- consumers can tolerate old and new credentials during rollout if needed
|
|
102
|
+
- restart or refresh behavior is understood
|
|
103
|
+
- revocation or rollback path is clear
|
|
104
|
+
- operational owners know if manual steps are required
|
|
105
|
+
|
|
106
|
+
### 5. Validate Safely
|
|
107
|
+
|
|
108
|
+
Confirm without exposing values:
|
|
109
|
+
|
|
110
|
+
- the secret reference resolves correctly
|
|
111
|
+
- the application starts and authenticates
|
|
112
|
+
- dependent calls succeed
|
|
113
|
+
- no sensitive value appears in logs or docs
|
|
114
|
+
|
|
115
|
+
- **SOPS-AGE-GITOPS**: Any secret committed to Git MUST be encrypted with SOPS using `age` (X25519 key pairs) or Cloud KMS (AWS/GCP/Azure). PGP/GPG is deprecated in modern GitOps. Plaintext or Base64-encoded secrets in Git are a critical violation requiring immediate revocation.
|
|
116
|
+
- **ESO-KUBERNETES**: Deploy External Secrets Operator (ESO v0.10+) in Kubernetes; use namespace-scoped `SecretStore` resources (not cluster-wide `ClusterSecretStore` with wildcard access) to sync secrets dynamically from AWS Secrets Manager, OpenBao, or GCP Secret Manager into native `Secret` objects.
|
|
117
|
+
- **MANDATORY-PUSH-PROTECTION**: Enable GitHub Advanced Security Push Protection or GitLab Secret Detection on all repositories to block pushes containing high-entropy strings. Bypassing protection requires security lead approval and immediate token rotation.
|
|
118
|
+
|
|
119
|
+
## Checklist
|
|
120
|
+
|
|
121
|
+
- [ ] secret boundary identified
|
|
122
|
+
- [ ] local secret pattern reviewed
|
|
123
|
+
- [ ] source-of-truth update applied
|
|
124
|
+
- [ ] rollout and rollback checked
|
|
125
|
+
- [ ] runtime validation completed safely
|
|
126
|
+
- [ ] sensitive values not exposed in artifacts
|
|
127
|
+
- [ ] OIDC workload identity federation configured for pipeline authentication
|
|
128
|
+
- [ ] pre-commit and CI/CD secret scanning (Gitleaks/TruffleHog) active for AI-generated code validation
|
|
129
|
+
- [ ] governance alignment (OpenBao vs HashiCorp Vault) reviewed and documented
|
|
130
|
+
|
|
131
|
+
## Related Skills
|
|
132
|
+
|
|
133
|
+
- **setup-deployment**: Wire secret references into deployment config
|
|
134
|
+
- **security-audit**: Review blast radius and access risk
|
|
135
|
+
- **debug-runtime-platform**: Diagnose secret injection or permission issues
|
|
136
|
+
- **review-service**: Check release readiness for secret changes
|
|
137
|
+
- **commit-code**: Prepare safe, non-sensitive changes for delivery
|