@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,98 @@
|
|
|
1
|
+
# Credit Scorecard Rules
|
|
2
|
+
|
|
3
|
+
Regulatory standards and mathematical formulas governing credit risk scorecard development, Weight of Evidence (WOE) transformations, Information Value (IV) variable selection, score calibration, and Population Stability Index (PSI) monitoring.
|
|
4
|
+
|
|
5
|
+
## 1. Monotonic Weight of Evidence (WOE) Binning
|
|
6
|
+
|
|
7
|
+
Weight of Evidence measures the relative risk contribution of each attribute bin for a binary credit outcome ($Y=0$ Good loan, $Y=1$ Bad loan / default):
|
|
8
|
+
|
|
9
|
+
$$\text{WOE}_i = \ln\left(\frac{\text{Distribution of Goods}_i}{\text{Distribution of Bads}_i}\right) = \ln\left(\frac{G_i / G_{\text{total}}}{B_i / B_{\text{total}}}\right)$$
|
|
10
|
+
|
|
11
|
+
### Monotonicity Invariant
|
|
12
|
+
- **Continuous and Ordinal Variables**: Must exhibit strictly monotonic (strictly increasing or strictly decreasing) WOE curves across ordered bins.
|
|
13
|
+
- **Regulatory Rationale (Basel II/III IRB & Fair Lending)**: Non-monotonic WOE curves indicate arbitrary risk fluctuations, lack economic rationale, and violate regulatory model explainability standards.
|
|
14
|
+
- **Bin Constraints**:
|
|
15
|
+
- Every bin must contain at least $5\%$ of the total development sample population to prevent sparse bin instability.
|
|
16
|
+
- Zero-default or zero-good bins are strictly prohibited (apply Laplace smoothing or pool adjacent bins).
|
|
17
|
+
- Missing/unknown values (`NULL`, `NaN`) must be isolated into a dedicated special category bin with independent WOE tracking.
|
|
18
|
+
- **Automated Bin Pooling**: If initial quantile binning produces non-monotonicity or sparse bins, adjacent bins must be merged iteratively using Chi-Square ($\chi^2$) pooling or CHAID clustering until strict monotonicity is achieved. If monotonicity cannot be established with at least 3 bins, the variable must be rejected.
|
|
19
|
+
|
|
20
|
+
## 2. Information Value (IV) Screening Thresholds
|
|
21
|
+
|
|
22
|
+
Information Value assesses the overall predictive power of an independent feature across all $k$ bins:
|
|
23
|
+
|
|
24
|
+
$$\text{IV} = \sum_{i=1}^k \left(\frac{G_i}{G_{\text{total}}} - \frac{B_i}{B_{\text{total}}}\right) \cdot \text{WOE}_i$$
|
|
25
|
+
|
|
26
|
+
Candidate predictors must be evaluated against standard regulatory IV bands:
|
|
27
|
+
|
|
28
|
+
| IV Range | Predictive Power Classification | Action / Governance Decision |
|
|
29
|
+
| :--- | :--- | :--- |
|
|
30
|
+
| $\text{IV} < 0.02$ | Unpredictive / Noise | **Exclude** from model candidate pool |
|
|
31
|
+
| $0.02 \le \text{IV} < 0.10$ | Weak Predictor | Use with caution; acceptable only as control or domain-essential feature |
|
|
32
|
+
| $0.10 \le \text{IV} < 0.30$ | Medium Predictor | **Standard core predictor**; ideal for regulatory scorecards |
|
|
33
|
+
| $0.30 \le \text{IV} \le 0.50$ | Strong Predictor | **High-value predictor**; inspect for correlation / collinearity |
|
|
34
|
+
| $\text{IV} > 0.50$ | Suspicious / Target Leakage | **Mandatory audit**; investigate post-default leakage or overfit; reject if leaking |
|
|
35
|
+
|
|
36
|
+
Multi-collinearity constraint: Features sharing Spearman correlation $|\rho| \ge 0.60$ or Variance Inflation Factor $\text{VIF} \ge 3.0$ must be pruned, retaining the candidate with higher IV and cleaner economic logic.
|
|
37
|
+
|
|
38
|
+
## 3. Scorecard Point Scaling & Calibration (PDO)
|
|
39
|
+
|
|
40
|
+
A logistic regression model predicting $\ln(\text{Odds}) = \ln(P(\text{Good})/P(\text{Bad})) = \beta_0 + \sum \beta_j \text{WOE}_j$ is scaled to an intuitive integer credit score using Points to Double Odds (PDO):
|
|
41
|
+
|
|
42
|
+
$$\text{Score} = \text{Offset} - \text{Factor} \cdot \ln(\text{Odds})$$
|
|
43
|
+
|
|
44
|
+
Where:
|
|
45
|
+
$$\text{Factor} = \frac{\text{PDO}}{\ln(2)}$$
|
|
46
|
+
$$\text{Offset} = \text{TargetScore} - \text{Factor} \cdot \ln(\text{TargetOdds})$$
|
|
47
|
+
|
|
48
|
+
### Standard Benchmark Calibration
|
|
49
|
+
- **Target Score**: $600$ points
|
|
50
|
+
- **Target Odds**: $50 : 1$ (50 Good loans per 1 Bad loan)
|
|
51
|
+
- **Points to Double Odds (PDO)**: $20$ points (score increases by 20 points whenever the Good:Bad odds double)
|
|
52
|
+
|
|
53
|
+
Individual bin points are computed as:
|
|
54
|
+
$$\text{Points}_{ij} = -(\beta_j \cdot \text{WOE}_{ij} + \frac{\beta_0}{m}) \cdot \text{Factor} + \frac{\text{Offset}}{m}$$
|
|
55
|
+
where $m$ is the total number of features in the final scorecard. Total credit score equals the sum of base points plus assigned bin points for each applicant, rounded to the nearest integer.
|
|
56
|
+
|
|
57
|
+
## 4. Population Stability Index (PSI) Drift Monitoring
|
|
58
|
+
|
|
59
|
+
Population Stability Index evaluates distribution shift between the reference validation population ($E$, Expected) and the live production scoring population ($A$, Actual) across $m$ score deciles:
|
|
60
|
+
|
|
61
|
+
$$\text{PSI} = \sum_{j=1}^m (A_j - E_j) \cdot \ln\left(\frac{A_j}{E_j}\right)$$
|
|
62
|
+
|
|
63
|
+
### Action Thresholds
|
|
64
|
+
- $\text{PSI} < 0.10$: **Stable Distribution**. Model continues in standard production monitoring without intervention.
|
|
65
|
+
- $0.10 \le \text{PSI} \le 0.25$: **Moderate Shift**. Requires increased monitoring frequency, origination channel audit, and segment-level Characteristic Stability Index (CSI) analysis.
|
|
66
|
+
- $\text{PSI} > 0.25$: **Significant Population Drift**. Triggers mandatory model risk alert; scorecard requires formal recalibration or retraining.
|
|
67
|
+
|
|
68
|
+
## 5. Model Validation & Fair Lending Compliance
|
|
69
|
+
|
|
70
|
+
1. **Discrimination Metrics**:
|
|
71
|
+
- Kolmogorov-Smirnov ($\text{KS}$) statistic must satisfy $\text{KS} \ge 0.30$ (benchmark target $0.35 - 0.50$).
|
|
72
|
+
- Area Under ROC Curve ($\text{AUC}$) must satisfy $\text{AUC} \ge 0.70$ ($\text{Gini} \ge 0.40$).
|
|
73
|
+
2. **Out-of-Time (OOT) Testing**: The model must be validated on a holdout temporal sample drawn at least 6–12 months after the training observation window to prove stability over credit cycles.
|
|
74
|
+
3. **Fair Lending & Anti-Bias (ECOA / FCRA)**:
|
|
75
|
+
- Protected demographic variables (race, gender, marital status, religion, nationality, age under ECOA constraints) are strictly prohibited as model inputs.
|
|
76
|
+
- For every rejected applicant, the scorecard engine must produce the top 3–4 Adverse Action Reason Codes based on the largest point deficits relative to maximum possible score per characteristic.
|
|
77
|
+
|
|
78
|
+
## Standard 2026 Alignment
|
|
79
|
+
|
|
80
|
+
This file is part of the agent-skills engineering pack. The 2026 upgrade
|
|
81
|
+
pass added this footer so every prose file in the pack carries a
|
|
82
|
+
consistent Standard 2026 pointer.
|
|
83
|
+
|
|
84
|
+
- **OWASP ASI**: applied as described in `core/roles/role-standard.md`
|
|
85
|
+
(ASI01-ASI10) and the per-skill `## Security Guardrails (OWASP ASI)` sections.
|
|
86
|
+
- **Failure Modes**: the rule in this file can be violated by drift, missing
|
|
87
|
+
context, or untracked exceptions. Concrete failure scenarios belong in the
|
|
88
|
+
related skill or workflow's `### Failure Modes` section.
|
|
89
|
+
- **Output Contracts**: structured artifacts produced under this file must
|
|
90
|
+
conform to schemas in `core/contracts/schemas/`.
|
|
91
|
+
- **Skill Toolbox Lock**: this file's rules are enforced by the role that
|
|
92
|
+
owns the affected action; the runtime gate is
|
|
93
|
+
`core/scripts/hooks/check-policy.py`.
|
|
94
|
+
- **Commit / publish gate**: changes that affect user-visible behavior
|
|
95
|
+
follow the META-RULE in `core/rules/code.md` — no commit, no push, no
|
|
96
|
+
publish without explicit user confirmation.
|
|
97
|
+
|
|
98
|
+
Last updated: 2026-10-15
|
|
@@ -0,0 +1,133 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: build-credit-scorecard
|
|
3
|
+
description: Use when building regulatory credit risk scorecards, performing monotonic WOE binning, evaluating IV thresholds, calibrating PDO point scales, and tracking PSI drift.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, query_db, read_database]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Build Credit Scorecard
|
|
8
|
+
|
|
9
|
+
Engineer, calibrate, and validate regulatory-compliant retail credit risk scorecards using monotonic Weight of Evidence (WOE) transformations, Information Value (IV) filtering, and Points to Double Odds (PDO) scaling.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- Developing retail loan origination, credit card, or SME default risk scorecards
|
|
14
|
+
- Transforming continuous and categorical predictors into strictly monotonic WOE bins
|
|
15
|
+
- Filtering candidate risk drivers using regulatory IV thresholds and VIF collinearity checks
|
|
16
|
+
- Calibrating logistic regression model log-odds into integer score scales via PDO parameters
|
|
17
|
+
- Monitoring post-deployment score distribution drift using Population Stability Index (PSI)
|
|
18
|
+
|
|
19
|
+
## Core Rules
|
|
20
|
+
|
|
21
|
+
- **Strict Monotonicity Invariant**: Continuous and ordinal variables must exhibit strictly monotonic (strictly increasing or decreasing) WOE curves. If a variable demonstrates non-monotonic trends across bins, merge adjacent bins via Chi-Square ($\chi^2$) pooling or reject the feature from the candidate pool.
|
|
22
|
+
- **Minimum Bin Volume**: Every bin must account for at least $5\%$ of the total sample population. Bins with zero defaults or zero goods are prohibited (apply Laplace smoothing or pool bins).
|
|
23
|
+
- **IV Filtering Bands**: Screen predictors against regulatory Information Value criteria:
|
|
24
|
+
- $\text{IV} < 0.02$: Exclude (unpredictive)
|
|
25
|
+
- $0.02 \le \text{IV} < 0.10$: Weak (use only if economically vital)
|
|
26
|
+
- $0.10 \le \text{IV} < 0.30$: Medium (standard core predictor)
|
|
27
|
+
- $0.30 \le \text{IV} \le 0.50$: Strong (high-value predictor)
|
|
28
|
+
- $\text{IV} > 0.50$: Suspicious (audit for target leakage or overfitting)
|
|
29
|
+
- **Multi-Collinearity Ceiling**: Reject any candidate feature having Variance Inflation Factor $\text{VIF} \ge 3.0$ or pairwise correlation $|\rho| \ge 0.60$ against another higher-IV predictor.
|
|
30
|
+
- **PDO Score Scaling**: Calibrate integer scores using:
|
|
31
|
+
$$\text{Factor} = \frac{\text{PDO}}{\ln(2)}, \quad \text{Offset} = \text{TargetScore} - \text{Factor} \cdot \ln(\text{TargetOdds})$$
|
|
32
|
+
Default baseline: Target Score = 600 at Odds = 50:1 with PDO = 20 points.
|
|
33
|
+
- **PSI Drift Governance**: Compute $\text{PSI} = \sum (A_j - E_j) \ln(A_j / E_j)$. Trigger moderate alert at $\text{PSI} \ge 0.10$; trigger mandatory retrain/recalibration at $\text{PSI} > 0.25$.
|
|
34
|
+
- **Fair Lending Prohibition**: Strictly exclude protected demographic attributes (race, gender, religion, marital status, national origin) from feature candidate pools.
|
|
35
|
+
|
|
36
|
+
## Suggested Process
|
|
37
|
+
|
|
38
|
+
### 1. Define Population and Clean Observation Window
|
|
39
|
+
- Define default target variable $Y$ ($Y=0$ Good, $Y=1$ Bad, e.g. 90+ days past due within 12 months).
|
|
40
|
+
- Partition historical data into Development ($60\%$), Out-of-Time Test ($20\%$), and Holdout Validation ($20\%$) windows.
|
|
41
|
+
- Isolate missing and exceptional value codes into separate category bins.
|
|
42
|
+
|
|
43
|
+
### 2. Perform Monotonic WOE Binning
|
|
44
|
+
- Apply initial quantile binning (5 to 10 bins per variable).
|
|
45
|
+
- Calculate $\text{WOE}_i = \ln((G_i / G_{\text{total}}) / (B_i / B_{\text{total}}))$ for each bin.
|
|
46
|
+
- Inspect slope monotonicity; run automated adjacent-bin Chi-Square pooling for non-monotonic segments.
|
|
47
|
+
- Verify all final bins exceed the $5\%$ sample volume floor.
|
|
48
|
+
|
|
49
|
+
### 3. Screen Features via Information Value and Collinearity
|
|
50
|
+
- Compute total $\text{IV} = \sum (G_i/G_{\text{total}} - B_i/B_{\text{total}}) \cdot \text{WOE}_i$ for all candidate features.
|
|
51
|
+
- Retain variables with $0.10 \le \text{IV} \le 0.50$; thoroughly audit variables with $\text{IV} > 0.50$ for target leakage.
|
|
52
|
+
- Run correlation matrix and VIF analysis to eliminate collinear redundant variables.
|
|
53
|
+
|
|
54
|
+
### 4. Fit Logistic Regression and Scale Points
|
|
55
|
+
- Fit multivariate logistic regression on WOE-transformed features: $\ln(\text{Odds}) = \beta_0 + \sum \beta_j \text{WOE}_j$.
|
|
56
|
+
- Verify all coefficients $\beta_j$ are statistically significant ($p < 0.05$) and maintain positive alignment with risk.
|
|
57
|
+
- Convert logistic coefficients into integer points using Factor and Offset derived from PDO calibration parameters.
|
|
58
|
+
- Verify that total applicant score equals the sum of assigned bin points rounded to integer.
|
|
59
|
+
|
|
60
|
+
### 5. Validate Discrimination and Population Stability
|
|
61
|
+
- Evaluate discrimination metrics on Out-of-Time dataset: Kolmogorov-Smirnov ($\text{KS} \ge 0.30$) and ROC $\text{AUC} \ge 0.70$.
|
|
62
|
+
- Generate production baseline score deciles for ongoing PSI monitoring.
|
|
63
|
+
- Configure Adverse Action reason code engine mapping the 4 largest point deficits per rejected application.
|
|
64
|
+
|
|
65
|
+
## Output Format
|
|
66
|
+
|
|
67
|
+
Outputs should include the scorecard specification table, validation metrics, and governance brief:
|
|
68
|
+
|
|
69
|
+
```markdown
|
|
70
|
+
# <Scorecard Name> - Regulatory Calibration Brief
|
|
71
|
+
|
|
72
|
+
## Scorecard Parameters
|
|
73
|
+
- Target Score: 600 points | Target Odds: 50:1 | PDO: 20 points
|
|
74
|
+
- Scaling Factor: 28.8539 | Offset: 487.1229
|
|
75
|
+
- Feature Count: <count> variables selected
|
|
76
|
+
|
|
77
|
+
## Discrimination Metrics (Out-of-Time Validation)
|
|
78
|
+
- Kolmogorov-Smirnov (KS): <e.g. 0.42> (Pass >= 0.30)
|
|
79
|
+
- ROC Area Under Curve (AUC): <e.g. 0.78> (Pass >= 0.70)
|
|
80
|
+
- Gini Index: <e.g. 0.56>
|
|
81
|
+
|
|
82
|
+
## Selected Predictor Summary
|
|
83
|
+
| Variable | IV Value | Bin Count | Monotonicity | VIF |
|
|
84
|
+
| :--- | :--- | :--- | :--- | :--- |
|
|
85
|
+
| <var_1> | 0.284 | 5 | Strictly Increasing | 1.18 |
|
|
86
|
+
| <var_2> | 0.192 | 4 | Strictly Decreasing | 1.34 |
|
|
87
|
+
|
|
88
|
+
## PSI Monitoring Baseline
|
|
89
|
+
- 10-decile reference distribution established
|
|
90
|
+
- Re-calibration threshold: PSI > 0.25
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
## Failure Modes
|
|
94
|
+
|
|
95
|
+
- **Non-monotonic WOE curves accepted**: Unpooled erratic bins create unexplainable credit decisions that fail regulatory audits. **Mitigation**: Enforce automated bin pooling or variable exclusion during step 2.
|
|
96
|
+
- **Target leakage features**: Features capturing post-default actions (e.g. collections outreach) inflate IV ($> 0.50$) but fail in production. **Mitigation**: Discard any feature with $\text{IV} > 0.50$ unless proven strictly pre-origination.
|
|
97
|
+
- **Data drift unmonitored**: Economic shifts change applicant demographics without notice. **Mitigation**: Establish automated monthly PSI calculations with alerts triggered at $\text{PSI} \ge 0.10$.
|
|
98
|
+
- **Protected attribute proxy leakage**: Zip code or non-protected variables acting as racial or gender proxies. **Mitigation**: Run adverse impact disparate analysis before finalizing scorecard variables.
|
|
99
|
+
|
|
100
|
+
## Output Contracts
|
|
101
|
+
|
|
102
|
+
When producing scorecard deliverables or risk validation briefs, emit:
|
|
103
|
+
|
|
104
|
+
- Comprehensive scorecard points lookup table and adverse action reason code definitions.
|
|
105
|
+
- If producing analytics validation reports, adhere to `contracts/schemas/validation-result.json`.
|
|
106
|
+
|
|
107
|
+
## Security Guardrails (OWASP ASI)
|
|
108
|
+
|
|
109
|
+
- **ASI02 Data Ingestion Guard**: Sanitize all SQL queries and data extraction scripts; never execute dynamic unsanitized SQL against customer credit bureaus.
|
|
110
|
+
- **ASI07 PII Privacy Guard**: Do not write unmasked Social Security Numbers, national identity IDs, or sensitive customer names to scorecard logs or artifacts.
|
|
111
|
+
|
|
112
|
+
## Checklist
|
|
113
|
+
|
|
114
|
+
- [ ] Binary default target $Y$ cleanly defined with unambiguous performance window.
|
|
115
|
+
- [ ] Data partitioned into Development, Validation, and Out-of-Time temporal holdouts.
|
|
116
|
+
- [ ] Strictly monotonic WOE binning verified for all continuous and ordinal predictors.
|
|
117
|
+
- [ ] Every bin validated to contain at least $5\%$ of total sample volume.
|
|
118
|
+
- [ ] IV thresholds applied ($0.10 \le \text{IV} \le 0.50$ preferred; $\text{IV} > 0.50$ audited).
|
|
119
|
+
- [ ] Multi-collinearity evaluated (VIF $< 3.0$ and pairwise $|\rho| < 0.60$).
|
|
120
|
+
- [ ] Logistic regression coefficients verified for statistical significance ($p < 0.05$).
|
|
121
|
+
- [ ] Score scaling correctly applied using PDO formula ($\text{Factor} = \text{PDO}/\ln(2)$).
|
|
122
|
+
- [ ] KS statistic ($\ge 0.30$) and ROC AUC ($\ge 0.70$) confirmed on holdout data.
|
|
123
|
+
- [ ] Baseline score deciles and PSI drift monitoring thresholds ($0.10 / 0.25$) documented.
|
|
124
|
+
- [ ] Adverse action reason code engine verified for rejected applicant disclosures.
|
|
125
|
+
- [ ] Zero protected demographic attributes included in final scorecard specification.
|
|
126
|
+
|
|
127
|
+
## Related Skills
|
|
128
|
+
|
|
129
|
+
- **analyze-data**: Perform exploratory data analysis, distribution profiling, and summary statistics
|
|
130
|
+
- **build-data-pipeline**: Construct reproducible feature extraction and scoring data pipelines
|
|
131
|
+
- **ai-risk-assessment**: Evaluate regulatory compliance, algorithmic fairness, and governance risks
|
|
132
|
+
- **write-tests**: Author automated unit and property-based tests for score calculation logic
|
|
133
|
+
- **systematic-debugging**: Isolate data discrepancies, missing values, and scoring calculation anomalies
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
# Go Microservices Overlay
|
|
2
|
+
|
|
3
|
+
Language-level and architecture-level conventions for Go (Golang) microservices. Bridges the portable core skills with Go-specific implementation details.
|
|
4
|
+
|
|
5
|
+
## Tech Stack (2026)
|
|
6
|
+
|
|
7
|
+
- **Language:** Go 1.25+ (container-aware GOMAXPROCS, `testing/synctest`, `encoding/json/v2`)
|
|
8
|
+
- **Framework:** Kratos **v3** (v2 is maintenance-only; import path changed)
|
|
9
|
+
- **Architecture:** Clean Architecture / Hexagonal Architecture (Ports and Adapters)
|
|
10
|
+
- **Database:** `sqlc` + `pgx/v5` (preferred) or GORM v2 (CRUD MVPs)
|
|
11
|
+
- **Pub/Sub & State:** Dapr **1.15** (Workflow stable, Jobs API GA, binary state)
|
|
12
|
+
- **DI:** Manual constructor injection (preferred) or `goforj/wire` (compile-time, for large codebases)
|
|
13
|
+
- **Communication:** ConnectRPC (new services) or gRPC-Go (existing)
|
|
14
|
+
- **Observability:** OpenTelemetry Go SDK 1.x — compile-time instrumentation stable (Jul 2026)
|
|
15
|
+
- **Logging:** Standard `log/slog`
|
|
16
|
+
- **Testing:** Standard `testing` + table-driven + `testing/synctest` for time-based concurrency
|
|
17
|
+
|
|
18
|
+
## ⚠️ 2026 Critical Changes
|
|
19
|
+
|
|
20
|
+
### Wire Dependency Injection — ARCHIVED
|
|
21
|
+
`google/wire` original repo is **ARCHIVED and unmaintained**.
|
|
22
|
+
|
|
23
|
+
| Option | Use When |
|
|
24
|
+
|--------|----------|
|
|
25
|
+
| Manual `NewXxx()` constructors | ✅ Default — most idiomatic Go, 95% of apps |
|
|
26
|
+
| `github.com/goforj/wire` | Large codebase (30+ wiring lines) — maintained community fork |
|
|
27
|
+
| `uber-go/fx` | Enterprise-scale lifecycle management (accept runtime DI tradeoff) |
|
|
28
|
+
|
|
29
|
+
### Kratos v3 — Breaking Import Path
|
|
30
|
+
```go
|
|
31
|
+
// ❌ v2 (maintenance-only)
|
|
32
|
+
import "github.com/go-kratos/kratos/v2"
|
|
33
|
+
|
|
34
|
+
// ✅ v3 (current)
|
|
35
|
+
import "github.com/go-kratos/kratos/v3"
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
Additional v3 changes:
|
|
39
|
+
- Logging: `log.Logger`/`log.Helper` → standard `log/slog`
|
|
40
|
+
- JSON codec: now split — import `encoding/json` AND `encoding/protojson` separately
|
|
41
|
+
- `binding.EncodeURL` → `http.BuildPath`
|
|
42
|
+
|
|
43
|
+
### Dapr 1.15 New APIs
|
|
44
|
+
- `Jobs API` → replace cron bindings for scheduled tasks
|
|
45
|
+
- Binary state → avoids JSON serialization for non-textual data
|
|
46
|
+
- `Dapr Workflow` → STABLE — use for durable execution (fan-out/fan-in, task chaining)
|
|
47
|
+
|
|
48
|
+
## Conventions
|
|
49
|
+
|
|
50
|
+
- **Dependency Management:** Go Modules (`go.mod`).
|
|
51
|
+
- **Concurrency:** Idiomatic goroutines/channels; no shared memory; `sync` pkg only when channels insufficient.
|
|
52
|
+
- **Testing:** Standard `testing` package, table-driven tests; `testing/synctest` for time-based concurrency.
|
|
53
|
+
- **Logging:** `log/slog` structured JSON — never `fmt.Print` or generic `log.Print` in production.
|
|
54
|
+
- **Error Handling:** Explicit checking; wrap with `fmt.Errorf("...: %w", err)`.
|
|
55
|
+
- **API:** ConnectRPC for new services (HTTP/1.1 + browser-native), gRPC-Go for existing high-perf internal services.
|
|
56
|
+
- **Observability:** OTel compile-time instrumentation (`-toolexec` flag) for zero-code coverage; manual spans for business paths.
|
|
57
|
+
|
|
58
|
+
## Standard 2026 Alignment
|
|
59
|
+
|
|
60
|
+
This file is part of the agent-skills engineering pack. The 2026 upgrade
|
|
61
|
+
pass added this footer so every prose file in the pack carries a
|
|
62
|
+
consistent Standard 2026 pointer.
|
|
63
|
+
|
|
64
|
+
- **OWASP ASI**: applied as described in `core/roles/role-standard.md`
|
|
65
|
+
(ASI01-ASI10) and the per-skill `## Security Guardrails (OWASP ASI)` sections.
|
|
66
|
+
- **Failure Modes**: the rule in this file can be violated by drift, missing
|
|
67
|
+
context, or untracked exceptions. Concrete failure scenarios belong in the
|
|
68
|
+
related skill or workflow's `### Failure Modes` section.
|
|
69
|
+
- **Output Contracts**: structured artifacts produced under this file must
|
|
70
|
+
conform to schemas in `core/contracts/schemas/`.
|
|
71
|
+
- **Skill Toolbox Lock**: this file's rules are enforced by the role that
|
|
72
|
+
owns the affected action; the runtime gate is
|
|
73
|
+
`core/scripts/hooks/check-policy.py`.
|
|
74
|
+
- **Commit / publish gate**: changes that affect user-visible behavior
|
|
75
|
+
follow the META-RULE in `core/rules/code.md` — no commit, no push, no
|
|
76
|
+
publish without explicit user confirmation.
|
|
77
|
+
|
|
78
|
+
Last updated: 2026-09-01
|
|
@@ -0,0 +1,223 @@
|
|
|
1
|
+
# Go Microservices Conventions
|
|
2
|
+
|
|
3
|
+
Standards for the `go-microservices` overlay. All roles working in this overlay MUST follow these rules.
|
|
4
|
+
|
|
5
|
+
## Project Structure And Architecture
|
|
6
|
+
|
|
7
|
+
- Follow Clean Architecture / Hexagonal Architecture (Ports and Adapters).
|
|
8
|
+
- Keep business logic isolated from transport concerns (HTTP, gRPC, ConnectRPC).
|
|
9
|
+
- Use constructor-based dependency injection for testability and decoupling.
|
|
10
|
+
- Kratos layout: `api` (contracts), `internal/service` (adapter), `internal/biz` (business logic), `internal/data` (persistence).
|
|
11
|
+
|
|
12
|
+
## Go 1.25 Features To Adopt
|
|
13
|
+
|
|
14
|
+
```go
|
|
15
|
+
// Container-aware GOMAXPROCS (Go 1.25) — no more uber-go/automaxprocs workaround
|
|
16
|
+
// Built-in: Go 1.25 automatically respects K8s CPU limits
|
|
17
|
+
|
|
18
|
+
// testing/synctest — eliminates flaky time-based concurrency tests
|
|
19
|
+
func TestTimeout(t *testing.T) {
|
|
20
|
+
synctest.Run(func() {
|
|
21
|
+
// ... time.Sleep and time.After are simulated
|
|
22
|
+
})
|
|
23
|
+
}
|
|
24
|
+
|
|
25
|
+
// encoding/json/v2 (experimental in Go 1.25 — test it; faster + stricter)
|
|
26
|
+
import "encoding/json/v2"
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
## Dependency Injection (2026 Standard)
|
|
30
|
+
|
|
31
|
+
⚠️ `google/wire` original repo is **ARCHIVED and unmaintained**.
|
|
32
|
+
|
|
33
|
+
```go
|
|
34
|
+
// ✅ PREFERRED: Manual constructor injection (most idiomatic, 95% of apps)
|
|
35
|
+
func NewUserService(repo UserRepository, logger *slog.Logger) *UserService {
|
|
36
|
+
return &UserService{repo: repo, logger: logger}
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
// ✅ Large codebases (30+ wiring lines): community-maintained fork
|
|
40
|
+
// go get github.com/goforj/wire
|
|
41
|
+
// Compile-time, zero reflection overhead
|
|
42
|
+
|
|
43
|
+
// ✅ Enterprise-scale lifecycle management (accept reflection tradeoff)
|
|
44
|
+
// go get go.uber.org/fx
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
## Kratos v3 (2026 Standard)
|
|
48
|
+
|
|
49
|
+
```go
|
|
50
|
+
// ✅ v3 import path (current)
|
|
51
|
+
import "github.com/go-kratos/kratos/v3"
|
|
52
|
+
// ❌ v2 is maintenance-only
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
v3 breaking changes:
|
|
56
|
+
- Logging: use standard `log/slog`, not kratos `log.Helper`
|
|
57
|
+
- JSON codec split: import `encoding/json` AND `encoding/protojson` separately
|
|
58
|
+
- `binding.EncodeURL` → `http.BuildPath`
|
|
59
|
+
- HTTP context: use `Bind`, `BindVars`, `BindQuery`, `BindForm` methods
|
|
60
|
+
|
|
61
|
+
## Database Layer (2026)
|
|
62
|
+
|
|
63
|
+
| Tool | Use Case |
|
|
64
|
+
|------|----------|
|
|
65
|
+
| `sqlc` + `pgx/v5` | ✅ **Preferred for new services** — type-safe, compile-time verified, no reflection |
|
|
66
|
+
| `golang-migrate` or `Atlas` | Schema migrations |
|
|
67
|
+
| GORM v2 | CRUD MVPs, rapid prototyping (reflection overhead matters at scale) |
|
|
68
|
+
| `pgx/v5` raw | LISTEN/NOTIFY, COPY protocol, advanced JSONB ops |
|
|
69
|
+
|
|
70
|
+
```go
|
|
71
|
+
// sqlc generated code example (compile-time type-safe)
|
|
72
|
+
type Queries struct { db *pgxpool.Pool }
|
|
73
|
+
func (q *Queries) GetUser(ctx context.Context, id int64) (User, error) { ... }
|
|
74
|
+
```
|
|
75
|
+
|
|
76
|
+
## Communication (2026)
|
|
77
|
+
|
|
78
|
+
| Option | When |
|
|
79
|
+
|--------|------|
|
|
80
|
+
| **ConnectRPC** | ✅ New services — works with HTTP/1.1, browser `fetch`, no proxy needed |
|
|
81
|
+
| **gRPC-Go** | Existing high-perf internal service-to-service |
|
|
82
|
+
| **grpc-gateway v2** | Expose gRPC as REST for external consumers |
|
|
83
|
+
|
|
84
|
+
```go
|
|
85
|
+
// ConnectRPC server setup (new projects)
|
|
86
|
+
import "connectrpc.com/connect"
|
|
87
|
+
mux := http.NewServeMux()
|
|
88
|
+
mux.Handle(userv1connect.NewUserServiceHandler(userSvc))
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
## Dapr 1.15 Patterns
|
|
92
|
+
|
|
93
|
+
```go
|
|
94
|
+
// Jobs API — replace cron bindings for scheduled tasks
|
|
95
|
+
daprClient.ScheduleJobAlpha1(ctx, &runtime.Job{
|
|
96
|
+
Name: "daily-report",
|
|
97
|
+
Schedule: "@daily",
|
|
98
|
+
})
|
|
99
|
+
|
|
100
|
+
// Dapr Workflow — STABLE (fan-out/fan-in, task chaining)
|
|
101
|
+
daprClient.NewWorkflowRuntime().RegisterWorkflow(MyWorkflow)
|
|
102
|
+
|
|
103
|
+
// Binary state — avoids JSON serialization for non-textual data
|
|
104
|
+
daprClient.SaveState(ctx, storeName, key, binaryData, &dapr.StateOptions{})
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
## Concurrency
|
|
108
|
+
|
|
109
|
+
- Prefer channels for communication. Avoid shared state.
|
|
110
|
+
- Use `sync` package only when channels are not appropriate.
|
|
111
|
+
- `errgroup.WithContext()` for managed goroutine pools.
|
|
112
|
+
- No unmanaged goroutines in request-scoped handlers.
|
|
113
|
+
|
|
114
|
+
## Error Handling
|
|
115
|
+
|
|
116
|
+
- Check errors explicitly — never discard.
|
|
117
|
+
- Wrap with context: `fmt.Errorf("userService.GetByID(%d): %w", id, err)`.
|
|
118
|
+
- Map biz errors → gRPC/HTTP status codes in service layer only.
|
|
119
|
+
- Never expose raw database errors to API consumers.
|
|
120
|
+
|
|
121
|
+
## Logging (Standard `log/slog`)
|
|
122
|
+
|
|
123
|
+
```go
|
|
124
|
+
// ✅ Structured JSON logging (Go 1.21+ standard library)
|
|
125
|
+
logger := slog.New(slog.NewJSONHandler(os.Stdout, &slog.HandlerOptions{
|
|
126
|
+
Level: slog.LevelInfo,
|
|
127
|
+
}))
|
|
128
|
+
logger.InfoContext(ctx, "user created",
|
|
129
|
+
slog.Int64("user_id", user.ID),
|
|
130
|
+
slog.String("trace_id", traceID),
|
|
131
|
+
)
|
|
132
|
+
|
|
133
|
+
// ❌ Never use unstructured fmt.Print or log.Print in production paths
|
|
134
|
+
```
|
|
135
|
+
|
|
136
|
+
## Observability (OTel 2026)
|
|
137
|
+
|
|
138
|
+
```go
|
|
139
|
+
// ✅ Compile-time instrumentation (zero-code, stable Jul 2026)
|
|
140
|
+
// Build flag: go build -toolexec otel-go-build-tool ./...
|
|
141
|
+
// Automatically instruments code + deps + stdlib
|
|
142
|
+
|
|
143
|
+
// ✅ Manual spans for business-critical paths
|
|
144
|
+
ctx, span := tracer.Start(ctx, "userService.CreateUser",
|
|
145
|
+
trace.WithAttributes(
|
|
146
|
+
attribute.Int64("user_id", userID),
|
|
147
|
+
),
|
|
148
|
+
)
|
|
149
|
+
defer span.End()
|
|
150
|
+
|
|
151
|
+
// Always implement graceful shutdown
|
|
152
|
+
defer tp.Shutdown(context.Background())
|
|
153
|
+
defer mp.Shutdown(context.Background())
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
- Export via OTLP only (vendor-agnostic).
|
|
157
|
+
- Watch metric cardinality — SDK has protections against unbounded memory growth.
|
|
158
|
+
|
|
159
|
+
## Testing
|
|
160
|
+
|
|
161
|
+
```go
|
|
162
|
+
// Table-driven tests (standard)
|
|
163
|
+
func TestUserService_Create(t *testing.T) {
|
|
164
|
+
tests := []struct {
|
|
165
|
+
name string
|
|
166
|
+
input CreateInput
|
|
167
|
+
wantErr bool
|
|
168
|
+
}{
|
|
169
|
+
{"valid user", CreateInput{Name: "Alice"}, false},
|
|
170
|
+
{"empty name", CreateInput{Name: ""}, true},
|
|
171
|
+
}
|
|
172
|
+
for _, tt := range tests {
|
|
173
|
+
t.Run(tt.name, func(t *testing.T) { ... })
|
|
174
|
+
}
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// Time-based concurrency tests (Go 1.25 testing/synctest)
|
|
178
|
+
func TestRateLimit_Resets(t *testing.T) {
|
|
179
|
+
synctest.Run(func() { ... })
|
|
180
|
+
}
|
|
181
|
+
```
|
|
182
|
+
|
|
183
|
+
- Mock external dependencies at the interface boundary.
|
|
184
|
+
- Target critical business logic paths (state transitions, calculations, payments).
|
|
185
|
+
|
|
186
|
+
## APIs
|
|
187
|
+
|
|
188
|
+
- ConnectRPC for new internal services — HTTP/1.1 compatible, browser-native.
|
|
189
|
+
- gRPC for existing high-performance internal communication.
|
|
190
|
+
- REST/GraphQL for external-facing clients and gateways (grpc-gateway v2).
|
|
191
|
+
|
|
192
|
+
## Standard 2026 Alignment
|
|
193
|
+
|
|
194
|
+
This overlay rule file is part of the agent-skills engineering pack. The 2026
|
|
195
|
+
upgrade pass added the following Standard 2026 alignment footer to every
|
|
196
|
+
overlay rule file in the pack.
|
|
197
|
+
|
|
198
|
+
- **OWASP ASI**: applied as described in the core pack — see
|
|
199
|
+
`core/roles/role-standard.md` (ASI01-ASI10) and the per-skill
|
|
200
|
+
`## Security Guardrails (OWASP ASI)` section in each skill. The rules in this
|
|
201
|
+
file are applied by the role that owns the affected action; the runtime
|
|
202
|
+
gate is `core/scripts/hooks/check-policy.py` with
|
|
203
|
+
`core/policies/action-boundaries.yaml`.
|
|
204
|
+
- **Failure Modes** (overlay-specific): the rules in this file can be violated
|
|
205
|
+
by drift, missing context, or untracked exceptions. The owning role is
|
|
206
|
+
expected to surface concrete failure scenarios in the workflow's
|
|
207
|
+
`### Failure Modes` section and to capture remediations via
|
|
208
|
+
`contracts/schemas/incident-report.json` when the rule is bypassed.
|
|
209
|
+
- **Output Contracts**: when a rule in this file produces a structured
|
|
210
|
+
artifact (brief, plan, config, content handoff, audit event), the artifact
|
|
211
|
+
must conform to the corresponding schema in `core/contracts/schemas/`.
|
|
212
|
+
See `See `core/skills/backend/add-api-endpoint/SKILL.md` and the `api-contract-spec.json` schema.` for the related skill output contract reference.
|
|
213
|
+
- **Skill Toolbox Lock**: a rule in this file is enforced by the role whose
|
|
214
|
+
Skill Toolbox lists the related skill as Primary. Roles that hold the
|
|
215
|
+
skill as Supporting must delegate rather than execute directly (per
|
|
216
|
+
`core/workflows/README.md`).
|
|
217
|
+
- **Commit / publish gate**: rule changes that affect user-visible behavior
|
|
218
|
+
must follow the META-RULE in `core/rules/code.md` — no commit, no push,
|
|
219
|
+
no publish without explicit user confirmation.
|
|
220
|
+
|
|
221
|
+
See `core/skills/backend/add-api-endpoint/SKILL.md` and the `api-contract-spec.json` schema.
|
|
222
|
+
|
|
223
|
+
Last updated: 2026-09-01
|
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
# Hugo Authority Content Overlay
|
|
2
|
+
|
|
3
|
+
Content + SEO overlay for the authority blog (English flagship, authority-blog.example.com) and `learn` (Vietnamese twin, learn.authority-blog.example.com) Hugo sites. This overlay is the content/SEO center of gravity for the `hugo-authority-team` pack: it owns the Technical Article Standard 2027, the twin SEO authority model, and the drafting/auditing skills that implement them.
|
|
4
|
+
|
|
5
|
+
## Included Components
|
|
6
|
+
|
|
7
|
+
### Rules
|
|
8
|
+
- `rules/content-brand.md`: schema completeness, GEO/AEO Answer-First, 1,400+ word depth, Affiliate Compliance, 2026 Information Gain & E-E-A-T, Masterclass Twin publishing model.
|
|
9
|
+
- `rules/technical-article-2027.md`: the 7 Technical Content Gates for engineering articles — answer-first, production-grade code (zero pseudo-code, version-pinned), quantitative depth (≥3 verifiable data points / 500 words), Mermaid visualization, Production Failure reality, trade-off framing, verifiable claims.
|
|
10
|
+
- `rules/link-topology.md`: Hub-and-Spoke architecture (10 Anchor Pillar Hubs), one-way `learn → authority-blog` authority flow, orphan elimination.
|
|
11
|
+
- `rules/seo-authority.md`: twin SEO authority model — canonical/duplication policy (2026-2027 spam rules), AI citation readiness (GEO 2027), entity consistency, on-page technical SEO, per-engine citation KPIs.
|
|
12
|
+
|
|
13
|
+
### Workflows
|
|
14
|
+
- `workflows/content-audit-refresh.md`: 4-sprint remediation for `authority-blog` (Schema Repair, Expansion, Topology, Consolidation).
|
|
15
|
+
- `workflows/affiliate-publishing.md`: affiliate/hybrid SEO content production for `learn`.
|
|
16
|
+
- `workflows/masterclass-batch-upgrade.md`: deep-research batch upgrades (100 rounds → 20 posts) that produced Batches 1–5.
|
|
17
|
+
- `workflows/publish-series.md`: bilingual series production across both sites.
|
|
18
|
+
- `workflows/series-sync-upgrade.md`: per-post 100-round deep research and synchronized twin upgrade of a full series (researcher → content-writer → technical-writer → seo-analyst → reviewer pipeline).
|
|
19
|
+
|
|
20
|
+
### Skills
|
|
21
|
+
- `skills/write-hugo-twin-content` (`content-writer`): drafting skill implementing the 2027 gates, twin model, and affiliate trust requirements.
|
|
22
|
+
- `skills/audit-technical-article` (`seo-analyst`): per-gate audit of technical articles against `rules/technical-article-2027.md`, emitting `seo-audit-report.json`.
|
|
23
|
+
|
|
24
|
+
### Config
|
|
25
|
+
- `config/sites.md`: site roots, corpus inventory, twin model, cross-site authority rules.
|
|
26
|
+
|
|
27
|
+
## Corpus Indexes
|
|
28
|
+
|
|
29
|
+
The overlay consumes — and must stay consistent with — the per-repo content indexes:
|
|
30
|
+
|
|
31
|
+
- `learn/plan/CONTENT_INDEX.md`
|
|
32
|
+
- `authority-blog/reports/CONTENT_INDEX.md`
|
|
33
|
+
|
|
34
|
+
Regenerate those indexes after every batch upgrade or series change, then update `config/sites.md` with the new counts.
|
|
35
|
+
|
|
36
|
+
This overlay should be composed with the global core, not copied into the core pack.
|
|
37
|
+
|
|
38
|
+
## Standard 2026 Alignment
|
|
39
|
+
|
|
40
|
+
This file is part of the agent-skills engineering pack. The 2026 upgrade
|
|
41
|
+
pass added this footer so every prose file in the pack carries a
|
|
42
|
+
consistent Standard 2026 pointer.
|
|
43
|
+
|
|
44
|
+
- **OWASP ASI**: applied as described in `core/roles/role-standard.md`
|
|
45
|
+
(ASI01-ASI10) and the per-skill `## Security Guardrails (OWASP ASI)` sections.
|
|
46
|
+
- **Failure Modes**: the rule in this file can be violated by drift, missing
|
|
47
|
+
context, or untracked exceptions. Concrete failure scenarios belong in the
|
|
48
|
+
related skill or workflow's `### Failure Modes` section.
|
|
49
|
+
- **Output Contracts**: structured artifacts produced under this file must
|
|
50
|
+
conform to schemas in `core/contracts/schemas/`.
|
|
51
|
+
- **Skill Toolbox Lock**: this file's rules are enforced by the role that
|
|
52
|
+
owns the affected action; the runtime gate is
|
|
53
|
+
`core/scripts/hooks/check-policy.py`.
|
|
54
|
+
- **Commit / publish gate**: changes that affect user-visible behavior
|
|
55
|
+
follow the META-RULE in `core/rules/code.md` — no commit, no push, no
|
|
56
|
+
publish without explicit user confirmation.
|
|
57
|
+
|
|
58
|
+
Last updated: 2026-09-08
|
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
# Authority Blog Content Sites
|
|
2
|
+
|
|
3
|
+
Site roots, corpus inventory, and cross-site authority rules for the two Hugo twins.
|
|
4
|
+
Snapshot: 2026-09-13. Canonical indexes: `learn/plan/CONTENT_INDEX.md` and
|
|
5
|
+
`authority-blog/reports/CONTENT_INDEX.md` — regenerate those before updating this file.
|
|
6
|
+
|
|
7
|
+
## Site Roots
|
|
8
|
+
|
|
9
|
+
| Site | Repo path (workspace-relative) | Public host | Language | Role |
|
|
10
|
+
|---|---|---|---|---|
|
|
11
|
+
| Authority Blog (portfolio flagship) | `authority-blog/` | `https://authority-blog.example.com/` | `en` | Authority site: expanded English masterclasses, tech radar, consulting conversion (`hire.md`) |
|
|
12
|
+
| Learn (notes / research) | `learn/` | `https://learn.authority-blog.example.com/` | `vi` | Vietnamese twin: research notes, series library, deep-research batch reports |
|
|
13
|
+
|
|
14
|
+
Both sites use Hugo + PaperMod. `learn` additionally runs a Hugo Book layout under `content/docs/`.
|
|
15
|
+
|
|
16
|
+
## Corpus Inventory (2026-09-13)
|
|
17
|
+
|
|
18
|
+
| Corpus | Authority Blog | Learn |
|
|
19
|
+
|---|---|---|
|
|
20
|
+
| Posts | 66 | 86 (7 internal reports `draft: true`) |
|
|
21
|
+
| Series dirs | 25 | 25 |
|
|
22
|
+
| Series files | 251 (225 chapters) | 251 (225 chapters) |
|
|
23
|
+
| Radar editions | 27 (2026-04 → 2026-09) | 63 (2026-04 → 2026-09) |
|
|
24
|
+
| Docs | — | 3 (Hugo Book) |
|
|
25
|
+
| Categories | 16 | 15 |
|
|
26
|
+
| Root pages | 7 | 8 |
|
|
27
|
+
| Total content files | 374 | 433 |
|
|
28
|
+
|
|
29
|
+
## Masterclass Twin Model
|
|
30
|
+
|
|
31
|
+
- Each flagship topic ships as a Vietnamese twin on `learn` (canonical notes) and an
|
|
32
|
+
expanded English masterclass on `authority-blog` (authority).
|
|
33
|
+
- Batch 1–5 deep research (5 × 100 rounds) has upgraded 70 posts on `learn` and the
|
|
34
|
+
mirrored flagships on `authority-blog` to masterclass standard: >20 KB, >2,500 words,
|
|
35
|
+
production-grade code, standardized Mermaid, quantitative tables.
|
|
36
|
+
- Deep-research reports live only on `learn` as `draft: true` posts
|
|
37
|
+
(`deep-research-100-rounds-report.md`, batches 3/4/5) — never publish on `authority-blog`.
|
|
38
|
+
|
|
39
|
+
## Cross-Site Authority Flow (one-way)
|
|
40
|
+
|
|
41
|
+
- `learn` → `authority-blog` only. 90 learn files link up to the English flagship via the
|
|
42
|
+
`> 🇬🇧 Read the English version...` callout.
|
|
43
|
+
- `authority-blog` → `learn` links are FORBIDDEN (0 occurrences as of snapshot; keep it that way).
|
|
44
|
+
- `canonicalURL` frontmatter always points at the file's own host — learn posts
|
|
45
|
+
canonicalize to `learn.authority-blog.example.com`, authority-blog posts to `authority-blog.example.com`.
|
|
46
|
+
|
|
47
|
+
## Publishing Notes
|
|
48
|
+
|
|
49
|
+
- Keep site roots and publishing notes here instead of in the global core.
|
|
50
|
+
- Answer-first coverage targets: authority-blog 61/66 posts, learn 69/86 posts (drafts exempt).
|
|
51
|
+
- Radar is authority-blog-only (`content/radar/YYYY-MM/`), monthly editions.
|