moai-adk 0.25.4__py3-none-any.whl → 0.32.8__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 +2 -5
- moai_adk/__main__.py +114 -82
- moai_adk/cli/__init__.py +6 -1
- moai_adk/cli/commands/__init__.py +1 -3
- moai_adk/cli/commands/analyze.py +5 -16
- moai_adk/cli/commands/doctor.py +6 -18
- moai_adk/cli/commands/init.py +56 -125
- moai_adk/cli/commands/language.py +14 -35
- moai_adk/cli/commands/status.py +9 -15
- moai_adk/cli/commands/update.py +1555 -190
- moai_adk/cli/prompts/init_prompts.py +112 -56
- 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 +672 -0
- moai_adk/cli/worktree/exceptions.py +89 -0
- moai_adk/cli/worktree/manager.py +490 -0
- moai_adk/cli/worktree/models.py +65 -0
- moai_adk/cli/worktree/registry.py +128 -0
- moai_adk/core/PHASE2_OPTIMIZATIONS.md +467 -0
- moai_adk/core/analysis/session_analyzer.py +17 -56
- moai_adk/core/claude_integration.py +26 -54
- moai_adk/core/command_helpers.py +10 -10
- moai_adk/core/comprehensive_monitoring_system.py +1183 -0
- moai_adk/core/config/auto_spec_config.py +5 -11
- moai_adk/core/config/migration.py +19 -9
- moai_adk/core/config/unified.py +436 -0
- moai_adk/core/context_manager.py +6 -12
- moai_adk/core/enterprise_features.py +1404 -0
- moai_adk/core/error_recovery_system.py +725 -112
- moai_adk/core/event_driven_hook_system.py +1371 -0
- moai_adk/core/git/__init__.py +8 -0
- moai_adk/core/git/branch_manager.py +3 -11
- moai_adk/core/git/checkpoint.py +1 -3
- moai_adk/core/git/conflict_detector.py +413 -0
- moai_adk/core/git/manager.py +91 -1
- moai_adk/core/hooks/post_tool_auto_spec_completion.py +56 -80
- moai_adk/core/input_validation_middleware.py +1006 -0
- moai_adk/core/integration/engine.py +6 -18
- moai_adk/core/integration/integration_tester.py +10 -9
- moai_adk/core/integration/utils.py +1 -1
- moai_adk/core/issue_creator.py +10 -28
- moai_adk/core/jit_context_loader.py +956 -0
- moai_adk/core/jit_enhanced_hook_manager.py +1987 -0
- moai_adk/core/language_config_resolver.py +485 -0
- moai_adk/core/language_validator.py +28 -41
- moai_adk/core/mcp/setup.py +15 -12
- moai_adk/core/merge/__init__.py +9 -0
- moai_adk/core/merge/analyzer.py +481 -0
- moai_adk/core/migration/alfred_to_moai_migrator.py +383 -0
- moai_adk/core/migration/backup_manager.py +78 -9
- moai_adk/core/migration/custom_element_scanner.py +358 -0
- moai_adk/core/migration/file_migrator.py +8 -17
- 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 +6 -10
- moai_adk/core/migration/version_migrator.py +3 -3
- moai_adk/core/performance/cache_system.py +8 -10
- moai_adk/core/phase_optimized_hook_scheduler.py +879 -0
- moai_adk/core/project/checker.py +2 -4
- moai_adk/core/project/detector.py +1 -3
- moai_adk/core/project/initializer.py +135 -23
- moai_adk/core/project/phase_executor.py +54 -81
- moai_adk/core/project/validator.py +6 -12
- moai_adk/core/quality/trust_checker.py +9 -27
- moai_adk/core/realtime_monitoring_dashboard.py +1724 -0
- moai_adk/core/robust_json_parser.py +611 -0
- moai_adk/core/rollback_manager.py +73 -148
- moai_adk/core/session_manager.py +10 -26
- moai_adk/core/skill_loading_system.py +579 -0
- moai_adk/core/spec/confidence_scoring.py +31 -100
- moai_adk/core/spec/ears_template_engine.py +351 -286
- moai_adk/core/spec/quality_validator.py +35 -69
- moai_adk/core/spec_status_manager.py +64 -74
- moai_adk/core/template/backup.py +45 -20
- moai_adk/core/template/config.py +112 -39
- moai_adk/core/template/merger.py +11 -19
- moai_adk/core/template/processor.py +253 -149
- moai_adk/core/template_engine.py +73 -40
- 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 +4 -12
- 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 +23 -72
- moai_adk/foundation/trust/validation_checklist.py +57 -162
- 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/alfred_detector.py +1 -3
- moai_adk/statusline/config.py +13 -4
- moai_adk/statusline/enhanced_output_style_detector.py +23 -15
- moai_adk/statusline/main.py +51 -15
- moai_adk/statusline/renderer.py +104 -48
- moai_adk/statusline/update_checker.py +3 -9
- moai_adk/statusline/version_reader.py +140 -46
- moai_adk/templates/.claude/agents/moai/ai-nano-banana.md +549 -0
- moai_adk/templates/.claude/agents/moai/builder-agent.md +445 -0
- moai_adk/templates/.claude/agents/moai/builder-command.md +1132 -0
- moai_adk/templates/.claude/agents/moai/builder-skill.md +601 -0
- moai_adk/templates/.claude/agents/moai/expert-backend.md +831 -0
- moai_adk/templates/.claude/agents/moai/expert-database.md +774 -0
- moai_adk/templates/.claude/agents/moai/expert-debug.md +396 -0
- moai_adk/templates/.claude/agents/moai/expert-devops.md +711 -0
- moai_adk/templates/.claude/agents/moai/expert-frontend.md +666 -0
- moai_adk/templates/.claude/agents/moai/expert-security.md +474 -0
- moai_adk/templates/.claude/agents/moai/expert-uiux.md +1038 -0
- moai_adk/templates/.claude/agents/moai/manager-claude-code.md +429 -0
- moai_adk/templates/.claude/agents/moai/manager-docs.md +570 -0
- moai_adk/templates/.claude/agents/moai/manager-git.md +937 -0
- moai_adk/templates/.claude/agents/moai/manager-project.md +891 -0
- moai_adk/templates/.claude/agents/moai/manager-quality.md +598 -0
- moai_adk/templates/.claude/agents/moai/manager-spec.md +713 -0
- moai_adk/templates/.claude/agents/moai/manager-strategy.md +600 -0
- moai_adk/templates/.claude/agents/moai/manager-tdd.md +603 -0
- moai_adk/templates/.claude/agents/moai/mcp-context7.md +369 -0
- moai_adk/templates/.claude/agents/moai/mcp-figma.md +1567 -0
- moai_adk/templates/.claude/agents/moai/mcp-notion.md +749 -0
- moai_adk/templates/.claude/agents/moai/mcp-playwright.md +427 -0
- moai_adk/templates/.claude/agents/moai/mcp-sequential-thinking.md +994 -0
- moai_adk/templates/.claude/commands/moai/0-project.md +1143 -0
- moai_adk/templates/.claude/commands/moai/1-plan.md +1435 -0
- moai_adk/templates/.claude/commands/moai/2-run.md +883 -0
- moai_adk/templates/.claude/commands/moai/3-sync.md +993 -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 +921 -0
- moai_adk/templates/.claude/output-styles/moai/r2d2.md +380 -0
- moai_adk/templates/.claude/output-styles/moai/yoda.md +338 -0
- moai_adk/templates/.claude/settings.json +172 -0
- moai_adk/templates/.claude/skills/moai-docs-generation/SKILL.md +247 -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-domain-backend/SKILL.md +319 -0
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +320 -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-frontend/SKILL.md +496 -0
- moai_adk/templates/.claude/skills/moai-domain-uiux/SKILL.md +453 -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/design-system-tokens.md +405 -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 +491 -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-foundation-claude/SKILL.md +201 -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-context/SKILL.md +438 -0
- moai_adk/templates/.claude/skills/moai-foundation-core/SKILL.md +515 -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 +346 -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-quality/SKILL.md +362 -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-integration-mcp/SKILL.md +352 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/README.md +52 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/error-handling.md +334 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/integration-patterns.md +310 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/security-authentication.md +256 -0
- moai_adk/templates/.claude/skills/moai-integration-mcp/modules/server-architecture.md +253 -0
- moai_adk/templates/.claude/skills/moai-lang-unified/README.md +133 -0
- moai_adk/templates/.claude/skills/moai-lang-unified/SKILL.md +296 -0
- moai_adk/templates/.claude/skills/moai-lang-unified/examples.md +1269 -0
- moai_adk/templates/.claude/skills/moai-lang-unified/reference.md +331 -0
- moai_adk/templates/.claude/skills/moai-library-mermaid/SKILL.md +298 -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 +316 -0
- moai_adk/templates/.claude/skills/moai-library-nextra/advanced-patterns.md +336 -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-shadcn/SKILL.md +370 -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-platform-baas/README.md +186 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/SKILL.md +290 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/examples.md +1225 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/reference.md +567 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/scripts/provider-selector.py +323 -0
- moai_adk/templates/.claude/skills/moai-platform-baas/templates/stack-config.yaml +204 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/SKILL.md +446 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/advanced-patterns.md +379 -0
- moai_adk/templates/.claude/skills/moai-workflow-jit-docs/optimization.md +286 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/README.md +190 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/SKILL.md +387 -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 +135 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/examples/quick_start.py +196 -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/schemas/config-schema.json +316 -0
- moai_adk/templates/.claude/skills/moai-workflow-project/schemas/tab_schema.json +1362 -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 +71 -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-templates/SKILL.md +374 -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-testing/LICENSE.txt +202 -0
- moai_adk/templates/.claude/skills/moai-workflow-testing/SKILL.md +453 -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/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/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 +410 -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 +103 -41
- moai_adk/templates/.git-hooks/pre-push +116 -21
- moai_adk/templates/.github/workflows/ci-universal.yml +513 -0
- moai_adk/templates/.github/workflows/security-secrets-check.yml +179 -0
- moai_adk/templates/.gitignore +184 -44
- moai_adk/templates/.mcp.json +7 -9
- moai_adk/templates/.moai/cache/personalization.json +10 -0
- moai_adk/templates/.moai/config/config.yaml +344 -0
- moai_adk/templates/.moai/config/presets/manual.yaml +28 -0
- moai_adk/templates/.moai/config/presets/personal.yaml +30 -0
- moai_adk/templates/.moai/config/presets/team.yaml +33 -0
- moai_adk/templates/.moai/config/questions/_schema.yaml +79 -0
- moai_adk/templates/.moai/config/questions/tab1-user.yaml +108 -0
- moai_adk/templates/.moai/config/questions/tab2-project.yaml +122 -0
- moai_adk/templates/.moai/config/questions/tab3-git.yaml +542 -0
- moai_adk/templates/.moai/config/questions/tab4-quality.yaml +167 -0
- moai_adk/templates/.moai/config/questions/tab5-system.yaml +152 -0
- moai_adk/templates/.moai/config/sections/git-strategy.yaml +40 -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 +15 -0
- moai_adk/templates/.moai/config/sections/system.yaml +14 -0
- moai_adk/templates/.moai/config/sections/user.yaml +5 -0
- moai_adk/templates/.moai/config/statusline-config.yaml +86 -0
- moai_adk/templates/.moai/scripts/setup-glm.py +136 -0
- moai_adk/templates/CLAUDE.md +382 -501
- moai_adk/utils/__init__.py +24 -1
- moai_adk/utils/banner.py +7 -10
- moai_adk/utils/common.py +16 -30
- moai_adk/utils/link_validator.py +4 -12
- moai_adk/utils/safe_file_reader.py +2 -6
- moai_adk/utils/timeout.py +160 -0
- moai_adk/utils/toon_utils.py +256 -0
- moai_adk/version.py +22 -0
- moai_adk-0.32.8.dist-info/METADATA +2478 -0
- moai_adk-0.32.8.dist-info/RECORD +396 -0
- {moai_adk-0.25.4.dist-info → moai_adk-0.32.8.dist-info}/WHEEL +1 -1
- {moai_adk-0.25.4.dist-info → moai_adk-0.32.8.dist-info}/entry_points.txt +1 -0
- moai_adk/cli/commands/backup.py +0 -82
- moai_adk/cli/commands/improve_user_experience.py +0 -348
- moai_adk/cli/commands/migrate.py +0 -158
- moai_adk/cli/commands/validate_links.py +0 -118
- moai_adk/templates/.github/workflows/moai-gitflow.yml +0 -413
- moai_adk/templates/.github/workflows/moai-release-create.yml +0 -100
- moai_adk/templates/.github/workflows/moai-release-pipeline.yml +0 -188
- moai_adk/utils/user_experience.py +0 -531
- moai_adk-0.25.4.dist-info/METADATA +0 -2279
- moai_adk-0.25.4.dist-info/RECORD +0 -112
- {moai_adk-0.25.4.dist-info → moai_adk-0.32.8.dist-info}/licenses/LICENSE +0 -0
moai_adk/templates/.claude/skills/moai-foundation-claude/reference/claude-code-settings-official.md
ADDED
|
@@ -0,0 +1,663 @@
|
|
|
1
|
+
# Claude Code Settings - Official Documentation Reference
|
|
2
|
+
|
|
3
|
+
Source: https://code.claude.com/docs/en/settings
|
|
4
|
+
|
|
5
|
+
## Key Concepts
|
|
6
|
+
|
|
7
|
+
### What are Claude Code Settings?
|
|
8
|
+
|
|
9
|
+
Claude Code Settings provide a hierarchical configuration system that controls Claude Code's behavior, tool permissions, model selection, and integration preferences. Settings are managed through JSON configuration files with clear inheritance and override patterns.
|
|
10
|
+
|
|
11
|
+
### Settings Hierarchy
|
|
12
|
+
|
|
13
|
+
Configuration Priority (highest to lowest):
|
|
14
|
+
1. Enterprise Settings: Organization-wide policies and restrictions
|
|
15
|
+
2. User Settings: `~/.claude/settings.json` (personal preferences)
|
|
16
|
+
3. Project Settings: `.claude/settings.json` (team-shared)
|
|
17
|
+
4. Local Settings: `.claude/settings.local.json` (local overrides)
|
|
18
|
+
|
|
19
|
+
Inheritance Flow:
|
|
20
|
+
```
|
|
21
|
+
Enterprise Policy → User Settings → Project Settings → Local Settings
|
|
22
|
+
(Applied) (Personal) (Team) (Local)
|
|
23
|
+
↓ ↓ ↓ ↓
|
|
24
|
+
Overrides Overrides Overrides Overrides
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
## Core Settings Structure
|
|
28
|
+
|
|
29
|
+
### Complete Configuration Schema
|
|
30
|
+
|
|
31
|
+
Base Settings Framework:
|
|
32
|
+
```json
|
|
33
|
+
{
|
|
34
|
+
"model": "claude-3-5-sonnet-20241022",
|
|
35
|
+
"permissionMode": "default",
|
|
36
|
+
"maxFileSize": 10000000,
|
|
37
|
+
"maxTokens": 200000,
|
|
38
|
+
"temperature": 1.0,
|
|
39
|
+
"environment": {},
|
|
40
|
+
"hooks": {},
|
|
41
|
+
"plugins": {},
|
|
42
|
+
"subagents": {},
|
|
43
|
+
"mcpServers": {},
|
|
44
|
+
"allowedTools": [],
|
|
45
|
+
"toolRestrictions": {},
|
|
46
|
+
"memory": {},
|
|
47
|
+
"logging": {},
|
|
48
|
+
"security": {}
|
|
49
|
+
}
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
### Essential Configuration Fields
|
|
53
|
+
|
|
54
|
+
Model Configuration:
|
|
55
|
+
```json
|
|
56
|
+
{
|
|
57
|
+
"model": "claude-3-5-sonnet-20241022",
|
|
58
|
+
"maxTokens": 200000,
|
|
59
|
+
"temperature": 1.0,
|
|
60
|
+
"topP": 1.0,
|
|
61
|
+
"topK": 0
|
|
62
|
+
}
|
|
63
|
+
```
|
|
64
|
+
|
|
65
|
+
Permission Management:
|
|
66
|
+
```json
|
|
67
|
+
{
|
|
68
|
+
"permissionMode": "default",
|
|
69
|
+
"allowedTools": [
|
|
70
|
+
"Read",
|
|
71
|
+
"Write",
|
|
72
|
+
"Edit",
|
|
73
|
+
"Bash",
|
|
74
|
+
"Grep",
|
|
75
|
+
"Glob",
|
|
76
|
+
"WebFetch",
|
|
77
|
+
"AskUserQuestion"
|
|
78
|
+
],
|
|
79
|
+
"toolRestrictions": {
|
|
80
|
+
"Bash": "prompt",
|
|
81
|
+
"Write": "prompt",
|
|
82
|
+
"Edit": "prompt"
|
|
83
|
+
}
|
|
84
|
+
}
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
## Detailed Configuration Sections
|
|
88
|
+
|
|
89
|
+
### Model Settings
|
|
90
|
+
|
|
91
|
+
Available Models:
|
|
92
|
+
- `claude-3-5-sonnet-20241022`: Balanced performance (default)
|
|
93
|
+
- `claude-3-5-haiku-20241022`: Fast and cost-effective
|
|
94
|
+
- `claude-3-opus-20240229`: Highest quality, higher cost
|
|
95
|
+
|
|
96
|
+
Model Configuration Examples:
|
|
97
|
+
```json
|
|
98
|
+
{
|
|
99
|
+
"model": "claude-3-5-sonnet-20241022",
|
|
100
|
+
"maxTokens": 200000,
|
|
101
|
+
"temperature": 0.7,
|
|
102
|
+
"topP": 0.9,
|
|
103
|
+
"topK": 40,
|
|
104
|
+
"stopSequences": ["---", "##"],
|
|
105
|
+
"timeout": 300000
|
|
106
|
+
}
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
Model Selection Guidelines:
|
|
110
|
+
```json
|
|
111
|
+
{
|
|
112
|
+
"modelProfiles": {
|
|
113
|
+
"development": {
|
|
114
|
+
"model": "claude-3-5-haiku-20241022",
|
|
115
|
+
"temperature": 0.3,
|
|
116
|
+
"maxTokens": 50000
|
|
117
|
+
},
|
|
118
|
+
"testing": {
|
|
119
|
+
"model": "claude-3-5-sonnet-20241022",
|
|
120
|
+
"temperature": 0.1,
|
|
121
|
+
"maxTokens": 100000
|
|
122
|
+
},
|
|
123
|
+
"production": {
|
|
124
|
+
"model": "claude-3-5-sonnet-20241022",
|
|
125
|
+
"temperature": 0.0,
|
|
126
|
+
"maxTokens": 200000
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
}
|
|
130
|
+
```
|
|
131
|
+
|
|
132
|
+
### Permission System
|
|
133
|
+
|
|
134
|
+
Permission Modes:
|
|
135
|
+
- `default`: Standard permission prompts for sensitive operations
|
|
136
|
+
- `acceptEdits`: Automatically accept file edits without prompts
|
|
137
|
+
- `dontAsk`: Suppress all permission dialogs
|
|
138
|
+
|
|
139
|
+
Tool-Specific Permissions:
|
|
140
|
+
```json
|
|
141
|
+
{
|
|
142
|
+
"allowedTools": [
|
|
143
|
+
"Read",
|
|
144
|
+
"Write",
|
|
145
|
+
"Edit",
|
|
146
|
+
"Bash",
|
|
147
|
+
"Grep",
|
|
148
|
+
"Glob",
|
|
149
|
+
"WebFetch",
|
|
150
|
+
"WebSearch",
|
|
151
|
+
"AskUserQuestion",
|
|
152
|
+
"TodoWrite",
|
|
153
|
+
"Task",
|
|
154
|
+
"Skill",
|
|
155
|
+
"SlashCommand"
|
|
156
|
+
],
|
|
157
|
+
"toolRestrictions": {
|
|
158
|
+
"Read": {
|
|
159
|
+
"allowedPaths": ["./", "~/.claude/"],
|
|
160
|
+
"blockedPaths": [".env*", "*.key", "*.pem"]
|
|
161
|
+
},
|
|
162
|
+
"Bash": {
|
|
163
|
+
"allowedCommands": ["git", "npm", "python", "make", "docker"],
|
|
164
|
+
"blockedCommands": ["rm -rf", "sudo", "chmod 777", "dd", "mkfs"],
|
|
165
|
+
"requireConfirmation": true
|
|
166
|
+
},
|
|
167
|
+
"Write": {
|
|
168
|
+
"allowedExtensions": [".md", ".py", ".js", ".ts", ".json", ".yaml"],
|
|
169
|
+
"blockedExtensions": [".exe", ".bat", ".sh", ".key"],
|
|
170
|
+
"maxFileSize": 10000000
|
|
171
|
+
},
|
|
172
|
+
"WebFetch": {
|
|
173
|
+
"allowedDomains": ["*.github.com", "*.npmjs.com", "docs.python.org"],
|
|
174
|
+
"blockedDomains": ["*.malicious-site.com"],
|
|
175
|
+
"requireConfirmation": false
|
|
176
|
+
}
|
|
177
|
+
}
|
|
178
|
+
}
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
### Environment Variables
|
|
182
|
+
|
|
183
|
+
Environment Configuration:
|
|
184
|
+
```json
|
|
185
|
+
{
|
|
186
|
+
"environment": {
|
|
187
|
+
"NODE_ENV": "development",
|
|
188
|
+
"PYTHONPATH": "./src",
|
|
189
|
+
"API_KEY": "$ENV_VAR", // Environment variable reference
|
|
190
|
+
"PROJECT_ROOT": ".", // Static value
|
|
191
|
+
"DEBUG": "true",
|
|
192
|
+
"LOG_LEVEL": "$DEFAULT_LOG_LEVEL"
|
|
193
|
+
}
|
|
194
|
+
}
|
|
195
|
+
```
|
|
196
|
+
|
|
197
|
+
Variable Resolution:
|
|
198
|
+
```json
|
|
199
|
+
{
|
|
200
|
+
"environmentResolution": {
|
|
201
|
+
"precedence": [
|
|
202
|
+
"runtime_environment",
|
|
203
|
+
"settings_json",
|
|
204
|
+
"default_values"
|
|
205
|
+
],
|
|
206
|
+
"validation": {
|
|
207
|
+
"required": ["PROJECT_ROOT"],
|
|
208
|
+
"optional": ["DEBUG", "LOG_LEVEL"],
|
|
209
|
+
"typeChecking": true
|
|
210
|
+
}
|
|
211
|
+
}
|
|
212
|
+
}
|
|
213
|
+
```
|
|
214
|
+
|
|
215
|
+
### MCP Server Configuration
|
|
216
|
+
|
|
217
|
+
MCP Server Setup:
|
|
218
|
+
```json
|
|
219
|
+
{
|
|
220
|
+
"mcpServers": {
|
|
221
|
+
"context7": {
|
|
222
|
+
"command": "npx",
|
|
223
|
+
"args": ["@upstash/context7-mcp"],
|
|
224
|
+
"env": {
|
|
225
|
+
"CONTEXT7_API_KEY": "$CONTEXT7_KEY"
|
|
226
|
+
},
|
|
227
|
+
"timeout": 30000
|
|
228
|
+
},
|
|
229
|
+
"sequential-thinking": {
|
|
230
|
+
"command": "npx",
|
|
231
|
+
"args": ["@modelcontextprotocol/server-sequential-thinking"],
|
|
232
|
+
"env": {},
|
|
233
|
+
"timeout": 60000
|
|
234
|
+
},
|
|
235
|
+
"figma": {
|
|
236
|
+
"command": "npx",
|
|
237
|
+
"args": ["@figma/mcp-server"],
|
|
238
|
+
"env": {
|
|
239
|
+
"FIGMA_API_KEY": "$FIGMA_KEY"
|
|
240
|
+
}
|
|
241
|
+
}
|
|
242
|
+
}
|
|
243
|
+
}
|
|
244
|
+
```
|
|
245
|
+
|
|
246
|
+
MCP Permission Management:
|
|
247
|
+
```json
|
|
248
|
+
{
|
|
249
|
+
"mcpPermissions": {
|
|
250
|
+
"context7": {
|
|
251
|
+
"allowed": ["resolve-library-id", "get-library-docs"],
|
|
252
|
+
"rateLimit": {
|
|
253
|
+
"requestsPerMinute": 60,
|
|
254
|
+
"burstSize": 10
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
"sequential-thinking": {
|
|
258
|
+
"allowed": ["*"], // All permissions
|
|
259
|
+
"maxContextSize": 100000
|
|
260
|
+
}
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
```
|
|
264
|
+
|
|
265
|
+
### Hooks Configuration
|
|
266
|
+
|
|
267
|
+
Hooks Setup:
|
|
268
|
+
```json
|
|
269
|
+
{
|
|
270
|
+
"hooks": {
|
|
271
|
+
"PreToolUse": [
|
|
272
|
+
{
|
|
273
|
+
"matcher": "Bash",
|
|
274
|
+
"hooks": [
|
|
275
|
+
{
|
|
276
|
+
"type": "command",
|
|
277
|
+
"command": "echo 'Bash command: $COMMAND' >> ~/.claude/hooks.log"
|
|
278
|
+
}
|
|
279
|
+
]
|
|
280
|
+
}
|
|
281
|
+
],
|
|
282
|
+
"PostToolUse": [
|
|
283
|
+
{
|
|
284
|
+
"matcher": "*",
|
|
285
|
+
"hooks": [
|
|
286
|
+
{
|
|
287
|
+
"type": "command",
|
|
288
|
+
"command": "echo 'Tool executed: $TOOL_NAME' >> ~/.claude/activity.log"
|
|
289
|
+
}
|
|
290
|
+
]
|
|
291
|
+
}
|
|
292
|
+
],
|
|
293
|
+
"UserPromptSubmit": [
|
|
294
|
+
{
|
|
295
|
+
"hooks": [
|
|
296
|
+
{
|
|
297
|
+
"type": "validation",
|
|
298
|
+
"pattern": "^[\\w\\s\\.\\?!]+$",
|
|
299
|
+
"message": "Invalid characters in prompt"
|
|
300
|
+
}
|
|
301
|
+
]
|
|
302
|
+
}
|
|
303
|
+
]
|
|
304
|
+
}
|
|
305
|
+
}
|
|
306
|
+
```
|
|
307
|
+
|
|
308
|
+
### Sub-agent Configuration
|
|
309
|
+
|
|
310
|
+
Sub-agent Settings:
|
|
311
|
+
```json
|
|
312
|
+
{
|
|
313
|
+
"subagents": {
|
|
314
|
+
"defaultModel": "claude-3-5-sonnet-20241022",
|
|
315
|
+
"defaultPermissionMode": "default",
|
|
316
|
+
"maxConcurrentTasks": 5,
|
|
317
|
+
"taskTimeout": 300000,
|
|
318
|
+
"allowedSubagents": [
|
|
319
|
+
"spec-builder",
|
|
320
|
+
"tdd-implementer",
|
|
321
|
+
"security-expert",
|
|
322
|
+
"backend-expert",
|
|
323
|
+
"frontend-expert"
|
|
324
|
+
],
|
|
325
|
+
"customSubagents": {
|
|
326
|
+
"custom-analyzer": {
|
|
327
|
+
"description": "Custom code analysis agent",
|
|
328
|
+
"tools": ["Read", "Grep", "Bash"],
|
|
329
|
+
"model": "claude-3-5-sonnet-20241022"
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
}
|
|
334
|
+
```
|
|
335
|
+
|
|
336
|
+
### Plugin System
|
|
337
|
+
|
|
338
|
+
Plugin Configuration:
|
|
339
|
+
```json
|
|
340
|
+
{
|
|
341
|
+
"plugins": {
|
|
342
|
+
"enabled": true,
|
|
343
|
+
"pluginPaths": ["./plugins", "~/.claude/plugins"],
|
|
344
|
+
"loadedPlugins": [
|
|
345
|
+
"git-integration",
|
|
346
|
+
"docker-helper",
|
|
347
|
+
"database-tools"
|
|
348
|
+
],
|
|
349
|
+
"pluginSettings": {
|
|
350
|
+
"git-integration": {
|
|
351
|
+
"autoCommit": false,
|
|
352
|
+
"branchStrategy": "feature-branch"
|
|
353
|
+
},
|
|
354
|
+
"docker-helper": {
|
|
355
|
+
"defaultRegistry": "docker.io",
|
|
356
|
+
"buildTimeout": 300000
|
|
357
|
+
}
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
}
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
## File Locations and Management
|
|
364
|
+
|
|
365
|
+
### Settings File Paths
|
|
366
|
+
|
|
367
|
+
Standard Locations:
|
|
368
|
+
```bash
|
|
369
|
+
# Enterprise settings (system-wide)
|
|
370
|
+
/etc/claude/settings.json
|
|
371
|
+
|
|
372
|
+
# User settings (personal preferences)
|
|
373
|
+
~/.claude/settings.json
|
|
374
|
+
|
|
375
|
+
# Project settings (team-shared)
|
|
376
|
+
./.claude/settings.json
|
|
377
|
+
|
|
378
|
+
# Local overrides (development)
|
|
379
|
+
./.claude/settings.local.json
|
|
380
|
+
|
|
381
|
+
# Environment-specific overrides
|
|
382
|
+
./.claude/settings.${ENVIRONMENT}.json
|
|
383
|
+
```
|
|
384
|
+
|
|
385
|
+
### Settings Management Commands
|
|
386
|
+
|
|
387
|
+
Configuration Commands:
|
|
388
|
+
```bash
|
|
389
|
+
# View current settings
|
|
390
|
+
claude settings show
|
|
391
|
+
claude settings show --model
|
|
392
|
+
claude settings show --permissions
|
|
393
|
+
|
|
394
|
+
# Set individual settings
|
|
395
|
+
claude config set model "claude-3-5-sonnet-20241022"
|
|
396
|
+
claude config set maxTokens 200000
|
|
397
|
+
claude config set permissionMode "default"
|
|
398
|
+
|
|
399
|
+
# Edit settings file
|
|
400
|
+
claude config edit
|
|
401
|
+
claude config edit --local
|
|
402
|
+
claude config edit --user
|
|
403
|
+
|
|
404
|
+
# Reset settings
|
|
405
|
+
claude config reset
|
|
406
|
+
claude config reset --local
|
|
407
|
+
claude config reset --user
|
|
408
|
+
|
|
409
|
+
# Validate settings
|
|
410
|
+
claude config validate
|
|
411
|
+
claude config validate --strict
|
|
412
|
+
```
|
|
413
|
+
|
|
414
|
+
Environment-Specific Settings:
|
|
415
|
+
```bash
|
|
416
|
+
# Set environment-specific settings
|
|
417
|
+
claude config set --environment development model "claude-3-5-haiku-20241022"
|
|
418
|
+
claude config set --environment production maxTokens 200000
|
|
419
|
+
|
|
420
|
+
# Switch between environments
|
|
421
|
+
claude config use-environment development
|
|
422
|
+
claude config use-environment production
|
|
423
|
+
|
|
424
|
+
# List available environments
|
|
425
|
+
claude config list-environments
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
## Advanced Configuration
|
|
429
|
+
|
|
430
|
+
### Context Management
|
|
431
|
+
|
|
432
|
+
Context Window Settings:
|
|
433
|
+
```json
|
|
434
|
+
{
|
|
435
|
+
"context": {
|
|
436
|
+
"maxTokens": 200000,
|
|
437
|
+
"compressionThreshold": 150000,
|
|
438
|
+
"compressionStrategy": "importance-based",
|
|
439
|
+
"memoryIntegration": true,
|
|
440
|
+
"cacheStrategy": {
|
|
441
|
+
"enabled": true,
|
|
442
|
+
"maxSize": "100MB",
|
|
443
|
+
"ttl": 3600
|
|
444
|
+
}
|
|
445
|
+
}
|
|
446
|
+
}
|
|
447
|
+
```
|
|
448
|
+
|
|
449
|
+
### Logging and Debugging
|
|
450
|
+
|
|
451
|
+
Logging Configuration:
|
|
452
|
+
```json
|
|
453
|
+
{
|
|
454
|
+
"logging": {
|
|
455
|
+
"level": "info",
|
|
456
|
+
"file": "~/.claude/logs/claude.log",
|
|
457
|
+
"maxFileSize": "10MB",
|
|
458
|
+
"maxFiles": 5,
|
|
459
|
+
"format": "json",
|
|
460
|
+
"include": [
|
|
461
|
+
"tool_usage",
|
|
462
|
+
"agent_delegation",
|
|
463
|
+
"errors",
|
|
464
|
+
"performance"
|
|
465
|
+
],
|
|
466
|
+
"exclude": [
|
|
467
|
+
"sensitive_data"
|
|
468
|
+
]
|
|
469
|
+
}
|
|
470
|
+
}
|
|
471
|
+
```
|
|
472
|
+
|
|
473
|
+
Debug Settings:
|
|
474
|
+
```json
|
|
475
|
+
{
|
|
476
|
+
"debug": {
|
|
477
|
+
"enabled": false,
|
|
478
|
+
"verboseOutput": false,
|
|
479
|
+
"timingInfo": false,
|
|
480
|
+
"tokenUsage": true,
|
|
481
|
+
"stackTraces": false,
|
|
482
|
+
"apiCalls": false
|
|
483
|
+
}
|
|
484
|
+
}
|
|
485
|
+
```
|
|
486
|
+
|
|
487
|
+
### Performance Optimization
|
|
488
|
+
|
|
489
|
+
Performance Settings:
|
|
490
|
+
```json
|
|
491
|
+
{
|
|
492
|
+
"performance": {
|
|
493
|
+
"parallelExecution": true,
|
|
494
|
+
"maxConcurrency": 5,
|
|
495
|
+
"caching": {
|
|
496
|
+
"enabled": true,
|
|
497
|
+
"strategy": "lru",
|
|
498
|
+
"maxSize": "500MB"
|
|
499
|
+
},
|
|
500
|
+
"optimization": {
|
|
501
|
+
"contextCompression": true,
|
|
502
|
+
"responseStreaming": false,
|
|
503
|
+
"batchProcessing": true
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
## Integration Settings
|
|
510
|
+
|
|
511
|
+
### Git Integration
|
|
512
|
+
|
|
513
|
+
Git Configuration:
|
|
514
|
+
```json
|
|
515
|
+
{
|
|
516
|
+
"git": {
|
|
517
|
+
"autoCommit": false,
|
|
518
|
+
"autoPush": false,
|
|
519
|
+
"branchStrategy": "feature-branch",
|
|
520
|
+
"commitTemplate": {
|
|
521
|
+
"prefix": "feat:",
|
|
522
|
+
"includeScope": true,
|
|
523
|
+
"includeBody": true
|
|
524
|
+
},
|
|
525
|
+
"hooks": {
|
|
526
|
+
"preCommit": "lint && test",
|
|
527
|
+
"prePush": "security-scan"
|
|
528
|
+
}
|
|
529
|
+
}
|
|
530
|
+
}
|
|
531
|
+
```
|
|
532
|
+
|
|
533
|
+
### CI/CD Integration
|
|
534
|
+
|
|
535
|
+
CI/CD Settings:
|
|
536
|
+
```json
|
|
537
|
+
{
|
|
538
|
+
"cicd": {
|
|
539
|
+
"platform": "github-actions",
|
|
540
|
+
"configPath": ".github/workflows/",
|
|
541
|
+
"autoGenerate": false,
|
|
542
|
+
"pipelines": {
|
|
543
|
+
"test": {
|
|
544
|
+
"trigger": ["push", "pull_request"],
|
|
545
|
+
"steps": ["lint", "test", "security-scan"]
|
|
546
|
+
},
|
|
547
|
+
"deploy": {
|
|
548
|
+
"trigger": ["release"],
|
|
549
|
+
"steps": ["build", "deploy"]
|
|
550
|
+
}
|
|
551
|
+
}
|
|
552
|
+
}
|
|
553
|
+
}
|
|
554
|
+
```
|
|
555
|
+
|
|
556
|
+
## Security Configuration
|
|
557
|
+
|
|
558
|
+
### Security Settings
|
|
559
|
+
|
|
560
|
+
Security Configuration:
|
|
561
|
+
```json
|
|
562
|
+
{
|
|
563
|
+
"security": {
|
|
564
|
+
"level": "standard",
|
|
565
|
+
"encryption": {
|
|
566
|
+
"enabled": true,
|
|
567
|
+
"algorithm": "AES-256-GCM"
|
|
568
|
+
},
|
|
569
|
+
"accessControl": {
|
|
570
|
+
"authentication": "required",
|
|
571
|
+
"authorization": "role-based"
|
|
572
|
+
},
|
|
573
|
+
"audit": {
|
|
574
|
+
"enabled": true,
|
|
575
|
+
"logLevel": "detailed",
|
|
576
|
+
"retention": "90d"
|
|
577
|
+
}
|
|
578
|
+
}
|
|
579
|
+
}
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
### Privacy Settings
|
|
583
|
+
|
|
584
|
+
Privacy Configuration:
|
|
585
|
+
```json
|
|
586
|
+
{
|
|
587
|
+
"privacy": {
|
|
588
|
+
"dataCollection": "minimal",
|
|
589
|
+
"analytics": false,
|
|
590
|
+
"crashReporting": true,
|
|
591
|
+
"usageStatistics": false,
|
|
592
|
+
"dataRetention": {
|
|
593
|
+
"logs": "30d",
|
|
594
|
+
"cache": "7d",
|
|
595
|
+
"temp": "1d"
|
|
596
|
+
}
|
|
597
|
+
}
|
|
598
|
+
}
|
|
599
|
+
```
|
|
600
|
+
|
|
601
|
+
## Best Practices
|
|
602
|
+
|
|
603
|
+
### Configuration Management
|
|
604
|
+
|
|
605
|
+
Development Practices:
|
|
606
|
+
- Use version control for project settings
|
|
607
|
+
- Keep local overrides in `.gitignore`
|
|
608
|
+
- Document all custom settings
|
|
609
|
+
- Validate settings before deployment
|
|
610
|
+
|
|
611
|
+
Security Practices:
|
|
612
|
+
- Never commit sensitive credentials
|
|
613
|
+
- Use environment variables for secrets
|
|
614
|
+
- Implement principle of least privilege
|
|
615
|
+
- Regular security audits
|
|
616
|
+
|
|
617
|
+
Performance Practices:
|
|
618
|
+
- Optimize context window usage
|
|
619
|
+
- Enable caching where appropriate
|
|
620
|
+
- Monitor token usage
|
|
621
|
+
- Use appropriate models for tasks
|
|
622
|
+
|
|
623
|
+
### Organization Standards
|
|
624
|
+
|
|
625
|
+
Team Configuration:
|
|
626
|
+
```json
|
|
627
|
+
{
|
|
628
|
+
"team": {
|
|
629
|
+
"standards": {
|
|
630
|
+
"model": "claude-3-5-sonnet-20241022",
|
|
631
|
+
"testCoverage": 90,
|
|
632
|
+
"codeStyle": "prettier",
|
|
633
|
+
"documentation": "required"
|
|
634
|
+
},
|
|
635
|
+
"workflow": {
|
|
636
|
+
"branching": "gitflow",
|
|
637
|
+
"reviews": "required",
|
|
638
|
+
"ciCd": "automated"
|
|
639
|
+
}
|
|
640
|
+
}
|
|
641
|
+
}
|
|
642
|
+
```
|
|
643
|
+
|
|
644
|
+
Enterprise Policies:
|
|
645
|
+
```json
|
|
646
|
+
{
|
|
647
|
+
"enterprise": {
|
|
648
|
+
"policies": {
|
|
649
|
+
"allowedModels": ["claude-3-5-sonnet-20241022"],
|
|
650
|
+
"maxTokens": 100000,
|
|
651
|
+
"restrictedTools": ["Bash", "WebFetch"],
|
|
652
|
+
"auditRequired": true
|
|
653
|
+
},
|
|
654
|
+
"compliance": {
|
|
655
|
+
"standards": ["SOC2", "ISO27001"],
|
|
656
|
+
"dataResidency": "us-east-1",
|
|
657
|
+
"retentionPolicy": "7y"
|
|
658
|
+
}
|
|
659
|
+
}
|
|
660
|
+
}
|
|
661
|
+
```
|
|
662
|
+
|
|
663
|
+
This comprehensive reference provides all the information needed to configure Claude Code effectively for any use case, from personal development to enterprise deployment.
|