moai-adk 0.4.5__py3-none-any.whl → 0.20.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 +1 -1
- moai_adk/__main__.py +74 -1
- moai_adk/cli/commands/__init__.py +1 -1
- moai_adk/cli/commands/analyze.py +119 -0
- moai_adk/cli/commands/backup.py +25 -1
- moai_adk/cli/commands/doctor.py +31 -5
- moai_adk/cli/commands/improve_user_experience.py +307 -0
- moai_adk/cli/commands/init.py +111 -10
- moai_adk/cli/commands/status.py +33 -3
- moai_adk/cli/commands/update.py +921 -130
- moai_adk/cli/commands/validate_links.py +120 -0
- moai_adk/cli/prompts/init_prompts.py +22 -87
- moai_adk/core/analysis/__init__.py +9 -0
- moai_adk/core/analysis/session_analyzer.py +388 -0
- moai_adk/core/analysis/tag_chain_analyzer.py +344 -0
- moai_adk/core/analysis/tag_chain_repair.py +879 -0
- moai_adk/core/config/__init__.py +19 -0
- moai_adk/core/config/migration.py +235 -0
- moai_adk/core/git/__init__.py +1 -1
- moai_adk/core/git/branch.py +1 -1
- moai_adk/core/git/commit.py +1 -1
- moai_adk/core/git/manager.py +1 -1
- moai_adk/core/issue_creator.py +313 -0
- moai_adk/core/mcp/setup.py +56 -0
- moai_adk/core/mcp/setup_old.py +296 -0
- moai_adk/core/project/backup_utils.py +1 -1
- moai_adk/core/project/checker.py +2 -2
- moai_adk/core/project/detector.py +211 -12
- moai_adk/core/project/initializer.py +85 -15
- moai_adk/core/project/phase_executor.py +76 -13
- moai_adk/core/project/validator.py +13 -13
- moai_adk/core/quality/__init__.py +1 -1
- moai_adk/core/quality/trust_checker.py +1 -1
- moai_adk/core/quality/validators/__init__.py +1 -1
- moai_adk/core/quality/validators/base_validator.py +1 -1
- moai_adk/core/tags/__init__.py +86 -0
- moai_adk/core/tags/auto_corrector.py +693 -0
- moai_adk/core/tags/ci_validator.py +463 -0
- moai_adk/core/tags/cli.py +283 -0
- moai_adk/core/tags/generator.py +109 -0
- moai_adk/core/tags/inserter.py +99 -0
- moai_adk/core/tags/mapper.py +126 -0
- moai_adk/core/tags/parser.py +76 -0
- moai_adk/core/tags/policy_validator.py +580 -0
- moai_adk/core/tags/pre_commit_validator.py +421 -0
- moai_adk/core/tags/reporter.py +956 -0
- moai_adk/core/tags/rollback_manager.py +525 -0
- moai_adk/core/tags/tags.py +149 -0
- moai_adk/core/tags/validator.py +897 -0
- moai_adk/core/template/__init__.py +1 -1
- moai_adk/core/template/backup.py +1 -1
- moai_adk/core/template/merger.py +50 -1
- moai_adk/core/template/processor.py +119 -13
- moai_adk/core/template_engine.py +268 -0
- moai_adk/templates/.claude/agents/alfred/backend-expert.md +348 -0
- moai_adk/templates/.claude/agents/alfred/cc-manager.md +209 -944
- moai_adk/templates/.claude/agents/alfred/database-expert.md +352 -0
- moai_adk/templates/.claude/agents/alfred/debug-helper.md +34 -5
- moai_adk/templates/.claude/agents/alfred/devops-expert.md +464 -0
- moai_adk/templates/.claude/agents/alfred/doc-syncer.md +38 -8
- moai_adk/templates/.claude/agents/alfred/format-expert.md +469 -0
- moai_adk/templates/.claude/agents/alfred/frontend-expert.md +357 -0
- moai_adk/templates/.claude/agents/alfred/git-manager.md +128 -9
- moai_adk/templates/.claude/agents/alfred/implementation-planner.md +104 -6
- moai_adk/templates/.claude/agents/alfred/project-manager.md +88 -16
- moai_adk/templates/.claude/agents/alfred/quality-gate.md +36 -9
- moai_adk/templates/.claude/agents/alfred/security-expert.md +270 -0
- moai_adk/templates/.claude/agents/alfred/skill-factory.md +865 -0
- moai_adk/templates/.claude/agents/alfred/spec-builder.md +214 -43
- moai_adk/templates/.claude/agents/alfred/tag-agent.md +111 -9
- moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +309 -160
- moai_adk/templates/.claude/agents/alfred/trust-checker.md +36 -7
- moai_adk/templates/.claude/agents/alfred/ui-ux-expert.md +605 -0
- moai_adk/templates/.claude/commands/alfred/0-project.md +393 -966
- moai_adk/templates/.claude/commands/alfred/1-plan.md +651 -367
- moai_adk/templates/.claude/commands/alfred/2-run.md +388 -241
- moai_adk/templates/.claude/commands/alfred/3-sync.md +1921 -410
- moai_adk/templates/.claude/commands/alfred/9-feedback.md +153 -0
- moai_adk/templates/.claude/commands/alfred/release-new.md +3604 -0
- moai_adk/templates/.claude/hooks/alfred/core/project.py +484 -20
- moai_adk/templates/.claude/hooks/alfred/core/timeout.py +136 -0
- moai_adk/templates/.claude/hooks/alfred/core/ttl_cache.py +108 -0
- moai_adk/templates/.claude/hooks/alfred/core/version_cache.py +198 -0
- moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +14 -6
- moai_adk/templates/.claude/hooks/alfred/post_tool__enable_streaming_ui.py +50 -0
- moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +93 -0
- moai_adk/templates/.claude/hooks/alfred/post_tool__tag_auto_corrector.py +407 -0
- moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +99 -0
- moai_adk/templates/.claude/hooks/alfred/pre_tool__realtime_tag_monitor.py +335 -0
- moai_adk/templates/.claude/hooks/alfred/pre_tool__tag_policy_validator.py +325 -0
- moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +93 -0
- moai_adk/templates/.claude/hooks/alfred/session_start__auto_cleanup.py +580 -0
- moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +298 -0
- moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +170 -0
- moai_adk/templates/.claude/hooks/alfred/{core → shared/core}/checkpoint.py +3 -3
- moai_adk/templates/.claude/hooks/alfred/{core → shared/core}/context.py +5 -5
- moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +749 -0
- moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +230 -0
- moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +198 -0
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/__init__.py +21 -0
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/daily_analysis.py +351 -0
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +154 -0
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +174 -0
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +87 -0
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +61 -0
- moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +111 -0
- moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +1 -0
- moai_adk/templates/.claude/hooks/alfred/utils/hook_config.py +94 -0
- moai_adk/templates/.claude/hooks/alfred/utils/timeout.py +161 -0
- moai_adk/templates/.claude/output-styles/alfred/alfred-moai-adk-beginner.md +267 -0
- moai_adk/templates/.claude/output-styles/alfred/keating-personal-tutor.md +440 -0
- moai_adk/templates/.claude/output-styles/alfred/r2d2-agentic-coding.md +583 -0
- moai_adk/templates/.claude/settings.json +96 -14
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/SKILL.md +70 -0
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/examples.md +62 -0
- moai_adk/templates/.claude/skills/moai-alfred-agent-guide/reference.md +242 -0
- moai_adk/templates/.claude/skills/moai-alfred-ask-user-questions/SKILL.md +237 -0
- moai_adk/templates/.claude/skills/moai-alfred-ask-user-questions/examples.md +871 -0
- moai_adk/templates/.claude/skills/moai-alfred-ask-user-questions/reference.md +653 -0
- moai_adk/templates/.claude/skills/moai-alfred-clone-pattern/README.md +162 -0
- moai_adk/templates/.claude/skills/moai-alfred-clone-pattern/SKILL.md +227 -0
- moai_adk/templates/.claude/skills/moai-alfred-clone-pattern/examples.md +354 -0
- moai_adk/templates/.claude/skills/moai-alfred-clone-pattern/reference.md +158 -0
- moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/SKILL.md +179 -79
- moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/examples.md +117 -0
- moai_adk/templates/.claude/skills/moai-alfred-code-reviewer/scripts/pre-review-check.sh +62 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/SKILL.md +132 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/examples.md +28 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/reference.md +444 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/SKILL.md +62 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/examples.md +28 -0
- moai_adk/templates/.claude/skills/moai-alfred-context-budget/reference.md +405 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/SKILL.md +51 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/examples.md +355 -0
- moai_adk/templates/.claude/skills/moai-alfred-dev-guide/reference.md +239 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/SKILL.md +323 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/examples.md +286 -0
- moai_adk/templates/.claude/skills/moai-alfred-expertise-detection/reference.md +126 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/SKILL.md +229 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/reference.md +150 -0
- moai_adk/templates/.claude/skills/moai-alfred-language-detection/SKILL.md +87 -73
- moai_adk/templates/.claude/skills/moai-alfred-language-detection/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-alfred-language-detection/reference.md +28 -0
- moai_adk/templates/.claude/skills/moai-alfred-personas/README.md +42 -0
- moai_adk/templates/.claude/skills/moai-alfred-personas/SKILL.md +429 -0
- moai_adk/templates/.claude/skills/moai-alfred-personas/examples.md +520 -0
- moai_adk/templates/.claude/skills/moai-alfred-personas/reference.md +405 -0
- moai_adk/templates/.claude/skills/moai-alfred-practices/SKILL.md +89 -0
- moai_adk/templates/.claude/skills/moai-alfred-practices/examples.md +122 -0
- moai_adk/templates/.claude/skills/moai-alfred-practices/reference.md +369 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/SKILL.md +508 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/examples.md +481 -0
- moai_adk/templates/.claude/skills/moai-alfred-proactive-suggestions/reference.md +100 -0
- moai_adk/templates/.claude/skills/moai-alfred-rules/SKILL.md +77 -0
- moai_adk/templates/.claude/skills/moai-alfred-rules/examples.md +265 -0
- moai_adk/templates/.claude/skills/moai-alfred-rules/reference.md +539 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/SKILL.md +320 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-session-state/reference.md +84 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/README.md +137 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/SKILL.md +219 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples/validate-spec.sh +161 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/examples.md +541 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-authoring/reference.md +622 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-todowrite-pattern/reference.md +211 -0
- moai_adk/templates/.claude/skills/moai-alfred-workflow/SKILL.md +288 -0
- moai_adk/templates/.claude/skills/moai-cc-agents/SKILL.md +269 -0
- moai_adk/templates/.claude/skills/moai-cc-agents/templates/agent-template.md +32 -0
- moai_adk/templates/.claude/skills/moai-cc-claude-md/SKILL.md +298 -0
- moai_adk/templates/.claude/skills/moai-cc-claude-md/templates/CLAUDE-template.md +26 -0
- moai_adk/templates/.claude/skills/moai-cc-commands/SKILL.md +307 -0
- moai_adk/templates/.claude/skills/moai-cc-commands/templates/command-template.md +21 -0
- moai_adk/templates/.claude/skills/moai-cc-hooks/SKILL.md +252 -0
- moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/pre-bash-check.sh +19 -0
- moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/preserve-permissions.sh +19 -0
- moai_adk/templates/.claude/skills/moai-cc-hooks/scripts/validate-bash-command.py +24 -0
- moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/SKILL.md +199 -0
- moai_adk/templates/.claude/skills/moai-cc-mcp-plugins/templates/settings-mcp-template.json +39 -0
- moai_adk/templates/.claude/skills/moai-cc-memory/SKILL.md +316 -0
- moai_adk/templates/.claude/skills/moai-cc-memory/templates/session-summary-template.md +18 -0
- moai_adk/templates/.claude/skills/moai-cc-settings/SKILL.md +263 -0
- moai_adk/templates/.claude/skills/moai-cc-settings/templates/settings-complete-template.json +30 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/CHECKLIST.md +482 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/EXAMPLES.md +303 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/INTERACTIVE-DISCOVERY.md +524 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/METADATA.md +477 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/PARALLEL-ANALYSIS-REPORT.md +429 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/PYTHON-VERSION-MATRIX.md +391 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-FACTORY-WORKFLOW.md +431 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL-UPDATE-ADVISOR.md +577 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/SKILL.md +273 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/STEP-BY-STEP-GUIDE.md +466 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/STRUCTURE.md +583 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/WEB-RESEARCH.md +526 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/reference.md +608 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/generate-structure.sh +328 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/scripts/validate-skill.sh +312 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/SKILL_TEMPLATE.md +245 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/examples-template.md +285 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/reference-template.md +278 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-factory/templates/scripts-template.sh +303 -0
- moai_adk/templates/.claude/skills/moai-cc-skills/SKILL.md +291 -0
- moai_adk/templates/.claude/skills/moai-cc-skills/templates/SKILL-template.md +15 -0
- moai_adk/templates/.claude/skills/moai-change-logger/SKILL.md +563 -0
- moai_adk/templates/.claude/skills/moai-design-systems/SKILL.md +802 -0
- moai_adk/templates/.claude/skills/moai-design-systems/examples.md +1238 -0
- moai_adk/templates/.claude/skills/moai-design-systems/reference.md +673 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/SKILL.md +234 -43
- moai_adk/templates/.claude/skills/moai-domain-backend/examples.md +1633 -0
- moai_adk/templates/.claude/skills/moai-domain-backend/reference.md +660 -0
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/SKILL.md +97 -69
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-cli-tool/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-domain-data-science/SKILL.md +97 -72
- moai_adk/templates/.claude/skills/moai-domain-data-science/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-data-science/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-domain-database/SKILL.md +97 -74
- moai_adk/templates/.claude/skills/moai-domain-database/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-database/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-domain-devops/SKILL.md +98 -74
- moai_adk/templates/.claude/skills/moai-domain-devops/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-devops/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/SKILL.md +102 -73
- moai_adk/templates/.claude/skills/moai-domain-frontend/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-frontend/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-domain-ml/SKILL.md +97 -73
- moai_adk/templates/.claude/skills/moai-domain-ml/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-ml/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/SKILL.md +97 -67
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-mobile-app/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-domain-security/SKILL.md +97 -79
- moai_adk/templates/.claude/skills/moai-domain-security/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-security/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-domain-web-api/SKILL.md +97 -71
- moai_adk/templates/.claude/skills/moai-domain-web-api/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-domain-web-api/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-essentials-debug/SKILL.md +265 -64
- moai_adk/templates/.claude/skills/moai-essentials-debug/examples.md +1064 -0
- moai_adk/templates/.claude/skills/moai-essentials-debug/reference.md +1047 -0
- moai_adk/templates/.claude/skills/moai-essentials-perf/SKILL.md +87 -78
- moai_adk/templates/.claude/skills/moai-essentials-perf/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-essentials-perf/reference.md +28 -0
- moai_adk/templates/.claude/skills/moai-essentials-refactor/SKILL.md +87 -70
- moai_adk/templates/.claude/skills/moai-essentials-refactor/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-essentials-refactor/reference.md +28 -0
- moai_adk/templates/.claude/skills/moai-essentials-review/SKILL.md +87 -86
- moai_adk/templates/.claude/skills/moai-essentials-review/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-essentials-review/reference.md +28 -0
- moai_adk/templates/.claude/skills/moai-foundation-ears/SKILL.md +80 -62
- moai_adk/templates/.claude/skills/moai-foundation-ears/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-foundation-ears/reference.md +28 -0
- moai_adk/templates/.claude/skills/moai-foundation-git/SKILL.md +207 -50
- moai_adk/templates/.claude/skills/moai-foundation-git/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-foundation-git/reference.md +29 -0
- moai_adk/templates/.claude/skills/moai-foundation-langs/SKILL.md +90 -71
- moai_adk/templates/.claude/skills/moai-foundation-langs/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-foundation-langs/reference.md +28 -0
- moai_adk/templates/.claude/skills/moai-foundation-specs/SKILL.md +78 -58
- moai_adk/templates/.claude/skills/moai-foundation-specs/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-foundation-specs/reference.md +28 -0
- moai_adk/templates/.claude/skills/moai-foundation-tags/SKILL.md +78 -51
- moai_adk/templates/.claude/skills/moai-foundation-tags/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-foundation-tags/reference.md +28 -0
- moai_adk/templates/.claude/skills/moai-foundation-trust/.!11330!examples.md +0 -0
- moai_adk/templates/.claude/skills/moai-foundation-trust/SKILL.md +253 -32
- moai_adk/templates/.claude/skills/moai-foundation-trust/examples.md +0 -0
- moai_adk/templates/.claude/skills/moai-foundation-trust/reference.md +1099 -0
- moai_adk/templates/.claude/skills/moai-jit-docs-enhanced/SKILL.md +460 -0
- moai_adk/templates/.claude/skills/moai-lang-c/SKILL.md +98 -74
- moai_adk/templates/.claude/skills/moai-lang-c/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-c/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/SKILL.md +98 -76
- moai_adk/templates/.claude/skills/moai-lang-cpp/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-cpp/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/SKILL.md +2358 -70
- moai_adk/templates/.claude/skills/moai-lang-csharp/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-csharp/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-lang-dart/SKILL.md +2962 -68
- moai_adk/templates/.claude/skills/moai-lang-dart/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-dart/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +1898 -70
- moai_adk/templates/.claude/skills/moai-lang-go/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-go/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +1465 -68
- moai_adk/templates/.claude/skills/moai-lang-java/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-java/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/SKILL.md +2364 -66
- moai_adk/templates/.claude/skills/moai-lang-javascript/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-javascript/reference.md +32 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/SKILL.md +1630 -69
- moai_adk/templates/.claude/skills/moai-lang-kotlin/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-kotlin/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +89 -61
- moai_adk/templates/.claude/skills/moai-lang-php/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-php/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +735 -66
- moai_adk/templates/.claude/skills/moai-lang-python/examples.md +624 -0
- moai_adk/templates/.claude/skills/moai-lang-python/reference.md +316 -0
- moai_adk/templates/.claude/skills/moai-lang-r/SKILL.md +97 -73
- moai_adk/templates/.claude/skills/moai-lang-r/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-r/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/SKILL.md +98 -73
- moai_adk/templates/.claude/skills/moai-lang-ruby/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-ruby/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +1834 -70
- moai_adk/templates/.claude/skills/moai-lang-rust/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-rust/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +99 -74
- moai_adk/templates/.claude/skills/moai-lang-scala/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-scala/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-lang-shell/SKILL.md +97 -74
- moai_adk/templates/.claude/skills/moai-lang-shell/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-shell/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-lang-sql/SKILL.md +98 -74
- moai_adk/templates/.claude/skills/moai-lang-sql/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-sql/reference.md +31 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/SKILL.md +1959 -69
- moai_adk/templates/.claude/skills/moai-lang-swift/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-swift/reference.md +30 -0
- moai_adk/templates/.claude/skills/moai-lang-template/SKILL.md +348 -0
- moai_adk/templates/.claude/skills/moai-lang-template/VARIABLES.md +98 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +1230 -66
- moai_adk/templates/.claude/skills/moai-lang-typescript/examples.md +29 -0
- moai_adk/templates/.claude/skills/moai-lang-typescript/reference.md +34 -0
- moai_adk/templates/.claude/skills/moai-learning-optimizer/SKILL.md +575 -0
- moai_adk/templates/.claude/skills/moai-project-batch-questions/README.md +50 -0
- moai_adk/templates/.claude/skills/moai-project-batch-questions/SKILL.md +304 -0
- moai_adk/templates/.claude/skills/moai-project-batch-questions/examples.md +417 -0
- moai_adk/templates/.claude/skills/moai-project-batch-questions/reference.md +704 -0
- moai_adk/templates/.claude/skills/moai-project-config-manager/README.md +87 -0
- moai_adk/templates/.claude/skills/moai-project-config-manager/SKILL.md +552 -0
- moai_adk/templates/.claude/skills/moai-project-config-manager/examples.md +1109 -0
- moai_adk/templates/.claude/skills/moai-project-config-manager/reference.md +514 -0
- moai_adk/templates/.claude/skills/moai-project-config-manager/validate.py +106 -0
- moai_adk/templates/.claude/skills/moai-project-documentation/README.md +11 -0
- moai_adk/templates/.claude/skills/moai-project-documentation/SKILL.md +622 -0
- moai_adk/templates/.claude/skills/moai-project-documentation/examples.md +20 -0
- moai_adk/templates/.claude/skills/moai-project-documentation/reference.md +12 -0
- moai_adk/templates/.claude/skills/moai-project-language-initializer/README.md +152 -0
- moai_adk/templates/.claude/skills/moai-project-language-initializer/SKILL.md +285 -0
- moai_adk/templates/.claude/skills/moai-project-language-initializer/examples.md +333 -0
- moai_adk/templates/.claude/skills/moai-project-language-initializer/reference.md +386 -0
- moai_adk/templates/.claude/skills/moai-project-template-optimizer/README.md +49 -0
- moai_adk/templates/.claude/skills/moai-project-template-optimizer/SKILL.md +319 -0
- moai_adk/templates/.claude/skills/moai-project-template-optimizer/examples.md +58 -0
- moai_adk/templates/.claude/skills/moai-project-template-optimizer/reference.md +123 -0
- moai_adk/templates/.claude/skills/moai-session-info/SKILL.md +314 -0
- moai_adk/templates/.claude/skills/moai-streaming-ui/SKILL.md +552 -0
- moai_adk/templates/.claude/skills/moai-tag-policy-validator/SKILL.md +570 -0
- moai_adk/templates/.git-hooks/pre-commit +66 -0
- moai_adk/templates/.git-hooks/pre-push +255 -0
- moai_adk/templates/.github/workflows/c-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/cpp-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/csharp-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/dart-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/go-tag-validation.yml +130 -0
- moai_adk/templates/.github/workflows/java-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/javascript-tag-validation.yml +135 -0
- moai_adk/templates/.github/workflows/kotlin-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/moai-gitflow.yml +166 -3
- moai_adk/templates/.github/workflows/moai-release-create.yml +100 -0
- moai_adk/templates/.github/workflows/moai-release-pipeline.yml +188 -0
- moai_adk/templates/.github/workflows/php-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/python-tag-validation.yml +118 -0
- moai_adk/templates/.github/workflows/release.yml +118 -0
- moai_adk/templates/.github/workflows/ruby-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/rust-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/shell-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/spec-issue-sync.yml +338 -0
- moai_adk/templates/.github/workflows/swift-tag-validation.yml +11 -0
- moai_adk/templates/.github/workflows/tag-report.yml +269 -0
- moai_adk/templates/.github/workflows/tag-validation.yml +186 -0
- moai_adk/templates/.github/workflows/typescript-tag-validation.yml +154 -0
- moai_adk/templates/.mcp.json +31 -0
- moai_adk/templates/.moai/config.json +80 -7
- moai_adk/templates/CLAUDE.md +562 -546
- moai_adk/utils/banner.py +5 -5
- moai_adk/utils/common.py +294 -0
- moai_adk/utils/link_validator.py +235 -0
- moai_adk/utils/logger.py +8 -8
- moai_adk/utils/user_experience.py +451 -0
- moai_adk-0.20.1.dist-info/METADATA +233 -0
- moai_adk-0.20.1.dist-info/RECORD +404 -0
- moai_adk/templates/.claude/hooks/alfred/README.md +0 -230
- moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -156
- moai_adk/templates/.claude/hooks/alfred/core/__init__.py +0 -85
- moai_adk/templates/.claude/hooks/alfred/handlers/notification.py +0 -25
- moai_adk/templates/.claude/hooks/alfred/handlers/session.py +0 -92
- moai_adk/templates/.claude/hooks/alfred/handlers/tool.py +0 -70
- moai_adk/templates/.claude/hooks/alfred/handlers/user.py +0 -41
- moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -636
- moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -692
- moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -470
- moai_adk/templates/.claude/skills/moai-alfred-debugger-pro/SKILL.md +0 -103
- moai_adk/templates/.claude/skills/moai-alfred-ears-authoring/SKILL.md +0 -103
- moai_adk/templates/.claude/skills/moai-alfred-git-workflow/SKILL.md +0 -95
- moai_adk/templates/.claude/skills/moai-alfred-performance-optimizer/SKILL.md +0 -105
- moai_adk/templates/.claude/skills/moai-alfred-refactoring-coach/SKILL.md +0 -97
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-validation/SKILL.md +0 -97
- moai_adk/templates/.claude/skills/moai-alfred-tag-scanning/SKILL.md +0 -90
- moai_adk/templates/.claude/skills/moai-alfred-trust-validation/SKILL.md +0 -99
- moai_adk/templates/.claude/skills/moai-alfred-tui-survey/SKILL.md +0 -87
- moai_adk/templates/.claude/skills/moai-alfred-tui-survey/examples.md +0 -62
- moai_adk/templates/.claude/skills/moai-claude-code/SKILL.md +0 -94
- moai_adk/templates/.claude/skills/moai-claude-code/examples.md +0 -513
- moai_adk/templates/.claude/skills/moai-claude-code/reference.md +0 -433
- moai_adk/templates/.claude/skills/moai-claude-code/templates/agent-full.md +0 -332
- moai_adk/templates/.claude/skills/moai-claude-code/templates/command-full.md +0 -384
- moai_adk/templates/.claude/skills/moai-claude-code/templates/plugin-full.json +0 -363
- moai_adk/templates/.claude/skills/moai-claude-code/templates/settings-full.json +0 -595
- moai_adk/templates/.claude/skills/moai-claude-code/templates/skill-full.md +0 -496
- moai_adk/templates/.claude/skills/moai-lang-clojure/SKILL.md +0 -100
- moai_adk/templates/.claude/skills/moai-lang-elixir/SKILL.md +0 -99
- moai_adk/templates/.claude/skills/moai-lang-haskell/SKILL.md +0 -100
- moai_adk/templates/.claude/skills/moai-lang-julia/SKILL.md +0 -98
- moai_adk/templates/.claude/skills/moai-lang-lua/SKILL.md +0 -98
- moai_adk/templates/.github/PULL_REQUEST_TEMPLATE.md +0 -69
- moai_adk/templates/.moai/memory/development-guide.md +0 -344
- moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -220
- moai_adk/templates/.moai/memory/spec-metadata.md +0 -356
- moai_adk/templates/.moai/project/product.md +0 -161
- moai_adk/templates/.moai/project/structure.md +0 -156
- moai_adk/templates/.moai/project/tech.md +0 -227
- moai_adk/templates/__init__.py +0 -2
- moai_adk-0.4.5.dist-info/METADATA +0 -369
- moai_adk-0.4.5.dist-info/RECORD +0 -152
- {moai_adk-0.4.5.dist-info → moai_adk-0.20.1.dist-info}/WHEEL +0 -0
- {moai_adk-0.4.5.dist-info → moai_adk-0.20.1.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.4.5.dist-info → moai_adk-0.20.1.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,563 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-change-logger
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
created: 2025-11-05
|
|
5
|
+
updated: 2025-11-05
|
|
6
|
+
status: active
|
|
7
|
+
description: Comprehensive change tracking and audit logging system that monitors file modifications, code changes, and project evolution. Use when tracking project history, maintaining audit trails, analyzing development patterns, or when detailed change documentation is required for compliance and team collaboration.
|
|
8
|
+
keywords: [change-tracking, audit-logging, file-monitoring, git-history, project-evolution, compliance]
|
|
9
|
+
allowed-tools:
|
|
10
|
+
- Read
|
|
11
|
+
- Glob
|
|
12
|
+
- Bash
|
|
13
|
+
- Write
|
|
14
|
+
---
|
|
15
|
+
|
|
16
|
+
# Comprehensive Change Logger
|
|
17
|
+
|
|
18
|
+
## Skill Metadata
|
|
19
|
+
|
|
20
|
+
| Field | Value |
|
|
21
|
+
| ----- | ----- |
|
|
22
|
+
| Version | 1.0.0 |
|
|
23
|
+
| Tier | Alfred (Project Management) |
|
|
24
|
+
| Auto-load | During file operations and project changes |
|
|
25
|
+
| Purpose | Track and log all project changes for audit and analysis |
|
|
26
|
+
|
|
27
|
+
---
|
|
28
|
+
|
|
29
|
+
## What It Does
|
|
30
|
+
|
|
31
|
+
Advanced change tracking and audit logging system that monitors all file modifications, code changes, and project evolution. Provides comprehensive audit trails, change analytics, and project insights for team collaboration and compliance requirements.
|
|
32
|
+
|
|
33
|
+
**Core capabilities**:
|
|
34
|
+
- ✅ Real-time file change monitoring and logging
|
|
35
|
+
- ✅ Git integration for commit and branch tracking
|
|
36
|
+
- ✅ Change significance assessment and categorization
|
|
37
|
+
- ✅ Developer activity tracking and productivity metrics
|
|
38
|
+
- ✅ Project evolution analysis and trend identification
|
|
39
|
+
- ✅ Audit trail generation for compliance requirements
|
|
40
|
+
- ✅ Change impact analysis and dependency tracking
|
|
41
|
+
- ✅ Automated change reports and summaries
|
|
42
|
+
|
|
43
|
+
---
|
|
44
|
+
|
|
45
|
+
## When to Use
|
|
46
|
+
|
|
47
|
+
- ✅ When tracking project history and evolution
|
|
48
|
+
- ✅ During code reviews and change analysis
|
|
49
|
+
- ✅ For compliance audit and documentation requirements
|
|
50
|
+
- ✅ When analyzing team productivity and patterns
|
|
51
|
+
- ✅ Before major releases or deployments
|
|
52
|
+
- ✅ When investigating issues or regressions
|
|
53
|
+
- ✅ For project retrospectives and improvement planning
|
|
54
|
+
|
|
55
|
+
---
|
|
56
|
+
|
|
57
|
+
## Change Monitoring Systems
|
|
58
|
+
|
|
59
|
+
### 1. File-Level Monitoring
|
|
60
|
+
```python
|
|
61
|
+
def monitor_file_changes():
|
|
62
|
+
"""Track individual file modifications"""
|
|
63
|
+
changes = {
|
|
64
|
+
"timestamp": datetime.now().isoformat(),
|
|
65
|
+
"files_modified": [],
|
|
66
|
+
"files_created": [],
|
|
67
|
+
"files_deleted": [],
|
|
68
|
+
"significance_score": 0.0,
|
|
69
|
+
"categories": []
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
# Monitor file system changes
|
|
73
|
+
for file_path in get_modified_files():
|
|
74
|
+
change = {
|
|
75
|
+
"path": file_path,
|
|
76
|
+
"type": "modified",
|
|
77
|
+
"size_delta": calculate_size_change(file_path),
|
|
78
|
+
"lines_added": count_added_lines(file_path),
|
|
79
|
+
"lines_removed": count_removed_lines(file_path),
|
|
80
|
+
"significance": assess_file_significance(file_path)
|
|
81
|
+
}
|
|
82
|
+
changes["files_modified"].append(change)
|
|
83
|
+
|
|
84
|
+
return changes
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
### 2. Git Integration
|
|
88
|
+
```python
|
|
89
|
+
def track_git_activity():
|
|
90
|
+
"""Monitor Git repository activity"""
|
|
91
|
+
git_activity = {
|
|
92
|
+
"current_branch": get_current_branch(),
|
|
93
|
+
"last_commit": get_last_commit_info(),
|
|
94
|
+
"uncommitted_changes": get_git_status(),
|
|
95
|
+
"branch_history": get_recent_commits(limit=10),
|
|
96
|
+
"merge_activity": track_merge_activity(),
|
|
97
|
+
"tag_activity": track_tag_releases()
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
return git_activity
|
|
101
|
+
```
|
|
102
|
+
|
|
103
|
+
### 3. Developer Activity Tracking
|
|
104
|
+
```python
|
|
105
|
+
def track_developer_activity():
|
|
106
|
+
"""Monitor developer productivity patterns"""
|
|
107
|
+
activity = {
|
|
108
|
+
"session_duration": calculate_session_duration(),
|
|
109
|
+
"files_touched": count_files_touched(),
|
|
110
|
+
"lines_written": count_lines_written(),
|
|
111
|
+
"tools_used": track_tool_usage(),
|
|
112
|
+
"commands_executed": track_command_history(),
|
|
113
|
+
"productivity_score": calculate_productivity_score()
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
return activity
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
---
|
|
120
|
+
|
|
121
|
+
## Change Categorization
|
|
122
|
+
|
|
123
|
+
### 1. Significance Assessment
|
|
124
|
+
```python
|
|
125
|
+
def assess_change_significance(file_path, change_details):
|
|
126
|
+
"""Assess how significant a change is"""
|
|
127
|
+
score = 0.0
|
|
128
|
+
factors = []
|
|
129
|
+
|
|
130
|
+
# File type significance
|
|
131
|
+
if is_critical_file(file_path):
|
|
132
|
+
score += 0.4
|
|
133
|
+
factors.append("critical_file")
|
|
134
|
+
elif is_config_file(file_path):
|
|
135
|
+
score += 0.3
|
|
136
|
+
factors.append("config_file")
|
|
137
|
+
elif is_documentation_file(file_path):
|
|
138
|
+
score += 0.1
|
|
139
|
+
factors.append("documentation")
|
|
140
|
+
|
|
141
|
+
# Change magnitude
|
|
142
|
+
lines_changed = change_details.lines_added + change_details.lines_removed
|
|
143
|
+
if lines_changed > 100:
|
|
144
|
+
score += 0.3
|
|
145
|
+
factors.append("large_change")
|
|
146
|
+
elif lines_changed > 20:
|
|
147
|
+
score += 0.2
|
|
148
|
+
factors.append("medium_change")
|
|
149
|
+
elif lines_changed > 0:
|
|
150
|
+
score += 0.1
|
|
151
|
+
factors.append("small_change")
|
|
152
|
+
|
|
153
|
+
# Impact assessment
|
|
154
|
+
if affects_api(file_path):
|
|
155
|
+
score += 0.2
|
|
156
|
+
factors.append("api_impact")
|
|
157
|
+
if affects_database(file_path):
|
|
158
|
+
score += 0.2
|
|
159
|
+
factors.append("database_impact")
|
|
160
|
+
if affects_security(file_path):
|
|
161
|
+
score += 0.3
|
|
162
|
+
factors.append("security_impact")
|
|
163
|
+
|
|
164
|
+
return min(score, 1.0), factors
|
|
165
|
+
```
|
|
166
|
+
|
|
167
|
+
### 2. Change Categories
|
|
168
|
+
```python
|
|
169
|
+
def categorize_changes(changes):
|
|
170
|
+
"""Categorize changes by type and purpose"""
|
|
171
|
+
categories = {
|
|
172
|
+
"feature_development": [],
|
|
173
|
+
"bug_fixes": [],
|
|
174
|
+
"refactoring": [],
|
|
175
|
+
"documentation": [],
|
|
176
|
+
"configuration": [],
|
|
177
|
+
"testing": [],
|
|
178
|
+
"performance": [],
|
|
179
|
+
"security": []
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
for change in changes:
|
|
183
|
+
category = determine_change_category(change)
|
|
184
|
+
categories[category].append(change)
|
|
185
|
+
|
|
186
|
+
return categories
|
|
187
|
+
|
|
188
|
+
def determine_change_category(change):
|
|
189
|
+
"""Determine the category of a specific change"""
|
|
190
|
+
file_path = change.path.lower()
|
|
191
|
+
|
|
192
|
+
if "test" in file_path or "spec" in file_path:
|
|
193
|
+
return "testing"
|
|
194
|
+
elif "readme" in file_path or "doc" in file_path:
|
|
195
|
+
return "documentation"
|
|
196
|
+
elif "config" in file_path or "setting" in file_path:
|
|
197
|
+
return "configuration"
|
|
198
|
+
elif "fix" in change.commit_message or "bug" in change.commit_message:
|
|
199
|
+
return "bug_fixes"
|
|
200
|
+
elif "refactor" in change.commit_message or "clean" in change.commit_message:
|
|
201
|
+
return "refactoring"
|
|
202
|
+
elif "feat" in change.commit_message or "add" in change.commit_message:
|
|
203
|
+
return "feature_development"
|
|
204
|
+
elif "perf" in change.commit_message or "optimize" in change.commit_message:
|
|
205
|
+
return "performance"
|
|
206
|
+
elif "security" in change.commit_message or "auth" in file_path:
|
|
207
|
+
return "security"
|
|
208
|
+
else:
|
|
209
|
+
return "feature_development" # Default category
|
|
210
|
+
```
|
|
211
|
+
|
|
212
|
+
---
|
|
213
|
+
|
|
214
|
+
## Audit Trail Generation
|
|
215
|
+
|
|
216
|
+
### 1. Comprehensive Audit Log
|
|
217
|
+
```python
|
|
218
|
+
def generate_audit_log(time_period="daily"):
|
|
219
|
+
"""Generate comprehensive audit trail"""
|
|
220
|
+
audit_log = {
|
|
221
|
+
"period": time_period,
|
|
222
|
+
"generated_at": datetime.now().isoformat(),
|
|
223
|
+
"summary": generate_period_summary(),
|
|
224
|
+
"detailed_changes": get_detailed_changes(time_period),
|
|
225
|
+
"compliance_metrics": calculate_compliance_metrics(),
|
|
226
|
+
"risk_assessment": assess_change_risks(),
|
|
227
|
+
"recommendations": generate_recommendations()
|
|
228
|
+
}
|
|
229
|
+
|
|
230
|
+
return audit_log
|
|
231
|
+
```
|
|
232
|
+
|
|
233
|
+
### 2. Compliance Reporting
|
|
234
|
+
```python
|
|
235
|
+
def generate_compliance_report():
|
|
236
|
+
"""Generate compliance-focused report"""
|
|
237
|
+
compliance_data = {
|
|
238
|
+
"change_authorization": verify_change_authorization(),
|
|
239
|
+
"code_review_coverage": calculate_review_coverage(),
|
|
240
|
+
"test_coverage_changes": assess_test_coverage_impact(),
|
|
241
|
+
"security_impact": assess_security_changes(),
|
|
242
|
+
"documentation_completeness": check_documentation_completeness(),
|
|
243
|
+
"approval_workflow": verify_approval_workflow()
|
|
244
|
+
}
|
|
245
|
+
|
|
246
|
+
return compliance_data
|
|
247
|
+
```
|
|
248
|
+
|
|
249
|
+
### 3. Change Impact Analysis
|
|
250
|
+
```python
|
|
251
|
+
def analyze_change_impact(changes):
|
|
252
|
+
"""Analyze the impact of changes on the project"""
|
|
253
|
+
impact_analysis = {
|
|
254
|
+
"affected_modules": identify_affected_modules(changes),
|
|
255
|
+
"dependency_impact": assess_dependency_changes(changes),
|
|
256
|
+
"api_changes": identify_api_changes(changes),
|
|
257
|
+
"database_changes": identify_database_changes(changes),
|
|
258
|
+
"test_impact": assess_test_impact(changes),
|
|
259
|
+
"deployment_impact": assess_deployment_readiness(changes),
|
|
260
|
+
"rollback_complexity": assess_rollback_complexity(changes)
|
|
261
|
+
}
|
|
262
|
+
|
|
263
|
+
return impact_analysis
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
---
|
|
267
|
+
|
|
268
|
+
## Change Analytics
|
|
269
|
+
|
|
270
|
+
### 1. Development Patterns
|
|
271
|
+
```python
|
|
272
|
+
def analyze_development_patterns():
|
|
273
|
+
"""Analyze team development patterns"""
|
|
274
|
+
patterns = {
|
|
275
|
+
"peak_development_hours": find_peak_activity_hours(),
|
|
276
|
+
"most_active_days": find_most_active_days(),
|
|
277
|
+
"change_frequency": calculate_change_frequency(),
|
|
278
|
+
"batch_size_distribution": analyze_commit_sizes(),
|
|
279
|
+
"file_type_distribution": analyze_file_type_changes(),
|
|
280
|
+
"collaboration_patterns": analyze_collaboration_patterns()
|
|
281
|
+
}
|
|
282
|
+
|
|
283
|
+
return patterns
|
|
284
|
+
```
|
|
285
|
+
|
|
286
|
+
### 2. Productivity Metrics
|
|
287
|
+
```python
|
|
288
|
+
def calculate_productivity_metrics():
|
|
289
|
+
"""Calculate team and individual productivity metrics"""
|
|
290
|
+
metrics = {
|
|
291
|
+
"code_velocity": calculate_code_velocity(),
|
|
292
|
+
"change_success_rate": calculate_change_success_rate(),
|
|
293
|
+
"rework_percentage": calculate_rework_percentage(),
|
|
294
|
+
"test_to_code_ratio": calculate_test_coverage_ratio(),
|
|
295
|
+
"documentation_to_code_ratio": calculate_documentation_ratio(),
|
|
296
|
+
"bug_fix_time": calculate_bug_fix_time()
|
|
297
|
+
}
|
|
298
|
+
|
|
299
|
+
return metrics
|
|
300
|
+
```
|
|
301
|
+
|
|
302
|
+
### 3. Quality Indicators
|
|
303
|
+
```python
|
|
304
|
+
def assess_code_quality_trends():
|
|
305
|
+
"""Assess code quality trends over time"""
|
|
306
|
+
quality_trends = {
|
|
307
|
+
"code_complexity": track_complexity_changes(),
|
|
308
|
+
"technical_debt": track_technical_debt(),
|
|
309
|
+
"test_coverage": track_test_coverage_changes(),
|
|
310
|
+
"code_duplication": track_duplication_changes(),
|
|
311
|
+
"security_vulnerabilities": track_security_issues(),
|
|
312
|
+
"performance_trends": track_performance_changes()
|
|
313
|
+
}
|
|
314
|
+
|
|
315
|
+
return quality_trends
|
|
316
|
+
```
|
|
317
|
+
|
|
318
|
+
---
|
|
319
|
+
|
|
320
|
+
## Integration Examples
|
|
321
|
+
|
|
322
|
+
### Example 1: Real-Time Change Monitoring
|
|
323
|
+
```python
|
|
324
|
+
def monitor_project_changes():
|
|
325
|
+
"""Real-time monitoring of project changes"""
|
|
326
|
+
while monitoring_active:
|
|
327
|
+
changes = detect_recent_changes()
|
|
328
|
+
|
|
329
|
+
if changes:
|
|
330
|
+
Skill("moai-change-logger")
|
|
331
|
+
|
|
332
|
+
for change in changes:
|
|
333
|
+
significance, factors = assess_change_significance(change.path, change)
|
|
334
|
+
category = determine_change_category(change)
|
|
335
|
+
|
|
336
|
+
log_change({
|
|
337
|
+
"timestamp": change.timestamp,
|
|
338
|
+
"file": change.path,
|
|
339
|
+
"type": change.type,
|
|
340
|
+
"significance": significance,
|
|
341
|
+
"category": category,
|
|
342
|
+
"factors": factors
|
|
343
|
+
})
|
|
344
|
+
|
|
345
|
+
# Notify for significant changes
|
|
346
|
+
if significance > 0.7:
|
|
347
|
+
notify_significant_change(change, category)
|
|
348
|
+
|
|
349
|
+
sleep(60) # Check every minute
|
|
350
|
+
```
|
|
351
|
+
|
|
352
|
+
### Example 2: Pre-Commit Change Analysis
|
|
353
|
+
```python
|
|
354
|
+
def analyze_commit_changes():
|
|
355
|
+
"""Analyze changes before commit"""
|
|
356
|
+
staged_changes = get_staged_changes()
|
|
357
|
+
|
|
358
|
+
Skill("moai-change-logger")
|
|
359
|
+
|
|
360
|
+
analysis = {
|
|
361
|
+
"total_files": len(staged_changes),
|
|
362
|
+
"categories": categorize_changes(staged_changes),
|
|
363
|
+
"impact": analyze_change_impact(staged_changes),
|
|
364
|
+
"quality_checks": run_quality_checks(staged_changes),
|
|
365
|
+
"recommendations": generate_commit_recommendations(staged_changes)
|
|
366
|
+
}
|
|
367
|
+
|
|
368
|
+
display_commit_analysis(analysis)
|
|
369
|
+
|
|
370
|
+
return analysis
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
### Example 3: Release Change Summary
|
|
374
|
+
```python
|
|
375
|
+
def generate_release_summary():
|
|
376
|
+
"""Generate comprehensive release change summary"""
|
|
377
|
+
Skill("moai-change-logger")
|
|
378
|
+
|
|
379
|
+
# Get changes since last release
|
|
380
|
+
changes = get_changes_since_last_release()
|
|
381
|
+
|
|
382
|
+
summary = {
|
|
383
|
+
"release_version": get_next_version(),
|
|
384
|
+
"changes_count": len(changes),
|
|
385
|
+
"categories": categorize_changes(changes),
|
|
386
|
+
"significance_distribution": analyze_significance_distribution(changes),
|
|
387
|
+
"contributors": identify_contributors(changes),
|
|
388
|
+
"risk_assessment": assess_release_risks(changes),
|
|
389
|
+
"testing_coverage": assess_testing_coverage(changes),
|
|
390
|
+
"documentation_updates": check_documentation_updates(changes)
|
|
391
|
+
}
|
|
392
|
+
|
|
393
|
+
generate_release_notes(summary)
|
|
394
|
+
save_change_archive(summary)
|
|
395
|
+
|
|
396
|
+
return summary
|
|
397
|
+
```
|
|
398
|
+
|
|
399
|
+
---
|
|
400
|
+
|
|
401
|
+
## Report Generation
|
|
402
|
+
|
|
403
|
+
### 1. Daily Change Report
|
|
404
|
+
```python
|
|
405
|
+
def generate_daily_report():
|
|
406
|
+
"""Generate daily change activity report"""
|
|
407
|
+
Skill("moai-change-logger")
|
|
408
|
+
|
|
409
|
+
daily_changes = get_changes_for_period("daily")
|
|
410
|
+
|
|
411
|
+
report = {
|
|
412
|
+
"date": datetime.now().strftime("%Y-%m-%d"),
|
|
413
|
+
"summary": {
|
|
414
|
+
"total_changes": len(daily_changes),
|
|
415
|
+
"files_modified": count_modified_files(daily_changes),
|
|
416
|
+
"lines_added": sum(c.lines_added for c in daily_changes),
|
|
417
|
+
"lines_removed": sum(c.lines_removed for c in daily_changes)
|
|
418
|
+
},
|
|
419
|
+
"categories": categorize_changes(daily_changes),
|
|
420
|
+
"significant_changes": [c for c in daily_changes if c.significance > 0.5],
|
|
421
|
+
"productivity_metrics": calculate_daily_productivity(daily_changes)
|
|
422
|
+
}
|
|
423
|
+
|
|
424
|
+
save_daily_report(report)
|
|
425
|
+
return report
|
|
426
|
+
```
|
|
427
|
+
|
|
428
|
+
### 2. Weekly Project Analysis
|
|
429
|
+
```python
|
|
430
|
+
def generate_weekly_analysis():
|
|
431
|
+
"""Generate comprehensive weekly project analysis"""
|
|
432
|
+
Skill("moai-change-logger")
|
|
433
|
+
|
|
434
|
+
weekly_changes = get_changes_for_period("weekly")
|
|
435
|
+
|
|
436
|
+
analysis = {
|
|
437
|
+
"week_start": get_week_start(),
|
|
438
|
+
"week_end": get_week_end(),
|
|
439
|
+
"development_velocity": calculate_weekly_velocity(weekly_changes),
|
|
440
|
+
"quality_trends": analyze_weekly_quality_trends(weekly_changes),
|
|
441
|
+
"team_activity": analyze_team_activity(weekly_changes),
|
|
442
|
+
"risk_indicators": identify_weekly_risks(weekly_changes),
|
|
443
|
+
"achievements": highlight_weekly_achievements(weekly_changes),
|
|
444
|
+
"improvement_areas": identify_improvement_opportunities(weekly_changes)
|
|
445
|
+
}
|
|
446
|
+
|
|
447
|
+
generate_weekly_dashboard(analysis)
|
|
448
|
+
return analysis
|
|
449
|
+
```
|
|
450
|
+
|
|
451
|
+
---
|
|
452
|
+
|
|
453
|
+
## Storage and Retrieval
|
|
454
|
+
|
|
455
|
+
### 1. Change Storage Format
|
|
456
|
+
```python
|
|
457
|
+
def store_change_record(change_record):
|
|
458
|
+
"""Store change record in structured format"""
|
|
459
|
+
change_data = {
|
|
460
|
+
"id": generate_change_id(),
|
|
461
|
+
"timestamp": change_record.timestamp,
|
|
462
|
+
"file_path": change_record.file_path,
|
|
463
|
+
"change_type": change_record.type,
|
|
464
|
+
"significance": change_record.significance,
|
|
465
|
+
"category": change_record.category,
|
|
466
|
+
"author": change_record.author,
|
|
467
|
+
"commit_hash": change_record.commit_hash,
|
|
468
|
+
"metadata": {
|
|
469
|
+
"lines_added": change_record.lines_added,
|
|
470
|
+
"lines_removed": change_record.lines_removed,
|
|
471
|
+
"file_size_delta": change_record.size_delta,
|
|
472
|
+
"tags": change_record.tags
|
|
473
|
+
}
|
|
474
|
+
}
|
|
475
|
+
|
|
476
|
+
# Store in change log database
|
|
477
|
+
save_to_change_log(change_data)
|
|
478
|
+
|
|
479
|
+
# Update indexes
|
|
480
|
+
update_search_indexes(change_data)
|
|
481
|
+
update_category_indexes(change_data)
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
### 2. Change Retrieval
|
|
485
|
+
```python
|
|
486
|
+
def query_changes(query_params):
|
|
487
|
+
"""Query changes based on various criteria"""
|
|
488
|
+
filters = []
|
|
489
|
+
|
|
490
|
+
if query_params.get("date_range"):
|
|
491
|
+
filters.append(date_range_filter(query_params["date_range"]))
|
|
492
|
+
|
|
493
|
+
if query_params.get("categories"):
|
|
494
|
+
filters.append(category_filter(query_params["categories"]))
|
|
495
|
+
|
|
496
|
+
if query_params.get("significance_threshold"):
|
|
497
|
+
filters.append(significance_filter(query_params["significance_threshold"]))
|
|
498
|
+
|
|
499
|
+
if query_params.get("file_pattern"):
|
|
500
|
+
filters.append(file_pattern_filter(query_params["file_pattern"]))
|
|
501
|
+
|
|
502
|
+
if query_params.get("author"):
|
|
503
|
+
filters.append(author_filter(query_params["author"]))
|
|
504
|
+
|
|
505
|
+
results = apply_filters(filters)
|
|
506
|
+
return sort_results(results, query_params.get("sort_by", "timestamp"))
|
|
507
|
+
```
|
|
508
|
+
|
|
509
|
+
---
|
|
510
|
+
|
|
511
|
+
## Usage Examples
|
|
512
|
+
|
|
513
|
+
### Example 1: Track Specific File Changes
|
|
514
|
+
```python
|
|
515
|
+
# User wants to track changes to authentication system
|
|
516
|
+
Skill("moai-change-logger")
|
|
517
|
+
|
|
518
|
+
auth_changes = query_changes({
|
|
519
|
+
"file_pattern": "*auth*",
|
|
520
|
+
"date_range": "last_7_days",
|
|
521
|
+
"categories": ["feature_development", "security", "bug_fixes"]
|
|
522
|
+
})
|
|
523
|
+
|
|
524
|
+
# Display authentication system evolution
|
|
525
|
+
display_change_timeline(auth_changes)
|
|
526
|
+
```
|
|
527
|
+
|
|
528
|
+
### Example 2: Compliance Audit
|
|
529
|
+
```python
|
|
530
|
+
# Generate compliance audit for last month
|
|
531
|
+
Skill("moai-change-logger")
|
|
532
|
+
|
|
533
|
+
compliance_report = generate_compliance_report()
|
|
534
|
+
audit_trail = generate_audit_log("monthly")
|
|
535
|
+
|
|
536
|
+
# Check for compliance issues
|
|
537
|
+
issues = identify_compliance_issues(compliance_report, audit_trail)
|
|
538
|
+
|
|
539
|
+
if issues:
|
|
540
|
+
display_compliance_alerts(issues)
|
|
541
|
+
else:
|
|
542
|
+
display_compliance_status("compliant")
|
|
543
|
+
```
|
|
544
|
+
|
|
545
|
+
### Example 3: Project Health Analysis
|
|
546
|
+
```python
|
|
547
|
+
# Analyze project health based on recent changes
|
|
548
|
+
Skill("moai-change-logger")
|
|
549
|
+
|
|
550
|
+
recent_changes = get_changes_for_period("last_30_days")
|
|
551
|
+
health_analysis = {
|
|
552
|
+
"code_quality": assess_code_quality_trends(recent_changes),
|
|
553
|
+
"development_velocity": calculate_velocity_trends(recent_changes),
|
|
554
|
+
"risk_indicators": identify_risk_patterns(recent_changes),
|
|
555
|
+
"team_productivity": assess_productivity_patterns(recent_changes)
|
|
556
|
+
}
|
|
557
|
+
|
|
558
|
+
display_project_health_dashboard(health_analysis)
|
|
559
|
+
```
|
|
560
|
+
|
|
561
|
+
---
|
|
562
|
+
|
|
563
|
+
**End of Skill** | Comprehensive change tracking for audit, analysis, and project management
|