@vesviet/agent-skills 0.0.0-stage → 5.6.1
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 +244 -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,388 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
Excel Formula Recalculation and Auditing Oracle (recalc.py).
|
|
4
|
+
|
|
5
|
+
Zero-Formula-Error Guardrail for Financial Settlement (BF-12) & 20M Reports (LMO-5547).
|
|
6
|
+
Enforces the Zero Formula Error invariant on generated and modified Excel workbooks.
|
|
7
|
+
Integrates headless LibreOffice recalculation, external link risk detection,
|
|
8
|
+
and cell-level error auditing.
|
|
9
|
+
"""
|
|
10
|
+
|
|
11
|
+
from __future__ import annotations
|
|
12
|
+
|
|
13
|
+
import argparse
|
|
14
|
+
import json
|
|
15
|
+
import os
|
|
16
|
+
import re
|
|
17
|
+
import shutil
|
|
18
|
+
import subprocess
|
|
19
|
+
import sys
|
|
20
|
+
import tempfile
|
|
21
|
+
import uuid
|
|
22
|
+
import zipfile
|
|
23
|
+
from pathlib import Path
|
|
24
|
+
from typing import Any, Dict, List, Optional, Set, Tuple
|
|
25
|
+
|
|
26
|
+
try:
|
|
27
|
+
import openpyxl
|
|
28
|
+
except ImportError:
|
|
29
|
+
openpyxl = None
|
|
30
|
+
|
|
31
|
+
EXCEL_ERROR_TOKENS: Set[str] = {
|
|
32
|
+
"#NULL!",
|
|
33
|
+
"#DIV/0!",
|
|
34
|
+
"#VALUE!",
|
|
35
|
+
"#REF!",
|
|
36
|
+
"#NAME?",
|
|
37
|
+
"#NUM!",
|
|
38
|
+
"#N/A",
|
|
39
|
+
}
|
|
40
|
+
|
|
41
|
+
|
|
42
|
+
def find_libreoffice_binary() -> Optional[str]:
|
|
43
|
+
"""Locate headless LibreOffice / soffice binary across standard system paths."""
|
|
44
|
+
candidates = [
|
|
45
|
+
"libreoffice",
|
|
46
|
+
"soffice",
|
|
47
|
+
"/snap/bin/libreoffice",
|
|
48
|
+
"/usr/bin/libreoffice",
|
|
49
|
+
"/usr/bin/soffice",
|
|
50
|
+
"/usr/local/bin/libreoffice",
|
|
51
|
+
"/usr/local/bin/soffice",
|
|
52
|
+
"/Applications/LibreOffice.app/Contents/MacOS/soffice",
|
|
53
|
+
]
|
|
54
|
+
for candidate in candidates:
|
|
55
|
+
if shutil.which(candidate) or os.path.isfile(candidate):
|
|
56
|
+
return candidate
|
|
57
|
+
return None
|
|
58
|
+
|
|
59
|
+
|
|
60
|
+
def get_recalc_staging_dir() -> Path:
|
|
61
|
+
"""
|
|
62
|
+
Get a staging directory accessible by LibreOffice.
|
|
63
|
+
Snap-confined LibreOffice cannot access host /tmp or hidden directories in $HOME.
|
|
64
|
+
"""
|
|
65
|
+
snap_common = Path.home() / "snap" / "libreoffice" / "common"
|
|
66
|
+
if snap_common.exists():
|
|
67
|
+
staging_root = snap_common / "recalc_staging"
|
|
68
|
+
else:
|
|
69
|
+
staging_root = Path.home() / "recalc_staging"
|
|
70
|
+
try:
|
|
71
|
+
staging_root.mkdir(parents=True, exist_ok=True)
|
|
72
|
+
except Exception:
|
|
73
|
+
staging_root = Path(tempfile.gettempdir())
|
|
74
|
+
staging_root.mkdir(parents=True, exist_ok=True)
|
|
75
|
+
return staging_root
|
|
76
|
+
|
|
77
|
+
|
|
78
|
+
def external_links_at_risk(workbook_path: Path) -> List[str]:
|
|
79
|
+
"""
|
|
80
|
+
Detect external workbook links and dependencies in the .xlsx package.
|
|
81
|
+
Recalculating workbooks with external links in headless environments can drop
|
|
82
|
+
or corrupt linked values.
|
|
83
|
+
"""
|
|
84
|
+
risks: List[str] = []
|
|
85
|
+
if not zipfile.is_zipfile(workbook_path):
|
|
86
|
+
return ["Not a valid OOXML zip package"]
|
|
87
|
+
|
|
88
|
+
try:
|
|
89
|
+
with zipfile.ZipFile(workbook_path, "r") as z:
|
|
90
|
+
for name in z.namelist():
|
|
91
|
+
if name.startswith("xl/externalLinks/") and name.endswith(".xml"):
|
|
92
|
+
risks.append(f"External link part found: {name}")
|
|
93
|
+
|
|
94
|
+
# Scan sheet XMLs for external references: [1]Sheet1!A1 or '[Book.xlsx]Sheet'!A1
|
|
95
|
+
sheet_regex = re.compile(r"\[\d+\]|'\[[^\]]+\]")
|
|
96
|
+
for name in z.namelist():
|
|
97
|
+
if name.startswith("xl/worksheets/sheet") and name.endswith(".xml"):
|
|
98
|
+
content = z.read(name).decode("utf-8", errors="ignore")
|
|
99
|
+
if sheet_regex.search(content):
|
|
100
|
+
risks.append(f"External workbook formula reference found in {name}")
|
|
101
|
+
except Exception as e:
|
|
102
|
+
risks.append(f"Package inspection error: {e}")
|
|
103
|
+
|
|
104
|
+
return risks
|
|
105
|
+
|
|
106
|
+
|
|
107
|
+
def run_headless_recalculation(
|
|
108
|
+
libreoffice_bin: str, workbook_path: Path, timeout_sec: int = 30
|
|
109
|
+
) -> Tuple[bool, str, Optional[Path], Optional[str]]:
|
|
110
|
+
"""
|
|
111
|
+
Invoke LibreOffice in headless mode to force recalculation of formulas and save results to a temporary .xlsx workbook.
|
|
112
|
+
Returns: (success, message, recalculated_workbook_path, staging_directory_path)
|
|
113
|
+
"""
|
|
114
|
+
staging_root = get_recalc_staging_dir()
|
|
115
|
+
run_id = f"recalc_{os.getpid()}_{uuid.uuid4().hex[:8]}"
|
|
116
|
+
run_dir = staging_root / run_id
|
|
117
|
+
run_dir.mkdir(parents=True, exist_ok=True)
|
|
118
|
+
|
|
119
|
+
profile_dir = run_dir / "profile"
|
|
120
|
+
profile_dir.mkdir(parents=True, exist_ok=True)
|
|
121
|
+
in_dir = run_dir / "in"
|
|
122
|
+
in_dir.mkdir(parents=True, exist_ok=True)
|
|
123
|
+
out_dir = run_dir / "out"
|
|
124
|
+
out_dir.mkdir(parents=True, exist_ok=True)
|
|
125
|
+
|
|
126
|
+
staged_input = in_dir / workbook_path.name
|
|
127
|
+
try:
|
|
128
|
+
shutil.copyfile(workbook_path, staged_input)
|
|
129
|
+
except Exception as e:
|
|
130
|
+
return False, f"Staging copy error: {e}", None, str(run_dir)
|
|
131
|
+
|
|
132
|
+
cmd = [
|
|
133
|
+
libreoffice_bin,
|
|
134
|
+
"--headless",
|
|
135
|
+
f"-env:UserInstallation=file://{profile_dir}",
|
|
136
|
+
"--convert-to",
|
|
137
|
+
"xlsx",
|
|
138
|
+
"--outdir",
|
|
139
|
+
str(out_dir),
|
|
140
|
+
str(staged_input),
|
|
141
|
+
]
|
|
142
|
+
try:
|
|
143
|
+
res = subprocess.run(cmd, capture_output=True, text=True, timeout=timeout_sec)
|
|
144
|
+
out_file = out_dir / staged_input.name
|
|
145
|
+
if res.returncode != 0 or not out_file.is_file():
|
|
146
|
+
err_msg = res.stderr.strip() or f"conversion failed (exit {res.returncode})"
|
|
147
|
+
return False, f"LibreOffice failed: {err_msg}", None, str(run_dir)
|
|
148
|
+
return True, "Headless recalculation completed", out_file, str(run_dir)
|
|
149
|
+
except subprocess.TimeoutExpired:
|
|
150
|
+
return False, f"Headless recalculation timed out after {timeout_sec}s", None, str(run_dir)
|
|
151
|
+
except Exception as e:
|
|
152
|
+
return False, f"Execution error: {str(e)}", None, str(run_dir)
|
|
153
|
+
|
|
154
|
+
|
|
155
|
+
def audit_workbook_errors(
|
|
156
|
+
workbook_path: Path,
|
|
157
|
+
recalculated_path: Optional[Path] = None,
|
|
158
|
+
allow_unresolved_external: bool = False,
|
|
159
|
+
) -> Dict[str, Any]:
|
|
160
|
+
"""
|
|
161
|
+
Scan workbook for formula errors using openpyxl two-pass verification.
|
|
162
|
+
Pass 1: data_only=False (inspect formulas, syntax errors).
|
|
163
|
+
Pass 2: data_only=True (inspect computed cached values from recalculated or original workbook).
|
|
164
|
+
"""
|
|
165
|
+
if openpyxl is None:
|
|
166
|
+
return {
|
|
167
|
+
"status": "FAILED",
|
|
168
|
+
"error": "openpyxl library is required for cell-level formula auditing",
|
|
169
|
+
"errors_found": True,
|
|
170
|
+
"error_count": 1,
|
|
171
|
+
"errors": [{"error": "openpyxl not installed"}],
|
|
172
|
+
"error_details": [],
|
|
173
|
+
"formula_count": 0,
|
|
174
|
+
"total_cells_checked": 0,
|
|
175
|
+
"zero_error_invariant_verified": False,
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
errors: List[Dict[str, str]] = []
|
|
179
|
+
formula_count = 0
|
|
180
|
+
total_cells = 0
|
|
181
|
+
external_regex = re.compile(r"\[\d+\]|'\[[^\]]+\]")
|
|
182
|
+
|
|
183
|
+
try:
|
|
184
|
+
# Pass 1: data_only=False (inspect formulas, syntax errors)
|
|
185
|
+
wb_formula = openpyxl.load_workbook(workbook_path, data_only=False, read_only=False)
|
|
186
|
+
except Exception as e:
|
|
187
|
+
return {
|
|
188
|
+
"status": "FAILED",
|
|
189
|
+
"error": f"Failed to load workbook formulas: {e}",
|
|
190
|
+
"errors_found": True,
|
|
191
|
+
"error_count": 1,
|
|
192
|
+
"errors": [{"error": str(e)}],
|
|
193
|
+
"error_details": [],
|
|
194
|
+
"formula_count": 0,
|
|
195
|
+
"total_cells_checked": 0,
|
|
196
|
+
"zero_error_invariant_verified": False,
|
|
197
|
+
}
|
|
198
|
+
|
|
199
|
+
try:
|
|
200
|
+
# Pass 2: data_only=True (inspect computed cached values from recalculated or original workbook)
|
|
201
|
+
data_source = recalculated_path if (recalculated_path and recalculated_path.is_file()) else workbook_path
|
|
202
|
+
wb_data = openpyxl.load_workbook(data_source, data_only=True, read_only=False)
|
|
203
|
+
except Exception:
|
|
204
|
+
wb_data = None
|
|
205
|
+
|
|
206
|
+
for sheet_name in wb_formula.sheetnames:
|
|
207
|
+
ws_formula = wb_formula[sheet_name]
|
|
208
|
+
ws_data = wb_data[sheet_name] if wb_data and sheet_name in wb_data.sheetnames else None
|
|
209
|
+
|
|
210
|
+
for row in ws_formula.iter_rows():
|
|
211
|
+
for cell in row:
|
|
212
|
+
total_cells += 1
|
|
213
|
+
coord = cell.coordinate
|
|
214
|
+
val_formula = cell.value
|
|
215
|
+
|
|
216
|
+
formula_str = ""
|
|
217
|
+
cell_has_error = False
|
|
218
|
+
if isinstance(val_formula, str) and val_formula.startswith("="):
|
|
219
|
+
formula_count += 1
|
|
220
|
+
formula_str = val_formula
|
|
221
|
+
# Check for literal error token inside formula expression
|
|
222
|
+
for err_token in EXCEL_ERROR_TOKENS:
|
|
223
|
+
if err_token in formula_str:
|
|
224
|
+
errors.append({
|
|
225
|
+
"sheet": sheet_name,
|
|
226
|
+
"cell": coord,
|
|
227
|
+
"error_type": "formula_syntax_error",
|
|
228
|
+
"value": formula_str,
|
|
229
|
+
"formula": formula_str,
|
|
230
|
+
})
|
|
231
|
+
cell_has_error = True
|
|
232
|
+
break
|
|
233
|
+
|
|
234
|
+
# Check evaluated value in data sheet if not already recorded as formula syntax error
|
|
235
|
+
if not cell_has_error and ws_data is not None:
|
|
236
|
+
val_eval = ws_data[coord].value
|
|
237
|
+
val_eval_str = str(val_eval).strip() if val_eval is not None else ""
|
|
238
|
+
if val_eval_str in EXCEL_ERROR_TOKENS:
|
|
239
|
+
# Under --force, unresolved remote external dependencies evaluating to #N/A or #REF!
|
|
240
|
+
# in headless mode (due to missing remote files) are bypassed
|
|
241
|
+
is_external_ref = bool(external_regex.search(formula_str))
|
|
242
|
+
if allow_unresolved_external and is_external_ref and val_eval_str in {"#N/A", "#REF!"}:
|
|
243
|
+
pass
|
|
244
|
+
else:
|
|
245
|
+
errors.append({
|
|
246
|
+
"sheet": sheet_name,
|
|
247
|
+
"cell": coord,
|
|
248
|
+
"error_type": val_eval_str,
|
|
249
|
+
"value": val_eval_str,
|
|
250
|
+
"formula": formula_str,
|
|
251
|
+
})
|
|
252
|
+
|
|
253
|
+
wb_formula.close()
|
|
254
|
+
if wb_data:
|
|
255
|
+
wb_data.close()
|
|
256
|
+
|
|
257
|
+
errors_found = len(errors) > 0
|
|
258
|
+
return {
|
|
259
|
+
"status": "FAILED" if errors_found else "SUCCESS",
|
|
260
|
+
"file": str(workbook_path),
|
|
261
|
+
"total_cells_checked": total_cells,
|
|
262
|
+
"formula_count": formula_count,
|
|
263
|
+
"error_count": len(errors),
|
|
264
|
+
"errors_found": errors_found,
|
|
265
|
+
"errors": errors,
|
|
266
|
+
"error_details": errors,
|
|
267
|
+
"zero_error_invariant_verified": not errors_found,
|
|
268
|
+
"tool": "recalc.py",
|
|
269
|
+
}
|
|
270
|
+
|
|
271
|
+
|
|
272
|
+
def main() -> int:
|
|
273
|
+
parser = argparse.ArgumentParser(
|
|
274
|
+
description="Audit Excel workbook for formula errors (BF-12 / LMO-5547).",
|
|
275
|
+
usage="%(prog)s [workbook] [--file FILE] [--output-dir DIR] [--json] [--verbose] [--timeout SEC] [--force] [--zero-error-fail]",
|
|
276
|
+
)
|
|
277
|
+
parser.add_argument("workbook", nargs="?", default=None, type=Path, help="Target .xlsx workbook path")
|
|
278
|
+
parser.add_argument("--file", type=Path, default=None, help="Target .xlsx workbook path (alternative to positional)")
|
|
279
|
+
parser.add_argument("--output-dir", type=Path, default=None, help="Directory to save audit report")
|
|
280
|
+
parser.add_argument("--timeout", type=int, default=30, help="Recalculation timeout in seconds (default: 30)")
|
|
281
|
+
parser.add_argument("--force", action="store_true", help="Force recalculation even if external links are detected")
|
|
282
|
+
parser.add_argument("--json", action="store_true", help="Output results as JSON")
|
|
283
|
+
parser.add_argument("--verbose", "-v", action="store_true", help="Verbose logging")
|
|
284
|
+
parser.add_argument("--zero-error-fail", action="store_true", help="Explicitly assert zero formula error invariant (always enforced)")
|
|
285
|
+
|
|
286
|
+
args = parser.parse_args()
|
|
287
|
+
|
|
288
|
+
target_path = args.file or args.workbook
|
|
289
|
+
if not target_path:
|
|
290
|
+
parser.print_help(sys.stderr)
|
|
291
|
+
return 2
|
|
292
|
+
|
|
293
|
+
wb_path = target_path.resolve()
|
|
294
|
+
if not wb_path.is_file():
|
|
295
|
+
print(f"Error: File not found: {wb_path}", file=sys.stderr)
|
|
296
|
+
return 2
|
|
297
|
+
|
|
298
|
+
# Check external links
|
|
299
|
+
risks = external_links_at_risk(wb_path)
|
|
300
|
+
if risks and not args.force:
|
|
301
|
+
msg = f"Warning: External dependencies detected in {wb_path.name}:\n" + "\n".join(f" - {r}" for r in risks)
|
|
302
|
+
msg += "\nRecalculation aborted to protect external data. Use --force to override."
|
|
303
|
+
if args.json:
|
|
304
|
+
result = {
|
|
305
|
+
"status": "FAILED",
|
|
306
|
+
"recalc_executed": False,
|
|
307
|
+
"external_links_status": "blocked",
|
|
308
|
+
"risks": risks,
|
|
309
|
+
"errors_found": True,
|
|
310
|
+
"error_count": len(risks),
|
|
311
|
+
"zero_error_invariant_verified": False,
|
|
312
|
+
}
|
|
313
|
+
print(json.dumps(result, indent=2))
|
|
314
|
+
else:
|
|
315
|
+
print(msg, file=sys.stderr)
|
|
316
|
+
return 1
|
|
317
|
+
|
|
318
|
+
# Attempt headless recalculation if LibreOffice is present
|
|
319
|
+
lo_bin = find_libreoffice_binary()
|
|
320
|
+
recalc_executed = False
|
|
321
|
+
recalc_message = ""
|
|
322
|
+
recalculated_path: Optional[Path] = None
|
|
323
|
+
staging_dir: Optional[str] = None
|
|
324
|
+
|
|
325
|
+
if lo_bin:
|
|
326
|
+
success, recalc_message, recalculated_path, staging_dir = run_headless_recalculation(
|
|
327
|
+
lo_bin, wb_path, args.timeout
|
|
328
|
+
)
|
|
329
|
+
recalc_executed = success
|
|
330
|
+
else:
|
|
331
|
+
recalc_message = "LibreOffice not detected; skipping headless recalculation pass"
|
|
332
|
+
|
|
333
|
+
try:
|
|
334
|
+
# Audit workbook errors
|
|
335
|
+
audit = audit_workbook_errors(
|
|
336
|
+
wb_path,
|
|
337
|
+
recalculated_path=recalculated_path,
|
|
338
|
+
allow_unresolved_external=args.force,
|
|
339
|
+
)
|
|
340
|
+
finally:
|
|
341
|
+
if staging_dir and os.path.isdir(staging_dir):
|
|
342
|
+
shutil.rmtree(staging_dir, ignore_errors=True)
|
|
343
|
+
|
|
344
|
+
audit["recalc_executed"] = recalc_executed
|
|
345
|
+
audit["recalc_engine"] = "libreoffice-headless" if lo_bin else "openpyxl-data-only"
|
|
346
|
+
audit["recalc_message"] = recalc_message
|
|
347
|
+
audit["external_links_status"] = "clean" if not risks else ("forced" if args.force else "risk_detected")
|
|
348
|
+
|
|
349
|
+
if args.output_dir:
|
|
350
|
+
args.output_dir.mkdir(parents=True, exist_ok=True)
|
|
351
|
+
report_file = args.output_dir / f"{wb_path.stem}_recalc_report.json"
|
|
352
|
+
with open(report_file, "w") as f:
|
|
353
|
+
json.dump(audit, f, indent=2)
|
|
354
|
+
|
|
355
|
+
if args.json:
|
|
356
|
+
print(json.dumps(audit, indent=2))
|
|
357
|
+
return 1 if audit["errors_found"] else 0
|
|
358
|
+
else:
|
|
359
|
+
print("=" * 80)
|
|
360
|
+
print(f"EXCEL FORMULA INTEGRITY AUDIT: {wb_path.name}")
|
|
361
|
+
print("=" * 80)
|
|
362
|
+
print(f"Status : {audit['status']}")
|
|
363
|
+
print(f"Engine : {audit['recalc_engine']}")
|
|
364
|
+
print(f"Recalc Executed : {audit['recalc_executed']} ({recalc_message})")
|
|
365
|
+
print(f"External Links : {audit['external_links_status']}")
|
|
366
|
+
print(f"Total Errors Found: {audit['error_count']}")
|
|
367
|
+
print(f"Formulas Checked : {audit['formula_count']}")
|
|
368
|
+
print(f"Cells Checked : {audit['total_cells_checked']}")
|
|
369
|
+
print("-" * 80)
|
|
370
|
+
if audit["errors_found"]:
|
|
371
|
+
print(f"{'Sheet':<20} | {'Cell':<8} | {'Error':<12} | {'Formula'}")
|
|
372
|
+
print("-" * 80)
|
|
373
|
+
for err in audit["error_details"]:
|
|
374
|
+
sheet = err.get("sheet", "")
|
|
375
|
+
cell = err.get("cell", "")
|
|
376
|
+
val = err.get("value") or err.get("error_type", "")
|
|
377
|
+
formula = err.get("formula", "")
|
|
378
|
+
print(f"{sheet:<20} | {cell:<8} | {val:<12} | {formula}")
|
|
379
|
+
print("=" * 80)
|
|
380
|
+
print("❌ VERDICT: FAIL (Zero Formula Error invariant violated)")
|
|
381
|
+
return 1
|
|
382
|
+
else:
|
|
383
|
+
print("🎉 VERDICT: PASS (Zero formula errors detected)")
|
|
384
|
+
return 0
|
|
385
|
+
|
|
386
|
+
|
|
387
|
+
if __name__ == "__main__":
|
|
388
|
+
sys.exit(main())
|
|
@@ -0,0 +1,170 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: configure-llms-txt
|
|
3
|
+
description: Create and maintain the llms.txt and llms-full.txt files for a domain or project, making documentation and content discoverable by AI agents, LLMs, and automated tools per the llmstxt.org specification. Use when a site or API has AI agent interfaces, when optimizing for Generative Engine Optimization (GEO) and Agentic SEO (A-SEO), or when implementing the dual-audience documentation standard required by technical-writer role.
|
|
4
|
+
allowed-tools: [read_file, write_file, edit_file, create_file, search_code, fetch]
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Configure llms.txt
|
|
8
|
+
|
|
9
|
+
Use this skill to implement the `llms.txt` standard for any domain that serves documentation, APIs, or content that AI agents, LLMs, or automated tools should be able to discover and ingest efficiently.
|
|
10
|
+
|
|
11
|
+
## When to Use
|
|
12
|
+
|
|
13
|
+
- a site/API has AI agent interfaces
|
|
14
|
+
- optimizing for GEO / Agentic SEO
|
|
15
|
+
- implementing dual-audience doc standard
|
|
16
|
+
- creating llms.txt / llms-full.txt
|
|
17
|
+
|
|
18
|
+
## Core Rules
|
|
19
|
+
|
|
20
|
+
- **Placement**: host at `/llms.txt` at the root of the domain — not in a subdirectory; v2 additionally allows per-subpath `llms.txt` files covering everything beneath that path
|
|
21
|
+
- **Format**: strictly follow the llmstxt.org v2 (August 2026) Markdown structure: `# Project Name` → `> blockquote summary` → `## Sections` → `- [Title](url.md): one-sentence description`; no HTML, no nav chrome, no promotional copy
|
|
22
|
+
- **Token budget**: keep `/llms.txt` small and curated (in-context, not exhaustive); defer full text to `/llms-full.txt`
|
|
23
|
+
- **v2 link relations**: serve per-page Markdown twins (`page.html.md` or `page.md`) and emit `Link: </docs/page.md>; rel="alternate"; type="text/markdown"` plus `Link: </llms.txt>; rel="describedby"` on served HTML (or the HTTP `Link:` header) so agents discover the manifest and page-level Markdown without guessing URLs
|
|
24
|
+
- **Scope honestly — agents only, no Google effect**: llms.txt serves agent consumers (OpenAI, Anthropic, and Gemini all publish their own; Chrome Lighthouse audits for one as an agentic-browsing check) — Google Search explicitly ignores llms.txt (neither helps nor harms rankings); never present llms.txt as an AI-Overviews/AI-Mode ranking lever
|
|
25
|
+
- **Not a permissions file**: `llms.txt` manages discoverability — use `robots.txt` for access control; never conflate them
|
|
26
|
+
- **Automated maintenance via CI**: treat `llms.txt` as a living document; a CI pipeline must validate every linked URL resolves to a clean Markdown endpoint and auto-commit updates when docs change
|
|
27
|
+
- **DUAL-AUDIENCE LOCK**: for any system with AI agent interfaces, `llms.txt` is a mandatory deliverable; link `/.well-known/api-catalog` (RFC 9727), `/.well-known/agent-card.json` (A2A 1.0), `/.well-known/ai-catalog.json` (AI Catalog), and MCP server cards when present — HTML-only documentation without `llms.txt` is a documentation failure
|
|
28
|
+
|
|
29
|
+
## File Structure Specification (llmstxt.org)
|
|
30
|
+
|
|
31
|
+
### Minimal `llms.txt`
|
|
32
|
+
|
|
33
|
+
```markdown
|
|
34
|
+
# Project Name
|
|
35
|
+
|
|
36
|
+
> One-paragraph blockquote summary of what this project/site is, its purpose,
|
|
37
|
+
> primary audience, and key concepts. Written for LLM context ingestion —
|
|
38
|
+
> precise, factual, no marketing language.
|
|
39
|
+
|
|
40
|
+
## Key Sections
|
|
41
|
+
|
|
42
|
+
- [Getting Started](https://example.com/docs/getting-started): Installation and first steps
|
|
43
|
+
- [API Reference](https://example.com/docs/api): Full API endpoint documentation
|
|
44
|
+
- [Concepts](https://example.com/docs/concepts): Core architectural concepts
|
|
45
|
+
- [Changelog](https://example.com/changelog): Version history
|
|
46
|
+
|
|
47
|
+
## Agent Interfaces (when applicable)
|
|
48
|
+
|
|
49
|
+
- [Agent Card](https://example.com/.well-known/agent-card.json): A2A 1.0 agent discovery
|
|
50
|
+
- [API Catalog](https://example.com/.well-known/api-catalog): RFC 9727 API discovery
|
|
51
|
+
- [MCP Server](https://example.com/.well-known/mcp/server-card.json): MCP server card
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### `llms-full.txt` (companion file)
|
|
55
|
+
|
|
56
|
+
Full-text version: concatenate all primary documentation pages in Markdown format. Used by LLMs that can ingest large context in a single request.
|
|
57
|
+
|
|
58
|
+
```bash
|
|
59
|
+
# Auto-generate llms-full.txt from docs directory
|
|
60
|
+
find docs/ -name "*.md" | sort | while read f; do
|
|
61
|
+
echo "# File: $f"
|
|
62
|
+
cat "$f"
|
|
63
|
+
echo ""
|
|
64
|
+
echo "---"
|
|
65
|
+
done > public/llms-full.txt
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
## Suggested Process
|
|
69
|
+
|
|
70
|
+
### Astro
|
|
71
|
+
```javascript
|
|
72
|
+
// astro.config.mjs — static llms.txt
|
|
73
|
+
// Place llms.txt in public/ directory
|
|
74
|
+
// Astro serves public/ directly at root
|
|
75
|
+
// public/llms.txt → example.com/llms.txt
|
|
76
|
+
```
|
|
77
|
+
|
|
78
|
+
### Next.js
|
|
79
|
+
```javascript
|
|
80
|
+
// app/llms.txt/route.ts
|
|
81
|
+
export async function GET() {
|
|
82
|
+
const content = generateLlmsTxt(); // dynamic generation from content index
|
|
83
|
+
return new Response(content, {
|
|
84
|
+
headers: { 'Content-Type': 'text/plain; charset=utf-8' }
|
|
85
|
+
});
|
|
86
|
+
}
|
|
87
|
+
```
|
|
88
|
+
|
|
89
|
+
### Workers (Cloudflare)
|
|
90
|
+
```typescript
|
|
91
|
+
// In worker handler
|
|
92
|
+
if (url.pathname === '/llms.txt') {
|
|
93
|
+
return new Response(LLMS_TXT_CONTENT, {
|
|
94
|
+
headers: { 'Content-Type': 'text/plain; charset=utf-8' }
|
|
95
|
+
});
|
|
96
|
+
}
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
### Static sites (Hugo, Jekyll)
|
|
100
|
+
Place in the `static/` directory (Hugo) or root (Jekyll). CI auto-generates via build script.
|
|
101
|
+
|
|
102
|
+
## CI Automation (keep llms.txt fresh)
|
|
103
|
+
|
|
104
|
+
```yaml
|
|
105
|
+
# .github/workflows/update-llms-txt.yml
|
|
106
|
+
name: Update llms.txt
|
|
107
|
+
on:
|
|
108
|
+
push:
|
|
109
|
+
paths: ['docs/**', 'content/**', 'src/pages/**']
|
|
110
|
+
jobs:
|
|
111
|
+
update:
|
|
112
|
+
runs-on: ubuntu-latest
|
|
113
|
+
steps:
|
|
114
|
+
- uses: actions/checkout@v4
|
|
115
|
+
- name: Regenerate llms.txt
|
|
116
|
+
run: node scripts/generate-llms-txt.js
|
|
117
|
+
- name: Commit if changed
|
|
118
|
+
run: |
|
|
119
|
+
git diff --exit-code public/llms.txt || (git add public/llms.txt && git commit -m "chore: update llms.txt")
|
|
120
|
+
```
|
|
121
|
+
|
|
122
|
+
## Checklist
|
|
123
|
+
|
|
124
|
+
- [ ] `/llms.txt` accessible at domain root (not subdirectory)
|
|
125
|
+
- [ ] H1 heading = project/site name
|
|
126
|
+
- [ ] Blockquote summary is factual and machine-readable (no marketing language)
|
|
127
|
+
- [ ] All primary doc paths listed with accurate URLs
|
|
128
|
+
- [ ] Agent interfaces section present if system has `agent-card.json`, `api-catalog`, or MCP server
|
|
129
|
+
- [ ] `/llms-full.txt` generated if content volume > 50KB total
|
|
130
|
+
- [ ] `llms.txt` linked from `robots.txt` (recommended for discoverability)
|
|
131
|
+
- [ ] Automated CI update configured so `llms.txt` stays current on doc changes
|
|
132
|
+
- [ ] Verified: AI crawlers can access (no robots.txt block, no auth wall)
|
|
133
|
+
- [ ] Tested: fetch `curl https://yourdomain.com/llms.txt` returns valid content
|
|
134
|
+
|
|
135
|
+
## Output Format
|
|
136
|
+
|
|
137
|
+
- `/public/llms.txt` or `/static/llms.txt` — deployed at domain root
|
|
138
|
+
- `/public/llms-full.txt` — companion full-text (optional but recommended)
|
|
139
|
+
- Updated `robots.txt` with `llms.txt` reference
|
|
140
|
+
|
|
141
|
+
## Failure Modes
|
|
142
|
+
|
|
143
|
+
- **`/llms.txt` not regenerated on doc change**: a doc is added but the AI-readable index is stale. **Mitigation:** regenerate `/llms.txt` and `/llms-full.txt` on every doc change; fail the CI on staleness.
|
|
144
|
+
- **External link rot**: a doc references a 404. **Mitigation:** run broken-link checker in CI; fail the build on 404.
|
|
145
|
+
- **Schema invalid**: the manifest is published with a malformed JSON. **Mitigation:** validate the JSON against the current schema; fail the build on schema mismatch.
|
|
146
|
+
- **Secret leaked in the manifest**: a token, customer id, or internal hostname is pasted into the manifest. **Mitigation:** run secret scan on every commit; reject the change on detection.
|
|
147
|
+
|
|
148
|
+
## Output Contracts
|
|
149
|
+
|
|
150
|
+
When the `llms.txt` / `llms-full.txt` change is consumed by an AI agent,
|
|
151
|
+
a doc site, or a CI gate, emit:
|
|
152
|
+
|
|
153
|
+
- **`contracts/schemas/documentation-handoff.json`** with the manifest path, the `schema_version`, the include/exclude list, and the validation timestamp.
|
|
154
|
+
- For human-readable reports, a markdown diff of the manifest is sufficient.
|
|
155
|
+
|
|
156
|
+
Skip emission for trivial manifest updates that do not cross a role boundary.
|
|
157
|
+
|
|
158
|
+
## Security Guardrails (OWASP ASI)
|
|
159
|
+
|
|
160
|
+
- **ASI04 Supply Chain**: external links in the manifest must be validated against the live target; treat 404s as a CI failure.
|
|
161
|
+
- **ASI05 RCE Guard**: never construct the manifest from external or user-supplied content without strict schema validation.
|
|
162
|
+
- **ASI07 Inter-Agent Communication**: the manifest is consumed by external AI agents; treat it as a public contract and review all changes before publish.
|
|
163
|
+
- **ASI09 Human-Agent Trust Exploitation**: do not present a manifest as "AI-ready" without a successful schema validation run.
|
|
164
|
+
|
|
165
|
+
## Related Skills
|
|
166
|
+
|
|
167
|
+
- **write-documentation**: produces the docs that `llms.txt` indexes
|
|
168
|
+
- **manage-api-catalog**: RFC 9727 API catalog should be linked from `llms.txt`
|
|
169
|
+
- **optimize-seo**: GEO/AEO strategy depends on `llms.txt` as a discoverability primitive
|
|
170
|
+
- **configure-agent-headers**: `agent-card.json` endpoint referenced in `llms.txt`
|