claude-code-arcane 1.0.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/CHANGELOG.md +100 -0
- package/LICENSE +26 -0
- package/README.md +372 -0
- package/agents/ai/ai-architect.md +80 -0
- package/agents/ai/data-engineer.md +66 -0
- package/agents/ai/data-scientist.md +58 -0
- package/agents/ai/ml-engineer.md +61 -0
- package/agents/business/business-ops-lead.md +64 -0
- package/agents/business/financial-analyst.md +62 -0
- package/agents/business/sales-engineer.md +74 -0
- package/agents/clevel/ceo-advisor.md +64 -0
- package/agents/clevel/cfo-advisor.md +63 -0
- package/agents/clevel/chief-of-staff.md +60 -0
- package/agents/clevel/cmo-advisor.md +67 -0
- package/agents/clevel/coo-advisor.md +79 -0
- package/agents/clevel/cto-advisor.md +72 -0
- package/agents/devops/cloud-architect.md +52 -0
- package/agents/devops/platform-lead.md +72 -0
- package/agents/devops/sre-lead.md +100 -0
- package/agents/engineering/android-engineer.md +78 -0
- package/agents/engineering/backend-architect.md +127 -0
- package/agents/engineering/database-architect.md +138 -0
- package/agents/engineering/flutter-engineer.md +75 -0
- package/agents/engineering/frontend-architect.md +138 -0
- package/agents/engineering/go-engineer.md +102 -0
- package/agents/engineering/ios-engineer.md +76 -0
- package/agents/engineering/node-engineer.md +107 -0
- package/agents/engineering/react-engineer.md +109 -0
- package/agents/engineering/react-native-engineer.md +112 -0
- package/agents/engineering/sql-specialist.md +106 -0
- package/agents/game/accessibility-specialist.md +150 -0
- package/agents/game/ai-programmer.md +95 -0
- package/agents/game/analytics-engineer.md +101 -0
- package/agents/game/art-director.md +64 -0
- package/agents/game/economy-designer.md +143 -0
- package/agents/game/game-designer.md +70 -0
- package/agents/game/gameplay-programmer.md +133 -0
- package/agents/game/lead-programmer.md +62 -0
- package/agents/game/level-designer.md +115 -0
- package/agents/game/live-ops-designer.md +184 -0
- package/agents/game/narrative-director.md +60 -0
- package/agents/game/network-programmer.md +98 -0
- package/agents/game/performance-analyst.md +112 -0
- package/agents/game/qa-lead.md +65 -0
- package/agents/game/qa-tester-gamedev.md +230 -0
- package/agents/game/release-manager.md +65 -0
- package/agents/game/sound-designer.md +85 -0
- package/agents/game/systems-designer.md +157 -0
- package/agents/game/technical-artist.md +108 -0
- package/agents/game/technical-director.md +74 -0
- package/agents/game/ue-replication-specialist.md +143 -0
- package/agents/game/unity-shader-specialist.md +178 -0
- package/agents/game/unity-specialist.md +184 -0
- package/agents/game/unreal-specialist.md +172 -0
- package/agents/game/ux-designer.md +112 -0
- package/agents/game/world-builder.md +111 -0
- package/agents/game/writer.md +104 -0
- package/agents/integrations/api-tools-specialist.md +209 -0
- package/agents/integrations/comms-tools-specialist.md +159 -0
- package/agents/integrations/design-tools-specialist.md +129 -0
- package/agents/integrations/docs-tools-specialist.md +116 -0
- package/agents/integrations/integrations-architect.md +144 -0
- package/agents/integrations/project-tools-specialist.md +129 -0
- package/agents/management/delivery-manager.md +105 -0
- package/agents/management/program-director.md +55 -0
- package/agents/management/project-manager.md +126 -0
- package/agents/management/scrum-master.md +96 -0
- package/agents/marketing/content-lead.md +74 -0
- package/agents/marketing/growth-lead.md +72 -0
- package/agents/marketing/marketing-analyst.md +89 -0
- package/agents/marketing/marketing-director.md +75 -0
- package/agents/marketing/seo-lead.md +80 -0
- package/agents/product/chief-product-officer.md +79 -0
- package/agents/product/design-system-lead.md +76 -0
- package/agents/product/product-manager.md +132 -0
- package/agents/product/ui-lead.md +73 -0
- package/agents/product/ux-lead.md +103 -0
- package/agents/quality/qa-director.md +121 -0
- package/agents/quality/qa-engineer.md +92 -0
- package/agents/quality/security-architect.md +144 -0
- package/agents/regulatory/compliance-officer.md +88 -0
- package/agents/regulatory/quality-manager.md +90 -0
- package/agents/regulatory/regulatory-director.md +92 -0
- package/agents/visualnovel/vn-comfyui-artist.md +91 -0
- package/agents/visualnovel/vn-narrative-director.md +86 -0
- package/agents/visualnovel/vn-producer.md +108 -0
- package/agents/visualnovel/vn-renpy-developer.md +118 -0
- package/agents/visualnovel/vn-scene-director.md +98 -0
- package/agents/visualnovel/vn-ui-designer.md +97 -0
- package/dist/cli.js +2352 -0
- package/docs/SKILLS-CATALOG.md +457 -0
- package/docs/USER-GUIDE.md +543 -0
- package/docs/agent-hierarchy.md +133 -0
- package/docs/coding-standards.md +135 -0
- package/docs/collaborative-design.md +439 -0
- package/docs/context-management.md +200 -0
- package/docs/coordination-rules.md +164 -0
- package/docs/directory-structure.md +156 -0
- package/docs/division-structure.md +135 -0
- package/docs/gamedev/coding-standards.md +184 -0
- package/docs/gates/README.md +169 -0
- package/docs/gates/gamedev-gates.md +509 -0
- package/docs/gates/software-gates.md +449 -0
- package/docs/software/coding-standards.md +165 -0
- package/docs/technical-preferences.md +61 -0
- package/docs/templates/accessibility-requirements.md +331 -0
- package/docs/templates/architecture-decision-record.md +177 -0
- package/docs/templates/architecture-doc-from-code.md +266 -0
- package/docs/templates/architecture-traceability.md +101 -0
- package/docs/templates/changelog-template.md +62 -0
- package/docs/templates/collaborative-protocols/design-agent-protocol.md +157 -0
- package/docs/templates/collaborative-protocols/implementation-agent-protocol.md +160 -0
- package/docs/templates/collaborative-protocols/leadership-agent-protocol.md +181 -0
- package/docs/templates/design-doc-from-implementation.md +204 -0
- package/docs/templates/incident-response.md +135 -0
- package/docs/templates/interaction-pattern-library.md +1089 -0
- package/docs/templates/milestone-definition.md +79 -0
- package/docs/templates/post-mortem.md +69 -0
- package/docs/templates/prd.md +222 -0
- package/docs/templates/project-stage-report.md +218 -0
- package/docs/templates/release-checklist-template.md +125 -0
- package/docs/templates/release-notes.md +103 -0
- package/docs/templates/rfc.md +256 -0
- package/docs/templates/risk-register-entry.md +58 -0
- package/docs/templates/skill-test-spec.md +96 -0
- package/docs/templates/sprint-plan.md +75 -0
- package/docs/templates/technical-design-document.md +98 -0
- package/docs/templates/test-evidence.md +86 -0
- package/docs/templates/test-plan.md +151 -0
- package/docs/templates/ux-spec.md +544 -0
- package/hooks/check-update.sh +82 -0
- package/hooks/detect-division.sh +28 -0
- package/hooks/detect-gaps.sh +230 -0
- package/hooks/log-agent-stop.sh +7 -0
- package/hooks/log-agent.sh +7 -0
- package/hooks/notify.sh +7 -0
- package/hooks/post-compact.sh +7 -0
- package/hooks/pre-compact.sh +7 -0
- package/hooks/session-start.sh +78 -0
- package/hooks/session-stop.sh +7 -0
- package/hooks/statusline.sh +98 -0
- package/hooks/validate-assets.sh +10 -0
- package/hooks/validate-commit.sh +24 -0
- package/hooks/validate-push.sh +21 -0
- package/hooks/validate-secrets.sh +23 -0
- package/hooks/validate-skill-change.sh +19 -0
- package/package.json +63 -0
- package/profiles/agile.yaml +60 -0
- package/profiles/ai.yaml +27 -0
- package/profiles/android-native.yaml +36 -0
- package/profiles/backend-go.yaml +56 -0
- package/profiles/backend-ts.yaml +59 -0
- package/profiles/business.yaml +24 -0
- package/profiles/clevel.yaml +48 -0
- package/profiles/clickup.yaml +21 -0
- package/profiles/core.yaml +83 -0
- package/profiles/database.yaml +28 -0
- package/profiles/design.yaml +30 -0
- package/profiles/docs.yaml +31 -0
- package/profiles/finance.yaml +23 -0
- package/profiles/flutter.yaml +37 -0
- package/profiles/frontend.yaml +39 -0
- package/profiles/infra.yaml +47 -0
- package/profiles/integrations.yaml +23 -0
- package/profiles/ios-native.yaml +37 -0
- package/profiles/jira.yaml +21 -0
- package/profiles/marketing.yaml +64 -0
- package/profiles/mobile.yaml +39 -0
- package/profiles/regulatory.yaml +33 -0
- package/profiles/security.yaml +30 -0
- package/profiles/self-improving.yaml +22 -0
- package/profiles/statusline.yaml +21 -0
- package/profiles/testing.yaml +32 -0
- package/profiles/unity-design.yaml +37 -0
- package/profiles/unity-dev.yaml +44 -0
- package/profiles/visual-novel.yaml +54 -0
- package/rules/ai-code.md +60 -0
- package/rules/api-code.md +41 -0
- package/rules/backend-code.md +35 -0
- package/rules/data-files.md +58 -0
- package/rules/frontend-code.md +35 -0
- package/rules/gamedev/ai-code.md +15 -0
- package/rules/gamedev/design-docs.md +18 -0
- package/rules/gamedev/engine-code.md +41 -0
- package/rules/gamedev/gameplay-code.md +31 -0
- package/rules/gamedev/narrative.md +15 -0
- package/rules/gamedev/network-code.md +15 -0
- package/rules/gamedev/shader-code.md +43 -0
- package/rules/gamedev/ui-code.md +15 -0
- package/rules/gamedev/vn-code.md +37 -0
- package/rules/implementation-workflow.md +48 -0
- package/rules/infra-code.md +47 -0
- package/rules/migration-code.md +41 -0
- package/rules/prototype-code.md +40 -0
- package/rules/test-standards.md +55 -0
- package/skills/ab-test-setup/SKILL.md +99 -0
- package/skills/ab-test-setup/references/sample-size-guide.md +252 -0
- package/skills/ab-test-setup/references/test-templates.md +268 -0
- package/skills/ab-test-setup/scripts/sample_size_calculator.py +337 -0
- package/skills/accessibility/SKILL.md +32 -0
- package/skills/accessibility/references/anti-patterns.md +9 -0
- package/skills/accessibility/references/component-requirements.md +15 -0
- package/skills/accessibility/references/focus-forms-testing.md +31 -0
- package/skills/accessibility/references/wcag-criteria.md +17 -0
- package/skills/ad-creative/SKILL.md +85 -0
- package/skills/ad-creative/references/creative-frameworks.md +253 -0
- package/skills/ad-creative/references/platform-specs.md +170 -0
- package/skills/ad-creative/scripts/ad_copy_validator.py +490 -0
- package/skills/agent-designer/README.md +430 -0
- package/skills/agent-designer/SKILL.md +64 -0
- package/skills/agent-designer/agent_evaluator.py +1223 -0
- package/skills/agent-designer/agent_planner.py +911 -0
- package/skills/agent-designer/assets/sample_execution_logs.json +543 -0
- package/skills/agent-designer/assets/sample_system_requirements.json +57 -0
- package/skills/agent-designer/assets/sample_tool_descriptions.json +545 -0
- package/skills/agent-designer/expected_outputs/sample_agent_architecture.json +488 -0
- package/skills/agent-designer/expected_outputs/sample_evaluation_report.json +570 -0
- package/skills/agent-designer/expected_outputs/sample_tool_schemas.json +416 -0
- package/skills/agent-designer/references/agent_architecture_patterns.md +445 -0
- package/skills/agent-designer/references/evaluation_methodology.md +749 -0
- package/skills/agent-designer/references/tool_design_best_practices.md +470 -0
- package/skills/agent-designer/tool_schema_generator.py +978 -0
- package/skills/agent-protocol/SKILL.md +102 -0
- package/skills/agent-protocol/references/communication-standard.md +115 -0
- package/skills/agent-protocol/references/invocation-patterns.md +247 -0
- package/skills/agent-protocol/references/quality-loop.md +123 -0
- package/skills/agent-workflow-designer/SKILL.md +59 -0
- package/skills/agent-workflow-designer/references/workflow-patterns.md +82 -0
- package/skills/agent-workflow-designer/scripts/workflow_scaffolder.py +113 -0
- package/skills/ai-security/SKILL.md +113 -0
- package/skills/ai-security/references/atlas-coverage.md +150 -0
- package/skills/ai-security/scripts/ai_threat_scanner.py +564 -0
- package/skills/ai-seo/SKILL.md +172 -0
- package/skills/ai-seo/references/ai-search-landscape.md +191 -0
- package/skills/ai-seo/references/content-patterns.md +276 -0
- package/skills/ai-seo/references/monitoring-guide.md +208 -0
- package/skills/ai-seo/references/optimization-playbook.md +58 -0
- package/skills/analytics-tracking/SKILL.md +105 -0
- package/skills/analytics-tracking/references/debugging-playbook.md +224 -0
- package/skills/analytics-tracking/references/event-taxonomy-guide.md +203 -0
- package/skills/analytics-tracking/references/gtm-patterns.md +298 -0
- package/skills/analytics-tracking/scripts/tracking_plan_generator.py +386 -0
- package/skills/android-native-dev/SKILL.md +878 -0
- package/skills/android-native-dev/references/accessibility.md +209 -0
- package/skills/android-native-dev/references/adaptive-screens.md +231 -0
- package/skills/android-native-dev/references/design-style-guide.md +365 -0
- package/skills/android-native-dev/references/functional-requirements.md +229 -0
- package/skills/android-native-dev/references/motion-system.md +203 -0
- package/skills/android-native-dev/references/performance-stability.md +223 -0
- package/skills/android-native-dev/references/privacy-security.md +244 -0
- package/skills/android-native-dev/references/testing.md +554 -0
- package/skills/android-native-dev/references/visual-design.md +246 -0
- package/skills/api-design/SKILL.md +88 -0
- package/skills/api-design/references/anti-patterns.md +14 -0
- package/skills/api-design/references/versioning-deprecation.md +23 -0
- package/skills/api-docs/SKILL.md +101 -0
- package/skills/api-versioning/SKILL.md +51 -0
- package/skills/api-versioning/references/anti-patterns-and-checklist.md +27 -0
- package/skills/api-versioning/references/implementation-by-framework.md +31 -0
- package/skills/app-store-optimization/HOW_TO_USE.md +281 -0
- package/skills/app-store-optimization/SKILL.md +150 -0
- package/skills/app-store-optimization/assets/aso-audit-template.md +268 -0
- package/skills/app-store-optimization/expected_output.json +170 -0
- package/skills/app-store-optimization/references/ab-testing-guide.md +72 -0
- package/skills/app-store-optimization/references/aso-best-practices.md +403 -0
- package/skills/app-store-optimization/references/before-after-examples.md +73 -0
- package/skills/app-store-optimization/references/keyword-research-guide.md +419 -0
- package/skills/app-store-optimization/references/metadata-optimization.md +65 -0
- package/skills/app-store-optimization/references/platform-requirements.md +324 -0
- package/skills/app-store-optimization/sample_input.json +30 -0
- package/skills/app-store-optimization/scripts/ab_test_planner.py +662 -0
- package/skills/app-store-optimization/scripts/aso_scorer.py +482 -0
- package/skills/app-store-optimization/scripts/competitor_analyzer.py +577 -0
- package/skills/app-store-optimization/scripts/keyword_analyzer.py +406 -0
- package/skills/app-store-optimization/scripts/launch_checklist.py +739 -0
- package/skills/app-store-optimization/scripts/localization_helper.py +588 -0
- package/skills/app-store-optimization/scripts/metadata_optimizer.py +581 -0
- package/skills/app-store-optimization/scripts/review_analyzer.py +714 -0
- package/skills/arcane-add/SKILL.md +47 -0
- package/skills/arcane-clean/SKILL.md +45 -0
- package/skills/arcane-list/SKILL.md +46 -0
- package/skills/arcane-remove/SKILL.md +68 -0
- package/skills/arcane-status/SKILL.md +42 -0
- package/skills/architecture-decision/SKILL.md +75 -0
- package/skills/architecture-decision/templates/adr.md +101 -0
- package/skills/architecture-review/SKILL.md +90 -0
- package/skills/art-bible/SKILL.md +88 -0
- package/skills/art-bible/references/anti-patterns.md +8 -0
- package/skills/art-bible/references/checklist.md +17 -0
- package/skills/asset-audit/SKILL.md +95 -0
- package/skills/asset-spec/SKILL.md +72 -0
- package/skills/asset-spec/references/anti-patterns-checklist.md +19 -0
- package/skills/asset-spec/references/spec-output-format.md +34 -0
- package/skills/async-ops/SKILL.md +59 -0
- package/skills/async-ops/references/anti-patterns.md +16 -0
- package/skills/async-ops/references/checklist.md +10 -0
- package/skills/async-ops/references/job-scheduling.md +37 -0
- package/skills/async-ops/references/outbound-webhooks.md +19 -0
- package/skills/atlassian-admin/SKILL.md +121 -0
- package/skills/atlassian-admin/assets/permission_scheme_template.json +173 -0
- package/skills/atlassian-admin/references/security-hardening-guide.md +214 -0
- package/skills/atlassian-admin/references/user-provisioning-checklist.md +177 -0
- package/skills/atlassian-admin/scripts/permission_audit_tool.py +469 -0
- package/skills/atlassian-templates/SKILL.md +128 -0
- package/skills/atlassian-templates/references/governance-framework.md +234 -0
- package/skills/atlassian-templates/references/template-design-patterns.md +252 -0
- package/skills/atlassian-templates/scripts/template_scaffolder.py +418 -0
- package/skills/audit-dev/SKILL.md +43 -0
- package/skills/audit-game/SKILL.md +54 -0
- package/skills/audit-game/references/cross-reference-criteria.md +42 -0
- package/skills/audit-game/references/output-template.md +48 -0
- package/skills/audit-log/SKILL.md +75 -0
- package/skills/auth-strategy/SKILL.md +120 -0
- package/skills/auth-strategy/references/anti-patterns.md +21 -0
- package/skills/aws-solution-architect/SKILL.md +125 -0
- package/skills/aws-solution-architect/assets/expected_output.json +55 -0
- package/skills/aws-solution-architect/assets/sample_input.json +18 -0
- package/skills/aws-solution-architect/references/architecture_patterns.md +535 -0
- package/skills/aws-solution-architect/references/best_practices.md +631 -0
- package/skills/aws-solution-architect/references/service_selection.md +484 -0
- package/skills/aws-solution-architect/scripts/architecture_designer.py +808 -0
- package/skills/aws-solution-architect/scripts/cost_optimizer.py +346 -0
- package/skills/aws-solution-architect/scripts/serverless_stack.py +663 -0
- package/skills/azure-cloud-architect/SKILL.md +128 -0
- package/skills/azure-cloud-architect/references/architecture_patterns.md +413 -0
- package/skills/azure-cloud-architect/references/best_practices.md +337 -0
- package/skills/azure-cloud-architect/references/service_selection.md +250 -0
- package/skills/azure-cloud-architect/scripts/architecture_designer.py +592 -0
- package/skills/azure-cloud-architect/scripts/bicep_generator.py +775 -0
- package/skills/azure-cloud-architect/scripts/cost_optimizer.py +492 -0
- package/skills/backup-strategy/SKILL.md +101 -0
- package/skills/balance-check/SKILL.md +119 -0
- package/skills/board-deck-builder/SKILL.md +64 -0
- package/skills/board-deck-builder/references/deck-frameworks.md +184 -0
- package/skills/board-deck-builder/templates/board-deck-template.md +210 -0
- package/skills/board-meeting/SKILL.md +58 -0
- package/skills/board-meeting/references/meeting-facilitation.md +167 -0
- package/skills/board-meeting/templates/meeting-agenda.md +81 -0
- package/skills/board-meeting/templates/meeting-minutes.md +91 -0
- package/skills/brainstorm/SKILL.md +94 -0
- package/skills/brainstorm/references/next-steps-pipeline.md +13 -0
- package/skills/brainstorm/references/review-mode-gates.md +13 -0
- package/skills/brand-guidelines/SKILL.md +91 -0
- package/skills/brand-guidelines/references/brand-identity-and-framework.md +262 -0
- package/skills/bug-report/SKILL.md +53 -0
- package/skills/bug-triage/SKILL.md +74 -0
- package/skills/business-investment-advisor/SKILL.md +83 -0
- package/skills/business-investment-advisor/references/analysis-frameworks.md +113 -0
- package/skills/caching-strategy/SKILL.md +81 -0
- package/skills/caching-strategy/references/http-headers.md +9 -0
- package/skills/caching-strategy/references/patterns-and-invalidation.md +25 -0
- package/skills/caching-strategy/references/redis-and-client.md +13 -0
- package/skills/caching-strategy/references/ttl-defaults.md +11 -0
- package/skills/campaign-analytics/SKILL.md +93 -0
- package/skills/campaign-analytics/assets/ab_test_template.md +130 -0
- package/skills/campaign-analytics/assets/campaign_report_template.md +141 -0
- package/skills/campaign-analytics/assets/channel_comparison_template.md +158 -0
- package/skills/campaign-analytics/assets/expected_output.json +110 -0
- package/skills/campaign-analytics/assets/sample_campaign_data.json +151 -0
- package/skills/campaign-analytics/references/attribution-models-guide.md +285 -0
- package/skills/campaign-analytics/references/campaign-metrics-benchmarks.md +259 -0
- package/skills/campaign-analytics/references/funnel-optimization-framework.md +302 -0
- package/skills/campaign-analytics/scripts/attribution_analyzer.py +347 -0
- package/skills/campaign-analytics/scripts/campaign_roi_calculator.py +459 -0
- package/skills/campaign-analytics/scripts/funnel_analyzer.py +305 -0
- package/skills/capa-officer/SKILL.md +125 -0
- package/skills/capa-officer/references/effectiveness-verification-guide.md +462 -0
- package/skills/capa-officer/references/rca-methodologies.md +455 -0
- package/skills/capa-officer/scripts/capa_tracker.py +638 -0
- package/skills/capa-officer/scripts/root_cause_analyzer.py +486 -0
- package/skills/cdn-setup/SKILL.md +33 -0
- package/skills/cdn-setup/references/cache-strategy-and-invalidation.md +30 -0
- package/skills/cdn-setup/references/security-and-anti-patterns.md +26 -0
- package/skills/ceo-advisor/SKILL.md +110 -0
- package/skills/ceo-advisor/references/board_governance_investor_relations.md +599 -0
- package/skills/ceo-advisor/references/executive_decision_framework.md +475 -0
- package/skills/ceo-advisor/references/leadership_organizational_culture.md +682 -0
- package/skills/ceo-advisor/scripts/financial_scenario_analyzer.py +451 -0
- package/skills/ceo-advisor/scripts/strategy_analyzer.py +609 -0
- package/skills/cfo-advisor/SKILL.md +81 -0
- package/skills/cfo-advisor/references/cash_management.md +374 -0
- package/skills/cfo-advisor/references/financial_planning.md +500 -0
- package/skills/cfo-advisor/references/fundraising_playbook.md +419 -0
- package/skills/cfo-advisor/scripts/burn_rate_calculator.py +402 -0
- package/skills/cfo-advisor/scripts/fundraising_model.py +490 -0
- package/skills/cfo-advisor/scripts/unit_economics_analyzer.py +529 -0
- package/skills/change-management/SKILL.md +53 -0
- package/skills/change-management/references/adkar-details.md +110 -0
- package/skills/change-management/references/change-playbook.md +308 -0
- package/skills/changelog/SKILL.md +111 -0
- package/skills/check/SKILL.md +22 -0
- package/skills/chief-of-staff/SKILL.md +70 -0
- package/skills/chief-of-staff/references/routing-matrix.md +212 -0
- package/skills/chief-of-staff/references/synthesis-framework.md +201 -0
- package/skills/chro-advisor/SKILL.md +86 -0
- package/skills/chro-advisor/references/comp_frameworks.md +320 -0
- package/skills/chro-advisor/references/org_design.md +333 -0
- package/skills/chro-advisor/references/people_strategy.md +320 -0
- package/skills/chro-advisor/scripts/comp_benchmarker.py +613 -0
- package/skills/chro-advisor/scripts/hiring_plan_modeler.py +572 -0
- package/skills/churn-prevention/SKILL.md +200 -0
- package/skills/churn-prevention/references/cancel-flow-playbook.md +254 -0
- package/skills/churn-prevention/references/dunning-guide.md +276 -0
- package/skills/churn-prevention/references/exit-survey-and-save-offers.md +42 -0
- package/skills/churn-prevention/scripts/churn_impact_calculator.py +199 -0
- package/skills/ci-cd-setup/SKILL.md +66 -0
- package/skills/ci-cd-setup/references/anti-patterns.md +10 -0
- package/skills/ci-cd-setup/references/checklist.md +14 -0
- package/skills/ci-cd-setup/references/secret-and-deploy.md +30 -0
- package/skills/ciso-advisor/SKILL.md +86 -0
- package/skills/ciso-advisor/references/compliance_roadmap.md +370 -0
- package/skills/ciso-advisor/references/incident_response.md +350 -0
- package/skills/ciso-advisor/references/security_strategy.md +321 -0
- package/skills/ciso-advisor/scripts/compliance_tracker.py +781 -0
- package/skills/ciso-advisor/scripts/risk_quantifier.py +690 -0
- package/skills/clickup/SKILL.md +134 -0
- package/skills/cloud-security/SKILL.md +107 -0
- package/skills/cloud-security/references/cspm-checks.md +109 -0
- package/skills/cloud-security/scripts/cloud_posture_check.py +1180 -0
- package/skills/cmo-advisor/SKILL.md +82 -0
- package/skills/cmo-advisor/references/brand_positioning.md +374 -0
- package/skills/cmo-advisor/references/growth_frameworks.md +456 -0
- package/skills/cmo-advisor/references/marketing_org.md +281 -0
- package/skills/cmo-advisor/scripts/growth_model_simulator.py +416 -0
- package/skills/cmo-advisor/scripts/marketing_budget_modeler.py +440 -0
- package/skills/code-review/SKILL.md +66 -0
- package/skills/cold-email/SKILL.md +178 -0
- package/skills/cold-email/references/deliverability-guide.md +225 -0
- package/skills/cold-email/references/follow-up-playbook.md +225 -0
- package/skills/cold-email/references/frameworks.md +217 -0
- package/skills/cold-email/references/voice-and-subject-lines.md +41 -0
- package/skills/cold-email/scripts/email_sequence_analyzer.py +517 -0
- package/skills/commit/SKILL.md +25 -0
- package/skills/company-os/SKILL.md +66 -0
- package/skills/company-os/references/implementation-guide.md +249 -0
- package/skills/company-os/references/os-comparison.md +242 -0
- package/skills/company-os/references/six-components.md +129 -0
- package/skills/competitive-intel/SKILL.md +62 -0
- package/skills/competitive-intel/references/ci-playbook.md +237 -0
- package/skills/competitive-intel/templates/battlecard-template.md +99 -0
- package/skills/competitive-teardown/SKILL.md +169 -0
- package/skills/competitive-teardown/references/analysis-templates.md +203 -0
- package/skills/competitive-teardown/references/competitive-analysis-frameworks.md +107 -0
- package/skills/competitive-teardown/references/data-collection-guide.md +104 -0
- package/skills/competitive-teardown/references/scoring-rubric.md +116 -0
- package/skills/competitive-teardown/scripts/competitive_matrix_builder.py +299 -0
- package/skills/competitor-alternatives/SKILL.md +92 -0
- package/skills/competitor-alternatives/references/content-architecture.md +263 -0
- package/skills/competitor-alternatives/references/templates.md +212 -0
- package/skills/competitor-alternatives/scripts/comparison_matrix_builder.py +365 -0
- package/skills/confluence-expert/SKILL.md +129 -0
- package/skills/confluence-expert/references/macro-cheat-sheet.md +144 -0
- package/skills/confluence-expert/references/space-architecture-patterns.md +246 -0
- package/skills/confluence-expert/references/templates.md +725 -0
- package/skills/confluence-expert/scripts/content_audit_analyzer.py +457 -0
- package/skills/confluence-expert/scripts/space_structure_generator.py +517 -0
- package/skills/consistency-check/SKILL.md +68 -0
- package/skills/content-creator/SKILL.md +52 -0
- package/skills/content-creator/assets/content_calendar_template.md +99 -0
- package/skills/content-creator/examples/brand_voice_analysis_example.md +180 -0
- package/skills/content-creator/examples/seo_optimization_example.md +259 -0
- package/skills/content-creator/references/analytics_guide.md +352 -0
- package/skills/content-creator/references/brand_guidelines.md +219 -0
- package/skills/content-creator/references/content_frameworks.md +551 -0
- package/skills/content-creator/references/social_media_optimization.md +342 -0
- package/skills/content-humanizer/SKILL.md +193 -0
- package/skills/content-humanizer/references/ai-tells-checklist.md +157 -0
- package/skills/content-humanizer/references/voice-techniques.md +168 -0
- package/skills/content-humanizer/scripts/humanizer_scorer.py +504 -0
- package/skills/content-production/SKILL.md +192 -0
- package/skills/content-production/references/content-brief-guide.md +146 -0
- package/skills/content-production/references/optimization-checklist.md +139 -0
- package/skills/content-production/scripts/brand_voice_analyzer.py +197 -0
- package/skills/content-production/scripts/content_scorer.py +464 -0
- package/skills/content-production/scripts/seo_optimizer.py +433 -0
- package/skills/content-production/templates/content-brief-template.md +126 -0
- package/skills/content-strategy/SKILL.md +125 -0
- package/skills/content-strategy/references/content-strategy-reference.md +278 -0
- package/skills/content-strategy/scripts/topic_cluster_mapper.py +243 -0
- package/skills/context-engine/SKILL.md +50 -0
- package/skills/context-engine/references/anonymization-protocol.md +173 -0
- package/skills/context-prime/SKILL.md +25 -0
- package/skills/contract-and-proposal-writer/SKILL.md +126 -0
- package/skills/contract-and-proposal-writer/references/contract-templates.md +276 -0
- package/skills/contract-testing/SKILL.md +42 -0
- package/skills/contract-testing/references/anti-patterns-and-checklist.md +28 -0
- package/skills/contract-testing/references/implementation-details.md +29 -0
- package/skills/coo-advisor/SKILL.md +92 -0
- package/skills/coo-advisor/references/ops_cadence.md +606 -0
- package/skills/coo-advisor/references/process_frameworks.md +459 -0
- package/skills/coo-advisor/references/scaling_playbook.md +465 -0
- package/skills/coo-advisor/scripts/okr_tracker.py +1100 -0
- package/skills/coo-advisor/scripts/ops_efficiency_analyzer.py +1071 -0
- package/skills/copy-editing/SKILL.md +124 -0
- package/skills/copy-editing/references/copy-editing-checklist.md +134 -0
- package/skills/copy-editing/references/plain-english-alternatives.md +376 -0
- package/skills/copy-editing/references/seven-sweeps-framework.md +228 -0
- package/skills/copy-editing/scripts/readability_scorer.py +285 -0
- package/skills/copywriting/SKILL.md +192 -0
- package/skills/copywriting/references/copy-frameworks.md +338 -0
- package/skills/copywriting/references/natural-transitions.md +252 -0
- package/skills/copywriting/references/writing-style-rules.md +63 -0
- package/skills/copywriting/scripts/headline_scorer.py +256 -0
- package/skills/cpo-advisor/SKILL.md +102 -0
- package/skills/cpo-advisor/references/pmf_playbook.md +307 -0
- package/skills/cpo-advisor/references/product_org_design.md +407 -0
- package/skills/cpo-advisor/references/product_strategy.md +454 -0
- package/skills/cpo-advisor/scripts/pmf_scorer.py +600 -0
- package/skills/cpo-advisor/scripts/portfolio_analyzer.py +547 -0
- package/skills/create-epics/SKILL.md +65 -0
- package/skills/create-pr/SKILL.md +26 -0
- package/skills/create-stories/SKILL.md +85 -0
- package/skills/create-test-user/SKILL.md +37 -0
- package/skills/create-ticket/SKILL.md +50 -0
- package/skills/cro-advisor/SKILL.md +86 -0
- package/skills/cro-advisor/references/nrr_playbook.md +380 -0
- package/skills/cro-advisor/references/pricing_strategy.md +417 -0
- package/skills/cro-advisor/references/sales_playbook.md +461 -0
- package/skills/cro-advisor/scripts/churn_analyzer.py +742 -0
- package/skills/cro-advisor/scripts/revenue_forecast_model.py +571 -0
- package/skills/cs-onboard/SKILL.md +60 -0
- package/skills/cs-onboard/references/interview-guide.md +173 -0
- package/skills/cs-onboard/templates/company-context-template.md +144 -0
- package/skills/csp-headers/SKILL.md +53 -0
- package/skills/csp-headers/references/anti-patterns-checklist.md +26 -0
- package/skills/csp-headers/references/implementation.md +18 -0
- package/skills/cto-advisor/SKILL.md +95 -0
- package/skills/cto-advisor/references/architecture_decision_records.md +294 -0
- package/skills/cto-advisor/references/engineering_metrics.md +393 -0
- package/skills/cto-advisor/references/technology_evaluation_framework.md +370 -0
- package/skills/cto-advisor/references/workflows.md +84 -0
- package/skills/cto-advisor/scripts/team_scaling_calculator.py +562 -0
- package/skills/cto-advisor/scripts/tech_debt_analyzer.py +450 -0
- package/skills/culture-architect/SKILL.md +66 -0
- package/skills/culture-architect/references/culture-playbook.md +243 -0
- package/skills/culture-architect/templates/culture-code-template.md +137 -0
- package/skills/customer-success-manager/SKILL.md +97 -0
- package/skills/customer-success-manager/assets/executive_business_review_template.md +209 -0
- package/skills/customer-success-manager/assets/expected_output.json +170 -0
- package/skills/customer-success-manager/assets/onboarding_checklist_template.md +215 -0
- package/skills/customer-success-manager/assets/qbr_template.md +163 -0
- package/skills/customer-success-manager/assets/sample_customer_data.json +314 -0
- package/skills/customer-success-manager/assets/success_plan_template.md +167 -0
- package/skills/customer-success-manager/references/cs-metrics-benchmarks.md +259 -0
- package/skills/customer-success-manager/references/cs-playbooks.md +290 -0
- package/skills/customer-success-manager/references/health-scoring-framework.md +184 -0
- package/skills/customer-success-manager/scripts/churn_risk_analyzer.py +487 -0
- package/skills/customer-success-manager/scripts/expansion_opportunity_scorer.py +414 -0
- package/skills/customer-success-manager/scripts/health_score_calculator.py +438 -0
- package/skills/data-migrations/SKILL.md +113 -0
- package/skills/data-migrations/references/anti-patterns.md +14 -0
- package/skills/data-migrations/references/batching.md +9 -0
- package/skills/data-migrations/references/checklist.md +14 -0
- package/skills/data-migrations/references/expand-contract.md +19 -0
- package/skills/data-operations/SKILL.md +59 -0
- package/skills/data-operations/references/anti-patterns.md +17 -0
- package/skills/data-operations/references/query-optimization.md +37 -0
- package/skills/data-operations/references/seeding.md +38 -0
- package/skills/data-seeding/SKILL.md +96 -0
- package/skills/database/SKILL.md +74 -0
- package/skills/database/references/anti-patterns.md +20 -0
- package/skills/database/references/query-patterns.md +32 -0
- package/skills/database-indexing/SKILL.md +85 -0
- package/skills/database-indexing/references/anti-patterns.md +14 -0
- package/skills/database-indexing/references/checklists.md +23 -0
- package/skills/database-indexing/references/index-types.md +18 -0
- package/skills/database-setup/SKILL.md +109 -0
- package/skills/database-setup/references/indexing-guide.md +126 -0
- package/skills/db-diagram/SKILL.md +87 -0
- package/skills/decision-logger/SKILL.md +59 -0
- package/skills/decision-logger/references/entry-format.md +55 -0
- package/skills/decision-logger/scripts/decision_tracker.py +620 -0
- package/skills/decision-logger/templates/decision-entry.md +63 -0
- package/skills/deploy-check/SKILL.md +87 -0
- package/skills/deploy-staging/SKILL.md +44 -0
- package/skills/deps-audit/SKILL.md +92 -0
- package/skills/design-handoff/SKILL.md +49 -0
- package/skills/design-system/SKILL.md +56 -0
- package/skills/design-system/references/post-design-validation.md +8 -0
- package/skills/design-system/references/section-guidance.md +29 -0
- package/skills/distributed-tracing/SKILL.md +86 -0
- package/skills/doc-gdd/SKILL.md +56 -0
- package/skills/doc-pas/SKILL.md +41 -0
- package/skills/doc-pas/references/examples-and-usage.md +27 -0
- package/skills/doc-pas/references/output-format-template.md +63 -0
- package/skills/doc-rfc/SKILL.md +55 -0
- package/skills/doc-rfc/templates/decision.md +38 -0
- package/skills/doc-rfc/templates/epica.md +68 -0
- package/skills/doc-rfc/templates/hu.md +52 -0
- package/skills/doc-rfc/templates/tarea.md +37 -0
- package/skills/docker-setup/SKILL.md +78 -0
- package/skills/docker-setup/references/anti-patterns.md +10 -0
- package/skills/docker-setup/references/checklists.md +34 -0
- package/skills/docker-setup/references/size-optimization.md +7 -0
- package/skills/docx-generator/SKILL.md +249 -0
- package/skills/docx-generator/assets/styles/academic_styles.xml +250 -0
- package/skills/docx-generator/assets/styles/corporate_styles.xml +284 -0
- package/skills/docx-generator/assets/styles/default_styles.xml +449 -0
- package/skills/docx-generator/assets/xsd/aesthetic-rules.xsd +470 -0
- package/skills/docx-generator/assets/xsd/business-rules.xsd +130 -0
- package/skills/docx-generator/assets/xsd/common-types.xsd +159 -0
- package/skills/docx-generator/assets/xsd/wml-subset.xsd +589 -0
- package/skills/docx-generator/references/cjk_typography.md +357 -0
- package/skills/docx-generator/references/cjk_university_template_guide.md +184 -0
- package/skills/docx-generator/references/comments_guide.md +191 -0
- package/skills/docx-generator/references/design_good_bad_examples.md +829 -0
- package/skills/docx-generator/references/design_principles.md +819 -0
- package/skills/docx-generator/references/openxml_element_order.md +308 -0
- package/skills/docx-generator/references/openxml_encyclopedia_part1.md +4061 -0
- package/skills/docx-generator/references/openxml_encyclopedia_part2.md +2820 -0
- package/skills/docx-generator/references/openxml_encyclopedia_part3.md +3381 -0
- package/skills/docx-generator/references/openxml_namespaces.md +82 -0
- package/skills/docx-generator/references/openxml_units.md +72 -0
- package/skills/docx-generator/references/scenario_a_create.md +284 -0
- package/skills/docx-generator/references/scenario_b_edit_content.md +295 -0
- package/skills/docx-generator/references/scenario_c_apply_template.md +456 -0
- package/skills/docx-generator/references/track_changes_guide.md +200 -0
- package/skills/docx-generator/references/troubleshooting.md +506 -0
- package/skills/docx-generator/references/typography_guide.md +294 -0
- package/skills/docx-generator/references/xsd_validation_guide.md +158 -0
- package/skills/docx-generator/scripts/doc_to_docx.sh +40 -0
- package/skills/docx-generator/scripts/docx_preview.sh +37 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Cli/Program.cs +18 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Commands/AnalyzeCommand.cs +147 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ApplyTemplateCommand.cs +322 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Commands/CreateCommand.cs +324 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Commands/DiffCommand.cs +155 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Commands/EditContentCommand.cs +487 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Commands/FixOrderCommand.cs +108 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Commands/MergeRunsCommand.cs +122 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Commands/ValidateCommand.cs +107 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/CommentSynchronizer.cs +169 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/ElementOrder.cs +80 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/NamespaceConstants.cs +42 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/RunMerger.cs +81 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/StyleAnalyzer.cs +81 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/TrackChangesHelper.cs +99 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/OpenXml/UnitConverter.cs +23 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples.cs +1832 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch1.cs +910 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch2.cs +999 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch3.cs +1048 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/AestheticRecipeSamples_Batch4.cs +1038 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/CharacterFormattingSamples.cs +1020 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/DocumentCreationSamples.cs +1121 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FieldAndTocSamples.cs +624 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/FootnoteAndCommentSamples.cs +675 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/HeaderFooterSamples.cs +838 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ImageSamples.cs +917 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ListAndNumberingSamples.cs +826 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/ParagraphFormattingSamples.cs +1199 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/StyleSystemSamples.cs +1487 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TableSamples.cs +1163 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Samples/TrackChangesSamples.cs +595 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Typography/CjkHelper.cs +39 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Typography/FontDefaults.cs +24 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Typography/PageSizes.cs +20 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Validation/BusinessRuleValidator.cs +224 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Validation/GateCheckValidator.cs +148 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Validation/ValidationResult.cs +23 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.Core/Validation/XsdValidator.cs +69 -0
- package/skills/docx-generator/scripts/dotnet/MiniMaxAIDocx.slnx +4 -0
- package/skills/docx-generator/scripts/env_check.sh +196 -0
- package/skills/docx-generator/scripts/setup.ps1 +274 -0
- package/skills/docx-generator/scripts/setup.sh +504 -0
- package/skills/email-sequence/SKILL.md +119 -0
- package/skills/email-sequence/references/email-sequence-playbook.md +209 -0
- package/skills/email-sequence/scripts/sequence_analyzer.py +354 -0
- package/skills/email-template-builder/SKILL.md +93 -0
- package/skills/email-template-builder/references/react-email-templates.md +323 -0
- package/skills/env-sync/SKILL.md +102 -0
- package/skills/error-tracking/SKILL.md +25 -0
- package/skills/error-tracking/references/anti-patterns-and-checklist.md +23 -0
- package/skills/error-tracking/references/operational-details.md +38 -0
- package/skills/error-tracking/references/setup-per-stack.md +24 -0
- package/skills/estimate/SKILL.md +51 -0
- package/skills/estimate/references/complexity-factors.md +30 -0
- package/skills/estimate/references/estimate-template.md +60 -0
- package/skills/executive-mentor/.claude-plugin/plugin.json +13 -0
- package/skills/executive-mentor/SKILL.md +90 -0
- package/skills/executive-mentor/agents/devils-advocate.md +139 -0
- package/skills/executive-mentor/references/board_dynamics.md +263 -0
- package/skills/executive-mentor/references/crisis_playbook.md +173 -0
- package/skills/executive-mentor/references/hard_things.md +256 -0
- package/skills/executive-mentor/scripts/decision_matrix_scorer.py +491 -0
- package/skills/executive-mentor/scripts/stakeholder_mapper.py +547 -0
- package/skills/executive-mentor/skills/board-prep/SKILL.md +76 -0
- package/skills/executive-mentor/skills/challenge/SKILL.md +80 -0
- package/skills/executive-mentor/skills/hard-call/SKILL.md +64 -0
- package/skills/executive-mentor/skills/postmortem/SKILL.md +78 -0
- package/skills/executive-mentor/skills/stress-test/SKILL.md +74 -0
- package/skills/executive-mentor/skills/stress-test/references/patterns-by-type.md +73 -0
- package/skills/experiment-designer/SKILL.md +108 -0
- package/skills/experiment-designer/references/experiment-playbook.md +70 -0
- package/skills/experiment-designer/references/statistics-reference.md +56 -0
- package/skills/experiment-designer/scripts/sample_size_calculator.py +100 -0
- package/skills/fda-consultant-specialist/SKILL.md +102 -0
- package/skills/fda-consultant-specialist/references/device_cybersecurity_guidance.md +695 -0
- package/skills/fda-consultant-specialist/references/fda_capa_requirements.md +718 -0
- package/skills/fda-consultant-specialist/references/fda_submission_guide.md +400 -0
- package/skills/fda-consultant-specialist/references/hipaa_compliance_framework.md +721 -0
- package/skills/fda-consultant-specialist/references/qsr_compliance_requirements.md +753 -0
- package/skills/fda-consultant-specialist/scripts/fda_submission_tracker.py +493 -0
- package/skills/fda-consultant-specialist/scripts/hipaa_risk_assessment.py +626 -0
- package/skills/fda-consultant-specialist/scripts/qsr_compliance_checker.py +618 -0
- package/skills/feature-flags/SKILL.md +98 -0
- package/skills/figma/SKILL.md +124 -0
- package/skills/figma-to-code/SKILL.md +80 -0
- package/skills/figma-to-code/references/checklist-and-output.md +32 -0
- package/skills/figma-to-code/references/stack-detection.md +34 -0
- package/skills/figma-tokens/SKILL.md +55 -0
- package/skills/file-uploads/SKILL.md +95 -0
- package/skills/financial-analyst/SKILL.md +152 -0
- package/skills/financial-analyst/assets/dcf_analysis_template.md +184 -0
- package/skills/financial-analyst/assets/expected_output.json +161 -0
- package/skills/financial-analyst/assets/forecast_report_template.md +177 -0
- package/skills/financial-analyst/assets/sample_financial_data.json +219 -0
- package/skills/financial-analyst/assets/variance_report_template.md +122 -0
- package/skills/financial-analyst/references/financial-ratios-guide.md +376 -0
- package/skills/financial-analyst/references/forecasting-best-practices.md +279 -0
- package/skills/financial-analyst/references/industry-adaptations.md +103 -0
- package/skills/financial-analyst/references/valuation-methodology.md +246 -0
- package/skills/financial-analyst/scripts/budget_variance_analyzer.py +406 -0
- package/skills/financial-analyst/scripts/dcf_valuation.py +449 -0
- package/skills/financial-analyst/scripts/forecast_builder.py +494 -0
- package/skills/financial-analyst/scripts/ratio_calculator.py +432 -0
- package/skills/fix-issue/SKILL.md +19 -0
- package/skills/flutter-dev/SKILL.md +122 -0
- package/skills/flutter-dev/references/animations.md +497 -0
- package/skills/flutter-dev/references/bloc-state.md +281 -0
- package/skills/flutter-dev/references/forms.md +656 -0
- package/skills/flutter-dev/references/gorouter-navigation.md +257 -0
- package/skills/flutter-dev/references/localization.md +510 -0
- package/skills/flutter-dev/references/networking.md +566 -0
- package/skills/flutter-dev/references/performance.md +306 -0
- package/skills/flutter-dev/references/platform-specific.md +417 -0
- package/skills/flutter-dev/references/project-structure.md +274 -0
- package/skills/flutter-dev/references/riverpod-state.md +232 -0
- package/skills/flutter-dev/references/testing.md +364 -0
- package/skills/flutter-dev/references/widget-patterns.md +233 -0
- package/skills/form-cro/SKILL.md +128 -0
- package/skills/form-cro/references/experiments.md +77 -0
- package/skills/form-cro/references/form-cro-playbook.md +271 -0
- package/skills/form-cro/scripts/form_field_analyzer.py +291 -0
- package/skills/form-validation/SKILL.md +75 -0
- package/skills/founder-coach/SKILL.md +57 -0
- package/skills/founder-coach/references/delegation-energy.md +124 -0
- package/skills/founder-coach/references/founder-toolkit.md +296 -0
- package/skills/founder-coach/references/leadership-evolution.md +112 -0
- package/skills/founder-coach/references/leadership-growth.md +178 -0
- package/skills/free-tool-strategy/SKILL.md +167 -0
- package/skills/free-tool-strategy/references/design-and-lead-capture.md +58 -0
- package/skills/free-tool-strategy/references/launch-playbook.md +182 -0
- package/skills/free-tool-strategy/references/tool-types-guide.md +253 -0
- package/skills/free-tool-strategy/scripts/tool_roi_estimator.py +401 -0
- package/skills/frontend-dev/SKILL.md +555 -0
- package/skills/frontend-dev/canvas-fonts/ArsenalSC-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/ArsenalSC-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/BigShoulders-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/BigShoulders-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/BigShoulders-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Boldonse-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Boldonse-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/BricolageGrotesque-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/BricolageGrotesque-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/BricolageGrotesque-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/CrimsonPro-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/CrimsonPro-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/CrimsonPro-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/CrimsonPro-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/DMMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/DMMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/EricaOne-OFL.txt +94 -0
- package/skills/frontend-dev/canvas-fonts/EricaOne-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/GeistMono-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/GeistMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/GeistMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Gloock-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Gloock-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexMono-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexSerif-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexSerif-BoldItalic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexSerif-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/IBMPlexSerif-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-BoldItalic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSans-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSerif-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/InstrumentSerif-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Italiana-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Italiana-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/JetBrainsMono-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/JetBrainsMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/JetBrainsMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Jura-Light.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Jura-Medium.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Jura-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/LibreBaskerville-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/LibreBaskerville-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Lora-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Lora-BoldItalic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Lora-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Lora-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Lora-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/NationalPark-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/NationalPark-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/NationalPark-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/NothingYouCouldDo-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/NothingYouCouldDo-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Outfit-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Outfit-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Outfit-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/PixelifySans-Medium.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/PixelifySans-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/PoiretOne-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/PoiretOne-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/RedHatMono-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/RedHatMono-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/RedHatMono-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Silkscreen-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Silkscreen-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/SmoochSans-Medium.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/SmoochSans-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Tektur-Medium.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/Tektur-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/Tektur-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-Bold.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-BoldItalic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-Italic.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/WorkSans-Regular.ttf +0 -0
- package/skills/frontend-dev/canvas-fonts/YoungSerif-OFL.txt +93 -0
- package/skills/frontend-dev/canvas-fonts/YoungSerif-Regular.ttf +0 -0
- package/skills/frontend-dev/references/asset-prompt-guide.md +43 -0
- package/skills/frontend-dev/references/env-setup.md +33 -0
- package/skills/frontend-dev/references/minimax-cli-reference.md +133 -0
- package/skills/frontend-dev/references/minimax-image-guide.md +65 -0
- package/skills/frontend-dev/references/minimax-music-guide.md +216 -0
- package/skills/frontend-dev/references/minimax-tts-guide.md +78 -0
- package/skills/frontend-dev/references/minimax-video-guide.md +82 -0
- package/skills/frontend-dev/references/minimax-voice-catalog.md +686 -0
- package/skills/frontend-dev/references/motion-recipes.md +407 -0
- package/skills/frontend-dev/references/troubleshooting.md +85 -0
- package/skills/frontend-dev/scripts/minimax_image.py +137 -0
- package/skills/frontend-dev/scripts/minimax_music.py +157 -0
- package/skills/frontend-dev/scripts/minimax_tts.py +127 -0
- package/skills/frontend-dev/scripts/minimax_video.py +187 -0
- package/skills/frontend-dev/templates/generator_template.js +223 -0
- package/skills/frontend-dev/templates/viewer.html +599 -0
- package/skills/game-analysis/SKILL.md +51 -0
- package/skills/game-analysis/references/anti-patterns-checklist.md +25 -0
- package/skills/game-analysis/references/balance-report-format.md +21 -0
- package/skills/game-analysis/references/playtest-template.md +28 -0
- package/skills/game-audit/SKILL.md +66 -0
- package/skills/game-docs/SKILL.md +58 -0
- package/skills/game-docs/references/gdd-structure.md +24 -0
- package/skills/game-docs/references/pas-format.md +49 -0
- package/skills/game-docs/references/writing-rules.md +17 -0
- package/skills/gate-check/SKILL.md +93 -0
- package/skills/gcp-cloud-architect/SKILL.md +127 -0
- package/skills/gcp-cloud-architect/references/architecture_patterns.md +512 -0
- package/skills/gcp-cloud-architect/references/best_practices.md +467 -0
- package/skills/gcp-cloud-architect/references/service_selection.md +547 -0
- package/skills/gcp-cloud-architect/scripts/architecture_designer.py +805 -0
- package/skills/gcp-cloud-architect/scripts/cost_optimizer.py +465 -0
- package/skills/gcp-cloud-architect/scripts/deployment_manager.py +835 -0
- package/skills/gdocs/SKILL.md +128 -0
- package/skills/gdpr-dsgvo-expert/SKILL.md +97 -0
- package/skills/gdpr-dsgvo-expert/references/dpia_methodology.md +412 -0
- package/skills/gdpr-dsgvo-expert/references/gdpr_compliance_guide.md +336 -0
- package/skills/gdpr-dsgvo-expert/references/german_bdsg_requirements.md +327 -0
- package/skills/gdpr-dsgvo-expert/scripts/data_subject_rights_tracker.py +541 -0
- package/skills/gdpr-dsgvo-expert/scripts/dpia_generator.py +670 -0
- package/skills/gdpr-dsgvo-expert/scripts/gdpr_compliance_checker.py +443 -0
- package/skills/gdrive/SKILL.md +46 -0
- package/skills/gh-projects/SKILL.md +103 -0
- package/skills/gh-projects/references/graphql-queries.md +207 -0
- package/skills/git-worktree-manager/SKILL.md +86 -0
- package/skills/git-worktree-manager/references/docker-compose-patterns.md +62 -0
- package/skills/git-worktree-manager/references/port-allocation-strategy.md +46 -0
- package/skills/git-worktree-manager/scripts/worktree_cleanup.py +196 -0
- package/skills/git-worktree-manager/scripts/worktree_manager.py +240 -0
- package/skills/go-clean-architecture/SKILL.md +95 -0
- package/skills/go-clean-architecture/references/anti-patterns.md +7 -0
- package/skills/go-clean-architecture/references/checklist.md +13 -0
- package/skills/gsheets/SKILL.md +46 -0
- package/skills/helm-chart-builder/.claude-plugin/plugin.json +13 -0
- package/skills/helm-chart-builder/SKILL.md +122 -0
- package/skills/helm-chart-builder/references/chart-patterns.md +435 -0
- package/skills/helm-chart-builder/references/values-design.md +462 -0
- package/skills/helm-chart-builder/scripts/chart_analyzer.py +542 -0
- package/skills/helm-chart-builder/scripts/values_validator.py +442 -0
- package/skills/help/SKILL.md +75 -0
- package/skills/hotfix/SKILL.md +63 -0
- package/skills/i18n-setup/SKILL.md +79 -0
- package/skills/incident/SKILL.md +107 -0
- package/skills/incident-commander/SKILL.md +133 -0
- package/skills/incident-commander/assets/incident_report_template.md +171 -0
- package/skills/incident-commander/assets/runbook_template.md +289 -0
- package/skills/incident-commander/assets/sample_incident_classification.json +14 -0
- package/skills/incident-commander/assets/sample_incident_data.json +276 -0
- package/skills/incident-commander/assets/sample_incident_pir_data.json +74 -0
- package/skills/incident-commander/assets/sample_timeline_events.json +263 -0
- package/skills/incident-commander/assets/simple_incident.json +6 -0
- package/skills/incident-commander/assets/simple_timeline_events.json +30 -0
- package/skills/incident-commander/expected_outputs/incident_classification_text_output.txt +44 -0
- package/skills/incident-commander/expected_outputs/pir_markdown_output.md +88 -0
- package/skills/incident-commander/expected_outputs/simple_incident_classification.txt +44 -0
- package/skills/incident-commander/expected_outputs/timeline_reconstruction_text_output.txt +110 -0
- package/skills/incident-commander/references/communication_templates.md +591 -0
- package/skills/incident-commander/references/incident-response-framework.md +372 -0
- package/skills/incident-commander/references/incident_severity_matrix.md +292 -0
- package/skills/incident-commander/references/rca_frameworks_guide.md +562 -0
- package/skills/incident-commander/references/reference-information.md +201 -0
- package/skills/incident-commander/references/sla-management-guide.md +566 -0
- package/skills/incident-commander/scripts/incident_classifier.py +914 -0
- package/skills/incident-commander/scripts/incident_timeline_builder.py +742 -0
- package/skills/incident-commander/scripts/pir_generator.py +1638 -0
- package/skills/incident-commander/scripts/postmortem_generator.py +804 -0
- package/skills/incident-commander/scripts/severity_classifier.py +1228 -0
- package/skills/incident-commander/scripts/timeline_reconstructor.py +1007 -0
- package/skills/incident-response/SKILL.md +103 -0
- package/skills/incident-response/references/regulatory-deadlines.md +125 -0
- package/skills/incident-response/scripts/incident_triage.py +768 -0
- package/skills/information-security-manager-iso27001/SKILL.md +120 -0
- package/skills/information-security-manager-iso27001/references/incident-response.md +420 -0
- package/skills/information-security-manager-iso27001/references/iso27001-controls.md +381 -0
- package/skills/information-security-manager-iso27001/references/risk-assessment-guide.md +262 -0
- package/skills/information-security-manager-iso27001/scripts/compliance_checker.py +398 -0
- package/skills/information-security-manager-iso27001/scripts/risk_assessment.py +403 -0
- package/skills/internal-narrative/SKILL.md +68 -0
- package/skills/internal-narrative/references/narrative-frameworks.md +211 -0
- package/skills/internal-narrative/templates/all-hands-template.md +103 -0
- package/skills/intl-expansion/SKILL.md +72 -0
- package/skills/intl-expansion/references/market-entry-playbook.md +138 -0
- package/skills/intl-expansion/references/regional-guide.md +144 -0
- package/skills/ios-application-dev/SKILL.md +172 -0
- package/skills/ios-application-dev/references/accessibility.md +259 -0
- package/skills/ios-application-dev/references/graphics-animation.md +350 -0
- package/skills/ios-application-dev/references/layout-system.md +199 -0
- package/skills/ios-application-dev/references/metal-shader.md +178 -0
- package/skills/ios-application-dev/references/navigation-patterns.md +175 -0
- package/skills/ios-application-dev/references/swift-coding-standards.md +757 -0
- package/skills/ios-application-dev/references/swiftui-design-guidelines.md +1167 -0
- package/skills/ios-application-dev/references/system-integration.md +401 -0
- package/skills/ios-application-dev/references/uikit-components.md +297 -0
- package/skills/isms-audit-expert/SKILL.md +108 -0
- package/skills/isms-audit-expert/references/cloud-security-audit.md +226 -0
- package/skills/isms-audit-expert/references/iso27001-audit-methodology.md +260 -0
- package/skills/isms-audit-expert/references/security-control-testing.md +276 -0
- package/skills/isms-audit-expert/scripts/isms_audit_scheduler.py +279 -0
- package/skills/jira-tickets/SKILL.md +52 -0
- package/skills/jira-tickets/references/states-epics-sprints.md +43 -0
- package/skills/jira-tickets/references/team-data.md +51 -0
- package/skills/job-scheduling/SKILL.md +107 -0
- package/skills/jwt-strategy/SKILL.md +74 -0
- package/skills/jwt-strategy/references/anti-patterns.md +16 -0
- package/skills/jwt-strategy/references/checklist.md +13 -0
- package/skills/jwt-strategy/references/implementation.md +21 -0
- package/skills/kickoff/SKILL.md +180 -0
- package/skills/launch-strategy/SKILL.md +72 -0
- package/skills/launch-strategy/references/launch-frameworks-and-checklists.md +317 -0
- package/skills/launch-strategy/scripts/launch_readiness_scorer.py +301 -0
- package/skills/llm-cost-optimizer/SKILL.md +194 -0
- package/skills/local-database-setup/SKILL.md +48 -0
- package/skills/logging-setup/SKILL.md +79 -0
- package/skills/logging-setup/references/anti-patterns.md +7 -0
- package/skills/logging-setup/references/checklist.md +14 -0
- package/skills/logging-setup/references/pii-audit-access.md +25 -0
- package/skills/ma-playbook/SKILL.md +72 -0
- package/skills/ma-playbook/references/due-diligence-checklist.md +148 -0
- package/skills/ma-playbook/references/integration-playbook.md +145 -0
- package/skills/map-systems/SKILL.md +82 -0
- package/skills/map-systems/references/dependency-layers-priorities.md +36 -0
- package/skills/map-systems/references/implicit-systems.md +13 -0
- package/skills/marketing-context/SKILL.md +167 -0
- package/skills/marketing-context/references/context-template.md +64 -0
- package/skills/marketing-context/scripts/context_validator.py +219 -0
- package/skills/marketing-context/templates/marketing-context-template.md +133 -0
- package/skills/marketing-demand-acquisition/SKILL.md +124 -0
- package/skills/marketing-demand-acquisition/references/attribution-guide.md +217 -0
- package/skills/marketing-demand-acquisition/references/campaign-templates.md +221 -0
- package/skills/marketing-demand-acquisition/references/hubspot-workflows.md +168 -0
- package/skills/marketing-demand-acquisition/references/international-playbooks.md +200 -0
- package/skills/marketing-demand-acquisition/scripts/calculate_cac.py +101 -0
- package/skills/marketing-ideas/SKILL.md +83 -0
- package/skills/marketing-ideas/references/ideas-by-category.md +347 -0
- package/skills/marketing-ops/SKILL.md +188 -0
- package/skills/marketing-ops/references/routing-matrix.md +37 -0
- package/skills/marketing-ops/scripts/campaign_tracker.py +156 -0
- package/skills/marketing-psychology/SKILL.md +121 -0
- package/skills/marketing-psychology/references/mental-models-catalog.md +397 -0
- package/skills/marketing-strategy-pmm/SKILL.md +130 -0
- package/skills/marketing-strategy-pmm/references/international-gtm.md +401 -0
- package/skills/marketing-strategy-pmm/references/launch-checklists.md +333 -0
- package/skills/marketing-strategy-pmm/references/messaging-templates.md +446 -0
- package/skills/marketing-strategy-pmm/references/positioning-frameworks.md +279 -0
- package/skills/mcp-server-builder/SKILL.md +109 -0
- package/skills/mcp-server-builder/references/openapi-extraction-guide.md +34 -0
- package/skills/mcp-server-builder/references/python-server-template.md +22 -0
- package/skills/mcp-server-builder/references/typescript-server-template.md +19 -0
- package/skills/mcp-server-builder/references/validation-checklist.md +30 -0
- package/skills/mcp-server-builder/scripts/mcp_validator.py +186 -0
- package/skills/mcp-server-builder/scripts/openapi_to_mcp.py +284 -0
- package/skills/mdr-745-specialist/SKILL.md +110 -0
- package/skills/mdr-745-specialist/references/clinical-evidence-requirements.md +303 -0
- package/skills/mdr-745-specialist/references/mdr-classification-guide.md +289 -0
- package/skills/mdr-745-specialist/references/technical-documentation-templates.md +355 -0
- package/skills/mdr-745-specialist/scripts/mdr_gap_analyzer.py +511 -0
- package/skills/meeting-analyzer/SKILL.md +99 -0
- package/skills/meeting-analyzer/references/analysis-modules.md +92 -0
- package/skills/meeting-to-tasks/SKILL.md +63 -0
- package/skills/mfa-setup/SKILL.md +111 -0
- package/skills/mfa-setup/references/anti-patterns.md +15 -0
- package/skills/mfa-setup/references/checklist.md +17 -0
- package/skills/mfa-setup/references/rate-limiting.md +10 -0
- package/skills/mfa-setup/references/role-rules.md +9 -0
- package/skills/mfa-setup/references/schema-db.md +5 -0
- package/skills/milestone-review/SKILL.md +46 -0
- package/skills/monorepo-setup/SKILL.md +66 -0
- package/skills/monorepo-setup/references/anti-patterns-and-checklist.md +27 -0
- package/skills/ms365-tenant-manager/SKILL.md +104 -0
- package/skills/ms365-tenant-manager/expected_output.json +86 -0
- package/skills/ms365-tenant-manager/references/powershell-templates.md +704 -0
- package/skills/ms365-tenant-manager/references/security-policies.md +357 -0
- package/skills/ms365-tenant-manager/references/troubleshooting.md +411 -0
- package/skills/ms365-tenant-manager/references/workflow-scripts.md +145 -0
- package/skills/ms365-tenant-manager/sample_input.json +21 -0
- package/skills/ms365-tenant-manager/scripts/powershell_generator.py +430 -0
- package/skills/ms365-tenant-manager/scripts/tenant_setup.py +447 -0
- package/skills/ms365-tenant-manager/scripts/user_management.py +447 -0
- package/skills/oauth-setup/SKILL.md +92 -0
- package/skills/observability/SKILL.md +88 -0
- package/skills/observability-ops/SKILL.md +42 -0
- package/skills/observability-ops/references/anti-patterns.md +14 -0
- package/skills/observability-ops/references/slo-sli-framework.md +44 -0
- package/skills/observability-ops/references/tracing-setup.md +35 -0
- package/skills/observability-setup/SKILL.md +43 -0
- package/skills/observability-setup/references/conventions-and-anti-patterns.md +32 -0
- package/skills/observability-setup/references/stack-setup-details.md +23 -0
- package/skills/onboard/SKILL.md +123 -0
- package/skills/onboarding-cro/SKILL.md +149 -0
- package/skills/onboarding-cro/references/experiments.md +89 -0
- package/skills/onboarding-cro/scripts/activation_funnel_analyzer.py +217 -0
- package/skills/optimize/SKILL.md +27 -0
- package/skills/org-health-diagnostic/SKILL.md +79 -0
- package/skills/org-health-diagnostic/references/health-benchmarks.md +217 -0
- package/skills/org-health-diagnostic/scripts/health_scorer.py +585 -0
- package/skills/owasp-top10-check/SKILL.md +110 -0
- package/skills/owasp-top10-check/references/anti-patterns.md +19 -0
- package/skills/owasp-top10-check/references/educabot-specifics.md +6 -0
- package/skills/owasp-top10-check/references/tools.md +9 -0
- package/skills/page-cro/SKILL.md +160 -0
- package/skills/page-cro/references/experiments.md +71 -0
- package/skills/page-cro/scripts/conversion_audit.py +427 -0
- package/skills/paid-ads/SKILL.md +162 -0
- package/skills/paid-ads/references/ad-copy-templates.md +200 -0
- package/skills/paid-ads/references/audience-targeting.md +234 -0
- package/skills/paid-ads/references/campaign-structure.md +103 -0
- package/skills/paid-ads/references/platform-setup-checklists.md +269 -0
- package/skills/paid-ads/scripts/roas_calculator.py +304 -0
- package/skills/patch-notes/SKILL.md +51 -0
- package/skills/paywall-upgrade-cro/SKILL.md +189 -0
- package/skills/paywall-upgrade-cro/references/experiments.md +78 -0
- package/skills/pdf-generator/SKILL.md +181 -0
- package/skills/pdf-generator/design/design.md +381 -0
- package/skills/pdf-generator/scripts/cover.py +1579 -0
- package/skills/pdf-generator/scripts/fill_inspect.py +200 -0
- package/skills/pdf-generator/scripts/fill_write.py +242 -0
- package/skills/pdf-generator/scripts/make.sh +491 -0
- package/skills/pdf-generator/scripts/merge.py +112 -0
- package/skills/pdf-generator/scripts/palette.py +521 -0
- package/skills/pdf-generator/scripts/reformat_parse.py +374 -0
- package/skills/pdf-generator/scripts/render_body.py +1052 -0
- package/skills/pdf-generator/scripts/render_cover.js +111 -0
- package/skills/perf-profile/SKILL.md +82 -0
- package/skills/performance/SKILL.md +37 -0
- package/skills/performance/references/anti-patterns.md +25 -0
- package/skills/performance/references/cache-strategy.md +48 -0
- package/skills/performance/references/rate-limit-config.md +48 -0
- package/skills/performance-test/SKILL.md +87 -0
- package/skills/playtest-report/SKILL.md +45 -0
- package/skills/playwright-pro/.mcp.json +27 -0
- package/skills/playwright-pro/CLAUDE.md +84 -0
- package/skills/playwright-pro/LICENSE +21 -0
- package/skills/playwright-pro/SKILL.md +91 -0
- package/skills/playwright-pro/agents/migration-planner.md +121 -0
- package/skills/playwright-pro/agents/test-architect.md +105 -0
- package/skills/playwright-pro/agents/test-debugger.md +117 -0
- package/skills/playwright-pro/hooks/detect-playwright.sh +23 -0
- package/skills/playwright-pro/hooks/hooks.json +25 -0
- package/skills/playwright-pro/hooks/validate-test.sh +58 -0
- package/skills/playwright-pro/references/assertions.md +89 -0
- package/skills/playwright-pro/references/common-pitfalls.md +137 -0
- package/skills/playwright-pro/references/fixtures.md +121 -0
- package/skills/playwright-pro/references/flaky-tests.md +56 -0
- package/skills/playwright-pro/references/golden-rules.md +12 -0
- package/skills/playwright-pro/references/locators.md +77 -0
- package/skills/playwright-pro/settings.json +8 -0
- package/skills/playwright-pro/skills/browserstack/SKILL.md +169 -0
- package/skills/playwright-pro/skills/fix/SKILL.md +114 -0
- package/skills/playwright-pro/skills/fix/flaky-taxonomy.md +134 -0
- package/skills/playwright-pro/skills/generate/SKILL.md +145 -0
- package/skills/playwright-pro/skills/generate/patterns.md +163 -0
- package/skills/playwright-pro/skills/init/SKILL.md +168 -0
- package/skills/playwright-pro/skills/migrate/SKILL.md +136 -0
- package/skills/playwright-pro/skills/migrate/cypress-mapping.md +79 -0
- package/skills/playwright-pro/skills/migrate/selenium-mapping.md +94 -0
- package/skills/playwright-pro/skills/report/SKILL.md +127 -0
- package/skills/playwright-pro/skills/review/SKILL.md +103 -0
- package/skills/playwright-pro/skills/review/anti-patterns.md +182 -0
- package/skills/playwright-pro/skills/testrail/SKILL.md +130 -0
- package/skills/playwright-pro/templates/README.md +123 -0
- package/skills/playwright-pro/templates/accessibility/color-contrast.md +162 -0
- package/skills/playwright-pro/templates/accessibility/keyboard-navigation.md +149 -0
- package/skills/playwright-pro/templates/accessibility/screen-reader.md +159 -0
- package/skills/playwright-pro/templates/api/auth-headers.md +148 -0
- package/skills/playwright-pro/templates/api/error-responses.md +157 -0
- package/skills/playwright-pro/templates/api/graphql.md +174 -0
- package/skills/playwright-pro/templates/api/rate-limiting.md +152 -0
- package/skills/playwright-pro/templates/api/rest-crud.md +152 -0
- package/skills/playwright-pro/templates/auth/login.md +119 -0
- package/skills/playwright-pro/templates/auth/logout.md +112 -0
- package/skills/playwright-pro/templates/auth/mfa.md +125 -0
- package/skills/playwright-pro/templates/auth/password-reset.md +129 -0
- package/skills/playwright-pro/templates/auth/rbac.md +132 -0
- package/skills/playwright-pro/templates/auth/remember-me.md +127 -0
- package/skills/playwright-pro/templates/auth/session-timeout.md +113 -0
- package/skills/playwright-pro/templates/auth/sso.md +115 -0
- package/skills/playwright-pro/templates/checkout/add-to-cart.md +112 -0
- package/skills/playwright-pro/templates/checkout/apply-coupon.md +123 -0
- package/skills/playwright-pro/templates/checkout/order-confirm.md +108 -0
- package/skills/playwright-pro/templates/checkout/order-history.md +119 -0
- package/skills/playwright-pro/templates/checkout/payment.md +148 -0
- package/skills/playwright-pro/templates/checkout/update-quantity.md +125 -0
- package/skills/playwright-pro/templates/crud/bulk-operations.md +129 -0
- package/skills/playwright-pro/templates/crud/create.md +118 -0
- package/skills/playwright-pro/templates/crud/delete.md +116 -0
- package/skills/playwright-pro/templates/crud/read.md +117 -0
- package/skills/playwright-pro/templates/crud/soft-delete.md +113 -0
- package/skills/playwright-pro/templates/crud/update.md +129 -0
- package/skills/playwright-pro/templates/dashboard/chart-rendering.md +131 -0
- package/skills/playwright-pro/templates/dashboard/data-loading.md +128 -0
- package/skills/playwright-pro/templates/dashboard/date-range-filter.md +136 -0
- package/skills/playwright-pro/templates/dashboard/export.md +146 -0
- package/skills/playwright-pro/templates/dashboard/realtime-updates.md +143 -0
- package/skills/playwright-pro/templates/forms/autosave.md +135 -0
- package/skills/playwright-pro/templates/forms/conditional-fields.md +120 -0
- package/skills/playwright-pro/templates/forms/file-upload.md +136 -0
- package/skills/playwright-pro/templates/forms/multi-step.md +137 -0
- package/skills/playwright-pro/templates/forms/single-step.md +124 -0
- package/skills/playwright-pro/templates/forms/validation.md +141 -0
- package/skills/playwright-pro/templates/notifications/in-app.md +125 -0
- package/skills/playwright-pro/templates/notifications/notification-center.md +128 -0
- package/skills/playwright-pro/templates/notifications/toast-messages.md +139 -0
- package/skills/playwright-pro/templates/onboarding/email-verification.md +118 -0
- package/skills/playwright-pro/templates/onboarding/first-time-setup.md +130 -0
- package/skills/playwright-pro/templates/onboarding/registration.md +131 -0
- package/skills/playwright-pro/templates/onboarding/welcome-tour.md +128 -0
- package/skills/playwright-pro/templates/search/basic-search.md +118 -0
- package/skills/playwright-pro/templates/search/empty-state.md +109 -0
- package/skills/playwright-pro/templates/search/filters.md +128 -0
- package/skills/playwright-pro/templates/search/pagination.md +123 -0
- package/skills/playwright-pro/templates/search/sorting.md +131 -0
- package/skills/playwright-pro/templates/settings/account-delete.md +136 -0
- package/skills/playwright-pro/templates/settings/notification-prefs.md +139 -0
- package/skills/playwright-pro/templates/settings/password-change.md +143 -0
- package/skills/playwright-pro/templates/settings/profile-update.md +130 -0
- package/skills/popup-cro/SKILL.md +142 -0
- package/skills/popup-cro/references/experiments.md +88 -0
- package/skills/popup-cro/references/popup-cro-playbook.md +261 -0
- package/skills/postman/SKILL.md +79 -0
- package/skills/pptx-generator/SKILL.md +246 -0
- package/skills/pptx-generator/references/design-system.md +392 -0
- package/skills/pptx-generator/references/editing.md +162 -0
- package/skills/pptx-generator/references/pitfalls.md +112 -0
- package/skills/pptx-generator/references/pptxgenjs.md +420 -0
- package/skills/pptx-generator/references/slide-types.md +413 -0
- package/skills/pricing-strategy/SKILL.md +101 -0
- package/skills/pricing-strategy/references/pricing-models.md +194 -0
- package/skills/pricing-strategy/references/pricing-page-playbook.md +221 -0
- package/skills/pricing-strategy/scripts/pricing_modeler.py +283 -0
- package/skills/product-analytics/SKILL.md +151 -0
- package/skills/product-analytics/references/dashboard-templates.md +66 -0
- package/skills/product-analytics/references/metrics-frameworks.md +84 -0
- package/skills/product-analytics/scripts/metrics_calculator.py +195 -0
- package/skills/product-discovery/SKILL.md +118 -0
- package/skills/product-discovery/references/discovery-frameworks.md +72 -0
- package/skills/product-discovery/scripts/assumption_mapper.py +123 -0
- package/skills/product-manager-toolkit/SKILL.md +121 -0
- package/skills/product-manager-toolkit/assets/prd_template.md +132 -0
- package/skills/product-manager-toolkit/assets/rice_input_template.csv +4 -0
- package/skills/product-manager-toolkit/references/frameworks.md +559 -0
- package/skills/product-manager-toolkit/references/input-output-examples.md +156 -0
- package/skills/product-manager-toolkit/references/prd_templates.md +317 -0
- package/skills/product-manager-toolkit/scripts/customer_interview_analyzer.py +452 -0
- package/skills/product-manager-toolkit/scripts/rice_prioritizer.py +296 -0
- package/skills/product-spec/SKILL.md +65 -0
- package/skills/product-strategist/SKILL.md +122 -0
- package/skills/product-strategist/assets/okr_template.md +106 -0
- package/skills/product-strategist/references/examples/sample_growth_okrs.json +366 -0
- package/skills/product-strategist/references/okr_framework.md +328 -0
- package/skills/product-strategist/references/strategy_types.md +320 -0
- package/skills/product-strategist/scripts/okr_cascade_generator.py +592 -0
- package/skills/programmatic-seo/SKILL.md +156 -0
- package/skills/programmatic-seo/references/playbooks.md +72 -0
- package/skills/programmatic-seo/scripts/url_pattern_generator.py +194 -0
- package/skills/prompt-engineer-toolkit/README.md +51 -0
- package/skills/prompt-engineer-toolkit/SKILL.md +136 -0
- package/skills/prompt-engineer-toolkit/references/evaluation-rubric.md +14 -0
- package/skills/prompt-engineer-toolkit/references/prompt-templates.md +105 -0
- package/skills/prompt-engineer-toolkit/references/technique-guide.md +25 -0
- package/skills/prompt-engineer-toolkit/scripts/prompt_tester.py +239 -0
- package/skills/prompt-engineer-toolkit/scripts/prompt_versioner.py +235 -0
- package/skills/prototype/SKILL.md +54 -0
- package/skills/qa-plan/SKILL.md +77 -0
- package/skills/qms-audit-expert/SKILL.md +116 -0
- package/skills/qms-audit-expert/references/iso13485-audit-guide.md +388 -0
- package/skills/qms-audit-expert/references/nonconformity-classification.md +221 -0
- package/skills/qms-audit-expert/scripts/audit_schedule_optimizer.py +420 -0
- package/skills/quality-documentation-manager/SKILL.md +140 -0
- package/skills/quality-documentation-manager/references/21cfr11-compliance-guide.md +398 -0
- package/skills/quality-documentation-manager/references/document-control-procedures.md +340 -0
- package/skills/quality-documentation-manager/scripts/document_validator.py +646 -0
- package/skills/quality-documentation-manager/scripts/document_version_control.py +466 -0
- package/skills/quality-manager-qmr/SKILL.md +129 -0
- package/skills/quality-manager-qmr/references/management-review-guide.md +378 -0
- package/skills/quality-manager-qmr/references/quality-kpi-framework.md +296 -0
- package/skills/quality-manager-qmr/scripts/management_review_tracker.py +580 -0
- package/skills/quality-manager-qmr/scripts/quality_effectiveness_monitor.py +481 -0
- package/skills/quality-manager-qms-iso13485/SKILL.md +129 -0
- package/skills/quality-manager-qms-iso13485/references/iso13485-clause-requirements.md +726 -0
- package/skills/quality-manager-qms-iso13485/references/qms-process-templates.md +876 -0
- package/skills/quality-manager-qms-iso13485/scripts/qms_audit_checklist.py +886 -0
- package/skills/query-optimization/SKILL.md +107 -0
- package/skills/quick-design/SKILL.md +47 -0
- package/skills/rag-architect/SKILL.md +117 -0
- package/skills/rag-architect/references/chunking_strategies_comparison.md +287 -0
- package/skills/rag-architect/references/embedding_model_benchmark.md +338 -0
- package/skills/rag-architect/references/rag_evaluation_framework.md +431 -0
- package/skills/rag-architect/scripts/chunking_optimizer.py +787 -0
- package/skills/rag-architect/scripts/rag_pipeline_designer.py +680 -0
- package/skills/rag-architect/scripts/retrieval_evaluator.py +578 -0
- package/skills/rate-limiting/SKILL.md +114 -0
- package/skills/rbac-abac/SKILL.md +70 -0
- package/skills/rbac-abac/references/anti-patterns.md +14 -0
- package/skills/rbac-abac/references/checklist.md +13 -0
- package/skills/rbac-abac/references/schema-jwt-cache.md +27 -0
- package/skills/react-native-dev/SKILL.md +139 -0
- package/skills/react-native-dev/references/animations.md +254 -0
- package/skills/react-native-dev/references/components.md +124 -0
- package/skills/react-native-dev/references/engineering.md +527 -0
- package/skills/react-native-dev/references/forms.md +300 -0
- package/skills/react-native-dev/references/native-capabilities.md +163 -0
- package/skills/react-native-dev/references/navigation.md +271 -0
- package/skills/react-native-dev/references/networking.md +346 -0
- package/skills/react-native-dev/references/performance.md +215 -0
- package/skills/react-native-dev/references/state-management.md +230 -0
- package/skills/react-native-dev/references/styling.md +117 -0
- package/skills/react-native-dev/references/testing.md +342 -0
- package/skills/read-replicas/SKILL.md +46 -0
- package/skills/read-replicas/references/anti-patterns-checklist.md +26 -0
- package/skills/read-replicas/references/consistency-connection.md +24 -0
- package/skills/read-replicas/references/ha-dr.md +18 -0
- package/skills/red-team/SKILL.md +120 -0
- package/skills/red-team/references/attack-path-methodology.md +135 -0
- package/skills/red-team/scripts/engagement_planner.py +420 -0
- package/skills/referral-program/SKILL.md +189 -0
- package/skills/referral-program/references/loop-and-incentives.md +81 -0
- package/skills/referral-program/references/measurement-framework.md +199 -0
- package/skills/referral-program/references/program-mechanics.md +212 -0
- package/skills/referral-program/scripts/referral_roi_calculator.py +420 -0
- package/skills/regression-suite/SKILL.md +89 -0
- package/skills/regulatory-affairs-head/SKILL.md +117 -0
- package/skills/regulatory-affairs-head/references/eu-mdr-submission-guide.md +95 -0
- package/skills/regulatory-affairs-head/references/fda-submission-guide.md +127 -0
- package/skills/regulatory-affairs-head/references/global-regulatory-pathways.md +283 -0
- package/skills/regulatory-affairs-head/references/iso-regulatory-requirements.md +363 -0
- package/skills/regulatory-affairs-head/scripts/regulatory_pathway_analyzer.py +557 -0
- package/skills/regulatory-affairs-head/scripts/regulatory_tracker.py +199 -0
- package/skills/release/SKILL.md +89 -0
- package/skills/release-announce/SKILL.md +64 -0
- package/skills/release-checklist/SKILL.md +63 -0
- package/skills/research-summarizer/SKILL.md +94 -0
- package/skills/research-summarizer/references/citation-formats.md +105 -0
- package/skills/research-summarizer/references/summary-templates.md +120 -0
- package/skills/research-summarizer/scripts/extract_citations.py +309 -0
- package/skills/research-summarizer/scripts/format_summary.py +244 -0
- package/skills/retrospective/SKILL.md +72 -0
- package/skills/revenue-operations/SKILL.md +101 -0
- package/skills/revenue-operations/assets/expected_output.json +117 -0
- package/skills/revenue-operations/assets/forecast_report_template.md +149 -0
- package/skills/revenue-operations/assets/gtm_dashboard_template.md +215 -0
- package/skills/revenue-operations/assets/pipeline_review_template.md +138 -0
- package/skills/revenue-operations/assets/sample_forecast_data.json +23 -0
- package/skills/revenue-operations/assets/sample_gtm_data.json +24 -0
- package/skills/revenue-operations/assets/sample_pipeline_data.json +160 -0
- package/skills/revenue-operations/references/gtm-efficiency-benchmarks.md +257 -0
- package/skills/revenue-operations/references/pipeline-management-framework.md +292 -0
- package/skills/revenue-operations/references/revops-metrics-guide.md +304 -0
- package/skills/revenue-operations/scripts/forecast_accuracy_tracker.py +531 -0
- package/skills/revenue-operations/scripts/gtm_efficiency_calculator.py +658 -0
- package/skills/revenue-operations/scripts/pipeline_analyzer.py +496 -0
- package/skills/reverse-document/SKILL.md +70 -0
- package/skills/risk-management-specialist/SKILL.md +125 -0
- package/skills/risk-management-specialist/references/iso14971-implementation-guide.md +468 -0
- package/skills/risk-management-specialist/references/risk-analysis-methods.md +415 -0
- package/skills/risk-management-specialist/references/risk-assessment-templates.md +77 -0
- package/skills/risk-management-specialist/scripts/fmea_analyzer.py +442 -0
- package/skills/risk-management-specialist/scripts/risk_matrix_calculator.py +419 -0
- package/skills/roadmap-communicator/SKILL.md +96 -0
- package/skills/roadmap-communicator/references/communication-templates.md +63 -0
- package/skills/roadmap-communicator/references/roadmap-templates.md +44 -0
- package/skills/roadmap-communicator/scripts/changelog_generator.py +151 -0
- package/skills/rollback-strategy/SKILL.md +80 -0
- package/skills/rollback-strategy/references/anti-patterns.md +14 -0
- package/skills/rollback-strategy/references/canary-auto-rollback.md +17 -0
- package/skills/rollback-strategy/references/communication-protocol.md +6 -0
- package/skills/rollback-strategy/references/mobile-rollback.md +10 -0
- package/skills/rollback-strategy/references/pre-deploy-checklist.md +15 -0
- package/skills/rollback-strategy/references/runbook-commands.md +147 -0
- package/skills/run-migrations/SKILL.md +67 -0
- package/skills/runbooks/SKILL.md +57 -0
- package/skills/runbooks/references/anti-patterns.md +6 -0
- package/skills/runbooks/references/checklist.md +13 -0
- package/skills/runbooks/references/lifecycle.md +14 -0
- package/skills/runbooks/references/writing-principles.md +9 -0
- package/skills/runbooks/templates/runbook.md +80 -0
- package/skills/saas-metrics-coach/SKILL.md +156 -0
- package/skills/saas-metrics-coach/assets/input-template.md +29 -0
- package/skills/saas-metrics-coach/references/benchmarks.md +101 -0
- package/skills/saas-metrics-coach/references/formulas.md +103 -0
- package/skills/saas-metrics-coach/scripts/metrics_calculator.py +217 -0
- package/skills/saas-metrics-coach/scripts/quick_ratio_calculator.py +173 -0
- package/skills/saas-metrics-coach/scripts/unit_economics_simulator.py +205 -0
- package/skills/sales-engineer/SKILL.md +104 -0
- package/skills/sales-engineer/assets/demo_script_template.md +232 -0
- package/skills/sales-engineer/assets/expected_output.json +474 -0
- package/skills/sales-engineer/assets/poc_scorecard_template.md +213 -0
- package/skills/sales-engineer/assets/sample_rfp_data.json +219 -0
- package/skills/sales-engineer/assets/technical_proposal_template.md +231 -0
- package/skills/sales-engineer/references/competitive-positioning-framework.md +226 -0
- package/skills/sales-engineer/references/poc-best-practices.md +277 -0
- package/skills/sales-engineer/references/rfp-response-guide.md +189 -0
- package/skills/sales-engineer/scripts/competitive_matrix_builder.py +525 -0
- package/skills/sales-engineer/scripts/poc_planner.py +765 -0
- package/skills/sales-engineer/scripts/rfp_response_analyzer.py +557 -0
- package/skills/scaffold-fastify-ts/SKILL.md +77 -0
- package/skills/scaffold-fastify-ts/references/anti-patterns.md +10 -0
- package/skills/scaffold-fastify-ts/references/key-decisions.md +27 -0
- package/skills/scaffold-go/SKILL.md +77 -0
- package/skills/scaffold-go/references/patterns.md +22 -0
- package/skills/scaffold-go/references/project-structure.md +15 -0
- package/skills/scaffold-react-native/SKILL.md +69 -0
- package/skills/scaffold-react-native/references/conventions.md +26 -0
- package/skills/scaffold-react-native/references/workflow-and-navigation.md +22 -0
- package/skills/scaffold-react-vite/SKILL.md +76 -0
- package/skills/scaffold-react-vite/references/anti-patterns.md +9 -0
- package/skills/scaffold-react-vite/references/dependency-baseline.md +22 -0
- package/skills/scaffold-unity/SKILL.md +52 -0
- package/skills/scaffold-unity/references/folder-structure-and-files.md +43 -0
- package/skills/scaffold-unity/references/naming-conventions.md +11 -0
- package/skills/scenario-war-room/SKILL.md +81 -0
- package/skills/scenario-war-room/references/cascade-model.md +103 -0
- package/skills/scenario-war-room/references/scenario-planning.md +212 -0
- package/skills/scenario-war-room/scripts/scenario_modeler.py +486 -0
- package/skills/schema-markup/SKILL.md +184 -0
- package/skills/schema-markup/references/implementation-patterns.md +437 -0
- package/skills/schema-markup/references/schema-types-guide.md +285 -0
- package/skills/schema-markup/references/testing-and-mistakes.md +43 -0
- package/skills/schema-markup/scripts/schema_validator.py +442 -0
- package/skills/scope-check/SKILL.md +67 -0
- package/skills/scope-check/references/report-template.md +56 -0
- package/skills/scrum-master/SKILL.md +128 -0
- package/skills/scrum-master/assets/expected_output.json +131 -0
- package/skills/scrum-master/assets/expected_velocity_output.json +85 -0
- package/skills/scrum-master/assets/sample_sprint_data.json +821 -0
- package/skills/scrum-master/assets/sprint_report_template.md +214 -0
- package/skills/scrum-master/assets/team_health_check_template.md +380 -0
- package/skills/scrum-master/references/retro-formats.md +336 -0
- package/skills/scrum-master/references/team-dynamics-framework.md +561 -0
- package/skills/scrum-master/references/velocity-forecasting-guide.md +386 -0
- package/skills/scrum-master/scripts/retrospective_analyzer.py +914 -0
- package/skills/scrum-master/scripts/sprint_health_scorer.py +744 -0
- package/skills/scrum-master/scripts/velocity_analyzer.py +580 -0
- package/skills/search-setup/SKILL.md +49 -0
- package/skills/search-setup/references/anti-patterns-checklist.md +24 -0
- package/skills/search-setup/references/engine-details.md +15 -0
- package/skills/search-setup/references/indexing-pipeline.md +11 -0
- package/skills/search-setup/references/observability.md +6 -0
- package/skills/secret-management/SKILL.md +49 -0
- package/skills/secret-management/references/anti-patterns.md +7 -0
- package/skills/secret-management/references/checklist.md +13 -0
- package/skills/secret-management/references/implementation-details.md +37 -0
- package/skills/security-audit/SKILL.md +86 -0
- package/skills/security-pen-testing/SKILL.md +114 -0
- package/skills/security-pen-testing/references/attack_patterns.md +629 -0
- package/skills/security-pen-testing/references/owasp_top_10_checklist.md +440 -0
- package/skills/security-pen-testing/references/responsible_disclosure.md +317 -0
- package/skills/security-pen-testing/scripts/dependency_auditor.py +455 -0
- package/skills/security-pen-testing/scripts/pentest_report_generator.py +462 -0
- package/skills/security-pen-testing/scripts/vulnerability_scanner.py +545 -0
- package/skills/self-improving-agent/.claude-plugin/plugin.json +13 -0
- package/skills/self-improving-agent/CLAUDE.md +79 -0
- package/skills/self-improving-agent/LICENSE +21 -0
- package/skills/self-improving-agent/SKILL.md +112 -0
- package/skills/self-improving-agent/agents/memory-analyst.md +74 -0
- package/skills/self-improving-agent/agents/skill-extractor.md +110 -0
- package/skills/self-improving-agent/hooks/error-capture.sh +110 -0
- package/skills/self-improving-agent/hooks/hooks.json +15 -0
- package/skills/self-improving-agent/reference/memory-architecture.md +131 -0
- package/skills/self-improving-agent/reference/promotion-rules.md +83 -0
- package/skills/self-improving-agent/reference/rules-directory-patterns.md +137 -0
- package/skills/self-improving-agent/settings.json +28 -0
- package/skills/self-improving-agent/skills/extract/SKILL.md +182 -0
- package/skills/self-improving-agent/skills/promote/SKILL.md +148 -0
- package/skills/self-improving-agent/skills/remember/SKILL.md +102 -0
- package/skills/self-improving-agent/skills/review/SKILL.md +130 -0
- package/skills/self-improving-agent/skills/status/SKILL.md +107 -0
- package/skills/self-improving-agent/templates/rule-template.md +17 -0
- package/skills/self-improving-agent/templates/skill-template.md +53 -0
- package/skills/senior-computer-vision/SKILL.md +125 -0
- package/skills/senior-computer-vision/references/computer_vision_architectures.md +683 -0
- package/skills/senior-computer-vision/references/object_detection_optimization.md +885 -0
- package/skills/senior-computer-vision/references/production_vision_systems.md +1226 -0
- package/skills/senior-computer-vision/references/reference-docs-and-commands.md +96 -0
- package/skills/senior-computer-vision/scripts/dataset_pipeline_builder.py +1699 -0
- package/skills/senior-computer-vision/scripts/inference_optimizer.py +557 -0
- package/skills/senior-computer-vision/scripts/vision_model_trainer.py +576 -0
- package/skills/senior-data-engineer/SKILL.md +198 -0
- package/skills/senior-data-engineer/references/data_modeling_patterns.md +1058 -0
- package/skills/senior-data-engineer/references/data_pipeline_architecture.md +1100 -0
- package/skills/senior-data-engineer/references/dataops_best_practices.md +1502 -0
- package/skills/senior-data-engineer/references/troubleshooting.md +183 -0
- package/skills/senior-data-engineer/references/workflows.md +624 -0
- package/skills/senior-data-engineer/scripts/data_quality_validator.py +1636 -0
- package/skills/senior-data-engineer/scripts/etl_performance_optimizer.py +1685 -0
- package/skills/senior-data-engineer/scripts/pipeline_orchestrator.py +883 -0
- package/skills/senior-data-scientist/SKILL.md +117 -0
- package/skills/senior-data-scientist/references/experiment_design_frameworks.md +80 -0
- package/skills/senior-data-scientist/references/feature_engineering_patterns.md +80 -0
- package/skills/senior-data-scientist/references/statistical_methods_advanced.md +80 -0
- package/skills/senior-data-scientist/scripts/experiment_designer.py +100 -0
- package/skills/senior-data-scientist/scripts/feature_engineering_pipeline.py +100 -0
- package/skills/senior-data-scientist/scripts/model_evaluation_suite.py +100 -0
- package/skills/senior-ml-engineer/SKILL.md +121 -0
- package/skills/senior-ml-engineer/references/llm_integration_guide.md +317 -0
- package/skills/senior-ml-engineer/references/mlops_production_patterns.md +265 -0
- package/skills/senior-ml-engineer/references/rag_system_architecture.md +371 -0
- package/skills/senior-ml-engineer/scripts/ml_monitoring_suite.py +100 -0
- package/skills/senior-ml-engineer/scripts/model_deployment_pipeline.py +100 -0
- package/skills/senior-ml-engineer/scripts/rag_system_builder.py +100 -0
- package/skills/senior-pm/SKILL.md +109 -0
- package/skills/senior-pm/assets/executive_report_template.md +267 -0
- package/skills/senior-pm/assets/expected_output.json +150 -0
- package/skills/senior-pm/assets/project_charter_template.md +274 -0
- package/skills/senior-pm/assets/raci_matrix_template.md +265 -0
- package/skills/senior-pm/assets/sample_project_data.json +458 -0
- package/skills/senior-pm/references/portfolio-kpis.md +32 -0
- package/skills/senior-pm/references/portfolio-prioritization-models.md +645 -0
- package/skills/senior-pm/references/risk-management-framework.md +485 -0
- package/skills/senior-pm/scripts/project_health_dashboard.py +814 -0
- package/skills/senior-pm/scripts/resource_capacity_planner.py +846 -0
- package/skills/senior-pm/scripts/risk_matrix_analyzer.py +698 -0
- package/skills/senior-prompt-engineer/SKILL.md +108 -0
- package/skills/senior-prompt-engineer/references/agentic_system_design.md +646 -0
- package/skills/senior-prompt-engineer/references/llm_evaluation_frameworks.md +524 -0
- package/skills/senior-prompt-engineer/references/prompt_engineering_patterns.md +572 -0
- package/skills/senior-prompt-engineer/scripts/agent_orchestrator.py +560 -0
- package/skills/senior-prompt-engineer/scripts/prompt_optimizer.py +519 -0
- package/skills/senior-prompt-engineer/scripts/rag_evaluator.py +574 -0
- package/skills/seo-audit/SKILL.md +150 -0
- package/skills/seo-audit/references/aeo-geo-patterns.md +110 -0
- package/skills/seo-audit/references/ai-writing-detection.md +63 -0
- package/skills/seo-audit/references/seo-audit-reference.md +289 -0
- package/skills/seo-audit/scripts/seo_checker.py +361 -0
- package/skills/shader-dev/SKILL.md +299 -0
- package/skills/shader-dev/reference/ambient-occlusion.md +382 -0
- package/skills/shader-dev/reference/analytic-ray-tracing.md +651 -0
- package/skills/shader-dev/reference/anti-aliasing.md +71 -0
- package/skills/shader-dev/reference/atmospheric-scattering.md +571 -0
- package/skills/shader-dev/reference/camera-effects.md +80 -0
- package/skills/shader-dev/reference/cellular-automata.md +635 -0
- package/skills/shader-dev/reference/color-palette.md +481 -0
- package/skills/shader-dev/reference/csg-boolean-operations.md +466 -0
- package/skills/shader-dev/reference/domain-repetition.md +436 -0
- package/skills/shader-dev/reference/domain-warping.md +419 -0
- package/skills/shader-dev/reference/fluid-simulation.md +425 -0
- package/skills/shader-dev/reference/fractal-rendering.md +525 -0
- package/skills/shader-dev/reference/lighting-model.md +639 -0
- package/skills/shader-dev/reference/matrix-transform.md +535 -0
- package/skills/shader-dev/reference/multipass-buffer.md +571 -0
- package/skills/shader-dev/reference/normal-estimation.md +418 -0
- package/skills/shader-dev/reference/particle-system.md +589 -0
- package/skills/shader-dev/reference/path-tracing-gi.md +602 -0
- package/skills/shader-dev/reference/polar-uv-manipulation.md +521 -0
- package/skills/shader-dev/reference/post-processing.md +375 -0
- package/skills/shader-dev/reference/procedural-2d-pattern.md +439 -0
- package/skills/shader-dev/reference/procedural-noise.md +551 -0
- package/skills/shader-dev/reference/ray-marching.md +396 -0
- package/skills/shader-dev/reference/sdf-2d.md +724 -0
- package/skills/shader-dev/reference/sdf-3d.md +805 -0
- package/skills/shader-dev/reference/sdf-tricks.md +63 -0
- package/skills/shader-dev/reference/shadow-techniques.md +476 -0
- package/skills/shader-dev/reference/simulation-physics.md +644 -0
- package/skills/shader-dev/reference/sound-synthesis.md +578 -0
- package/skills/shader-dev/reference/terrain-rendering.md +839 -0
- package/skills/shader-dev/reference/texture-mapping-advanced.md +87 -0
- package/skills/shader-dev/reference/texture-sampling.md +553 -0
- package/skills/shader-dev/reference/volumetric-rendering.md +608 -0
- package/skills/shader-dev/reference/voronoi-cellular-noise.md +486 -0
- package/skills/shader-dev/reference/voxel-rendering.md +701 -0
- package/skills/shader-dev/reference/water-ocean.md +445 -0
- package/skills/shader-dev/reference/webgl-pitfalls.md +41 -0
- package/skills/shader-dev/techniques/ambient-occlusion.md +364 -0
- package/skills/shader-dev/techniques/analytic-ray-tracing.md +542 -0
- package/skills/shader-dev/techniques/anti-aliasing.md +124 -0
- package/skills/shader-dev/techniques/atmospheric-scattering.md +522 -0
- package/skills/shader-dev/techniques/camera-effects.md +115 -0
- package/skills/shader-dev/techniques/cellular-automata.md +531 -0
- package/skills/shader-dev/techniques/color-palette.md +380 -0
- package/skills/shader-dev/techniques/csg-boolean-operations.md +491 -0
- package/skills/shader-dev/techniques/domain-repetition.md +333 -0
- package/skills/shader-dev/techniques/domain-warping.md +414 -0
- package/skills/shader-dev/techniques/fluid-simulation.md +1175 -0
- package/skills/shader-dev/techniques/fractal-rendering.md +436 -0
- package/skills/shader-dev/techniques/lighting-model.md +527 -0
- package/skills/shader-dev/techniques/matrix-transform.md +455 -0
- package/skills/shader-dev/techniques/multipass-buffer.md +922 -0
- package/skills/shader-dev/techniques/normal-estimation.md +318 -0
- package/skills/shader-dev/techniques/particle-system.md +1203 -0
- package/skills/shader-dev/techniques/path-tracing-gi.md +623 -0
- package/skills/shader-dev/techniques/polar-uv-manipulation.md +373 -0
- package/skills/shader-dev/techniques/post-processing.md +788 -0
- package/skills/shader-dev/techniques/procedural-2d-pattern.md +346 -0
- package/skills/shader-dev/techniques/procedural-noise.md +554 -0
- package/skills/shader-dev/techniques/ray-marching.md +467 -0
- package/skills/shader-dev/techniques/sdf-2d.md +631 -0
- package/skills/shader-dev/techniques/sdf-3d.md +589 -0
- package/skills/shader-dev/techniques/sdf-tricks.md +100 -0
- package/skills/shader-dev/techniques/shadow-techniques.md +776 -0
- package/skills/shader-dev/techniques/simulation-physics.md +1542 -0
- package/skills/shader-dev/techniques/sound-synthesis.md +490 -0
- package/skills/shader-dev/techniques/terrain-rendering.md +408 -0
- package/skills/shader-dev/techniques/texture-mapping-advanced.md +121 -0
- package/skills/shader-dev/techniques/texture-sampling.md +382 -0
- package/skills/shader-dev/techniques/volumetric-rendering.md +375 -0
- package/skills/shader-dev/techniques/voronoi-cellular-noise.md +458 -0
- package/skills/shader-dev/techniques/voxel-rendering.md +985 -0
- package/skills/shader-dev/techniques/water-ocean.md +490 -0
- package/skills/shader-dev/techniques/webgl-pitfalls.md +170 -0
- package/skills/signup-flow-cro/SKILL.md +150 -0
- package/skills/signup-flow-cro/references/experiments.md +76 -0
- package/skills/signup-flow-cro/references/signup-cro-playbook.md +180 -0
- package/skills/signup-flow-cro/scripts/funnel_drop_analyzer.py +320 -0
- package/skills/site-architecture/SKILL.md +167 -0
- package/skills/site-architecture/references/internal-linking-playbook.md +216 -0
- package/skills/site-architecture/references/navigation-design.md +32 -0
- package/skills/site-architecture/references/silo-and-linking-guide.md +80 -0
- package/skills/site-architecture/references/url-design-guide.md +220 -0
- package/skills/site-architecture/scripts/sitemap_analyzer.py +375 -0
- package/skills/skill-auditor/SKILL.md +159 -0
- package/skills/skill-auditor/references/frontmatter-spec.md +113 -0
- package/skills/skill-auditor/references/lazy-loading-guide.md +98 -0
- package/skills/skill-improve/SKILL.md +59 -0
- package/skills/skill-test/SKILL.md +45 -0
- package/skills/skill-test/references/audit-mode-procedure.md +7 -0
- package/skills/skill-test/references/category-mode-procedure.md +7 -0
- package/skills/skill-test/references/next-steps-guide.md +9 -0
- package/skills/skill-test/references/spec-mode-procedure.md +8 -0
- package/skills/skill-test/references/static-checks.md +13 -0
- package/skills/slack/SKILL.md +45 -0
- package/skills/slo-sli/SKILL.md +92 -0
- package/skills/slo-sli/references/alerting-burn-rate.md +22 -0
- package/skills/slo-sli/references/anti-patterns.md +12 -0
- package/skills/slo-sli/references/checklist.md +14 -0
- package/skills/smoke-check/SKILL.md +77 -0
- package/skills/snowflake-development/SKILL.md +119 -0
- package/skills/snowflake-development/references/cortex_ai_and_agents.md +280 -0
- package/skills/snowflake-development/references/snowflake_sql_and_pipelines.md +281 -0
- package/skills/snowflake-development/references/troubleshooting.md +155 -0
- package/skills/snowflake-development/scripts/snowflake_query_helper.py +233 -0
- package/skills/soc2-compliance/SKILL.md +132 -0
- package/skills/soc2-compliance/references/evidence_collection_guide.md +227 -0
- package/skills/soc2-compliance/references/trust_service_criteria.md +273 -0
- package/skills/soc2-compliance/references/type1_vs_type2.md +273 -0
- package/skills/soc2-compliance/scripts/control_matrix_builder.py +679 -0
- package/skills/soc2-compliance/scripts/evidence_tracker.py +240 -0
- package/skills/soc2-compliance/scripts/gap_analyzer.py +479 -0
- package/skills/social-content/SKILL.md +155 -0
- package/skills/social-content/references/hooks-and-repurposing.md +74 -0
- package/skills/social-content/references/platforms.md +163 -0
- package/skills/social-content/references/post-templates.md +171 -0
- package/skills/social-content/references/reverse-engineering.md +190 -0
- package/skills/social-media-analyzer/HOW_TO_USE.md +39 -0
- package/skills/social-media-analyzer/SKILL.md +190 -0
- package/skills/social-media-analyzer/assets/expected_output.json +61 -0
- package/skills/social-media-analyzer/assets/sample_input.json +42 -0
- package/skills/social-media-analyzer/references/platform-benchmarks.md +226 -0
- package/skills/social-media-analyzer/scripts/analyze_performance.py +180 -0
- package/skills/social-media-analyzer/scripts/calculate_metrics.py +147 -0
- package/skills/social-media-manager/SKILL.md +195 -0
- package/skills/social-media-manager/scripts/social_calendar_generator.py +399 -0
- package/skills/sprint-ceremony/SKILL.md +75 -0
- package/skills/sprint-plan/SKILL.md +47 -0
- package/skills/sprint-report/SKILL.md +124 -0
- package/skills/standup-report/SKILL.md +51 -0
- package/skills/start/SKILL.md +67 -0
- package/skills/start-service/SKILL.md +45 -0
- package/skills/state-management/SKILL.md +75 -0
- package/skills/story-done/SKILL.md +69 -0
- package/skills/story-done/references/review-gates.md +9 -0
- package/skills/story-done/references/test-evidence-traceability.md +17 -0
- package/skills/story-readiness/SKILL.md +57 -0
- package/skills/story-readiness/references/context-loading.md +9 -0
- package/skills/story-readiness/references/output-format.md +7 -0
- package/skills/story-readiness/references/readiness-checklist.md +33 -0
- package/skills/strategic-alignment/SKILL.md +79 -0
- package/skills/strategic-alignment/references/alignment-playbook.md +205 -0
- package/skills/strategic-alignment/scripts/alignment_checker.py +455 -0
- package/skills/stripe-integration-expert/SKILL.md +65 -0
- package/skills/stripe-integration-expert/references/stripe-code-examples.md +372 -0
- package/skills/tdd-guide/HOW_TO_USE.md +313 -0
- package/skills/tdd-guide/SKILL.md +114 -0
- package/skills/tdd-guide/assets/expected_output.json +77 -0
- package/skills/tdd-guide/assets/sample_coverage_report.lcov +56 -0
- package/skills/tdd-guide/assets/sample_input_python.json +39 -0
- package/skills/tdd-guide/assets/sample_input_typescript.json +36 -0
- package/skills/tdd-guide/references/ci-integration.md +195 -0
- package/skills/tdd-guide/references/framework-guide.md +206 -0
- package/skills/tdd-guide/references/tdd-best-practices.md +128 -0
- package/skills/tdd-guide/references/tdd-code-examples.md +229 -0
- package/skills/tdd-guide/scripts/coverage_analyzer.py +434 -0
- package/skills/tdd-guide/scripts/fixture_generator.py +440 -0
- package/skills/tdd-guide/scripts/format_detector.py +384 -0
- package/skills/tdd-guide/scripts/framework_adapter.py +428 -0
- package/skills/tdd-guide/scripts/metrics_calculator.py +456 -0
- package/skills/tdd-guide/scripts/output_formatter.py +354 -0
- package/skills/tdd-guide/scripts/tdd_workflow.py +474 -0
- package/skills/tdd-guide/scripts/test_generator.py +438 -0
- package/skills/team-communications/SKILL.md +69 -0
- package/skills/team-communications/references/3p-updates.md +47 -0
- package/skills/team-communications/references/company-newsletter.md +65 -0
- package/skills/team-communications/references/faq-answers.md +30 -0
- package/skills/team-communications/references/general-comms.md +16 -0
- package/skills/team-vn/SKILL.md +187 -0
- package/skills/tech-debt/SKILL.md +91 -0
- package/skills/tech-debt/references/register-format.md +20 -0
- package/skills/tech-debt/references/scan-indicators.md +22 -0
- package/skills/tech-stack-evaluator/SKILL.md +111 -0
- package/skills/tech-stack-evaluator/assets/expected_output_comparison.json +82 -0
- package/skills/tech-stack-evaluator/assets/sample_input_structured.json +39 -0
- package/skills/tech-stack-evaluator/assets/sample_input_tco.json +42 -0
- package/skills/tech-stack-evaluator/assets/sample_input_text.json +4 -0
- package/skills/tech-stack-evaluator/references/examples.md +383 -0
- package/skills/tech-stack-evaluator/references/metrics.md +242 -0
- package/skills/tech-stack-evaluator/references/workflows.md +362 -0
- package/skills/tech-stack-evaluator/scripts/ecosystem_analyzer.py +501 -0
- package/skills/tech-stack-evaluator/scripts/format_detector.py +430 -0
- package/skills/tech-stack-evaluator/scripts/migration_analyzer.py +587 -0
- package/skills/tech-stack-evaluator/scripts/report_generator.py +460 -0
- package/skills/tech-stack-evaluator/scripts/security_assessor.py +518 -0
- package/skills/tech-stack-evaluator/scripts/stack_comparator.py +389 -0
- package/skills/tech-stack-evaluator/scripts/tco_calculator.py +458 -0
- package/skills/terraform-init/SKILL.md +80 -0
- package/skills/terraform-init/references/anti-patterns.md +11 -0
- package/skills/terraform-init/references/security-checklist.md +10 -0
- package/skills/test-flakiness/SKILL.md +90 -0
- package/skills/test-helpers/SKILL.md +50 -0
- package/skills/test-setup/SKILL.md +58 -0
- package/skills/testing/SKILL.md +32 -0
- package/skills/testing/references/anti-patterns.md +11 -0
- package/skills/testing/references/coverage-strategy.md +11 -0
- package/skills/testing/references/framework-setup.md +25 -0
- package/skills/testing/references/helper-patterns.md +9 -0
- package/skills/threat-detection/SKILL.md +114 -0
- package/skills/threat-detection/references/hunt-playbooks.md +131 -0
- package/skills/threat-detection/scripts/threat_signal_analyzer.py +571 -0
- package/skills/unity-game-architecture/SKILL.md +45 -0
- package/skills/unity-game-architecture/references/anti-patterns.md +15 -0
- package/skills/unity-game-architecture/references/checklist.md +16 -0
- package/skills/unity-game-architecture/references/performance-and-systems.md +29 -0
- package/skills/user-persona/SKILL.md +65 -0
- package/skills/user-persona/references/persona-template.md +27 -0
- package/skills/ux-design/SKILL.md +60 -0
- package/skills/ux-design/references/cross-reference-and-routing.md +19 -0
- package/skills/ux-design/references/spec-sections.md +19 -0
- package/skills/ux-review/SKILL.md +70 -0
- package/skills/video-content-strategist/SKILL.md +181 -0
- package/skills/video-content-strategist/references/scripts-and-anti-patterns.md +48 -0
- package/skills/visual-regression/SKILL.md +86 -0
- package/skills/vn-asset-pipeline/SKILL.md +166 -0
- package/skills/vn-character-design/SKILL.md +220 -0
- package/skills/vn-comfyui-gen/SKILL.md +235 -0
- package/skills/vn-comfyui-gen/references/comfyui-vn-workflows.md +197 -0
- package/skills/vn-dialogue-tree/SKILL.md +126 -0
- package/skills/vn-gdd/SKILL.md +133 -0
- package/skills/vn-narrative-design/SKILL.md +185 -0
- package/skills/vn-renpy-setup/SKILL.md +136 -0
- package/skills/vn-scene-compose/SKILL.md +234 -0
- package/skills/vn-script/SKILL.md +140 -0
- package/skills/vn-script/references/renpy-cheatsheet.md +169 -0
- package/skills/vn-testing/SKILL.md +178 -0
- package/skills/vn-ui-design/SKILL.md +220 -0
- package/skills/web-security/SKILL.md +92 -0
- package/skills/web-security/references/csp-and-frontend.md +36 -0
- package/skills/webhooks/SKILL.md +102 -0
- package/skills/websocket-realtime-rooms/SKILL.md +46 -0
- package/skills/websocket-realtime-rooms/references/anti-patterns-checklist.md +27 -0
- package/skills/websocket-realtime-rooms/references/auth-security.md +9 -0
- package/skills/websocket-realtime-rooms/references/client-implementation.md +15 -0
- package/skills/websocket-realtime-rooms/references/heartbeat-reconnect-backpressure.md +17 -0
- package/skills/weekly-digest/SKILL.md +51 -0
- package/skills/worktree-isolation/README.md +193 -0
- package/skills/worktree-isolation/SKILL.md +87 -0
- package/skills/worktree-isolation/scripts/apply.py +178 -0
- package/skills/worktree-isolation/scripts/lib.py +371 -0
- package/skills/worktree-isolation-setup/README.md +137 -0
- package/skills/worktree-isolation-setup/SKILL.md +192 -0
- package/skills/worktree-isolation-setup/scripts/apply.py +178 -0
- package/skills/worktree-isolation-setup/scripts/install_hook.py +118 -0
- package/skills/worktree-isolation-setup/scripts/lib.py +371 -0
- package/skills/x-twitter-growth/SKILL.md +91 -0
- package/skills/x-twitter-growth/references/algorithm-signals.md +70 -0
- package/skills/x-twitter-growth/scripts/competitor_analyzer.py +235 -0
- package/skills/x-twitter-growth/scripts/content_planner.py +210 -0
- package/skills/x-twitter-growth/scripts/growth_tracker.py +259 -0
- package/skills/x-twitter-growth/scripts/profile_auditor.py +294 -0
- package/skills/x-twitter-growth/scripts/tweet_composer.py +290 -0
- package/skills/xlsx-generator/SKILL.md +135 -0
- package/skills/xlsx-generator/references/create.md +691 -0
- package/skills/xlsx-generator/references/edit.md +684 -0
- package/skills/xlsx-generator/references/fix.md +37 -0
- package/skills/xlsx-generator/references/format.md +768 -0
- package/skills/xlsx-generator/references/ooxml-cheatsheet.md +231 -0
- package/skills/xlsx-generator/references/read-analyze.md +97 -0
- package/skills/xlsx-generator/references/validate.md +772 -0
- package/skills/xlsx-generator/scripts/formula_check.py +422 -0
- package/skills/xlsx-generator/scripts/libreoffice_recalc.py +248 -0
- package/skills/xlsx-generator/scripts/shared_strings_builder.py +163 -0
- package/skills/xlsx-generator/scripts/style_audit.py +575 -0
- package/skills/xlsx-generator/scripts/xlsx_add_column.py +395 -0
- package/skills/xlsx-generator/scripts/xlsx_insert_row.py +274 -0
- package/skills/xlsx-generator/scripts/xlsx_pack.py +87 -0
- package/skills/xlsx-generator/scripts/xlsx_reader.py +362 -0
- package/skills/xlsx-generator/scripts/xlsx_shift_rows.py +396 -0
- package/skills/xlsx-generator/scripts/xlsx_unpack.py +130 -0
- package/skills/xlsx-generator/templates/minimal_xlsx/[Content_Types].xml +9 -0
- package/skills/xlsx-generator/templates/minimal_xlsx/_rels/.rels +6 -0
- package/skills/xlsx-generator/templates/minimal_xlsx/xl/_rels/workbook.xml.rels +19 -0
- package/skills/xlsx-generator/templates/minimal_xlsx/xl/sharedStrings.xml +33 -0
- package/skills/xlsx-generator/templates/minimal_xlsx/xl/styles.xml +160 -0
- package/skills/xlsx-generator/templates/minimal_xlsx/xl/workbook.xml +30 -0
- package/skills/xlsx-generator/templates/minimal_xlsx/xl/worksheets/sheet1.xml +70 -0
- package/templates/gamedev/architecture-decision-record.md +176 -0
- package/templates/gamedev/art-bible.md +80 -0
- package/templates/gamedev/concept-doc-from-prototype.md +304 -0
- package/templates/gamedev/difficulty-curve.md +330 -0
- package/templates/gamedev/economy-model.md +130 -0
- package/templates/gamedev/faction-design.md +166 -0
- package/templates/gamedev/game-concept.md +316 -0
- package/templates/gamedev/game-design-document.md +219 -0
- package/templates/gamedev/game-pillars.md +313 -0
- package/templates/gamedev/hud-design.md +505 -0
- package/templates/gamedev/level-design-document.md +111 -0
- package/templates/gamedev/narrative-character-sheet.md +111 -0
- package/templates/gamedev/pitch-document.md +140 -0
- package/templates/gamedev/player-journey.md +357 -0
- package/templates/gamedev/project-stage-report.md +199 -0
- package/templates/gamedev/sound-bible.md +130 -0
- package/templates/gamedev/systems-index.md +146 -0
- package/templates/gamedev/technical-design-document.md +96 -0
- package/templates/gamedev/test-evidence.md +86 -0
- package/templates/gamedev/test-plan.md +144 -0
|
@@ -0,0 +1,1638 @@
|
|
|
1
|
+
#!/usr/bin/env python3
|
|
2
|
+
"""
|
|
3
|
+
PIR (Post-Incident Review) Generator
|
|
4
|
+
|
|
5
|
+
Generates comprehensive Post-Incident Review documents from incident data, timelines,
|
|
6
|
+
and actions taken. Applies multiple RCA frameworks including 5 Whys, Fishbone diagram,
|
|
7
|
+
and Timeline analysis.
|
|
8
|
+
|
|
9
|
+
This tool creates structured PIR documents with root cause analysis, lessons learned,
|
|
10
|
+
action items, and follow-up recommendations.
|
|
11
|
+
|
|
12
|
+
Usage:
|
|
13
|
+
python pir_generator.py --incident incident.json --timeline timeline.json --output pir.md
|
|
14
|
+
python pir_generator.py --incident incident.json --rca-method fishbone --action-items
|
|
15
|
+
cat incident.json | python pir_generator.py --format markdown
|
|
16
|
+
"""
|
|
17
|
+
|
|
18
|
+
import argparse
|
|
19
|
+
import json
|
|
20
|
+
import sys
|
|
21
|
+
import re
|
|
22
|
+
from datetime import datetime, timezone, timedelta
|
|
23
|
+
from typing import Dict, List, Optional, Any, Tuple
|
|
24
|
+
from collections import defaultdict, Counter
|
|
25
|
+
|
|
26
|
+
|
|
27
|
+
class PIRGenerator:
|
|
28
|
+
"""
|
|
29
|
+
Generates comprehensive Post-Incident Review documents with multiple
|
|
30
|
+
RCA frameworks, lessons learned, and actionable follow-up items.
|
|
31
|
+
"""
|
|
32
|
+
|
|
33
|
+
def __init__(self):
|
|
34
|
+
"""Initialize the PIR generator with templates and frameworks."""
|
|
35
|
+
self.rca_frameworks = self._load_rca_frameworks()
|
|
36
|
+
self.pir_templates = self._load_pir_templates()
|
|
37
|
+
self.severity_guidelines = self._load_severity_guidelines()
|
|
38
|
+
self.action_item_types = self._load_action_item_types()
|
|
39
|
+
self.lessons_learned_categories = self._load_lessons_learned_categories()
|
|
40
|
+
|
|
41
|
+
def _load_rca_frameworks(self) -> Dict[str, Dict]:
|
|
42
|
+
"""Load root cause analysis framework definitions."""
|
|
43
|
+
return {
|
|
44
|
+
"five_whys": {
|
|
45
|
+
"name": "5 Whys Analysis",
|
|
46
|
+
"description": "Iterative questioning technique to explore cause-and-effect relationships",
|
|
47
|
+
"steps": [
|
|
48
|
+
"State the problem clearly",
|
|
49
|
+
"Ask why the problem occurred",
|
|
50
|
+
"For each answer, ask why again",
|
|
51
|
+
"Continue until root cause is identified",
|
|
52
|
+
"Verify the root cause addresses the original problem"
|
|
53
|
+
],
|
|
54
|
+
"min_iterations": 3,
|
|
55
|
+
"max_iterations": 7
|
|
56
|
+
},
|
|
57
|
+
"fishbone": {
|
|
58
|
+
"name": "Fishbone (Ishikawa) Diagram",
|
|
59
|
+
"description": "Systematic analysis across multiple categories of potential causes",
|
|
60
|
+
"categories": [
|
|
61
|
+
{
|
|
62
|
+
"name": "People",
|
|
63
|
+
"description": "Human factors, training, communication, experience",
|
|
64
|
+
"examples": ["Training gaps", "Communication failures", "Skill deficits", "Staffing issues"]
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"name": "Process",
|
|
68
|
+
"description": "Procedures, workflows, change management, review processes",
|
|
69
|
+
"examples": ["Missing procedures", "Inadequate reviews", "Change management gaps", "Documentation issues"]
|
|
70
|
+
},
|
|
71
|
+
{
|
|
72
|
+
"name": "Technology",
|
|
73
|
+
"description": "Systems, tools, architecture, automation",
|
|
74
|
+
"examples": ["Architecture limitations", "Tool deficiencies", "Automation gaps", "Infrastructure issues"]
|
|
75
|
+
},
|
|
76
|
+
{
|
|
77
|
+
"name": "Environment",
|
|
78
|
+
"description": "External factors, dependencies, infrastructure",
|
|
79
|
+
"examples": ["Third-party dependencies", "Network issues", "Hardware failures", "External service outages"]
|
|
80
|
+
}
|
|
81
|
+
]
|
|
82
|
+
},
|
|
83
|
+
"timeline": {
|
|
84
|
+
"name": "Timeline Analysis",
|
|
85
|
+
"description": "Chronological analysis of events to identify decision points and missed opportunities",
|
|
86
|
+
"focus_areas": [
|
|
87
|
+
"Detection timing and effectiveness",
|
|
88
|
+
"Response time and escalation paths",
|
|
89
|
+
"Decision points and alternative paths",
|
|
90
|
+
"Communication effectiveness",
|
|
91
|
+
"Mitigation strategy effectiveness"
|
|
92
|
+
]
|
|
93
|
+
},
|
|
94
|
+
"bow_tie": {
|
|
95
|
+
"name": "Bow Tie Analysis",
|
|
96
|
+
"description": "Analysis of both preventive and protective measures around an incident",
|
|
97
|
+
"components": [
|
|
98
|
+
"Hazards (what could go wrong)",
|
|
99
|
+
"Top events (what actually went wrong)",
|
|
100
|
+
"Threats (what caused it)",
|
|
101
|
+
"Consequences (what was the impact)",
|
|
102
|
+
"Barriers (what preventive/protective measures exist or could exist)"
|
|
103
|
+
]
|
|
104
|
+
}
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
def _load_pir_templates(self) -> Dict[str, str]:
|
|
108
|
+
"""Load PIR document templates for different severity levels."""
|
|
109
|
+
return {
|
|
110
|
+
"comprehensive": """# Post-Incident Review: {incident_title}
|
|
111
|
+
|
|
112
|
+
## Executive Summary
|
|
113
|
+
{executive_summary}
|
|
114
|
+
|
|
115
|
+
## Incident Overview
|
|
116
|
+
- **Incident ID:** {incident_id}
|
|
117
|
+
- **Date & Time:** {incident_date}
|
|
118
|
+
- **Duration:** {duration}
|
|
119
|
+
- **Severity:** {severity}
|
|
120
|
+
- **Status:** {status}
|
|
121
|
+
- **Incident Commander:** {incident_commander}
|
|
122
|
+
- **Responders:** {responders}
|
|
123
|
+
|
|
124
|
+
### Customer Impact
|
|
125
|
+
{customer_impact}
|
|
126
|
+
|
|
127
|
+
### Business Impact
|
|
128
|
+
{business_impact}
|
|
129
|
+
|
|
130
|
+
## Timeline
|
|
131
|
+
{timeline_section}
|
|
132
|
+
|
|
133
|
+
## Root Cause Analysis
|
|
134
|
+
{rca_section}
|
|
135
|
+
|
|
136
|
+
## What Went Well
|
|
137
|
+
{what_went_well}
|
|
138
|
+
|
|
139
|
+
## What Didn't Go Well
|
|
140
|
+
{what_went_wrong}
|
|
141
|
+
|
|
142
|
+
## Lessons Learned
|
|
143
|
+
{lessons_learned}
|
|
144
|
+
|
|
145
|
+
## Action Items
|
|
146
|
+
{action_items}
|
|
147
|
+
|
|
148
|
+
## Follow-up and Prevention
|
|
149
|
+
{prevention_measures}
|
|
150
|
+
|
|
151
|
+
## Appendix
|
|
152
|
+
{appendix_section}
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
*Generated on {generation_date} by PIR Generator*
|
|
156
|
+
""",
|
|
157
|
+
"standard": """# Post-Incident Review: {incident_title}
|
|
158
|
+
|
|
159
|
+
## Summary
|
|
160
|
+
{executive_summary}
|
|
161
|
+
|
|
162
|
+
## Incident Details
|
|
163
|
+
- **Date:** {incident_date}
|
|
164
|
+
- **Duration:** {duration}
|
|
165
|
+
- **Severity:** {severity}
|
|
166
|
+
- **Impact:** {customer_impact}
|
|
167
|
+
|
|
168
|
+
## Timeline
|
|
169
|
+
{timeline_section}
|
|
170
|
+
|
|
171
|
+
## Root Cause
|
|
172
|
+
{rca_section}
|
|
173
|
+
|
|
174
|
+
## Action Items
|
|
175
|
+
{action_items}
|
|
176
|
+
|
|
177
|
+
## Lessons Learned
|
|
178
|
+
{lessons_learned}
|
|
179
|
+
|
|
180
|
+
---
|
|
181
|
+
*Generated on {generation_date}*
|
|
182
|
+
""",
|
|
183
|
+
"brief": """# Incident Review: {incident_title}
|
|
184
|
+
|
|
185
|
+
**Date:** {incident_date} | **Duration:** {duration} | **Severity:** {severity}
|
|
186
|
+
|
|
187
|
+
## What Happened
|
|
188
|
+
{executive_summary}
|
|
189
|
+
|
|
190
|
+
## Root Cause
|
|
191
|
+
{rca_section}
|
|
192
|
+
|
|
193
|
+
## Actions
|
|
194
|
+
{action_items}
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
*{generation_date}*
|
|
198
|
+
"""
|
|
199
|
+
}
|
|
200
|
+
|
|
201
|
+
def _load_severity_guidelines(self) -> Dict[str, Dict]:
|
|
202
|
+
"""Load severity-specific PIR guidelines."""
|
|
203
|
+
return {
|
|
204
|
+
"sev1": {
|
|
205
|
+
"required_sections": ["executive_summary", "timeline", "rca", "action_items", "lessons_learned"],
|
|
206
|
+
"required_attendees": ["incident_commander", "technical_leads", "engineering_manager", "product_manager"],
|
|
207
|
+
"timeline_requirement": "Complete timeline with 15-minute intervals",
|
|
208
|
+
"rca_methods": ["five_whys", "fishbone", "timeline"],
|
|
209
|
+
"review_deadline_hours": 24,
|
|
210
|
+
"follow_up_weeks": 4
|
|
211
|
+
},
|
|
212
|
+
"sev2": {
|
|
213
|
+
"required_sections": ["summary", "timeline", "rca", "action_items"],
|
|
214
|
+
"required_attendees": ["incident_commander", "technical_leads", "team_lead"],
|
|
215
|
+
"timeline_requirement": "Key milestone timeline",
|
|
216
|
+
"rca_methods": ["five_whys", "timeline"],
|
|
217
|
+
"review_deadline_hours": 72,
|
|
218
|
+
"follow_up_weeks": 2
|
|
219
|
+
},
|
|
220
|
+
"sev3": {
|
|
221
|
+
"required_sections": ["summary", "rca", "action_items"],
|
|
222
|
+
"required_attendees": ["technical_lead", "team_member"],
|
|
223
|
+
"timeline_requirement": "Basic timeline",
|
|
224
|
+
"rca_methods": ["five_whys"],
|
|
225
|
+
"review_deadline_hours": 168, # 1 week
|
|
226
|
+
"follow_up_weeks": 1
|
|
227
|
+
},
|
|
228
|
+
"sev4": {
|
|
229
|
+
"required_sections": ["summary", "action_items"],
|
|
230
|
+
"required_attendees": ["assigned_engineer"],
|
|
231
|
+
"timeline_requirement": "Optional",
|
|
232
|
+
"rca_methods": ["brief_analysis"],
|
|
233
|
+
"review_deadline_hours": 336, # 2 weeks
|
|
234
|
+
"follow_up_weeks": 0
|
|
235
|
+
}
|
|
236
|
+
}
|
|
237
|
+
|
|
238
|
+
def _load_action_item_types(self) -> Dict[str, Dict]:
|
|
239
|
+
"""Load action item categorization and templates."""
|
|
240
|
+
return {
|
|
241
|
+
"immediate_fix": {
|
|
242
|
+
"priority": "P0",
|
|
243
|
+
"timeline": "24-48 hours",
|
|
244
|
+
"description": "Critical bugs or security issues that need immediate attention",
|
|
245
|
+
"template": "Fix {issue_description} to prevent recurrence of {incident_type}",
|
|
246
|
+
"owners": ["engineer", "team_lead"]
|
|
247
|
+
},
|
|
248
|
+
"process_improvement": {
|
|
249
|
+
"priority": "P1",
|
|
250
|
+
"timeline": "1-2 weeks",
|
|
251
|
+
"description": "Process gaps or communication issues identified",
|
|
252
|
+
"template": "Improve {process_area} to address {gap_description}",
|
|
253
|
+
"owners": ["team_lead", "process_owner"]
|
|
254
|
+
},
|
|
255
|
+
"monitoring_alerting": {
|
|
256
|
+
"priority": "P1",
|
|
257
|
+
"timeline": "1 week",
|
|
258
|
+
"description": "Missing monitoring or alerting capabilities",
|
|
259
|
+
"template": "Implement {monitoring_type} for {system_component}",
|
|
260
|
+
"owners": ["sre", "engineer"]
|
|
261
|
+
},
|
|
262
|
+
"documentation": {
|
|
263
|
+
"priority": "P2",
|
|
264
|
+
"timeline": "2-3 weeks",
|
|
265
|
+
"description": "Documentation gaps or runbook updates",
|
|
266
|
+
"template": "Update {documentation_type} to include {missing_information}",
|
|
267
|
+
"owners": ["technical_writer", "engineer"]
|
|
268
|
+
},
|
|
269
|
+
"training": {
|
|
270
|
+
"priority": "P2",
|
|
271
|
+
"timeline": "1 month",
|
|
272
|
+
"description": "Training needs or knowledge gaps",
|
|
273
|
+
"template": "Provide {training_type} training on {topic}",
|
|
274
|
+
"owners": ["training_coordinator", "subject_matter_expert"]
|
|
275
|
+
},
|
|
276
|
+
"architectural": {
|
|
277
|
+
"priority": "P1-P3",
|
|
278
|
+
"timeline": "1-3 months",
|
|
279
|
+
"description": "System design or architecture improvements",
|
|
280
|
+
"template": "Redesign {system_component} to improve {quality_attribute}",
|
|
281
|
+
"owners": ["architect", "engineering_manager"]
|
|
282
|
+
},
|
|
283
|
+
"tooling": {
|
|
284
|
+
"priority": "P2",
|
|
285
|
+
"timeline": "2-4 weeks",
|
|
286
|
+
"description": "Tool improvements or new tool requirements",
|
|
287
|
+
"template": "Implement {tool_type} to support {use_case}",
|
|
288
|
+
"owners": ["devops", "engineer"]
|
|
289
|
+
}
|
|
290
|
+
}
|
|
291
|
+
|
|
292
|
+
def _load_lessons_learned_categories(self) -> Dict[str, List[str]]:
|
|
293
|
+
"""Load categories for organizing lessons learned."""
|
|
294
|
+
return {
|
|
295
|
+
"detection_and_monitoring": [
|
|
296
|
+
"Monitoring gaps identified",
|
|
297
|
+
"Alert fatigue issues",
|
|
298
|
+
"Detection timing improvements",
|
|
299
|
+
"Observability enhancements"
|
|
300
|
+
],
|
|
301
|
+
"response_and_escalation": [
|
|
302
|
+
"Response time improvements",
|
|
303
|
+
"Escalation path optimization",
|
|
304
|
+
"Communication effectiveness",
|
|
305
|
+
"Resource allocation lessons"
|
|
306
|
+
],
|
|
307
|
+
"technical_systems": [
|
|
308
|
+
"Architecture resilience",
|
|
309
|
+
"Failure mode analysis",
|
|
310
|
+
"Performance bottlenecks",
|
|
311
|
+
"Dependency management"
|
|
312
|
+
],
|
|
313
|
+
"process_and_procedures": [
|
|
314
|
+
"Runbook effectiveness",
|
|
315
|
+
"Change management gaps",
|
|
316
|
+
"Review process improvements",
|
|
317
|
+
"Documentation quality"
|
|
318
|
+
],
|
|
319
|
+
"team_and_culture": [
|
|
320
|
+
"Training needs identified",
|
|
321
|
+
"Cross-team collaboration",
|
|
322
|
+
"Knowledge sharing gaps",
|
|
323
|
+
"Decision-making processes"
|
|
324
|
+
]
|
|
325
|
+
}
|
|
326
|
+
|
|
327
|
+
def generate_pir(self, incident_data: Dict[str, Any], timeline_data: Optional[Dict] = None,
|
|
328
|
+
rca_method: str = "five_whys", template_type: str = "comprehensive") -> Dict[str, Any]:
|
|
329
|
+
"""
|
|
330
|
+
Generate a comprehensive PIR document from incident data.
|
|
331
|
+
|
|
332
|
+
Args:
|
|
333
|
+
incident_data: Core incident information
|
|
334
|
+
timeline_data: Optional timeline reconstruction data
|
|
335
|
+
rca_method: RCA framework to use
|
|
336
|
+
template_type: PIR template type (comprehensive, standard, brief)
|
|
337
|
+
|
|
338
|
+
Returns:
|
|
339
|
+
Dictionary containing PIR document and metadata
|
|
340
|
+
"""
|
|
341
|
+
# Extract incident information
|
|
342
|
+
incident_info = self._extract_incident_info(incident_data)
|
|
343
|
+
|
|
344
|
+
# Generate root cause analysis
|
|
345
|
+
rca_results = self._perform_rca(incident_data, timeline_data, rca_method)
|
|
346
|
+
|
|
347
|
+
# Generate lessons learned
|
|
348
|
+
lessons_learned = self._generate_lessons_learned(incident_data, timeline_data, rca_results)
|
|
349
|
+
|
|
350
|
+
# Generate action items
|
|
351
|
+
action_items = self._generate_action_items(incident_data, rca_results, lessons_learned)
|
|
352
|
+
|
|
353
|
+
# Create timeline section
|
|
354
|
+
timeline_section = self._create_timeline_section(timeline_data, incident_info["severity"])
|
|
355
|
+
|
|
356
|
+
# Generate document sections
|
|
357
|
+
sections = self._generate_document_sections(
|
|
358
|
+
incident_info, rca_results, lessons_learned, action_items, timeline_section
|
|
359
|
+
)
|
|
360
|
+
|
|
361
|
+
# Build final document
|
|
362
|
+
template = self.pir_templates[template_type]
|
|
363
|
+
pir_document = template.format(**sections)
|
|
364
|
+
|
|
365
|
+
# Generate metadata
|
|
366
|
+
metadata = self._generate_metadata(incident_info, rca_results, action_items)
|
|
367
|
+
|
|
368
|
+
return {
|
|
369
|
+
"pir_document": pir_document,
|
|
370
|
+
"metadata": metadata,
|
|
371
|
+
"incident_info": incident_info,
|
|
372
|
+
"rca_results": rca_results,
|
|
373
|
+
"lessons_learned": lessons_learned,
|
|
374
|
+
"action_items": action_items,
|
|
375
|
+
"generation_timestamp": datetime.now(timezone.utc).isoformat()
|
|
376
|
+
}
|
|
377
|
+
|
|
378
|
+
def _extract_incident_info(self, incident_data: Dict) -> Dict[str, Any]:
|
|
379
|
+
"""Extract and normalize incident information."""
|
|
380
|
+
return {
|
|
381
|
+
"incident_id": incident_data.get("incident_id", "INC-" + datetime.now().strftime("%Y%m%d-%H%M")),
|
|
382
|
+
"title": incident_data.get("title", incident_data.get("description", "Incident")[:50]),
|
|
383
|
+
"description": incident_data.get("description", "No description provided"),
|
|
384
|
+
"severity": incident_data.get("severity", "unknown").lower(),
|
|
385
|
+
"start_time": self._parse_timestamp(incident_data.get("start_time", incident_data.get("timestamp", ""))),
|
|
386
|
+
"end_time": self._parse_timestamp(incident_data.get("end_time", "")),
|
|
387
|
+
"duration": self._calculate_duration(incident_data),
|
|
388
|
+
"affected_services": incident_data.get("affected_services", []),
|
|
389
|
+
"customer_impact": incident_data.get("customer_impact", "Unknown impact"),
|
|
390
|
+
"business_impact": incident_data.get("business_impact", "Unknown business impact"),
|
|
391
|
+
"incident_commander": incident_data.get("incident_commander", "TBD"),
|
|
392
|
+
"responders": incident_data.get("responders", []),
|
|
393
|
+
"status": incident_data.get("status", "resolved")
|
|
394
|
+
}
|
|
395
|
+
|
|
396
|
+
def _parse_timestamp(self, timestamp_str: str) -> Optional[datetime]:
|
|
397
|
+
"""Parse timestamp string to datetime object."""
|
|
398
|
+
if not timestamp_str:
|
|
399
|
+
return None
|
|
400
|
+
|
|
401
|
+
formats = [
|
|
402
|
+
"%Y-%m-%dT%H:%M:%S.%fZ",
|
|
403
|
+
"%Y-%m-%dT%H:%M:%SZ",
|
|
404
|
+
"%Y-%m-%d %H:%M:%S",
|
|
405
|
+
"%m/%d/%Y %H:%M:%S"
|
|
406
|
+
]
|
|
407
|
+
|
|
408
|
+
for fmt in formats:
|
|
409
|
+
try:
|
|
410
|
+
dt = datetime.strptime(timestamp_str, fmt)
|
|
411
|
+
if dt.tzinfo is None:
|
|
412
|
+
dt = dt.replace(tzinfo=timezone.utc)
|
|
413
|
+
return dt
|
|
414
|
+
except ValueError:
|
|
415
|
+
continue
|
|
416
|
+
|
|
417
|
+
return None
|
|
418
|
+
|
|
419
|
+
def _calculate_duration(self, incident_data: Dict) -> str:
|
|
420
|
+
"""Calculate incident duration in human-readable format."""
|
|
421
|
+
start_time = self._parse_timestamp(incident_data.get("start_time", ""))
|
|
422
|
+
end_time = self._parse_timestamp(incident_data.get("end_time", ""))
|
|
423
|
+
|
|
424
|
+
if start_time and end_time:
|
|
425
|
+
duration = end_time - start_time
|
|
426
|
+
total_minutes = int(duration.total_seconds() / 60)
|
|
427
|
+
|
|
428
|
+
if total_minutes < 60:
|
|
429
|
+
return f"{total_minutes} minutes"
|
|
430
|
+
elif total_minutes < 1440: # Less than 24 hours
|
|
431
|
+
hours = total_minutes // 60
|
|
432
|
+
minutes = total_minutes % 60
|
|
433
|
+
return f"{hours}h {minutes}m"
|
|
434
|
+
else:
|
|
435
|
+
days = total_minutes // 1440
|
|
436
|
+
hours = (total_minutes % 1440) // 60
|
|
437
|
+
return f"{days}d {hours}h"
|
|
438
|
+
|
|
439
|
+
return incident_data.get("duration", "Unknown duration")
|
|
440
|
+
|
|
441
|
+
def _perform_rca(self, incident_data: Dict, timeline_data: Optional[Dict], method: str) -> Dict[str, Any]:
|
|
442
|
+
"""Perform root cause analysis using specified method."""
|
|
443
|
+
if method == "five_whys":
|
|
444
|
+
return self._five_whys_analysis(incident_data, timeline_data)
|
|
445
|
+
elif method == "fishbone":
|
|
446
|
+
return self._fishbone_analysis(incident_data, timeline_data)
|
|
447
|
+
elif method == "timeline":
|
|
448
|
+
return self._timeline_analysis(incident_data, timeline_data)
|
|
449
|
+
elif method == "bow_tie":
|
|
450
|
+
return self._bow_tie_analysis(incident_data, timeline_data)
|
|
451
|
+
else:
|
|
452
|
+
return self._five_whys_analysis(incident_data, timeline_data) # Default
|
|
453
|
+
|
|
454
|
+
def _five_whys_analysis(self, incident_data: Dict, timeline_data: Optional[Dict]) -> Dict[str, Any]:
|
|
455
|
+
"""Perform 5 Whys root cause analysis."""
|
|
456
|
+
problem_statement = incident_data.get("description", "Incident occurred")
|
|
457
|
+
|
|
458
|
+
# Generate why questions based on incident data
|
|
459
|
+
whys = []
|
|
460
|
+
current_issue = problem_statement
|
|
461
|
+
|
|
462
|
+
# Generate systematic why questions
|
|
463
|
+
why_patterns = [
|
|
464
|
+
f"Why did {current_issue}?",
|
|
465
|
+
"Why wasn't this detected earlier?",
|
|
466
|
+
"Why didn't existing safeguards prevent this?",
|
|
467
|
+
"Why wasn't there a backup mechanism?",
|
|
468
|
+
"Why wasn't this scenario anticipated?"
|
|
469
|
+
]
|
|
470
|
+
|
|
471
|
+
# Try to infer answers from incident data
|
|
472
|
+
potential_answers = self._infer_why_answers(incident_data, timeline_data)
|
|
473
|
+
|
|
474
|
+
for i, why_question in enumerate(why_patterns):
|
|
475
|
+
answer = potential_answers[i] if i < len(potential_answers) else "Further investigation needed"
|
|
476
|
+
whys.append({
|
|
477
|
+
"question": why_question,
|
|
478
|
+
"answer": answer,
|
|
479
|
+
"evidence": self._find_supporting_evidence(answer, incident_data, timeline_data)
|
|
480
|
+
})
|
|
481
|
+
|
|
482
|
+
# Identify root causes from the analysis
|
|
483
|
+
root_causes = self._extract_root_causes(whys)
|
|
484
|
+
|
|
485
|
+
return {
|
|
486
|
+
"method": "five_whys",
|
|
487
|
+
"problem_statement": problem_statement,
|
|
488
|
+
"why_analysis": whys,
|
|
489
|
+
"root_causes": root_causes,
|
|
490
|
+
"confidence": self._calculate_rca_confidence(whys, incident_data)
|
|
491
|
+
}
|
|
492
|
+
|
|
493
|
+
def _fishbone_analysis(self, incident_data: Dict, timeline_data: Optional[Dict]) -> Dict[str, Any]:
|
|
494
|
+
"""Perform Fishbone (Ishikawa) diagram analysis."""
|
|
495
|
+
problem_statement = incident_data.get("description", "Incident occurred")
|
|
496
|
+
|
|
497
|
+
# Analyze each category
|
|
498
|
+
categories = {}
|
|
499
|
+
for category_info in self.rca_frameworks["fishbone"]["categories"]:
|
|
500
|
+
category_name = category_info["name"]
|
|
501
|
+
contributing_factors = self._identify_category_factors(
|
|
502
|
+
category_name, incident_data, timeline_data
|
|
503
|
+
)
|
|
504
|
+
categories[category_name] = {
|
|
505
|
+
"description": category_info["description"],
|
|
506
|
+
"factors": contributing_factors,
|
|
507
|
+
"examples": category_info["examples"]
|
|
508
|
+
}
|
|
509
|
+
|
|
510
|
+
# Identify primary contributing factors
|
|
511
|
+
primary_factors = self._identify_primary_factors(categories)
|
|
512
|
+
|
|
513
|
+
# Generate root cause hypothesis
|
|
514
|
+
root_causes = self._synthesize_fishbone_root_causes(categories, primary_factors)
|
|
515
|
+
|
|
516
|
+
return {
|
|
517
|
+
"method": "fishbone",
|
|
518
|
+
"problem_statement": problem_statement,
|
|
519
|
+
"categories": categories,
|
|
520
|
+
"primary_factors": primary_factors,
|
|
521
|
+
"root_causes": root_causes,
|
|
522
|
+
"confidence": self._calculate_rca_confidence(categories, incident_data)
|
|
523
|
+
}
|
|
524
|
+
|
|
525
|
+
def _timeline_analysis(self, incident_data: Dict, timeline_data: Optional[Dict]) -> Dict[str, Any]:
|
|
526
|
+
"""Perform timeline-based root cause analysis."""
|
|
527
|
+
if not timeline_data:
|
|
528
|
+
return {"method": "timeline", "error": "No timeline data provided"}
|
|
529
|
+
|
|
530
|
+
# Extract key decision points
|
|
531
|
+
decision_points = self._extract_decision_points(timeline_data)
|
|
532
|
+
|
|
533
|
+
# Identify missed opportunities
|
|
534
|
+
missed_opportunities = self._identify_missed_opportunities(timeline_data)
|
|
535
|
+
|
|
536
|
+
# Analyze response effectiveness
|
|
537
|
+
response_analysis = self._analyze_response_effectiveness(timeline_data)
|
|
538
|
+
|
|
539
|
+
# Generate timeline-based root causes
|
|
540
|
+
root_causes = self._extract_timeline_root_causes(
|
|
541
|
+
decision_points, missed_opportunities, response_analysis
|
|
542
|
+
)
|
|
543
|
+
|
|
544
|
+
return {
|
|
545
|
+
"method": "timeline",
|
|
546
|
+
"decision_points": decision_points,
|
|
547
|
+
"missed_opportunities": missed_opportunities,
|
|
548
|
+
"response_analysis": response_analysis,
|
|
549
|
+
"root_causes": root_causes,
|
|
550
|
+
"confidence": self._calculate_rca_confidence(timeline_data, incident_data)
|
|
551
|
+
}
|
|
552
|
+
|
|
553
|
+
def _bow_tie_analysis(self, incident_data: Dict, timeline_data: Optional[Dict]) -> Dict[str, Any]:
|
|
554
|
+
"""Perform Bow Tie analysis."""
|
|
555
|
+
# Identify the top event (what went wrong)
|
|
556
|
+
top_event = incident_data.get("description", "Service failure")
|
|
557
|
+
|
|
558
|
+
# Identify threats (what caused it)
|
|
559
|
+
threats = self._identify_threats(incident_data, timeline_data)
|
|
560
|
+
|
|
561
|
+
# Identify consequences (impact)
|
|
562
|
+
consequences = self._identify_consequences(incident_data)
|
|
563
|
+
|
|
564
|
+
# Identify existing barriers
|
|
565
|
+
existing_barriers = self._identify_existing_barriers(incident_data, timeline_data)
|
|
566
|
+
|
|
567
|
+
# Recommend additional barriers
|
|
568
|
+
recommended_barriers = self._recommend_additional_barriers(threats, consequences)
|
|
569
|
+
|
|
570
|
+
return {
|
|
571
|
+
"method": "bow_tie",
|
|
572
|
+
"top_event": top_event,
|
|
573
|
+
"threats": threats,
|
|
574
|
+
"consequences": consequences,
|
|
575
|
+
"existing_barriers": existing_barriers,
|
|
576
|
+
"recommended_barriers": recommended_barriers,
|
|
577
|
+
"confidence": self._calculate_rca_confidence(threats, incident_data)
|
|
578
|
+
}
|
|
579
|
+
|
|
580
|
+
def _infer_why_answers(self, incident_data: Dict, timeline_data: Optional[Dict]) -> List[str]:
|
|
581
|
+
"""Infer potential answers to why questions from available data."""
|
|
582
|
+
answers = []
|
|
583
|
+
|
|
584
|
+
# Look for clues in incident description
|
|
585
|
+
description = incident_data.get("description", "").lower()
|
|
586
|
+
|
|
587
|
+
# Common patterns and their inferred answers
|
|
588
|
+
if "database" in description and ("timeout" in description or "slow" in description):
|
|
589
|
+
answers.append("Database connection pool was exhausted")
|
|
590
|
+
answers.append("Connection pool configuration was insufficient for peak load")
|
|
591
|
+
answers.append("Load testing didn't include realistic database scenarios")
|
|
592
|
+
elif "deployment" in description or "release" in description:
|
|
593
|
+
answers.append("New deployment introduced a regression")
|
|
594
|
+
answers.append("Code review process missed the issue")
|
|
595
|
+
answers.append("Testing environment didn't match production")
|
|
596
|
+
elif "network" in description or "connectivity" in description:
|
|
597
|
+
answers.append("Network infrastructure had unexpected load")
|
|
598
|
+
answers.append("Network monitoring wasn't comprehensive enough")
|
|
599
|
+
answers.append("Redundancy mechanisms failed simultaneously")
|
|
600
|
+
else:
|
|
601
|
+
# Generic answers based on common root causes
|
|
602
|
+
answers.extend([
|
|
603
|
+
"System couldn't handle the load/request volume",
|
|
604
|
+
"Monitoring didn't detect the issue early enough",
|
|
605
|
+
"Error handling mechanisms were insufficient",
|
|
606
|
+
"Dependencies failed without proper circuit breakers",
|
|
607
|
+
"System lacked sufficient redundancy/resilience"
|
|
608
|
+
])
|
|
609
|
+
|
|
610
|
+
return answers[:5] # Return up to 5 answers
|
|
611
|
+
|
|
612
|
+
def _find_supporting_evidence(self, answer: str, incident_data: Dict, timeline_data: Optional[Dict]) -> List[str]:
|
|
613
|
+
"""Find supporting evidence for RCA answers."""
|
|
614
|
+
evidence = []
|
|
615
|
+
|
|
616
|
+
# Look for supporting information in incident data
|
|
617
|
+
if timeline_data and "timeline" in timeline_data:
|
|
618
|
+
events = timeline_data["timeline"].get("events", [])
|
|
619
|
+
for event in events:
|
|
620
|
+
event_message = event.get("message", "").lower()
|
|
621
|
+
if any(keyword in event_message for keyword in answer.lower().split()):
|
|
622
|
+
evidence.append(f"Timeline event: {event['message']}")
|
|
623
|
+
|
|
624
|
+
# Check incident metadata for supporting info
|
|
625
|
+
metadata = incident_data.get("metadata", {})
|
|
626
|
+
for key, value in metadata.items():
|
|
627
|
+
if isinstance(value, str) and any(keyword in value.lower() for keyword in answer.lower().split()):
|
|
628
|
+
evidence.append(f"Incident metadata: {key} = {value}")
|
|
629
|
+
|
|
630
|
+
return evidence[:3] # Return top 3 pieces of evidence
|
|
631
|
+
|
|
632
|
+
def _extract_root_causes(self, whys: List[Dict]) -> List[Dict]:
|
|
633
|
+
"""Extract root causes from 5 Whys analysis."""
|
|
634
|
+
root_causes = []
|
|
635
|
+
|
|
636
|
+
# The deepest "why" answers are typically closest to root causes
|
|
637
|
+
if len(whys) >= 3:
|
|
638
|
+
for i, why in enumerate(whys[-2:]): # Look at last 2 whys
|
|
639
|
+
if "further investigation needed" not in why["answer"].lower():
|
|
640
|
+
root_causes.append({
|
|
641
|
+
"cause": why["answer"],
|
|
642
|
+
"category": self._categorize_root_cause(why["answer"]),
|
|
643
|
+
"evidence": why["evidence"],
|
|
644
|
+
"confidence": "high" if len(why["evidence"]) > 1 else "medium"
|
|
645
|
+
})
|
|
646
|
+
|
|
647
|
+
return root_causes
|
|
648
|
+
|
|
649
|
+
def _categorize_root_cause(self, cause: str) -> str:
|
|
650
|
+
"""Categorize a root cause into standard categories."""
|
|
651
|
+
cause_lower = cause.lower()
|
|
652
|
+
|
|
653
|
+
if any(keyword in cause_lower for keyword in ["process", "procedure", "review", "change management"]):
|
|
654
|
+
return "Process"
|
|
655
|
+
elif any(keyword in cause_lower for keyword in ["training", "knowledge", "skill", "experience"]):
|
|
656
|
+
return "People"
|
|
657
|
+
elif any(keyword in cause_lower for keyword in ["system", "architecture", "code", "configuration"]):
|
|
658
|
+
return "Technology"
|
|
659
|
+
elif any(keyword in cause_lower for keyword in ["network", "infrastructure", "dependency", "third-party"]):
|
|
660
|
+
return "Environment"
|
|
661
|
+
else:
|
|
662
|
+
return "Unknown"
|
|
663
|
+
|
|
664
|
+
def _identify_category_factors(self, category: str, incident_data: Dict, timeline_data: Optional[Dict]) -> List[Dict]:
|
|
665
|
+
"""Identify contributing factors for a Fishbone category."""
|
|
666
|
+
factors = []
|
|
667
|
+
description = incident_data.get("description", "").lower()
|
|
668
|
+
|
|
669
|
+
if category == "People":
|
|
670
|
+
if "misconfigured" in description or "human error" in description:
|
|
671
|
+
factors.append({"factor": "Configuration error", "likelihood": "high"})
|
|
672
|
+
if timeline_data and self._has_delayed_response(timeline_data):
|
|
673
|
+
factors.append({"factor": "Delayed incident response", "likelihood": "medium"})
|
|
674
|
+
|
|
675
|
+
elif category == "Process":
|
|
676
|
+
if "deployment" in description:
|
|
677
|
+
factors.append({"factor": "Insufficient deployment validation", "likelihood": "high"})
|
|
678
|
+
if "code review" in incident_data.get("context", "").lower():
|
|
679
|
+
factors.append({"factor": "Code review process gaps", "likelihood": "medium"})
|
|
680
|
+
|
|
681
|
+
elif category == "Technology":
|
|
682
|
+
if "database" in description:
|
|
683
|
+
factors.append({"factor": "Database performance limitations", "likelihood": "high"})
|
|
684
|
+
if "timeout" in description or "latency" in description:
|
|
685
|
+
factors.append({"factor": "System performance bottlenecks", "likelihood": "high"})
|
|
686
|
+
|
|
687
|
+
elif category == "Environment":
|
|
688
|
+
if "network" in description:
|
|
689
|
+
factors.append({"factor": "Network infrastructure issues", "likelihood": "medium"})
|
|
690
|
+
if "third-party" in description or "external" in description:
|
|
691
|
+
factors.append({"factor": "External service dependencies", "likelihood": "medium"})
|
|
692
|
+
|
|
693
|
+
return factors
|
|
694
|
+
|
|
695
|
+
def _identify_primary_factors(self, categories: Dict) -> List[Dict]:
|
|
696
|
+
"""Identify primary contributing factors across all categories."""
|
|
697
|
+
primary_factors = []
|
|
698
|
+
|
|
699
|
+
for category_name, category_data in categories.items():
|
|
700
|
+
high_likelihood_factors = [
|
|
701
|
+
f for f in category_data["factors"]
|
|
702
|
+
if f.get("likelihood") == "high"
|
|
703
|
+
]
|
|
704
|
+
primary_factors.extend([
|
|
705
|
+
{**factor, "category": category_name}
|
|
706
|
+
for factor in high_likelihood_factors
|
|
707
|
+
])
|
|
708
|
+
|
|
709
|
+
return primary_factors
|
|
710
|
+
|
|
711
|
+
def _synthesize_fishbone_root_causes(self, categories: Dict, primary_factors: List[Dict]) -> List[Dict]:
|
|
712
|
+
"""Synthesize root causes from Fishbone analysis."""
|
|
713
|
+
root_causes = []
|
|
714
|
+
|
|
715
|
+
# Group primary factors by category
|
|
716
|
+
category_factors = defaultdict(list)
|
|
717
|
+
for factor in primary_factors:
|
|
718
|
+
category_factors[factor["category"]].append(factor)
|
|
719
|
+
|
|
720
|
+
# Create root causes from categories with multiple factors
|
|
721
|
+
for category, factors in category_factors.items():
|
|
722
|
+
if len(factors) > 1:
|
|
723
|
+
root_causes.append({
|
|
724
|
+
"cause": f"Multiple {category.lower()} issues contributed to the incident",
|
|
725
|
+
"category": category,
|
|
726
|
+
"contributing_factors": [f["factor"] for f in factors],
|
|
727
|
+
"confidence": "high"
|
|
728
|
+
})
|
|
729
|
+
elif len(factors) == 1:
|
|
730
|
+
root_causes.append({
|
|
731
|
+
"cause": factors[0]["factor"],
|
|
732
|
+
"category": category,
|
|
733
|
+
"confidence": "medium"
|
|
734
|
+
})
|
|
735
|
+
|
|
736
|
+
return root_causes
|
|
737
|
+
|
|
738
|
+
def _has_delayed_response(self, timeline_data: Dict) -> bool:
|
|
739
|
+
"""Check if timeline shows delayed response patterns."""
|
|
740
|
+
if not timeline_data or "gap_analysis" not in timeline_data:
|
|
741
|
+
return False
|
|
742
|
+
|
|
743
|
+
gaps = timeline_data["gap_analysis"].get("gaps", [])
|
|
744
|
+
return any(gap.get("type") == "phase_transition" for gap in gaps)
|
|
745
|
+
|
|
746
|
+
def _extract_decision_points(self, timeline_data: Dict) -> List[Dict]:
|
|
747
|
+
"""Extract key decision points from timeline."""
|
|
748
|
+
decision_points = []
|
|
749
|
+
|
|
750
|
+
if "timeline" in timeline_data and "phases" in timeline_data["timeline"]:
|
|
751
|
+
phases = timeline_data["timeline"]["phases"]
|
|
752
|
+
|
|
753
|
+
for i, phase in enumerate(phases):
|
|
754
|
+
if phase["name"] in ["escalation", "mitigation"]:
|
|
755
|
+
decision_points.append({
|
|
756
|
+
"timestamp": phase["start_time"],
|
|
757
|
+
"decision": f"Initiated {phase['name']} phase",
|
|
758
|
+
"phase": phase["name"],
|
|
759
|
+
"duration": phase["duration_minutes"]
|
|
760
|
+
})
|
|
761
|
+
|
|
762
|
+
return decision_points
|
|
763
|
+
|
|
764
|
+
def _identify_missed_opportunities(self, timeline_data: Dict) -> List[Dict]:
|
|
765
|
+
"""Identify missed opportunities from gap analysis."""
|
|
766
|
+
missed_opportunities = []
|
|
767
|
+
|
|
768
|
+
if "gap_analysis" in timeline_data:
|
|
769
|
+
gaps = timeline_data["gap_analysis"].get("gaps", [])
|
|
770
|
+
|
|
771
|
+
for gap in gaps:
|
|
772
|
+
if gap.get("severity") == "critical":
|
|
773
|
+
missed_opportunities.append({
|
|
774
|
+
"opportunity": f"Earlier {gap['type'].replace('_', ' ')}",
|
|
775
|
+
"gap_minutes": gap["gap_minutes"],
|
|
776
|
+
"potential_impact": "Could have reduced incident duration"
|
|
777
|
+
})
|
|
778
|
+
|
|
779
|
+
return missed_opportunities
|
|
780
|
+
|
|
781
|
+
def _analyze_response_effectiveness(self, timeline_data: Dict) -> Dict[str, Any]:
|
|
782
|
+
"""Analyze the effectiveness of incident response."""
|
|
783
|
+
effectiveness = {
|
|
784
|
+
"overall_rating": "unknown",
|
|
785
|
+
"strengths": [],
|
|
786
|
+
"weaknesses": [],
|
|
787
|
+
"metrics": {}
|
|
788
|
+
}
|
|
789
|
+
|
|
790
|
+
if "metrics" in timeline_data:
|
|
791
|
+
metrics = timeline_data["metrics"]
|
|
792
|
+
duration_metrics = metrics.get("duration_metrics", {})
|
|
793
|
+
|
|
794
|
+
# Analyze response times
|
|
795
|
+
time_to_mitigation = duration_metrics.get("time_to_mitigation_minutes", 0)
|
|
796
|
+
time_to_resolution = duration_metrics.get("time_to_resolution_minutes", 0)
|
|
797
|
+
|
|
798
|
+
if time_to_mitigation <= 30:
|
|
799
|
+
effectiveness["strengths"].append("Quick mitigation response")
|
|
800
|
+
else:
|
|
801
|
+
effectiveness["weaknesses"].append("Slow mitigation response")
|
|
802
|
+
|
|
803
|
+
if time_to_resolution <= 120:
|
|
804
|
+
effectiveness["strengths"].append("Fast resolution")
|
|
805
|
+
else:
|
|
806
|
+
effectiveness["weaknesses"].append("Extended resolution time")
|
|
807
|
+
|
|
808
|
+
effectiveness["metrics"] = {
|
|
809
|
+
"time_to_mitigation": time_to_mitigation,
|
|
810
|
+
"time_to_resolution": time_to_resolution
|
|
811
|
+
}
|
|
812
|
+
|
|
813
|
+
# Overall rating based on strengths vs weaknesses
|
|
814
|
+
if len(effectiveness["strengths"]) > len(effectiveness["weaknesses"]):
|
|
815
|
+
effectiveness["overall_rating"] = "effective"
|
|
816
|
+
elif len(effectiveness["weaknesses"]) > len(effectiveness["strengths"]):
|
|
817
|
+
effectiveness["overall_rating"] = "needs_improvement"
|
|
818
|
+
else:
|
|
819
|
+
effectiveness["overall_rating"] = "mixed"
|
|
820
|
+
|
|
821
|
+
return effectiveness
|
|
822
|
+
|
|
823
|
+
def _extract_timeline_root_causes(self, decision_points: List, missed_opportunities: List,
|
|
824
|
+
response_analysis: Dict) -> List[Dict]:
|
|
825
|
+
"""Extract root causes from timeline analysis."""
|
|
826
|
+
root_causes = []
|
|
827
|
+
|
|
828
|
+
# Root causes from missed opportunities
|
|
829
|
+
for opportunity in missed_opportunities:
|
|
830
|
+
if opportunity["gap_minutes"] > 60: # Significant gaps
|
|
831
|
+
root_causes.append({
|
|
832
|
+
"cause": f"Delayed response: {opportunity['opportunity']}",
|
|
833
|
+
"category": "Process",
|
|
834
|
+
"evidence": f"{opportunity['gap_minutes']} minute gap identified",
|
|
835
|
+
"confidence": "high"
|
|
836
|
+
})
|
|
837
|
+
|
|
838
|
+
# Root causes from response effectiveness
|
|
839
|
+
for weakness in response_analysis.get("weaknesses", []):
|
|
840
|
+
root_causes.append({
|
|
841
|
+
"cause": weakness,
|
|
842
|
+
"category": "Process",
|
|
843
|
+
"evidence": "Timeline analysis",
|
|
844
|
+
"confidence": "medium"
|
|
845
|
+
})
|
|
846
|
+
|
|
847
|
+
return root_causes
|
|
848
|
+
|
|
849
|
+
def _identify_threats(self, incident_data: Dict, timeline_data: Optional[Dict]) -> List[Dict]:
|
|
850
|
+
"""Identify threats for Bow Tie analysis."""
|
|
851
|
+
threats = []
|
|
852
|
+
description = incident_data.get("description", "").lower()
|
|
853
|
+
|
|
854
|
+
if "deployment" in description:
|
|
855
|
+
threats.append({"threat": "Defective code deployment", "likelihood": "medium"})
|
|
856
|
+
if "load" in description or "traffic" in description:
|
|
857
|
+
threats.append({"threat": "Unexpected load increase", "likelihood": "high"})
|
|
858
|
+
if "database" in description:
|
|
859
|
+
threats.append({"threat": "Database performance degradation", "likelihood": "medium"})
|
|
860
|
+
|
|
861
|
+
return threats
|
|
862
|
+
|
|
863
|
+
def _identify_consequences(self, incident_data: Dict) -> List[Dict]:
|
|
864
|
+
"""Identify consequences for Bow Tie analysis."""
|
|
865
|
+
consequences = []
|
|
866
|
+
|
|
867
|
+
customer_impact = incident_data.get("customer_impact", "").lower()
|
|
868
|
+
business_impact = incident_data.get("business_impact", "").lower()
|
|
869
|
+
|
|
870
|
+
if "all users" in customer_impact or "complete outage" in customer_impact:
|
|
871
|
+
consequences.append({"consequence": "Complete service unavailability", "severity": "critical"})
|
|
872
|
+
|
|
873
|
+
if "revenue" in business_impact:
|
|
874
|
+
consequences.append({"consequence": "Revenue loss", "severity": "high"})
|
|
875
|
+
|
|
876
|
+
return consequences
|
|
877
|
+
|
|
878
|
+
def _identify_existing_barriers(self, incident_data: Dict, timeline_data: Optional[Dict]) -> List[Dict]:
|
|
879
|
+
"""Identify existing preventive/protective barriers."""
|
|
880
|
+
barriers = []
|
|
881
|
+
|
|
882
|
+
# Look for evidence of existing controls
|
|
883
|
+
if timeline_data and "timeline" in timeline_data:
|
|
884
|
+
events = timeline_data["timeline"].get("events", [])
|
|
885
|
+
|
|
886
|
+
for event in events:
|
|
887
|
+
message = event.get("message", "").lower()
|
|
888
|
+
if "alert" in message or "monitoring" in message:
|
|
889
|
+
barriers.append({
|
|
890
|
+
"barrier": "Monitoring and alerting system",
|
|
891
|
+
"type": "detective",
|
|
892
|
+
"effectiveness": "partial"
|
|
893
|
+
})
|
|
894
|
+
elif "rollback" in message:
|
|
895
|
+
barriers.append({
|
|
896
|
+
"barrier": "Rollback capability",
|
|
897
|
+
"type": "corrective",
|
|
898
|
+
"effectiveness": "effective"
|
|
899
|
+
})
|
|
900
|
+
|
|
901
|
+
return barriers
|
|
902
|
+
|
|
903
|
+
def _recommend_additional_barriers(self, threats: List[Dict], consequences: List[Dict]) -> List[Dict]:
|
|
904
|
+
"""Recommend additional barriers based on threats and consequences."""
|
|
905
|
+
recommendations = []
|
|
906
|
+
|
|
907
|
+
for threat in threats:
|
|
908
|
+
if "deployment" in threat["threat"].lower():
|
|
909
|
+
recommendations.append({
|
|
910
|
+
"barrier": "Enhanced pre-deployment testing",
|
|
911
|
+
"type": "preventive",
|
|
912
|
+
"justification": "Prevent defective deployments reaching production"
|
|
913
|
+
})
|
|
914
|
+
elif "load" in threat["threat"].lower():
|
|
915
|
+
recommendations.append({
|
|
916
|
+
"barrier": "Auto-scaling and load shedding",
|
|
917
|
+
"type": "preventive",
|
|
918
|
+
"justification": "Handle unexpected load increases automatically"
|
|
919
|
+
})
|
|
920
|
+
|
|
921
|
+
return recommendations
|
|
922
|
+
|
|
923
|
+
def _calculate_rca_confidence(self, analysis_data: Any, incident_data: Dict) -> str:
|
|
924
|
+
"""Calculate confidence level for RCA results."""
|
|
925
|
+
# Simple heuristic based on available data
|
|
926
|
+
confidence_score = 0
|
|
927
|
+
|
|
928
|
+
# More detailed incident data increases confidence
|
|
929
|
+
if incident_data.get("description") and len(incident_data["description"]) > 50:
|
|
930
|
+
confidence_score += 1
|
|
931
|
+
|
|
932
|
+
if incident_data.get("timeline") or incident_data.get("events"):
|
|
933
|
+
confidence_score += 2
|
|
934
|
+
|
|
935
|
+
if incident_data.get("logs") or incident_data.get("monitoring_data"):
|
|
936
|
+
confidence_score += 2
|
|
937
|
+
|
|
938
|
+
# Analysis data completeness
|
|
939
|
+
if isinstance(analysis_data, list) and len(analysis_data) > 3:
|
|
940
|
+
confidence_score += 1
|
|
941
|
+
elif isinstance(analysis_data, dict) and len(analysis_data) > 5:
|
|
942
|
+
confidence_score += 1
|
|
943
|
+
|
|
944
|
+
if confidence_score >= 4:
|
|
945
|
+
return "high"
|
|
946
|
+
elif confidence_score >= 2:
|
|
947
|
+
return "medium"
|
|
948
|
+
else:
|
|
949
|
+
return "low"
|
|
950
|
+
|
|
951
|
+
def _generate_lessons_learned(self, incident_data: Dict, timeline_data: Optional[Dict],
|
|
952
|
+
rca_results: Dict) -> Dict[str, List[str]]:
|
|
953
|
+
"""Generate categorized lessons learned."""
|
|
954
|
+
lessons = defaultdict(list)
|
|
955
|
+
|
|
956
|
+
# Lessons from RCA
|
|
957
|
+
root_causes = rca_results.get("root_causes", [])
|
|
958
|
+
for root_cause in root_causes:
|
|
959
|
+
category = root_cause.get("category", "technical_systems").lower()
|
|
960
|
+
category_key = self._map_to_lessons_category(category)
|
|
961
|
+
|
|
962
|
+
lesson = f"Identified: {root_cause['cause']}"
|
|
963
|
+
lessons[category_key].append(lesson)
|
|
964
|
+
|
|
965
|
+
# Lessons from timeline analysis
|
|
966
|
+
if timeline_data and "gap_analysis" in timeline_data:
|
|
967
|
+
gaps = timeline_data["gap_analysis"].get("gaps", [])
|
|
968
|
+
for gap in gaps:
|
|
969
|
+
if gap.get("severity") == "critical":
|
|
970
|
+
lessons["response_and_escalation"].append(
|
|
971
|
+
f"Response time gap: {gap['type'].replace('_', ' ')} took {gap['gap_minutes']} minutes"
|
|
972
|
+
)
|
|
973
|
+
|
|
974
|
+
# Generic lessons based on incident characteristics
|
|
975
|
+
severity = incident_data.get("severity", "").lower()
|
|
976
|
+
if severity in ["sev1", "critical"]:
|
|
977
|
+
lessons["detection_and_monitoring"].append(
|
|
978
|
+
"Critical incidents require immediate detection and alerting"
|
|
979
|
+
)
|
|
980
|
+
|
|
981
|
+
return dict(lessons)
|
|
982
|
+
|
|
983
|
+
def _map_to_lessons_category(self, category: str) -> str:
|
|
984
|
+
"""Map RCA category to lessons learned category."""
|
|
985
|
+
mapping = {
|
|
986
|
+
"people": "team_and_culture",
|
|
987
|
+
"process": "process_and_procedures",
|
|
988
|
+
"technology": "technical_systems",
|
|
989
|
+
"environment": "technical_systems",
|
|
990
|
+
"unknown": "process_and_procedures"
|
|
991
|
+
}
|
|
992
|
+
return mapping.get(category, "technical_systems")
|
|
993
|
+
|
|
994
|
+
def _generate_action_items(self, incident_data: Dict, rca_results: Dict,
|
|
995
|
+
lessons_learned: Dict) -> List[Dict]:
|
|
996
|
+
"""Generate actionable follow-up items."""
|
|
997
|
+
action_items = []
|
|
998
|
+
|
|
999
|
+
# Actions from root causes
|
|
1000
|
+
root_causes = rca_results.get("root_causes", [])
|
|
1001
|
+
for root_cause in root_causes:
|
|
1002
|
+
action_type = self._determine_action_type(root_cause)
|
|
1003
|
+
action_template = self.action_item_types[action_type]
|
|
1004
|
+
|
|
1005
|
+
action_items.append({
|
|
1006
|
+
"title": f"Address: {root_cause['cause'][:50]}...",
|
|
1007
|
+
"description": root_cause["cause"],
|
|
1008
|
+
"type": action_type,
|
|
1009
|
+
"priority": action_template["priority"],
|
|
1010
|
+
"timeline": action_template["timeline"],
|
|
1011
|
+
"owner": "TBD",
|
|
1012
|
+
"success_criteria": f"Prevent recurrence of {root_cause['cause'][:30]}...",
|
|
1013
|
+
"related_root_cause": root_cause
|
|
1014
|
+
})
|
|
1015
|
+
|
|
1016
|
+
# Actions from lessons learned
|
|
1017
|
+
for category, lessons in lessons_learned.items():
|
|
1018
|
+
if len(lessons) > 1: # Multiple lessons in same category indicate systematic issue
|
|
1019
|
+
action_items.append({
|
|
1020
|
+
"title": f"Improve {category.replace('_', ' ')}",
|
|
1021
|
+
"description": f"Address multiple issues identified in {category}",
|
|
1022
|
+
"type": "process_improvement",
|
|
1023
|
+
"priority": "P1",
|
|
1024
|
+
"timeline": "2-3 weeks",
|
|
1025
|
+
"owner": "TBD",
|
|
1026
|
+
"success_criteria": f"Comprehensive review and improvement of {category}"
|
|
1027
|
+
})
|
|
1028
|
+
|
|
1029
|
+
# Standard actions based on severity
|
|
1030
|
+
severity = incident_data.get("severity", "").lower()
|
|
1031
|
+
if severity in ["sev1", "critical"]:
|
|
1032
|
+
action_items.append({
|
|
1033
|
+
"title": "Conduct comprehensive post-incident review",
|
|
1034
|
+
"description": "Schedule PIR meeting with all stakeholders",
|
|
1035
|
+
"type": "process_improvement",
|
|
1036
|
+
"priority": "P0",
|
|
1037
|
+
"timeline": "24-48 hours",
|
|
1038
|
+
"owner": incident_data.get("incident_commander", "TBD"),
|
|
1039
|
+
"success_criteria": "PIR completed and documented"
|
|
1040
|
+
})
|
|
1041
|
+
|
|
1042
|
+
return action_items
|
|
1043
|
+
|
|
1044
|
+
def _determine_action_type(self, root_cause: Dict) -> str:
|
|
1045
|
+
"""Determine action item type based on root cause."""
|
|
1046
|
+
cause_text = root_cause.get("cause", "").lower()
|
|
1047
|
+
category = root_cause.get("category", "").lower()
|
|
1048
|
+
|
|
1049
|
+
if any(keyword in cause_text for keyword in ["bug", "error", "failure", "crash"]):
|
|
1050
|
+
return "immediate_fix"
|
|
1051
|
+
elif any(keyword in cause_text for keyword in ["monitor", "alert", "detect"]):
|
|
1052
|
+
return "monitoring_alerting"
|
|
1053
|
+
elif any(keyword in cause_text for keyword in ["process", "procedure", "review"]):
|
|
1054
|
+
return "process_improvement"
|
|
1055
|
+
elif any(keyword in cause_text for keyword in ["document", "runbook", "knowledge"]):
|
|
1056
|
+
return "documentation"
|
|
1057
|
+
elif any(keyword in cause_text for keyword in ["training", "skill", "knowledge"]):
|
|
1058
|
+
return "training"
|
|
1059
|
+
elif any(keyword in cause_text for keyword in ["architecture", "design", "system"]):
|
|
1060
|
+
return "architectural"
|
|
1061
|
+
else:
|
|
1062
|
+
return "process_improvement" # Default
|
|
1063
|
+
|
|
1064
|
+
def _create_timeline_section(self, timeline_data: Optional[Dict], severity: str) -> str:
|
|
1065
|
+
"""Create timeline section for PIR document."""
|
|
1066
|
+
if not timeline_data:
|
|
1067
|
+
return "No detailed timeline available."
|
|
1068
|
+
|
|
1069
|
+
timeline_content = []
|
|
1070
|
+
|
|
1071
|
+
if "timeline" in timeline_data and "phases" in timeline_data["timeline"]:
|
|
1072
|
+
timeline_content.append("### Phase Timeline")
|
|
1073
|
+
timeline_content.append("")
|
|
1074
|
+
|
|
1075
|
+
phases = timeline_data["timeline"]["phases"]
|
|
1076
|
+
for phase in phases:
|
|
1077
|
+
timeline_content.append(f"**{phase['name'].title()} Phase**")
|
|
1078
|
+
timeline_content.append(f"- Start: {phase['start_time']}")
|
|
1079
|
+
timeline_content.append(f"- Duration: {phase['duration_minutes']} minutes")
|
|
1080
|
+
timeline_content.append(f"- Events: {phase['event_count']}")
|
|
1081
|
+
timeline_content.append("")
|
|
1082
|
+
|
|
1083
|
+
if "metrics" in timeline_data:
|
|
1084
|
+
metrics = timeline_data["metrics"]
|
|
1085
|
+
duration_metrics = metrics.get("duration_metrics", {})
|
|
1086
|
+
|
|
1087
|
+
timeline_content.append("### Key Metrics")
|
|
1088
|
+
timeline_content.append("")
|
|
1089
|
+
timeline_content.append(f"- Total Duration: {duration_metrics.get('total_duration_minutes', 'N/A')} minutes")
|
|
1090
|
+
timeline_content.append(f"- Time to Mitigation: {duration_metrics.get('time_to_mitigation_minutes', 'N/A')} minutes")
|
|
1091
|
+
timeline_content.append(f"- Time to Resolution: {duration_metrics.get('time_to_resolution_minutes', 'N/A')} minutes")
|
|
1092
|
+
timeline_content.append("")
|
|
1093
|
+
|
|
1094
|
+
return "\n".join(timeline_content)
|
|
1095
|
+
|
|
1096
|
+
def _generate_document_sections(self, incident_info: Dict, rca_results: Dict,
|
|
1097
|
+
lessons_learned: Dict, action_items: List[Dict],
|
|
1098
|
+
timeline_section: str) -> Dict[str, str]:
|
|
1099
|
+
"""Generate all document sections for PIR template."""
|
|
1100
|
+
sections = {}
|
|
1101
|
+
|
|
1102
|
+
# Basic information
|
|
1103
|
+
sections["incident_title"] = incident_info["title"]
|
|
1104
|
+
sections["incident_id"] = incident_info["incident_id"]
|
|
1105
|
+
sections["incident_date"] = incident_info["start_time"].strftime("%Y-%m-%d %H:%M:%S UTC") if incident_info["start_time"] else "Unknown"
|
|
1106
|
+
sections["duration"] = incident_info["duration"]
|
|
1107
|
+
sections["severity"] = incident_info["severity"].upper()
|
|
1108
|
+
sections["status"] = incident_info["status"].title()
|
|
1109
|
+
sections["incident_commander"] = incident_info["incident_commander"]
|
|
1110
|
+
sections["responders"] = ", ".join(incident_info["responders"]) if incident_info["responders"] else "TBD"
|
|
1111
|
+
sections["generation_date"] = datetime.now().strftime("%Y-%m-%d")
|
|
1112
|
+
|
|
1113
|
+
# Impact sections
|
|
1114
|
+
sections["customer_impact"] = incident_info["customer_impact"]
|
|
1115
|
+
sections["business_impact"] = incident_info["business_impact"]
|
|
1116
|
+
|
|
1117
|
+
# Executive summary
|
|
1118
|
+
sections["executive_summary"] = self._create_executive_summary(incident_info, rca_results)
|
|
1119
|
+
|
|
1120
|
+
# Timeline
|
|
1121
|
+
sections["timeline_section"] = timeline_section
|
|
1122
|
+
|
|
1123
|
+
# RCA section
|
|
1124
|
+
sections["rca_section"] = self._create_rca_section(rca_results)
|
|
1125
|
+
|
|
1126
|
+
# What went well/wrong
|
|
1127
|
+
sections["what_went_well"] = self._create_what_went_well_section(incident_info, rca_results)
|
|
1128
|
+
sections["what_went_wrong"] = self._create_what_went_wrong_section(rca_results, lessons_learned)
|
|
1129
|
+
|
|
1130
|
+
# Lessons learned
|
|
1131
|
+
sections["lessons_learned"] = self._create_lessons_learned_section(lessons_learned)
|
|
1132
|
+
|
|
1133
|
+
# Action items
|
|
1134
|
+
sections["action_items"] = self._create_action_items_section(action_items)
|
|
1135
|
+
|
|
1136
|
+
# Prevention and appendix
|
|
1137
|
+
sections["prevention_measures"] = self._create_prevention_section(rca_results, action_items)
|
|
1138
|
+
sections["appendix_section"] = self._create_appendix_section(incident_info)
|
|
1139
|
+
|
|
1140
|
+
return sections
|
|
1141
|
+
|
|
1142
|
+
def _create_executive_summary(self, incident_info: Dict, rca_results: Dict) -> str:
|
|
1143
|
+
"""Create executive summary section."""
|
|
1144
|
+
summary_parts = []
|
|
1145
|
+
|
|
1146
|
+
# Incident description
|
|
1147
|
+
summary_parts.append(f"On {incident_info['start_time'].strftime('%B %d, %Y') if incident_info['start_time'] else 'an unknown date'}, we experienced a {incident_info['severity']} incident affecting {incident_info.get('affected_services', ['our services'])}.")
|
|
1148
|
+
|
|
1149
|
+
# Duration and impact
|
|
1150
|
+
summary_parts.append(f"The incident lasted {incident_info['duration']} and had the following impact: {incident_info['customer_impact']}")
|
|
1151
|
+
|
|
1152
|
+
# Root cause summary
|
|
1153
|
+
root_causes = rca_results.get("root_causes", [])
|
|
1154
|
+
if root_causes:
|
|
1155
|
+
primary_cause = root_causes[0]["cause"]
|
|
1156
|
+
summary_parts.append(f"Root cause analysis identified the primary issue as: {primary_cause}")
|
|
1157
|
+
|
|
1158
|
+
# Resolution
|
|
1159
|
+
summary_parts.append(f"The incident has been {incident_info['status']} and we have identified specific actions to prevent recurrence.")
|
|
1160
|
+
|
|
1161
|
+
return " ".join(summary_parts)
|
|
1162
|
+
|
|
1163
|
+
def _create_rca_section(self, rca_results: Dict) -> str:
|
|
1164
|
+
"""Create RCA section content."""
|
|
1165
|
+
rca_content = []
|
|
1166
|
+
|
|
1167
|
+
method = rca_results.get("method", "unknown")
|
|
1168
|
+
rca_content.append(f"### Analysis Method: {self.rca_frameworks.get(method, {}).get('name', method)}")
|
|
1169
|
+
rca_content.append("")
|
|
1170
|
+
|
|
1171
|
+
if method == "five_whys" and "why_analysis" in rca_results:
|
|
1172
|
+
rca_content.append("#### Why Analysis")
|
|
1173
|
+
rca_content.append("")
|
|
1174
|
+
|
|
1175
|
+
for i, why in enumerate(rca_results["why_analysis"], 1):
|
|
1176
|
+
rca_content.append(f"**Why {i}:** {why['question']}")
|
|
1177
|
+
rca_content.append(f"**Answer:** {why['answer']}")
|
|
1178
|
+
if why["evidence"]:
|
|
1179
|
+
rca_content.append(f"**Evidence:** {', '.join(why['evidence'])}")
|
|
1180
|
+
rca_content.append("")
|
|
1181
|
+
|
|
1182
|
+
elif method == "fishbone" and "categories" in rca_results:
|
|
1183
|
+
rca_content.append("#### Contributing Factor Analysis")
|
|
1184
|
+
rca_content.append("")
|
|
1185
|
+
|
|
1186
|
+
for category, data in rca_results["categories"].items():
|
|
1187
|
+
if data["factors"]:
|
|
1188
|
+
rca_content.append(f"**{category}:**")
|
|
1189
|
+
for factor in data["factors"]:
|
|
1190
|
+
rca_content.append(f"- {factor['factor']} (likelihood: {factor.get('likelihood', 'unknown')})")
|
|
1191
|
+
rca_content.append("")
|
|
1192
|
+
|
|
1193
|
+
# Root causes summary
|
|
1194
|
+
root_causes = rca_results.get("root_causes", [])
|
|
1195
|
+
if root_causes:
|
|
1196
|
+
rca_content.append("#### Identified Root Causes")
|
|
1197
|
+
rca_content.append("")
|
|
1198
|
+
|
|
1199
|
+
for i, cause in enumerate(root_causes, 1):
|
|
1200
|
+
rca_content.append(f"{i}. **{cause['cause']}**")
|
|
1201
|
+
rca_content.append(f" - Category: {cause.get('category', 'Unknown')}")
|
|
1202
|
+
rca_content.append(f" - Confidence: {cause.get('confidence', 'Unknown')}")
|
|
1203
|
+
if cause.get("evidence"):
|
|
1204
|
+
rca_content.append(f" - Evidence: {cause['evidence']}")
|
|
1205
|
+
rca_content.append("")
|
|
1206
|
+
|
|
1207
|
+
return "\n".join(rca_content)
|
|
1208
|
+
|
|
1209
|
+
def _create_what_went_well_section(self, incident_info: Dict, rca_results: Dict) -> str:
|
|
1210
|
+
"""Create what went well section."""
|
|
1211
|
+
positives = []
|
|
1212
|
+
|
|
1213
|
+
# Generic positive aspects
|
|
1214
|
+
if incident_info["status"] == "resolved":
|
|
1215
|
+
positives.append("The incident was successfully resolved")
|
|
1216
|
+
|
|
1217
|
+
if incident_info["incident_commander"] != "TBD":
|
|
1218
|
+
positives.append("Incident command was established")
|
|
1219
|
+
|
|
1220
|
+
if len(incident_info.get("responders", [])) > 1:
|
|
1221
|
+
positives.append("Multiple team members collaborated on resolution")
|
|
1222
|
+
|
|
1223
|
+
# Analysis-specific positives
|
|
1224
|
+
if rca_results.get("confidence") == "high":
|
|
1225
|
+
positives.append("Root cause analysis provided clear insights")
|
|
1226
|
+
|
|
1227
|
+
if not positives:
|
|
1228
|
+
positives.append("Incident response process was followed")
|
|
1229
|
+
|
|
1230
|
+
return "\n".join([f"- {positive}" for positive in positives])
|
|
1231
|
+
|
|
1232
|
+
def _create_what_went_wrong_section(self, rca_results: Dict, lessons_learned: Dict) -> str:
|
|
1233
|
+
"""Create what went wrong section."""
|
|
1234
|
+
issues = []
|
|
1235
|
+
|
|
1236
|
+
# Issues from RCA
|
|
1237
|
+
root_causes = rca_results.get("root_causes", [])
|
|
1238
|
+
for cause in root_causes[:3]: # Show top 3
|
|
1239
|
+
issues.append(cause["cause"])
|
|
1240
|
+
|
|
1241
|
+
# Issues from lessons learned
|
|
1242
|
+
for category, lessons in lessons_learned.items():
|
|
1243
|
+
if lessons:
|
|
1244
|
+
issues.append(f"{category.replace('_', ' ').title()}: {lessons[0]}")
|
|
1245
|
+
|
|
1246
|
+
if not issues:
|
|
1247
|
+
issues.append("Analysis in progress")
|
|
1248
|
+
|
|
1249
|
+
return "\n".join([f"- {issue}" for issue in issues])
|
|
1250
|
+
|
|
1251
|
+
def _create_lessons_learned_section(self, lessons_learned: Dict) -> str:
|
|
1252
|
+
"""Create lessons learned section."""
|
|
1253
|
+
content = []
|
|
1254
|
+
|
|
1255
|
+
for category, lessons in lessons_learned.items():
|
|
1256
|
+
if lessons:
|
|
1257
|
+
content.append(f"### {category.replace('_', ' ').title()}")
|
|
1258
|
+
content.append("")
|
|
1259
|
+
|
|
1260
|
+
for lesson in lessons:
|
|
1261
|
+
content.append(f"- {lesson}")
|
|
1262
|
+
|
|
1263
|
+
content.append("")
|
|
1264
|
+
|
|
1265
|
+
if not content:
|
|
1266
|
+
content.append("Lessons learned to be documented following detailed analysis.")
|
|
1267
|
+
|
|
1268
|
+
return "\n".join(content)
|
|
1269
|
+
|
|
1270
|
+
def _create_action_items_section(self, action_items: List[Dict]) -> str:
|
|
1271
|
+
"""Create action items section."""
|
|
1272
|
+
if not action_items:
|
|
1273
|
+
return "Action items to be defined."
|
|
1274
|
+
|
|
1275
|
+
content = []
|
|
1276
|
+
|
|
1277
|
+
# Group by priority
|
|
1278
|
+
priority_groups = defaultdict(list)
|
|
1279
|
+
for item in action_items:
|
|
1280
|
+
priority_groups[item.get("priority", "P3")].append(item)
|
|
1281
|
+
|
|
1282
|
+
for priority in ["P0", "P1", "P2", "P3"]:
|
|
1283
|
+
items = priority_groups.get(priority, [])
|
|
1284
|
+
if items:
|
|
1285
|
+
content.append(f"### {priority} - {self._get_priority_description(priority)}")
|
|
1286
|
+
content.append("")
|
|
1287
|
+
|
|
1288
|
+
for item in items:
|
|
1289
|
+
content.append(f"**{item['title']}**")
|
|
1290
|
+
content.append(f"- Owner: {item.get('owner', 'TBD')}")
|
|
1291
|
+
content.append(f"- Timeline: {item.get('timeline', 'TBD')}")
|
|
1292
|
+
content.append(f"- Success Criteria: {item.get('success_criteria', 'TBD')}")
|
|
1293
|
+
content.append("")
|
|
1294
|
+
|
|
1295
|
+
return "\n".join(content)
|
|
1296
|
+
|
|
1297
|
+
def _get_priority_description(self, priority: str) -> str:
|
|
1298
|
+
"""Get human-readable priority description."""
|
|
1299
|
+
descriptions = {
|
|
1300
|
+
"P0": "Critical - Immediate Action Required",
|
|
1301
|
+
"P1": "High Priority - Complete Within 1-2 Weeks",
|
|
1302
|
+
"P2": "Medium Priority - Complete Within 1 Month",
|
|
1303
|
+
"P3": "Low Priority - Complete When Capacity Allows"
|
|
1304
|
+
}
|
|
1305
|
+
return descriptions.get(priority, "Unknown Priority")
|
|
1306
|
+
|
|
1307
|
+
def _create_prevention_section(self, rca_results: Dict, action_items: List[Dict]) -> str:
|
|
1308
|
+
"""Create prevention and follow-up section."""
|
|
1309
|
+
content = []
|
|
1310
|
+
|
|
1311
|
+
content.append("### Prevention Measures")
|
|
1312
|
+
content.append("")
|
|
1313
|
+
content.append("Based on the root cause analysis, the following preventive measures have been identified:")
|
|
1314
|
+
content.append("")
|
|
1315
|
+
|
|
1316
|
+
# Extract prevention-focused action items
|
|
1317
|
+
prevention_items = [item for item in action_items if "prevent" in item.get("description", "").lower()]
|
|
1318
|
+
|
|
1319
|
+
if prevention_items:
|
|
1320
|
+
for item in prevention_items:
|
|
1321
|
+
content.append(f"- {item['title']}: {item.get('description', '')}")
|
|
1322
|
+
else:
|
|
1323
|
+
content.append("- Implement comprehensive testing for similar scenarios")
|
|
1324
|
+
content.append("- Improve monitoring and alerting coverage")
|
|
1325
|
+
content.append("- Enhance error handling and resilience patterns")
|
|
1326
|
+
|
|
1327
|
+
content.append("")
|
|
1328
|
+
content.append("### Follow-up Schedule")
|
|
1329
|
+
content.append("")
|
|
1330
|
+
content.append("- 1 week: Review action item progress")
|
|
1331
|
+
content.append("- 1 month: Evaluate effectiveness of implemented changes")
|
|
1332
|
+
content.append("- 3 months: Conduct follow-up assessment and update preventive measures")
|
|
1333
|
+
|
|
1334
|
+
return "\n".join(content)
|
|
1335
|
+
|
|
1336
|
+
def _create_appendix_section(self, incident_info: Dict) -> str:
|
|
1337
|
+
"""Create appendix section."""
|
|
1338
|
+
content = []
|
|
1339
|
+
|
|
1340
|
+
content.append("### Additional Information")
|
|
1341
|
+
content.append("")
|
|
1342
|
+
content.append(f"- Incident ID: {incident_info['incident_id']}")
|
|
1343
|
+
content.append(f"- Severity Classification: {incident_info['severity']}")
|
|
1344
|
+
|
|
1345
|
+
if incident_info.get("affected_services"):
|
|
1346
|
+
content.append(f"- Affected Services: {', '.join(incident_info['affected_services'])}")
|
|
1347
|
+
|
|
1348
|
+
content.append("")
|
|
1349
|
+
content.append("### References")
|
|
1350
|
+
content.append("")
|
|
1351
|
+
content.append("- Incident tracking ticket: [Link TBD]")
|
|
1352
|
+
content.append("- Monitoring dashboards: [Link TBD]")
|
|
1353
|
+
content.append("- Communication thread: [Link TBD]")
|
|
1354
|
+
|
|
1355
|
+
return "\n".join(content)
|
|
1356
|
+
|
|
1357
|
+
def _generate_metadata(self, incident_info: Dict, rca_results: Dict, action_items: List[Dict]) -> Dict[str, Any]:
|
|
1358
|
+
"""Generate PIR metadata for tracking and analysis."""
|
|
1359
|
+
return {
|
|
1360
|
+
"pir_id": f"PIR-{incident_info['incident_id']}",
|
|
1361
|
+
"incident_severity": incident_info["severity"],
|
|
1362
|
+
"rca_method": rca_results.get("method", "unknown"),
|
|
1363
|
+
"rca_confidence": rca_results.get("confidence", "unknown"),
|
|
1364
|
+
"total_action_items": len(action_items),
|
|
1365
|
+
"critical_action_items": len([item for item in action_items if item.get("priority") == "P0"]),
|
|
1366
|
+
"estimated_prevention_timeline": self._estimate_prevention_timeline(action_items),
|
|
1367
|
+
"categories_affected": list(set(item.get("type", "unknown") for item in action_items)),
|
|
1368
|
+
"review_completeness": self._assess_review_completeness(incident_info, rca_results, action_items)
|
|
1369
|
+
}
|
|
1370
|
+
|
|
1371
|
+
def _estimate_prevention_timeline(self, action_items: List[Dict]) -> str:
|
|
1372
|
+
"""Estimate timeline for implementing all prevention measures."""
|
|
1373
|
+
if not action_items:
|
|
1374
|
+
return "unknown"
|
|
1375
|
+
|
|
1376
|
+
# Find the longest timeline among action items
|
|
1377
|
+
max_weeks = 0
|
|
1378
|
+
for item in action_items:
|
|
1379
|
+
timeline = item.get("timeline", "")
|
|
1380
|
+
if "week" in timeline:
|
|
1381
|
+
try:
|
|
1382
|
+
weeks = int(re.findall(r'\d+', timeline)[0])
|
|
1383
|
+
max_weeks = max(max_weeks, weeks)
|
|
1384
|
+
except (IndexError, ValueError):
|
|
1385
|
+
pass
|
|
1386
|
+
elif "month" in timeline:
|
|
1387
|
+
try:
|
|
1388
|
+
months = int(re.findall(r'\d+', timeline)[0])
|
|
1389
|
+
max_weeks = max(max_weeks, months * 4)
|
|
1390
|
+
except (IndexError, ValueError):
|
|
1391
|
+
pass
|
|
1392
|
+
|
|
1393
|
+
if max_weeks == 0:
|
|
1394
|
+
return "1-2 weeks"
|
|
1395
|
+
elif max_weeks <= 4:
|
|
1396
|
+
return f"{max_weeks} weeks"
|
|
1397
|
+
else:
|
|
1398
|
+
return f"{max_weeks // 4} months"
|
|
1399
|
+
|
|
1400
|
+
def _assess_review_completeness(self, incident_info: Dict, rca_results: Dict, action_items: List[Dict]) -> float:
|
|
1401
|
+
"""Assess completeness of the PIR (0-1 score)."""
|
|
1402
|
+
score = 0.0
|
|
1403
|
+
|
|
1404
|
+
# Basic information completeness
|
|
1405
|
+
if incident_info.get("description"):
|
|
1406
|
+
score += 0.1
|
|
1407
|
+
if incident_info.get("start_time"):
|
|
1408
|
+
score += 0.1
|
|
1409
|
+
if incident_info.get("customer_impact"):
|
|
1410
|
+
score += 0.1
|
|
1411
|
+
|
|
1412
|
+
# RCA completeness
|
|
1413
|
+
if rca_results.get("root_causes"):
|
|
1414
|
+
score += 0.2
|
|
1415
|
+
if rca_results.get("confidence") in ["medium", "high"]:
|
|
1416
|
+
score += 0.1
|
|
1417
|
+
|
|
1418
|
+
# Action items completeness
|
|
1419
|
+
if action_items:
|
|
1420
|
+
score += 0.2
|
|
1421
|
+
if any(item.get("owner") and item["owner"] != "TBD" for item in action_items):
|
|
1422
|
+
score += 0.1
|
|
1423
|
+
|
|
1424
|
+
# Additional factors
|
|
1425
|
+
if incident_info.get("incident_commander") != "TBD":
|
|
1426
|
+
score += 0.1
|
|
1427
|
+
if len(action_items) >= 3: # Multiple action items show thorough analysis
|
|
1428
|
+
score += 0.1
|
|
1429
|
+
|
|
1430
|
+
return min(score, 1.0)
|
|
1431
|
+
|
|
1432
|
+
|
|
1433
|
+
def format_json_output(result: Dict) -> str:
|
|
1434
|
+
"""Format result as pretty JSON."""
|
|
1435
|
+
return json.dumps(result, indent=2, ensure_ascii=False)
|
|
1436
|
+
|
|
1437
|
+
|
|
1438
|
+
def format_markdown_output(result: Dict) -> str:
|
|
1439
|
+
"""Format result as Markdown PIR document."""
|
|
1440
|
+
return result.get("pir_document", "Error: No PIR document generated")
|
|
1441
|
+
|
|
1442
|
+
|
|
1443
|
+
def format_text_output(result: Dict) -> str:
|
|
1444
|
+
"""Format result as human-readable summary."""
|
|
1445
|
+
if "error" in result:
|
|
1446
|
+
return f"Error: {result['error']}"
|
|
1447
|
+
|
|
1448
|
+
metadata = result.get("metadata", {})
|
|
1449
|
+
incident_info = result.get("incident_info", {})
|
|
1450
|
+
rca_results = result.get("rca_results", {})
|
|
1451
|
+
action_items = result.get("action_items", [])
|
|
1452
|
+
|
|
1453
|
+
output = []
|
|
1454
|
+
output.append("=" * 60)
|
|
1455
|
+
output.append("POST-INCIDENT REVIEW SUMMARY")
|
|
1456
|
+
output.append("=" * 60)
|
|
1457
|
+
output.append("")
|
|
1458
|
+
|
|
1459
|
+
# Basic info
|
|
1460
|
+
output.append("INCIDENT INFORMATION:")
|
|
1461
|
+
output.append(f" PIR ID: {metadata.get('pir_id', 'Unknown')}")
|
|
1462
|
+
output.append(f" Severity: {incident_info.get('severity', 'Unknown').upper()}")
|
|
1463
|
+
output.append(f" Duration: {incident_info.get('duration', 'Unknown')}")
|
|
1464
|
+
output.append(f" Status: {incident_info.get('status', 'Unknown').title()}")
|
|
1465
|
+
output.append("")
|
|
1466
|
+
|
|
1467
|
+
# RCA summary
|
|
1468
|
+
output.append("ROOT CAUSE ANALYSIS:")
|
|
1469
|
+
output.append(f" Method: {rca_results.get('method', 'Unknown')}")
|
|
1470
|
+
output.append(f" Confidence: {rca_results.get('confidence', 'Unknown').title()}")
|
|
1471
|
+
|
|
1472
|
+
root_causes = rca_results.get("root_causes", [])
|
|
1473
|
+
if root_causes:
|
|
1474
|
+
output.append(f" Root Causes Identified: {len(root_causes)}")
|
|
1475
|
+
for i, cause in enumerate(root_causes[:3], 1):
|
|
1476
|
+
output.append(f" {i}. {cause.get('cause', 'Unknown')[:60]}...")
|
|
1477
|
+
output.append("")
|
|
1478
|
+
|
|
1479
|
+
# Action items summary
|
|
1480
|
+
output.append("ACTION ITEMS:")
|
|
1481
|
+
output.append(f" Total Actions: {len(action_items)}")
|
|
1482
|
+
output.append(f" Critical (P0): {metadata.get('critical_action_items', 0)}")
|
|
1483
|
+
output.append(f" Prevention Timeline: {metadata.get('estimated_prevention_timeline', 'Unknown')}")
|
|
1484
|
+
|
|
1485
|
+
if action_items:
|
|
1486
|
+
output.append(" Top Actions:")
|
|
1487
|
+
for item in action_items[:3]:
|
|
1488
|
+
output.append(f" - {item.get('title', 'Unknown')[:50]}...")
|
|
1489
|
+
output.append("")
|
|
1490
|
+
|
|
1491
|
+
# Completeness
|
|
1492
|
+
completeness = metadata.get("review_completeness", 0) * 100
|
|
1493
|
+
output.append(f"REVIEW COMPLETENESS: {completeness:.0f}%")
|
|
1494
|
+
output.append("")
|
|
1495
|
+
|
|
1496
|
+
output.append("=" * 60)
|
|
1497
|
+
|
|
1498
|
+
return "\n".join(output)
|
|
1499
|
+
|
|
1500
|
+
|
|
1501
|
+
def main():
|
|
1502
|
+
"""Main function with argument parsing and execution."""
|
|
1503
|
+
parser = argparse.ArgumentParser(
|
|
1504
|
+
description="Generate Post-Incident Review documents with RCA and action items",
|
|
1505
|
+
formatter_class=argparse.RawDescriptionHelpFormatter,
|
|
1506
|
+
epilog="""
|
|
1507
|
+
Examples:
|
|
1508
|
+
python pir_generator.py --incident incident.json --output pir.md
|
|
1509
|
+
python pir_generator.py --incident incident.json --rca-method fishbone
|
|
1510
|
+
cat incident.json | python pir_generator.py --format markdown
|
|
1511
|
+
|
|
1512
|
+
Incident JSON format:
|
|
1513
|
+
{
|
|
1514
|
+
"incident_id": "INC-2024-001",
|
|
1515
|
+
"title": "Database performance degradation",
|
|
1516
|
+
"description": "Users experiencing slow response times",
|
|
1517
|
+
"severity": "sev2",
|
|
1518
|
+
"start_time": "2024-01-01T12:00:00Z",
|
|
1519
|
+
"end_time": "2024-01-01T14:30:00Z",
|
|
1520
|
+
"customer_impact": "50% of users affected by slow page loads",
|
|
1521
|
+
"business_impact": "Moderate user experience degradation",
|
|
1522
|
+
"incident_commander": "Alice Smith",
|
|
1523
|
+
"responders": ["Bob Jones", "Carol Johnson"]
|
|
1524
|
+
}
|
|
1525
|
+
"""
|
|
1526
|
+
)
|
|
1527
|
+
|
|
1528
|
+
parser.add_argument(
|
|
1529
|
+
"--incident", "-i",
|
|
1530
|
+
help="Incident data file (JSON) or '-' for stdin"
|
|
1531
|
+
)
|
|
1532
|
+
|
|
1533
|
+
parser.add_argument(
|
|
1534
|
+
"--timeline", "-t",
|
|
1535
|
+
help="Timeline reconstruction file (JSON)"
|
|
1536
|
+
)
|
|
1537
|
+
|
|
1538
|
+
parser.add_argument(
|
|
1539
|
+
"--output", "-o",
|
|
1540
|
+
help="Output file path (default: stdout)"
|
|
1541
|
+
)
|
|
1542
|
+
|
|
1543
|
+
parser.add_argument(
|
|
1544
|
+
"--format", "-f",
|
|
1545
|
+
choices=["json", "markdown", "text"],
|
|
1546
|
+
default="markdown",
|
|
1547
|
+
help="Output format (default: markdown)"
|
|
1548
|
+
)
|
|
1549
|
+
|
|
1550
|
+
parser.add_argument(
|
|
1551
|
+
"--rca-method",
|
|
1552
|
+
choices=["five_whys", "fishbone", "timeline", "bow_tie"],
|
|
1553
|
+
default="five_whys",
|
|
1554
|
+
help="Root cause analysis method (default: five_whys)"
|
|
1555
|
+
)
|
|
1556
|
+
|
|
1557
|
+
parser.add_argument(
|
|
1558
|
+
"--template-type",
|
|
1559
|
+
choices=["comprehensive", "standard", "brief"],
|
|
1560
|
+
default="comprehensive",
|
|
1561
|
+
help="PIR template type (default: comprehensive)"
|
|
1562
|
+
)
|
|
1563
|
+
|
|
1564
|
+
parser.add_argument(
|
|
1565
|
+
"--action-items",
|
|
1566
|
+
action="store_true",
|
|
1567
|
+
help="Generate detailed action items"
|
|
1568
|
+
)
|
|
1569
|
+
|
|
1570
|
+
args = parser.parse_args()
|
|
1571
|
+
|
|
1572
|
+
generator = PIRGenerator()
|
|
1573
|
+
|
|
1574
|
+
try:
|
|
1575
|
+
# Read incident data
|
|
1576
|
+
if args.incident == "-" or (not args.incident and not sys.stdin.isatty()):
|
|
1577
|
+
# Read from stdin
|
|
1578
|
+
input_text = sys.stdin.read().strip()
|
|
1579
|
+
if not input_text:
|
|
1580
|
+
parser.error("No incident data provided")
|
|
1581
|
+
incident_data = json.loads(input_text)
|
|
1582
|
+
elif args.incident:
|
|
1583
|
+
# Read from file
|
|
1584
|
+
with open(args.incident, 'r') as f:
|
|
1585
|
+
incident_data = json.load(f)
|
|
1586
|
+
else:
|
|
1587
|
+
parser.error("No incident data specified. Use --incident or pipe data to stdin.")
|
|
1588
|
+
|
|
1589
|
+
# Read timeline data if provided
|
|
1590
|
+
timeline_data = None
|
|
1591
|
+
if args.timeline:
|
|
1592
|
+
with open(args.timeline, 'r') as f:
|
|
1593
|
+
timeline_data = json.load(f)
|
|
1594
|
+
|
|
1595
|
+
# Validate incident data
|
|
1596
|
+
if not isinstance(incident_data, dict):
|
|
1597
|
+
parser.error("Incident data must be a JSON object")
|
|
1598
|
+
|
|
1599
|
+
if not incident_data.get("description") and not incident_data.get("title"):
|
|
1600
|
+
parser.error("Incident data must contain 'description' or 'title'")
|
|
1601
|
+
|
|
1602
|
+
# Generate PIR
|
|
1603
|
+
result = generator.generate_pir(
|
|
1604
|
+
incident_data=incident_data,
|
|
1605
|
+
timeline_data=timeline_data,
|
|
1606
|
+
rca_method=args.rca_method,
|
|
1607
|
+
template_type=args.template_type
|
|
1608
|
+
)
|
|
1609
|
+
|
|
1610
|
+
# Format output
|
|
1611
|
+
if args.format == "json":
|
|
1612
|
+
output = format_json_output(result)
|
|
1613
|
+
elif args.format == "markdown":
|
|
1614
|
+
output = format_markdown_output(result)
|
|
1615
|
+
else:
|
|
1616
|
+
output = format_text_output(result)
|
|
1617
|
+
|
|
1618
|
+
# Write output
|
|
1619
|
+
if args.output:
|
|
1620
|
+
with open(args.output, 'w') as f:
|
|
1621
|
+
f.write(output)
|
|
1622
|
+
f.write('\n')
|
|
1623
|
+
else:
|
|
1624
|
+
print(output)
|
|
1625
|
+
|
|
1626
|
+
except FileNotFoundError as e:
|
|
1627
|
+
print(f"Error: File not found - {e}", file=sys.stderr)
|
|
1628
|
+
sys.exit(1)
|
|
1629
|
+
except json.JSONDecodeError as e:
|
|
1630
|
+
print(f"Error: Invalid JSON - {e}", file=sys.stderr)
|
|
1631
|
+
sys.exit(1)
|
|
1632
|
+
except Exception as e:
|
|
1633
|
+
print(f"Error: {e}", file=sys.stderr)
|
|
1634
|
+
sys.exit(1)
|
|
1635
|
+
|
|
1636
|
+
|
|
1637
|
+
if __name__ == "__main__":
|
|
1638
|
+
main()
|