moai-adk 0.35.1__py3-none-any.whl
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.
Potentially problematic release.
This version of moai-adk might be problematic. Click here for more details.
- moai_adk/__init__.py +10 -0
- moai_adk/__main__.py +199 -0
- moai_adk/cli/__init__.py +6 -0
- moai_adk/cli/commands/__init__.py +17 -0
- moai_adk/cli/commands/analyze.py +116 -0
- moai_adk/cli/commands/doctor.py +272 -0
- moai_adk/cli/commands/init.py +372 -0
- moai_adk/cli/commands/language.py +248 -0
- moai_adk/cli/commands/status.py +104 -0
- moai_adk/cli/commands/update.py +2686 -0
- moai_adk/cli/main.py +13 -0
- moai_adk/cli/prompts/__init__.py +5 -0
- moai_adk/cli/prompts/init_prompts.py +219 -0
- moai_adk/cli/spec_status.py +263 -0
- moai_adk/cli/ui/__init__.py +44 -0
- moai_adk/cli/ui/progress.py +422 -0
- moai_adk/cli/ui/prompts.py +389 -0
- moai_adk/cli/ui/theme.py +129 -0
- moai_adk/cli/worktree/__init__.py +27 -0
- moai_adk/cli/worktree/__main__.py +31 -0
- moai_adk/cli/worktree/cli.py +683 -0
- moai_adk/cli/worktree/exceptions.py +89 -0
- moai_adk/cli/worktree/manager.py +493 -0
- moai_adk/cli/worktree/models.py +65 -0
- moai_adk/cli/worktree/registry.py +422 -0
- moai_adk/core/PHASE2_OPTIMIZATIONS.md +467 -0
- moai_adk/core/__init__.py +1 -0
- moai_adk/core/analysis/__init__.py +9 -0
- moai_adk/core/analysis/session_analyzer.py +400 -0
- moai_adk/core/claude_integration.py +393 -0
- moai_adk/core/command_helpers.py +270 -0
- moai_adk/core/comprehensive_monitoring_system.py +1183 -0
- moai_adk/core/config/__init__.py +19 -0
- moai_adk/core/config/auto_spec_config.py +340 -0
- moai_adk/core/config/migration.py +244 -0
- moai_adk/core/config/unified.py +436 -0
- moai_adk/core/context_manager.py +273 -0
- moai_adk/core/diagnostics/__init__.py +19 -0
- moai_adk/core/diagnostics/slash_commands.py +159 -0
- moai_adk/core/enterprise_features.py +1404 -0
- moai_adk/core/error_recovery_system.py +1902 -0
- moai_adk/core/event_driven_hook_system.py +1371 -0
- moai_adk/core/git/__init__.py +31 -0
- moai_adk/core/git/branch.py +25 -0
- moai_adk/core/git/branch_manager.py +129 -0
- moai_adk/core/git/checkpoint.py +134 -0
- moai_adk/core/git/commit.py +67 -0
- moai_adk/core/git/conflict_detector.py +413 -0
- moai_adk/core/git/event_detector.py +79 -0
- moai_adk/core/git/manager.py +216 -0
- moai_adk/core/hooks/post_tool_auto_spec_completion.py +901 -0
- moai_adk/core/input_validation_middleware.py +1006 -0
- moai_adk/core/integration/__init__.py +22 -0
- moai_adk/core/integration/engine.py +157 -0
- moai_adk/core/integration/integration_tester.py +226 -0
- moai_adk/core/integration/models.py +88 -0
- moai_adk/core/integration/utils.py +211 -0
- moai_adk/core/issue_creator.py +305 -0
- moai_adk/core/jit_context_loader.py +956 -0
- moai_adk/core/jit_enhanced_hook_manager.py +1987 -0
- moai_adk/core/language_config.py +202 -0
- moai_adk/core/language_config_resolver.py +572 -0
- moai_adk/core/language_validator.py +543 -0
- moai_adk/core/mcp/setup.py +116 -0
- moai_adk/core/merge/__init__.py +9 -0
- moai_adk/core/merge/analyzer.py +605 -0
- moai_adk/core/migration/__init__.py +18 -0
- moai_adk/core/migration/alfred_to_moai_migrator.py +383 -0
- moai_adk/core/migration/backup_manager.py +277 -0
- moai_adk/core/migration/custom_element_scanner.py +358 -0
- moai_adk/core/migration/file_migrator.py +209 -0
- moai_adk/core/migration/interactive_checkbox_ui.py +488 -0
- moai_adk/core/migration/selective_restorer.py +470 -0
- moai_adk/core/migration/template_utils.py +74 -0
- moai_adk/core/migration/user_selection_ui.py +338 -0
- moai_adk/core/migration/version_detector.py +139 -0
- moai_adk/core/migration/version_migrator.py +228 -0
- moai_adk/core/performance/__init__.py +6 -0
- moai_adk/core/performance/cache_system.py +316 -0
- moai_adk/core/performance/parallel_processor.py +116 -0
- moai_adk/core/phase_optimized_hook_scheduler.py +879 -0
- moai_adk/core/project/__init__.py +1 -0
- moai_adk/core/project/backup_utils.py +70 -0
- moai_adk/core/project/checker.py +300 -0
- moai_adk/core/project/detector.py +293 -0
- moai_adk/core/project/initializer.py +387 -0
- moai_adk/core/project/phase_executor.py +716 -0
- moai_adk/core/project/validator.py +139 -0
- moai_adk/core/quality/__init__.py +6 -0
- moai_adk/core/quality/trust_checker.py +377 -0
- moai_adk/core/quality/validators/__init__.py +6 -0
- moai_adk/core/quality/validators/base_validator.py +19 -0
- moai_adk/core/realtime_monitoring_dashboard.py +1724 -0
- moai_adk/core/robust_json_parser.py +611 -0
- moai_adk/core/rollback_manager.py +918 -0
- moai_adk/core/session_manager.py +651 -0
- moai_adk/core/skill_loading_system.py +579 -0
- moai_adk/core/spec/confidence_scoring.py +680 -0
- moai_adk/core/spec/ears_template_engine.py +1247 -0
- moai_adk/core/spec/quality_validator.py +687 -0
- moai_adk/core/spec_status_manager.py +478 -0
- moai_adk/core/template/__init__.py +7 -0
- moai_adk/core/template/backup.py +174 -0
- moai_adk/core/template/config.py +191 -0
- moai_adk/core/template/languages.py +43 -0
- moai_adk/core/template/merger.py +233 -0
- moai_adk/core/template/processor.py +1200 -0
- moai_adk/core/template_engine.py +310 -0
- moai_adk/core/template_variable_synchronizer.py +417 -0
- moai_adk/core/unified_permission_manager.py +745 -0
- moai_adk/core/user_behavior_analytics.py +851 -0
- moai_adk/core/version_sync.py +429 -0
- moai_adk/foundation/__init__.py +56 -0
- moai_adk/foundation/backend.py +1027 -0
- moai_adk/foundation/database.py +1115 -0
- moai_adk/foundation/devops.py +1585 -0
- moai_adk/foundation/ears.py +431 -0
- moai_adk/foundation/frontend.py +870 -0
- moai_adk/foundation/git/commit_templates.py +557 -0
- moai_adk/foundation/git.py +376 -0
- moai_adk/foundation/langs.py +484 -0
- moai_adk/foundation/ml_ops.py +1162 -0
- moai_adk/foundation/testing.py +1524 -0
- moai_adk/foundation/trust/trust_principles.py +676 -0
- moai_adk/foundation/trust/validation_checklist.py +1573 -0
- moai_adk/project/__init__.py +0 -0
- moai_adk/project/configuration.py +1084 -0
- moai_adk/project/documentation.py +566 -0
- moai_adk/project/schema.py +447 -0
- moai_adk/statusline/__init__.py +38 -0
- moai_adk/statusline/alfred_detector.py +105 -0
- moai_adk/statusline/config.py +376 -0
- moai_adk/statusline/enhanced_output_style_detector.py +372 -0
- moai_adk/statusline/git_collector.py +190 -0
- moai_adk/statusline/main.py +322 -0
- moai_adk/statusline/metrics_tracker.py +78 -0
- moai_adk/statusline/renderer.py +343 -0
- moai_adk/statusline/update_checker.py +129 -0
- moai_adk/statusline/version_reader.py +741 -0
- moai_adk/templates/.claude/agents/moai/ai-nano-banana.md +714 -0
- moai_adk/templates/.claude/agents/moai/builder-agent.md +474 -0
- moai_adk/templates/.claude/agents/moai/builder-command.md +1172 -0
- moai_adk/templates/.claude/agents/moai/builder-plugin.md +637 -0
- moai_adk/templates/.claude/agents/moai/builder-skill.md +666 -0
- moai_adk/templates/.claude/agents/moai/expert-backend.md +899 -0
- moai_adk/templates/.claude/agents/moai/expert-database.md +777 -0
- moai_adk/templates/.claude/agents/moai/expert-debug.md +401 -0
- moai_adk/templates/.claude/agents/moai/expert-devops.md +720 -0
- moai_adk/templates/.claude/agents/moai/expert-frontend.md +734 -0
- moai_adk/templates/.claude/agents/moai/expert-performance.md +657 -0
- moai_adk/templates/.claude/agents/moai/expert-security.md +513 -0
- moai_adk/templates/.claude/agents/moai/expert-testing.md +733 -0
- moai_adk/templates/.claude/agents/moai/expert-uiux.md +1041 -0
- moai_adk/templates/.claude/agents/moai/manager-claude-code.md +432 -0
- moai_adk/templates/.claude/agents/moai/manager-docs.md +573 -0
- moai_adk/templates/.claude/agents/moai/manager-git.md +1060 -0
- moai_adk/templates/.claude/agents/moai/manager-project.md +891 -0
- moai_adk/templates/.claude/agents/moai/manager-quality.md +624 -0
- moai_adk/templates/.claude/agents/moai/manager-spec.md +809 -0
- moai_adk/templates/.claude/agents/moai/manager-strategy.md +780 -0
- moai_adk/templates/.claude/agents/moai/manager-tdd.md +784 -0
- moai_adk/templates/.claude/agents/moai/mcp-context7.md +458 -0
- moai_adk/templates/.claude/agents/moai/mcp-figma.md +1607 -0
- moai_adk/templates/.claude/agents/moai/mcp-notion.md +789 -0
- moai_adk/templates/.claude/agents/moai/mcp-playwright.md +469 -0
- moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +1032 -0
- moai_adk/templates/.claude/commands/moai/0-project.md +1386 -0
- moai_adk/templates/.claude/commands/moai/1-plan.md +1427 -0
- moai_adk/templates/.claude/commands/moai/2-run.md +943 -0
- moai_adk/templates/.claude/commands/moai/3-sync.md +1324 -0
- moai_adk/templates/.claude/commands/moai/9-feedback.md +314 -0
- moai_adk/templates/.claude/hooks/__init__.py +8 -0
- moai_adk/templates/.claude/hooks/moai/__init__.py +8 -0
- moai_adk/templates/.claude/hooks/moai/lib/__init__.py +85 -0
- moai_adk/templates/.claude/hooks/moai/lib/checkpoint.py +244 -0
- moai_adk/templates/.claude/hooks/moai/lib/common.py +131 -0
- moai_adk/templates/.claude/hooks/moai/lib/config_manager.py +446 -0
- moai_adk/templates/.claude/hooks/moai/lib/config_validator.py +639 -0
- moai_adk/templates/.claude/hooks/moai/lib/example_config.json +104 -0
- moai_adk/templates/.claude/hooks/moai/lib/git_operations_manager.py +590 -0
- moai_adk/templates/.claude/hooks/moai/lib/language_validator.py +317 -0
- moai_adk/templates/.claude/hooks/moai/lib/models.py +102 -0
- moai_adk/templates/.claude/hooks/moai/lib/path_utils.py +28 -0
- moai_adk/templates/.claude/hooks/moai/lib/project.py +768 -0
- moai_adk/templates/.claude/hooks/moai/lib/test_hooks_improvements.py +443 -0
- moai_adk/templates/.claude/hooks/moai/lib/timeout.py +160 -0
- moai_adk/templates/.claude/hooks/moai/lib/unified_timeout_manager.py +530 -0
- moai_adk/templates/.claude/hooks/moai/session_end__auto_cleanup.py +862 -0
- moai_adk/templates/.claude/hooks/moai/session_start__show_project_info.py +1083 -0
- moai_adk/templates/.claude/output-styles/moai/r2d2.md +560 -0
- moai_adk/templates/.claude/output-styles/moai/yoda.md +359 -0
- moai_adk/templates/.claude/settings.json +172 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/SKILL.md +307 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/examples.md +431 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/scripts/batch_generate.py +560 -0
- moai_adk/templates/.claude/skills/moai-ai-nano-banana/scripts/generate_image.py +362 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +249 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/examples.md +406 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/README.md +44 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/api-documentation.md +130 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/code-documentation.md +152 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/multi-format-output.md +178 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/modules/user-guides.md +147 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/reference.md +328 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +320 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +718 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +464 -0
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +323 -0
- moai_adk/templates/.claude/skills/moai-domain-database/examples.md +830 -0
- moai_adk/templates/.claude/skills/moai-domain-database/modules/README.md +53 -0
- moai_adk/templates/.claude/skills/moai-domain-database/modules/mongodb.md +231 -0
- moai_adk/templates/.claude/skills/moai-domain-database/modules/postgresql.md +169 -0
- moai_adk/templates/.claude/skills/moai-domain-database/modules/redis.md +262 -0
- moai_adk/templates/.claude/skills/moai-domain-database/reference.md +545 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +497 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +968 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +664 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +455 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/examples.md +560 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/accessibility-wcag.md +260 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/component-architecture.md +228 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/icon-libraries.md +401 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/modules/theming-system.md +373 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/reference.md +243 -0
- moai_adk/templates/.claude/skills/moai-formats-data/SKILL.md +492 -0
- moai_adk/templates/.claude/skills/moai-formats-data/examples.md +804 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/README.md +98 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/SKILL-MODULARIZATION-TEMPLATE.md +278 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/caching-performance.md +459 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/data-validation.md +485 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/json-optimization.md +374 -0
- moai_adk/templates/.claude/skills/moai-formats-data/modules/toon-encoding.md +308 -0
- moai_adk/templates/.claude/skills/moai-formats-data/reference.md +585 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/SKILL.md +202 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/examples.md +732 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/best-practices-checklist.md +616 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-custom-slash-commands-official.md +729 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-hooks-official.md +560 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-iam-official.md +635 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-memory-official.md +543 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-settings-official.md +663 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-skills-official.md +113 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-sub-agents-official.md +238 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/complete-configuration-guide.md +175 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-examples.md +1674 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/skill-formatting-guide.md +729 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-examples.md +1513 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-formatting-guide.md +1086 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference/sub-agents/sub-agent-integration-patterns.md +1100 -0
- moai_adk/templates/.claude/skills/moai-foundation-claude/reference.md +209 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/SKILL.md +441 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/examples.md +1048 -0
- moai_adk/templates/.claude/skills/moai-foundation-context/reference.md +246 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +420 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/examples.md +358 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/README.md +296 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/agents-reference.md +359 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/commands-reference.md +432 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/delegation-patterns.md +757 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/execution-rules.md +687 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/modular-system.md +665 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/progressive-disclosure.md +649 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/spec-first-tdd.md +864 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/token-optimization.md +708 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/modules/trust-5-framework.md +981 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/reference.md +478 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/SKILL.md +315 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/examples.md +228 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/assumption-matrix.md +80 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/cognitive-bias.md +199 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/first-principles.md +140 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/modules/trade-off-analysis.md +154 -0
- moai_adk/templates/.claude/skills/moai-foundation-philosopher/reference.md +157 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/SKILL.md +364 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/examples.md +1232 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/modules/best-practices.md +261 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/modules/integration-patterns.md +194 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/modules/proactive-analysis.md +229 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/modules/trust5-validation.md +169 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/reference.md +1266 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/scripts/quality-gate.sh +668 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/templates/github-actions-quality.yml +481 -0
- moai_adk/templates/.claude/skills/moai-foundation-quality/templates/quality-config.yaml +519 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +649 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +478 -0
- moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +612 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/SKILL.md +477 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/examples.md +1090 -0
- moai_adk/templates/.claude/skills/moai-lang-flutter/reference.md +686 -0
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +376 -0
- moai_adk/templates/.claude/skills/moai-lang-go/examples.md +919 -0
- moai_adk/templates/.claude/skills/moai-lang-go/reference.md +737 -0
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +385 -0
- moai_adk/templates/.claude/skills/moai-lang-java/examples.md +864 -0
- moai_adk/templates/.claude/skills/moai-lang-java/reference.md +291 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +382 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +1006 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +562 -0
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +644 -0
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +481 -0
- moai_adk/templates/.claude/skills/moai-lang-python/examples.md +977 -0
- moai_adk/templates/.claude/skills/moai-lang-python/reference.md +804 -0
- moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +579 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +687 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +372 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +659 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +504 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +497 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +633 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +423 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +497 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +918 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +672 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +368 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +1089 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +731 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +300 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/advanced-patterns.md +465 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/examples.md +270 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/optimization.md +440 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/reference.md +228 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/SKILL.md +319 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/advanced-patterns.md +336 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/examples.md +592 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-deployment-patterns.md +182 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/advanced-patterns.md +17 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/configuration.md +57 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/content-architecture-optimization.md +162 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/deployment.md +52 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/framework-core-configuration.md +186 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/i18n-setup.md +55 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/modules/mdx-components.md +52 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/optimization.md +303 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/reference.md +379 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/SKILL.md +372 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/examples.md +575 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/advanced-patterns.md +394 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/optimization.md +278 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-components.md +457 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/modules/shadcn-theming.md +373 -0
- moai_adk/templates/.claude/skills/moai-library-shadcn/reference.md +74 -0
- moai_adk/templates/.claude/skills/moai-mcp-figma/SKILL.md +402 -0
- moai_adk/templates/.claude/skills/moai-mcp-figma/advanced-patterns.md +607 -0
- moai_adk/templates/.claude/skills/moai-mcp-notion/SKILL.md +300 -0
- moai_adk/templates/.claude/skills/moai-mcp-notion/advanced-patterns.md +537 -0
- moai_adk/templates/.claude/skills/moai-platform-auth0/SKILL.md +291 -0
- moai_adk/templates/.claude/skills/moai-platform-clerk/SKILL.md +390 -0
- moai_adk/templates/.claude/skills/moai-platform-convex/SKILL.md +398 -0
- moai_adk/templates/.claude/skills/moai-platform-firebase-auth/SKILL.md +379 -0
- moai_adk/templates/.claude/skills/moai-platform-firestore/SKILL.md +358 -0
- moai_adk/templates/.claude/skills/moai-platform-neon/SKILL.md +467 -0
- moai_adk/templates/.claude/skills/moai-platform-railway/SKILL.md +377 -0
- moai_adk/templates/.claude/skills/moai-platform-supabase/SKILL.md +466 -0
- moai_adk/templates/.claude/skills/moai-platform-vercel/SKILL.md +482 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/SKILL.md +474 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/examples.md +621 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/migration.md +341 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/reference.md +463 -0
- moai_adk/templates/.claude/skills/moai-plugin-builder/validation.md +373 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/SKILL.md +275 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/adaptive-mfa.md +233 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/akamai-integration.md +215 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/application-credentials.md +280 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/attack-protection-log-events.md +225 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/attack-protection-overview.md +140 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/bot-detection.md +144 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/breached-password-detection.md +187 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/brute-force-protection.md +189 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/certifications.md +282 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/compliance-overview.md +263 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/continuous-session-protection.md +307 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/customize-mfa.md +178 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/dpop-implementation.md +283 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/fapi-implementation.md +259 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/gdpr-compliance.md +313 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/guardian-configuration.md +269 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/highly-regulated-identity.md +272 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/jwt-fundamentals.md +248 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/mdl-verification.md +211 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/mfa-api-management.md +278 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/mfa-factors.md +226 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/mfa-overview.md +174 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/mtls-sender-constraining.md +316 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/ropg-flow-mfa.md +217 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/security-center.md +325 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/security-guidance.md +277 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/state-parameters.md +178 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/step-up-authentication.md +251 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/suspicious-ip-throttling.md +240 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/tenant-access-control.md +180 -0
- moai_adk/templates/.claude/skills/moai-security-auth0/modules/webauthn-fido.md +235 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +449 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/advanced-patterns.md +379 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/examples.md +544 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/optimization.md +286 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/reference.md +307 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/README.md +190 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +390 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/__init__.py +520 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/complete_workflow_demo_fixed.py +574 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_project_setup.py +317 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/complete_workflow_demo.py +663 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/config-migration-example.json +190 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/question-examples.json +175 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/quick_start.py +196 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples.md +547 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/__init__.py +17 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/advanced-patterns.md +158 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/ask_user_integration.py +340 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/batch_questions.py +713 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/config_manager.py +538 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/documentation_manager.py +1336 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/language_initializer.py +730 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/migration_manager.py +608 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/modules/template_optimizer.py +1005 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/reference.md +275 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/schemas/config-schema.json +316 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/schemas/tab_schema.json +1434 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/config-template.json +71 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/product-template.md +44 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/structure-template.md +48 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/doc-templates/tech-template.md +92 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/config-manager-setup.json +109 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/language-initializer.json +228 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/menu-project-config.json +130 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/project-batch-questions.json +97 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/templates/question-templates/spec-workflow-setup.json +150 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/test_integration_simple.py +436 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/SKILL.md +534 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/examples.md +900 -0
- moai_adk/templates/.claude/skills/moai-workflow-spec/reference.md +704 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/SKILL.md +377 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/examples.md +552 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/modules/code-templates.md +124 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/modules/feedback-templates.md +100 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/modules/template-optimizer.md +138 -0
- moai_adk/templates/.claude/skills/moai-workflow-templates/reference.md +346 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/LICENSE.txt +202 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +456 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/advanced-patterns.md +576 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples/ai-powered-testing.py +294 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples/console_logging.py +35 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples/element_discovery.py +40 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples/static_html_automation.py +34 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/examples.md +672 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/README.md +220 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/ai-debugging.md +845 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/automated-code-review.md +1416 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/performance-optimization.md +1234 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/smart-refactoring.md +1243 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/modules/tdd-context7.md +1260 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/optimization.md +505 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/reference/playwright-best-practices.md +57 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/reference.md +440 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/scripts/with_server.py +218 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/templates/alfred-integration.md +376 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/workflows/enterprise-testing-workflow.py +571 -0
- moai_adk/templates/.claude/skills/moai-worktree/SKILL.md +411 -0
- moai_adk/templates/.claude/skills/moai-worktree/examples.md +606 -0
- moai_adk/templates/.claude/skills/moai-worktree/modules/integration-patterns.md +982 -0
- moai_adk/templates/.claude/skills/moai-worktree/modules/parallel-development.md +778 -0
- moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-commands.md +646 -0
- moai_adk/templates/.claude/skills/moai-worktree/modules/worktree-management.md +782 -0
- moai_adk/templates/.claude/skills/moai-worktree/reference.md +357 -0
- moai_adk/templates/.git-hooks/pre-commit +128 -0
- moai_adk/templates/.git-hooks/pre-push +365 -0
- moai_adk/templates/.github/workflows/ci-universal.yml +513 -0
- moai_adk/templates/.github/workflows/security-secrets-check.yml +179 -0
- moai_adk/templates/.github/workflows/spec-issue-sync.yml +337 -0
- moai_adk/templates/.gitignore +222 -0
- moai_adk/templates/.mcp.json +13 -0
- moai_adk/templates/.moai/config/config.yaml +58 -0
- moai_adk/templates/.moai/config/questions/_schema.yaml +174 -0
- moai_adk/templates/.moai/config/questions/tab0-init.yaml +251 -0
- moai_adk/templates/.moai/config/questions/tab1-user.yaml +107 -0
- moai_adk/templates/.moai/config/questions/tab2-project.yaml +79 -0
- moai_adk/templates/.moai/config/questions/tab3-git.yaml +632 -0
- moai_adk/templates/.moai/config/questions/tab4-quality.yaml +182 -0
- moai_adk/templates/.moai/config/questions/tab5-system.yaml +96 -0
- moai_adk/templates/.moai/config/sections/git-strategy.yaml +116 -0
- moai_adk/templates/.moai/config/sections/language.yaml +11 -0
- moai_adk/templates/.moai/config/sections/project.yaml +13 -0
- moai_adk/templates/.moai/config/sections/quality.yaml +17 -0
- moai_adk/templates/.moai/config/sections/system.yaml +24 -0
- moai_adk/templates/.moai/config/sections/user.yaml +5 -0
- moai_adk/templates/.moai/config/statusline-config.yaml +92 -0
- moai_adk/templates/.moai/scripts/setup-glm.py +136 -0
- moai_adk/templates/CLAUDE.md +642 -0
- moai_adk/utils/__init__.py +30 -0
- moai_adk/utils/banner.py +38 -0
- moai_adk/utils/common.py +294 -0
- moai_adk/utils/link_validator.py +241 -0
- moai_adk/utils/logger.py +147 -0
- moai_adk/utils/safe_file_reader.py +206 -0
- moai_adk/utils/timeout.py +160 -0
- moai_adk/utils/toon_utils.py +256 -0
- moai_adk/version.py +22 -0
- moai_adk-0.35.1.dist-info/METADATA +3018 -0
- moai_adk-0.35.1.dist-info/RECORD +502 -0
- moai_adk-0.35.1.dist-info/WHEEL +4 -0
- moai_adk-0.35.1.dist-info/entry_points.txt +3 -0
- moai_adk-0.35.1.dist-info/licenses/LICENSE +21 -0
|
@@ -0,0 +1,199 @@
|
|
|
1
|
+
# Cognitive Bias Module
|
|
2
|
+
|
|
3
|
+
Deep dive into identifying and mitigating cognitive biases in technical decision-making.
|
|
4
|
+
|
|
5
|
+
## Primary Biases in Technical Decisions
|
|
6
|
+
|
|
7
|
+
### Anchoring Bias
|
|
8
|
+
|
|
9
|
+
Definition: Over-reliance on the first piece of information encountered.
|
|
10
|
+
|
|
11
|
+
How it manifests in development:
|
|
12
|
+
- First solution considered becomes the default
|
|
13
|
+
- Initial estimate becomes the baseline
|
|
14
|
+
- First technology researched gets preference
|
|
15
|
+
- Original requirements dominate even when changed
|
|
16
|
+
|
|
17
|
+
Detection questions:
|
|
18
|
+
- Is this solution preferred because it was first or because it is best?
|
|
19
|
+
- Would I reach the same conclusion if I encountered alternatives first?
|
|
20
|
+
- Am I adjusting from an initial value or evaluating independently?
|
|
21
|
+
|
|
22
|
+
Mitigation strategies:
|
|
23
|
+
- Deliberately consider alternatives before committing
|
|
24
|
+
- Generate options independently before comparison
|
|
25
|
+
- Seek input from people who started with different information
|
|
26
|
+
- Use structured evaluation frameworks
|
|
27
|
+
|
|
28
|
+
### Confirmation Bias
|
|
29
|
+
|
|
30
|
+
Definition: Seeking and interpreting information to confirm existing beliefs.
|
|
31
|
+
|
|
32
|
+
How it manifests in development:
|
|
33
|
+
- Searching for success stories of preferred technology
|
|
34
|
+
- Dismissing concerns about chosen approach
|
|
35
|
+
- Interpreting ambiguous data as supporting decision
|
|
36
|
+
- Selective attention to positive feedback
|
|
37
|
+
|
|
38
|
+
Detection questions:
|
|
39
|
+
- Am I seeking evidence that challenges my preference?
|
|
40
|
+
- Would I accept this evidence if it opposed my view?
|
|
41
|
+
- Have I genuinely considered why someone might disagree?
|
|
42
|
+
|
|
43
|
+
Mitigation strategies:
|
|
44
|
+
- Actively search for counterexamples
|
|
45
|
+
- Assign someone to argue the opposite position
|
|
46
|
+
- List reasons why the preferred option might fail
|
|
47
|
+
- Seek feedback from known skeptics
|
|
48
|
+
|
|
49
|
+
### Sunk Cost Fallacy
|
|
50
|
+
|
|
51
|
+
Definition: Continuing investment due to previously invested resources.
|
|
52
|
+
|
|
53
|
+
How it manifests in development:
|
|
54
|
+
- Continuing with failing approach due to time invested
|
|
55
|
+
- Maintaining legacy code due to past effort
|
|
56
|
+
- Persisting with tool due to training investment
|
|
57
|
+
- Defending decision due to public commitment
|
|
58
|
+
|
|
59
|
+
Detection questions:
|
|
60
|
+
- Would I start down this path if beginning fresh today?
|
|
61
|
+
- Am I continuing because of future value or past investment?
|
|
62
|
+
- What would I advise someone else in this situation?
|
|
63
|
+
|
|
64
|
+
Mitigation strategies:
|
|
65
|
+
- Evaluate decisions based on future costs and benefits only
|
|
66
|
+
- Set clear criteria for stopping before starting
|
|
67
|
+
- Regular checkpoint reviews with fresh perspective
|
|
68
|
+
- Separate decision from past investment explicitly
|
|
69
|
+
|
|
70
|
+
### Availability Heuristic
|
|
71
|
+
|
|
72
|
+
Definition: Overweighting information that comes easily to mind.
|
|
73
|
+
|
|
74
|
+
How it manifests in development:
|
|
75
|
+
- Recent project experience dominates thinking
|
|
76
|
+
- Memorable failures cause excessive caution
|
|
77
|
+
- Familiar technologies preferred over better alternatives
|
|
78
|
+
- Recent news influences technology assessment
|
|
79
|
+
|
|
80
|
+
Detection questions:
|
|
81
|
+
- Is this concern based on frequency or memorability?
|
|
82
|
+
- What does systematic data say vs anecdotal experience?
|
|
83
|
+
- Am I overweighting recent events?
|
|
84
|
+
|
|
85
|
+
Mitigation strategies:
|
|
86
|
+
- Seek base rate data for objective comparison
|
|
87
|
+
- Consider experiences beyond recent memory
|
|
88
|
+
- Consult documentation and research over recollection
|
|
89
|
+
- Balance personal experience with broader evidence
|
|
90
|
+
|
|
91
|
+
### Overconfidence Bias
|
|
92
|
+
|
|
93
|
+
Definition: Excessive confidence in own judgment and predictions.
|
|
94
|
+
|
|
95
|
+
How it manifests in development:
|
|
96
|
+
- Underestimating implementation complexity
|
|
97
|
+
- Overestimating ability to handle edge cases
|
|
98
|
+
- Certainty about user behavior predictions
|
|
99
|
+
- Confidence in estimates without uncertainty ranges
|
|
100
|
+
|
|
101
|
+
Detection questions:
|
|
102
|
+
- What is my track record on similar predictions?
|
|
103
|
+
- How would I feel if this turned out differently?
|
|
104
|
+
- What would need to be true for me to be wrong?
|
|
105
|
+
|
|
106
|
+
Mitigation strategies:
|
|
107
|
+
- Express estimates as ranges with confidence levels
|
|
108
|
+
- Review historical accuracy of predictions
|
|
109
|
+
- Seek external validation for important judgments
|
|
110
|
+
- Include explicit uncertainty in recommendations
|
|
111
|
+
|
|
112
|
+
## Bias Mitigation Techniques
|
|
113
|
+
|
|
114
|
+
### Pre-mortem Analysis
|
|
115
|
+
|
|
116
|
+
Process:
|
|
117
|
+
1. Imagine the decision has been implemented
|
|
118
|
+
2. Assume it has failed spectacularly
|
|
119
|
+
3. Write down all the reasons for failure
|
|
120
|
+
4. Evaluate which failure modes are most likely
|
|
121
|
+
5. Address highest-risk failure modes proactively
|
|
122
|
+
|
|
123
|
+
Benefits:
|
|
124
|
+
- Legitimizes dissent and concern-raising
|
|
125
|
+
- Surfaces risks that optimism might hide
|
|
126
|
+
- Creates concrete mitigation opportunities
|
|
127
|
+
|
|
128
|
+
### Devil's Advocate
|
|
129
|
+
|
|
130
|
+
Process:
|
|
131
|
+
1. Assign someone to argue against the preferred option
|
|
132
|
+
2. Require them to make the strongest possible case
|
|
133
|
+
3. Take the counterarguments seriously
|
|
134
|
+
4. Adjust decision if counterarguments reveal blind spots
|
|
135
|
+
|
|
136
|
+
Guidelines:
|
|
137
|
+
- Devil's advocate should prepare thoroughly
|
|
138
|
+
- Arguments should be substantive, not token
|
|
139
|
+
- Response should address arguments, not dismiss
|
|
140
|
+
|
|
141
|
+
### Outside View
|
|
142
|
+
|
|
143
|
+
Process:
|
|
144
|
+
1. Identify reference class of similar decisions
|
|
145
|
+
2. Research base rates for success and failure
|
|
146
|
+
3. Compare current situation to reference class
|
|
147
|
+
4. Adjust confidence based on base rates
|
|
148
|
+
|
|
149
|
+
Questions:
|
|
150
|
+
- How have similar decisions turned out historically?
|
|
151
|
+
- What is the typical success rate for this type of project?
|
|
152
|
+
- What makes this situation different from the reference class?
|
|
153
|
+
|
|
154
|
+
## Bias Check Checklist
|
|
155
|
+
|
|
156
|
+
Before finalizing any significant recommendation:
|
|
157
|
+
|
|
158
|
+
Anchoring Check:
|
|
159
|
+
- [ ] Considered alternatives before settling on first idea
|
|
160
|
+
- [ ] Evaluated options independently, not relative to anchor
|
|
161
|
+
- [ ] Sought perspectives from those with different starting points
|
|
162
|
+
|
|
163
|
+
Confirmation Check:
|
|
164
|
+
- [ ] Actively sought evidence against preferred option
|
|
165
|
+
- [ ] Genuinely considered counterarguments
|
|
166
|
+
- [ ] Consulted skeptics or critics
|
|
167
|
+
|
|
168
|
+
Sunk Cost Check:
|
|
169
|
+
- [ ] Evaluated based on future value only
|
|
170
|
+
- [ ] Considered what I would advise a newcomer
|
|
171
|
+
- [ ] Separated decision from past investments
|
|
172
|
+
|
|
173
|
+
Availability Check:
|
|
174
|
+
- [ ] Checked base rates beyond personal experience
|
|
175
|
+
- [ ] Considered data beyond recent events
|
|
176
|
+
- [ ] Balanced anecdotes with systematic evidence
|
|
177
|
+
|
|
178
|
+
Overconfidence Check:
|
|
179
|
+
- [ ] Expressed uncertainty in predictions
|
|
180
|
+
- [ ] Considered scenarios where I am wrong
|
|
181
|
+
- [ ] Reviewed historical accuracy of similar predictions
|
|
182
|
+
|
|
183
|
+
## Integration with Decision Process
|
|
184
|
+
|
|
185
|
+
Timing of bias checks:
|
|
186
|
+
- After generating initial recommendation
|
|
187
|
+
- Before presenting options to stakeholders
|
|
188
|
+
- When defending a position strongly
|
|
189
|
+
- When dismissing alternatives quickly
|
|
190
|
+
|
|
191
|
+
Documentation:
|
|
192
|
+
- Record which biases were checked
|
|
193
|
+
- Note any biases identified and how addressed
|
|
194
|
+
- Document remaining uncertainty
|
|
195
|
+
|
|
196
|
+
---
|
|
197
|
+
|
|
198
|
+
Version: 1.0.0
|
|
199
|
+
Parent Skill: moai-foundation-philosopher
|
|
@@ -0,0 +1,140 @@
|
|
|
1
|
+
# First Principles Module
|
|
2
|
+
|
|
3
|
+
Deep dive into root cause analysis and fundamental decomposition techniques.
|
|
4
|
+
|
|
5
|
+
## The Five Whys Technique
|
|
6
|
+
|
|
7
|
+
### Application Process
|
|
8
|
+
|
|
9
|
+
Start with the observed problem and ask "why" repeatedly:
|
|
10
|
+
|
|
11
|
+
Level 1 - Surface Problem:
|
|
12
|
+
- What is the user or system experiencing?
|
|
13
|
+
- What are the visible symptoms?
|
|
14
|
+
- When and where does it occur?
|
|
15
|
+
|
|
16
|
+
Level 2 - First Why:
|
|
17
|
+
- What is the immediate cause?
|
|
18
|
+
- What triggers the symptom?
|
|
19
|
+
- What component is directly involved?
|
|
20
|
+
|
|
21
|
+
Level 3 - Second Why:
|
|
22
|
+
- Why does that immediate cause exist?
|
|
23
|
+
- What conditions enable it?
|
|
24
|
+
- What upstream factor contributes?
|
|
25
|
+
|
|
26
|
+
Level 4 - Third Why:
|
|
27
|
+
- Why do those conditions exist?
|
|
28
|
+
- What systemic factor is at play?
|
|
29
|
+
- What process or design decision led here?
|
|
30
|
+
|
|
31
|
+
Level 5 - Fourth/Fifth Why (Root Cause):
|
|
32
|
+
- Why was that decision made?
|
|
33
|
+
- What fundamental constraint or assumption drove it?
|
|
34
|
+
- What would need to change to prevent recurrence?
|
|
35
|
+
|
|
36
|
+
### Common Pitfalls
|
|
37
|
+
|
|
38
|
+
Stopping too early:
|
|
39
|
+
- Accepting symptom as cause
|
|
40
|
+
- Not digging into systemic factors
|
|
41
|
+
- Blaming individuals instead of systems
|
|
42
|
+
|
|
43
|
+
Going too far:
|
|
44
|
+
- Reaching philosophical or unchangeable causes
|
|
45
|
+
- Losing actionable specificity
|
|
46
|
+
- Expanding scope beyond project control
|
|
47
|
+
|
|
48
|
+
Branching confusion:
|
|
49
|
+
- Multiple valid answers at each level
|
|
50
|
+
- Explore most impactful branch first
|
|
51
|
+
- Document alternative branches for later
|
|
52
|
+
|
|
53
|
+
## Constraint Analysis
|
|
54
|
+
|
|
55
|
+
### Hard Constraints
|
|
56
|
+
|
|
57
|
+
Definition: Non-negotiable requirements that cannot be changed.
|
|
58
|
+
|
|
59
|
+
Examples:
|
|
60
|
+
- Security compliance requirements (SOC2, GDPR, HIPAA)
|
|
61
|
+
- Physical limitations (network latency, storage capacity)
|
|
62
|
+
- Legal requirements (data retention, accessibility)
|
|
63
|
+
- Budget ceiling (approved funding limit)
|
|
64
|
+
- Compatibility requirements (existing system integration)
|
|
65
|
+
|
|
66
|
+
Handling: Design solutions that work within these constraints.
|
|
67
|
+
|
|
68
|
+
### Soft Constraints
|
|
69
|
+
|
|
70
|
+
Definition: Preferences that can be adjusted if trade-offs are acceptable.
|
|
71
|
+
|
|
72
|
+
Examples:
|
|
73
|
+
- Timeline preferences (desired but negotiable dates)
|
|
74
|
+
- Feature scope (nice-to-have vs must-have)
|
|
75
|
+
- Technology preferences (familiar vs optimal)
|
|
76
|
+
- Quality level (good enough vs perfect)
|
|
77
|
+
- Team preferences (how vs what)
|
|
78
|
+
|
|
79
|
+
Handling: Use AskUserQuestion to clarify which are truly negotiable.
|
|
80
|
+
|
|
81
|
+
### Self-Imposed Constraints
|
|
82
|
+
|
|
83
|
+
Definition: Assumptions disguised as requirements.
|
|
84
|
+
|
|
85
|
+
Common self-imposed constraints:
|
|
86
|
+
- "We have to use technology X" (when alternatives exist)
|
|
87
|
+
- "It needs to be done this way" (when other approaches work)
|
|
88
|
+
- "We don't have time to..." (when prioritization could help)
|
|
89
|
+
- "That's how we've always done it" (legacy process inertia)
|
|
90
|
+
|
|
91
|
+
Handling: Question whether these are real constraints or habits.
|
|
92
|
+
|
|
93
|
+
## Decomposition Patterns
|
|
94
|
+
|
|
95
|
+
### Goal Decomposition
|
|
96
|
+
|
|
97
|
+
Break high-level goals into actionable sub-goals:
|
|
98
|
+
|
|
99
|
+
High-Level Goal: Improve application performance
|
|
100
|
+
|
|
101
|
+
Sub-Goal 1: Reduce page load time
|
|
102
|
+
- Metric: Time to first contentful paint
|
|
103
|
+
- Target: Under 1.5 seconds
|
|
104
|
+
|
|
105
|
+
Sub-Goal 2: Improve API response time
|
|
106
|
+
- Metric: P95 response time
|
|
107
|
+
- Target: Under 200ms
|
|
108
|
+
|
|
109
|
+
Sub-Goal 3: Reduce resource consumption
|
|
110
|
+
- Metric: Memory and CPU usage
|
|
111
|
+
- Target: 20% reduction
|
|
112
|
+
|
|
113
|
+
### Solution Space Mapping
|
|
114
|
+
|
|
115
|
+
Identify all possible solution directions:
|
|
116
|
+
|
|
117
|
+
Problem: Database queries are slow
|
|
118
|
+
|
|
119
|
+
Solution Space:
|
|
120
|
+
- Query optimization (indexes, query rewriting)
|
|
121
|
+
- Caching layer (Redis, in-memory)
|
|
122
|
+
- Database scaling (read replicas, sharding)
|
|
123
|
+
- Architecture change (CQRS, event sourcing)
|
|
124
|
+
- Data model redesign (denormalization, aggregation)
|
|
125
|
+
- Hardware upgrade (faster disks, more memory)
|
|
126
|
+
|
|
127
|
+
Use AskUserQuestion to explore which directions are viable given constraints.
|
|
128
|
+
|
|
129
|
+
## Integration with AskUserQuestion
|
|
130
|
+
|
|
131
|
+
When decomposing problems:
|
|
132
|
+
- Use AskUserQuestion to verify understanding of the problem
|
|
133
|
+
- Use AskUserQuestion to explore why certain constraints exist
|
|
134
|
+
- Use AskUserQuestion to confirm root cause identification
|
|
135
|
+
- Use AskUserQuestion to validate decomposition completeness
|
|
136
|
+
|
|
137
|
+
---
|
|
138
|
+
|
|
139
|
+
Version: 1.0.0
|
|
140
|
+
Parent Skill: moai-foundation-philosopher
|
|
@@ -0,0 +1,154 @@
|
|
|
1
|
+
# Trade-off Analysis Module
|
|
2
|
+
|
|
3
|
+
Deep dive into systematic option comparison and decision-making frameworks.
|
|
4
|
+
|
|
5
|
+
## Weighted Scoring Method
|
|
6
|
+
|
|
7
|
+
### Step 1: Define Evaluation Criteria
|
|
8
|
+
|
|
9
|
+
Standard criteria for technical decisions:
|
|
10
|
+
|
|
11
|
+
Performance Criteria:
|
|
12
|
+
- Response time and latency
|
|
13
|
+
- Throughput and capacity
|
|
14
|
+
- Resource efficiency (CPU, memory, network)
|
|
15
|
+
- Scalability under load
|
|
16
|
+
|
|
17
|
+
Quality Criteria:
|
|
18
|
+
- Code maintainability and readability
|
|
19
|
+
- Test coverage and testability
|
|
20
|
+
- Documentation completeness
|
|
21
|
+
- Error handling robustness
|
|
22
|
+
|
|
23
|
+
Cost Criteria:
|
|
24
|
+
- Implementation effort (person-days)
|
|
25
|
+
- Learning curve and training needs
|
|
26
|
+
- Operational cost (infrastructure, licensing)
|
|
27
|
+
- Technical debt introduced
|
|
28
|
+
|
|
29
|
+
Risk Criteria:
|
|
30
|
+
- Implementation complexity
|
|
31
|
+
- Dependency on external factors
|
|
32
|
+
- Failure modes and recovery
|
|
33
|
+
- Rollback difficulty
|
|
34
|
+
|
|
35
|
+
Strategic Criteria:
|
|
36
|
+
- Alignment with architecture vision
|
|
37
|
+
- Future flexibility and extensibility
|
|
38
|
+
- Team skill development
|
|
39
|
+
- Industry standard compliance
|
|
40
|
+
|
|
41
|
+
### Step 2: Assign Weights
|
|
42
|
+
|
|
43
|
+
Weight assignment process:
|
|
44
|
+
|
|
45
|
+
1. List all criteria relevant to the decision
|
|
46
|
+
2. Use AskUserQuestion to understand user priorities
|
|
47
|
+
3. Distribute 100% across criteria based on priority
|
|
48
|
+
4. Document rationale for weight assignments
|
|
49
|
+
|
|
50
|
+
Example Weight Distribution:
|
|
51
|
+
|
|
52
|
+
Performance-Critical Project:
|
|
53
|
+
- Performance: 35%
|
|
54
|
+
- Quality: 20%
|
|
55
|
+
- Cost: 15%
|
|
56
|
+
- Risk: 20%
|
|
57
|
+
- Strategic: 10%
|
|
58
|
+
|
|
59
|
+
Maintainability-Focused Project:
|
|
60
|
+
- Performance: 15%
|
|
61
|
+
- Quality: 35%
|
|
62
|
+
- Cost: 20%
|
|
63
|
+
- Risk: 15%
|
|
64
|
+
- Strategic: 15%
|
|
65
|
+
|
|
66
|
+
Rapid Delivery Project:
|
|
67
|
+
- Performance: 15%
|
|
68
|
+
- Quality: 15%
|
|
69
|
+
- Cost: 40%
|
|
70
|
+
- Risk: 20%
|
|
71
|
+
- Strategic: 10%
|
|
72
|
+
|
|
73
|
+
### Step 3: Score Options
|
|
74
|
+
|
|
75
|
+
Scoring guidelines (1-10 scale):
|
|
76
|
+
|
|
77
|
+
Score 9-10: Excellent, clearly superior
|
|
78
|
+
Score 7-8: Good, above average
|
|
79
|
+
Score 5-6: Adequate, meets requirements
|
|
80
|
+
Score 3-4: Below average, has concerns
|
|
81
|
+
Score 1-2: Poor, significant problems
|
|
82
|
+
|
|
83
|
+
Scoring requirements:
|
|
84
|
+
- Provide specific rationale for each score
|
|
85
|
+
- Reference evidence or experience
|
|
86
|
+
- Consider uncertainty in scores
|
|
87
|
+
- Be consistent across options
|
|
88
|
+
|
|
89
|
+
### Step 4: Calculate Composite Scores
|
|
90
|
+
|
|
91
|
+
Calculation method:
|
|
92
|
+
- Multiply each score by criterion weight
|
|
93
|
+
- Sum weighted scores for total
|
|
94
|
+
- Compare totals across options
|
|
95
|
+
- Analyze sensitivity to weight changes
|
|
96
|
+
|
|
97
|
+
## Trade-off Documentation
|
|
98
|
+
|
|
99
|
+
### Trade-off Record Format
|
|
100
|
+
|
|
101
|
+
For each significant trade-off:
|
|
102
|
+
|
|
103
|
+
Trade-off ID: T-001
|
|
104
|
+
Decision Context: What decision required this trade-off
|
|
105
|
+
What We Gain: Benefits of chosen approach
|
|
106
|
+
What We Sacrifice: Costs or limitations accepted
|
|
107
|
+
Why Acceptable: Rationale for accepting this trade-off
|
|
108
|
+
Mitigation Plan: Actions to reduce downside impact
|
|
109
|
+
Review Trigger: Conditions that would cause reconsideration
|
|
110
|
+
|
|
111
|
+
### Common Trade-off Patterns
|
|
112
|
+
|
|
113
|
+
Speed vs Quality:
|
|
114
|
+
- Faster delivery vs more thorough testing
|
|
115
|
+
- Quick fix vs proper solution
|
|
116
|
+
- MVP vs full feature set
|
|
117
|
+
|
|
118
|
+
Performance vs Maintainability:
|
|
119
|
+
- Optimized code vs readable code
|
|
120
|
+
- Custom solution vs standard library
|
|
121
|
+
- Inline logic vs abstraction layers
|
|
122
|
+
|
|
123
|
+
Flexibility vs Simplicity:
|
|
124
|
+
- Configurable vs hardcoded
|
|
125
|
+
- Generic vs specific
|
|
126
|
+
- Plugin architecture vs monolithic
|
|
127
|
+
|
|
128
|
+
Cost vs Capability:
|
|
129
|
+
- Build vs buy
|
|
130
|
+
- Open source vs commercial
|
|
131
|
+
- Cloud vs on-premise
|
|
132
|
+
|
|
133
|
+
## Integration with AskUserQuestion
|
|
134
|
+
|
|
135
|
+
When analyzing trade-offs:
|
|
136
|
+
- Use AskUserQuestion to confirm criterion weights match priorities
|
|
137
|
+
- Use AskUserQuestion to present options with scores
|
|
138
|
+
- Use AskUserQuestion to validate trade-off acceptability
|
|
139
|
+
- Use AskUserQuestion to explore sensitivity to different weights
|
|
140
|
+
|
|
141
|
+
Example AskUserQuestion for Trade-off Confirmation:
|
|
142
|
+
|
|
143
|
+
Question: Based on the trade-off analysis, Option B scores highest. It sacrifices some performance (score 6) for better maintainability (score 9). Is this trade-off acceptable?
|
|
144
|
+
|
|
145
|
+
Options:
|
|
146
|
+
- Accept Option B with acknowledged trade-off
|
|
147
|
+
- Prioritize performance over maintainability
|
|
148
|
+
- Request deeper analysis of performance impact
|
|
149
|
+
- Explore hybrid approach combining elements
|
|
150
|
+
|
|
151
|
+
---
|
|
152
|
+
|
|
153
|
+
Version: 1.0.0
|
|
154
|
+
Parent Skill: moai-foundation-philosopher
|
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
# Philosopher Framework Reference
|
|
2
|
+
|
|
3
|
+
External resources and foundational materials for the Philosopher Framework.
|
|
4
|
+
|
|
5
|
+
## Origin and Inspiration
|
|
6
|
+
|
|
7
|
+
### Claude Code Philosopher Ignition
|
|
8
|
+
|
|
9
|
+
Repository: https://github.com/lmxxf/claude-code-philosopher-ignition
|
|
10
|
+
|
|
11
|
+
Key concepts adopted:
|
|
12
|
+
- Emphasis on reflection over calculation
|
|
13
|
+
- Assumption questioning methodology
|
|
14
|
+
- Strategic analysis for business and technical problems
|
|
15
|
+
|
|
16
|
+
### First Principles Thinking
|
|
17
|
+
|
|
18
|
+
Origin: Aristotelian philosophy, popularized in business by Elon Musk
|
|
19
|
+
|
|
20
|
+
Core concept: Break problems down to fundamental truths and reason up from there.
|
|
21
|
+
|
|
22
|
+
Recommended reading:
|
|
23
|
+
- "First Principles: Elon Musk on the Power of Thinking for Yourself" (Farnam Street)
|
|
24
|
+
- "The Art of Thinking Clearly" by Rolf Dobelli
|
|
25
|
+
|
|
26
|
+
### Stanford Design Thinking
|
|
27
|
+
|
|
28
|
+
Origin: Stanford d.school
|
|
29
|
+
|
|
30
|
+
Five phases:
|
|
31
|
+
1. Empathize: Understand the user
|
|
32
|
+
2. Define: State the problem
|
|
33
|
+
3. Ideate: Generate ideas
|
|
34
|
+
4. Prototype: Create solutions
|
|
35
|
+
5. Test: Validate solutions
|
|
36
|
+
|
|
37
|
+
Adopted concepts:
|
|
38
|
+
- Divergent-convergent thinking pattern
|
|
39
|
+
- Multiple alternative generation
|
|
40
|
+
- User-centered problem definition
|
|
41
|
+
|
|
42
|
+
### MIT Systems Engineering
|
|
43
|
+
|
|
44
|
+
Origin: MIT Engineering Systems Division
|
|
45
|
+
|
|
46
|
+
Key concepts:
|
|
47
|
+
- System decomposition and architecture
|
|
48
|
+
- Trade-off analysis and optimization
|
|
49
|
+
- Risk identification and mitigation
|
|
50
|
+
- Validation and verification strategies
|
|
51
|
+
|
|
52
|
+
Adopted concepts:
|
|
53
|
+
- Weighted trade-off matrices
|
|
54
|
+
- Risk assessment frameworks
|
|
55
|
+
- Validation criteria definition
|
|
56
|
+
|
|
57
|
+
## Cognitive Bias Research
|
|
58
|
+
|
|
59
|
+
### Foundational Works
|
|
60
|
+
|
|
61
|
+
"Thinking, Fast and Slow" by Daniel Kahneman
|
|
62
|
+
- System 1 vs System 2 thinking
|
|
63
|
+
- Cognitive biases catalog
|
|
64
|
+
- Decision-making under uncertainty
|
|
65
|
+
|
|
66
|
+
"Predictably Irrational" by Dan Ariely
|
|
67
|
+
- Behavioral economics perspective
|
|
68
|
+
- Common decision-making errors
|
|
69
|
+
- Practical implications
|
|
70
|
+
|
|
71
|
+
### Key Bias Definitions
|
|
72
|
+
|
|
73
|
+
Anchoring Bias:
|
|
74
|
+
- Original research: Tversky and Kahneman (1974)
|
|
75
|
+
- "Judgment under Uncertainty: Heuristics and Biases"
|
|
76
|
+
|
|
77
|
+
Confirmation Bias:
|
|
78
|
+
- Original research: Wason (1960)
|
|
79
|
+
- "On the failure to eliminate hypotheses in a conceptual task"
|
|
80
|
+
|
|
81
|
+
Sunk Cost Fallacy:
|
|
82
|
+
- Original research: Arkes and Blumer (1985)
|
|
83
|
+
- "The psychology of sunk cost"
|
|
84
|
+
|
|
85
|
+
## Decision-Making Frameworks
|
|
86
|
+
|
|
87
|
+
### OODA Loop
|
|
88
|
+
|
|
89
|
+
Origin: John Boyd, military strategy
|
|
90
|
+
|
|
91
|
+
Phases:
|
|
92
|
+
1. Observe: Gather information
|
|
93
|
+
2. Orient: Analyze and synthesize
|
|
94
|
+
3. Decide: Choose action
|
|
95
|
+
4. Act: Execute decision
|
|
96
|
+
|
|
97
|
+
Application: Fast decision cycles with feedback
|
|
98
|
+
|
|
99
|
+
### Kepner-Tregoe Decision Analysis
|
|
100
|
+
|
|
101
|
+
Origin: Kepner and Tregoe (1965)
|
|
102
|
+
|
|
103
|
+
Process:
|
|
104
|
+
1. Situation Appraisal
|
|
105
|
+
2. Problem Analysis
|
|
106
|
+
3. Decision Analysis
|
|
107
|
+
4. Potential Problem Analysis
|
|
108
|
+
|
|
109
|
+
Application: Structured problem-solving in organizations
|
|
110
|
+
|
|
111
|
+
### Six Thinking Hats
|
|
112
|
+
|
|
113
|
+
Origin: Edward de Bono
|
|
114
|
+
|
|
115
|
+
Hats:
|
|
116
|
+
- White: Facts and information
|
|
117
|
+
- Red: Emotions and intuition
|
|
118
|
+
- Black: Critical judgment
|
|
119
|
+
- Yellow: Optimistic assessment
|
|
120
|
+
- Green: Creative alternatives
|
|
121
|
+
- Blue: Process management
|
|
122
|
+
|
|
123
|
+
Application: Parallel thinking for group decisions
|
|
124
|
+
|
|
125
|
+
## Technical Decision Resources
|
|
126
|
+
|
|
127
|
+
### Architecture Decision Records (ADR)
|
|
128
|
+
|
|
129
|
+
Template: https://adr.github.io/
|
|
130
|
+
|
|
131
|
+
Purpose: Document significant architecture decisions with context and consequences.
|
|
132
|
+
|
|
133
|
+
Adopted concept: Decision documentation template structure
|
|
134
|
+
|
|
135
|
+
### Technology Radar
|
|
136
|
+
|
|
137
|
+
Origin: ThoughtWorks
|
|
138
|
+
|
|
139
|
+
Purpose: Track technology adoption maturity (Adopt, Trial, Assess, Hold)
|
|
140
|
+
|
|
141
|
+
Application: Technology selection guidance
|
|
142
|
+
|
|
143
|
+
## Further Reading
|
|
144
|
+
|
|
145
|
+
Books:
|
|
146
|
+
- "The Decision Book" by Mikael Krogerus
|
|
147
|
+
- "Superforecasting" by Philip Tetlock
|
|
148
|
+
- "Sources of Power" by Gary Klein
|
|
149
|
+
|
|
150
|
+
Articles:
|
|
151
|
+
- "How to Make Good Decisions" (Farnam Street)
|
|
152
|
+
- "Mental Models: The Best Way to Make Intelligent Decisions" (fs.blog)
|
|
153
|
+
|
|
154
|
+
---
|
|
155
|
+
|
|
156
|
+
Version: 1.0.0
|
|
157
|
+
Parent Skill: moai-foundation-philosopher
|