oh-my-codex-cli 0.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.agent/skills/agent-kb/HOW_TO_USE.md +428 -0
- package/.agent/skills/agent-kb/README.md +46 -0
- package/.agent/skills/agent-kb/SKILL.md +128 -0
- package/.agent/skills/agent-kb/references/intelligent-analysis-explained.md +333 -0
- package/.agent/skills/agent-kb/references/query-optimization.md +225 -0
- package/.agent/skills/aireview/SKILL.md +704 -0
- package/.agent/skills/analyze/SKILL.md +81 -0
- package/.agent/skills/architect-planner/HOW_TO_USE.md +238 -0
- package/.agent/skills/architect-planner/README.md +41 -0
- package/.agent/skills/architect-planner/SKILL.md +539 -0
- package/.agent/skills/auto-mbti/SKILL.md +291 -0
- package/.agent/skills/autopilot/SKILL.md +222 -0
- package/.agent/skills/backend-patterns/SKILL.md +602 -0
- package/.agent/skills/bdd-generator/README.md +78 -0
- package/.agent/skills/bdd-generator/SKILL.md +436 -0
- package/.agent/skills/brainstorming/HOW_TO_USE.md +289 -0
- package/.agent/skills/brainstorming/README.md +41 -0
- package/.agent/skills/brainstorming/SKILL.md +165 -0
- package/.agent/skills/build-fix/SKILL.md +190 -0
- package/.agent/skills/cancel/SKILL.md +658 -0
- package/.agent/skills/checkpoint/SKILL.md +94 -0
- package/.agent/skills/code-review/SKILL.md +273 -0
- package/.agent/skills/coding-standards/SKILL.md +535 -0
- package/.agent/skills/conductor/SKILL.md +128 -0
- package/.agent/skills/conductor/commands/conductor/implement.toml +358 -0
- package/.agent/skills/conductor/commands/conductor/newTrack.toml +142 -0
- package/.agent/skills/conductor/commands/conductor/revert.toml +123 -0
- package/.agent/skills/conductor/commands/conductor/setup.toml +429 -0
- package/.agent/skills/conductor/commands/conductor/status.toml +57 -0
- package/.agent/skills/conductor/scripts/install.sh +89 -0
- package/.agent/skills/conductor/templates/code_styleguides/csharp.md +115 -0
- package/.agent/skills/conductor/templates/code_styleguides/dart.md +238 -0
- package/.agent/skills/conductor/templates/code_styleguides/general.md +23 -0
- package/.agent/skills/conductor/templates/code_styleguides/go.md +48 -0
- package/.agent/skills/conductor/templates/code_styleguides/html-css.md +49 -0
- package/.agent/skills/conductor/templates/code_styleguides/javascript.md +51 -0
- package/.agent/skills/conductor/templates/code_styleguides/python.md +37 -0
- package/.agent/skills/conductor/templates/code_styleguides/typescript.md +43 -0
- package/.agent/skills/conductor/templates/rules/README.md +23 -0
- package/.agent/skills/conductor/templates/rules/agents.md +49 -0
- package/.agent/skills/conductor/templates/rules/coding-style.md +70 -0
- package/.agent/skills/conductor/templates/rules/dev.md +20 -0
- package/.agent/skills/conductor/templates/rules/git-workflow.md +45 -0
- package/.agent/skills/conductor/templates/rules/hooks.md +6 -0
- package/.agent/skills/conductor/templates/rules/patterns.md +55 -0
- package/.agent/skills/conductor/templates/rules/performance.md +47 -0
- package/.agent/skills/conductor/templates/rules/research.md +26 -0
- package/.agent/skills/conductor/templates/rules/review.md +22 -0
- package/.agent/skills/conductor/templates/rules/security.md +36 -0
- package/.agent/skills/conductor/templates/rules/testing.md +30 -0
- package/.agent/skills/conductor/templates/workflow.md +333 -0
- package/.agent/skills/consensus/HOW_TO_USE.md +191 -0
- package/.agent/skills/consensus/README.md +41 -0
- package/.agent/skills/consensus/SKILL.md +317 -0
- package/.agent/skills/content-research-writer/SKILL.md +537 -0
- package/.agent/skills/debug-analysis/SKILL.md +331 -0
- package/.agent/skills/deepinit/SKILL.md +347 -0
- package/.agent/skills/deepsearch/SKILL.md +56 -0
- package/.agent/skills/doctor/SKILL.md +158 -0
- package/.agent/skills/drawio/EXAMPLES.md +382 -0
- package/.agent/skills/drawio/QUICK_START.md +237 -0
- package/.agent/skills/drawio/README.md +315 -0
- package/.agent/skills/drawio/SETUP_GUIDE.md +254 -0
- package/.agent/skills/drawio/SKILL.md +1176 -0
- package/.agent/skills/e2e/SKILL.md +396 -0
- package/.agent/skills/ecomode/SKILL.md +160 -0
- package/.agent/skills/electron-driver/SKILL.md +144 -0
- package/.agent/skills/electron-driver/scripts/driver-template.js +71 -0
- package/.agent/skills/eval/SKILL.md +140 -0
- package/.agent/skills/eval-harness/SKILL.md +242 -0
- package/.agent/skills/evolve/SKILL.md +213 -0
- package/.agent/skills/frontend-design/SKILL.md +42 -0
- package/.agent/skills/frontend-patterns/SKILL.md +646 -0
- package/.agent/skills/frontend-ui-ux/SKILL.md +70 -0
- package/.agent/skills/git-master/SKILL.md +75 -0
- package/.agent/skills/help/SKILL.md +89 -0
- package/.agent/skills/iterative-retrieval/SKILL.md +217 -0
- package/.agent/skills/local-skills-setup/SKILL.md +483 -0
- package/.agent/skills/log-analyzer/SKILL.md +187 -0
- package/.agent/skills/mcp-setup/SKILL.md +226 -0
- package/.agent/skills/multi-model-research/HOW_TO_USE.md +614 -0
- package/.agent/skills/multi-model-research/README.md +233 -0
- package/.agent/skills/multi-model-research/SKILL.md +541 -0
- package/.agent/skills/multi-model-research/references/troubleshooting.md +415 -0
- package/.agent/skills/note/SKILL.md +80 -0
- package/.agent/skills/omc-setup/SKILL.md +219 -0
- package/.agent/skills/orchestrate/SKILL.md +620 -0
- package/.agent/skills/patent-workflow/IMPLEMENTATION_SUMMARY.md +500 -0
- package/.agent/skills/patent-workflow/README.md +455 -0
- package/.agent/skills/patent-workflow/SKILL.md +1036 -0
- package/.agent/skills/patent-workflow/tools/irr_checker.py +260 -0
- package/.agent/skills/patent-workflow/tools/sample_terminology.json +49 -0
- package/.agent/skills/patent-workflow/tools/term_checker.py +355 -0
- package/.agent/skills/pattern-recognition/SKILL.md +792 -0
- package/.agent/skills/pipeline/SKILL.md +448 -0
- package/.agent/skills/plan/SKILL.md +309 -0
- package/.agent/skills/planning-methodology/SKILL.md +370 -0
- package/.agent/skills/planning-with-files/SKILL.md +210 -0
- package/.agent/skills/planning-with-files/examples.md +202 -0
- package/.agent/skills/planning-with-files/reference.md +218 -0
- package/.agent/skills/planning-with-files/scripts/check-complete.ps1 +42 -0
- package/.agent/skills/planning-with-files/scripts/check-complete.sh +44 -0
- package/.agent/skills/planning-with-files/scripts/init-session.ps1 +120 -0
- package/.agent/skills/planning-with-files/scripts/init-session.sh +120 -0
- package/.agent/skills/planning-with-files/scripts/session-catchup.py +208 -0
- package/.agent/skills/planning-with-files/templates/findings.md +95 -0
- package/.agent/skills/planning-with-files/templates/progress.md +114 -0
- package/.agent/skills/planning-with-files/templates/task_plan.md +132 -0
- package/.agent/skills/project-analyze/CLAUDE.md +18 -0
- package/.agent/skills/project-analyze/HOW_TO_USE.md +145 -0
- package/.agent/skills/project-analyze/README.md +42 -0
- package/.agent/skills/project-analyze/SKILL.md +289 -0
- package/.agent/skills/project-analyze/SKILL.md.backup +287 -0
- package/.agent/skills/project-analyze/SKILL.md.backup_20260105_093646 +287 -0
- package/.agent/skills/project-analyze/assets/analysis-report-template.md +433 -0
- package/.agent/skills/project-analyze/references/analysis-patterns.md +422 -0
- package/.agent/skills/project-analyze/references/projectmind-explained.md +535 -0
- package/.agent/skills/project-session-manager/SKILL.md +428 -0
- package/.agent/skills/project-session-manager/lib/config.sh +86 -0
- package/.agent/skills/project-session-manager/lib/parse.sh +121 -0
- package/.agent/skills/project-session-manager/lib/session.sh +132 -0
- package/.agent/skills/project-session-manager/lib/tmux.sh +103 -0
- package/.agent/skills/project-session-manager/lib/worktree.sh +171 -0
- package/.agent/skills/project-session-manager/psm.sh +629 -0
- package/.agent/skills/project-session-manager/templates/feature.md +56 -0
- package/.agent/skills/project-session-manager/templates/issue-fix.md +57 -0
- package/.agent/skills/project-session-manager/templates/pr-review.md +65 -0
- package/.agent/skills/project-session-manager/templates/projects.json +19 -0
- package/.agent/skills/quality-check/HOW_TO_USE.md +171 -0
- package/.agent/skills/quality-check/README.md +50 -0
- package/.agent/skills/quality-check/SKILL.md +240 -0
- package/.agent/skills/quality-check/SKILL.md.backup +238 -0
- package/.agent/skills/quality-check/SKILL.md.backup_20260105_093646 +238 -0
- package/.agent/skills/quality-check/assets/quality-report-template.md +437 -0
- package/.agent/skills/quality-check/references/refactoring-patterns.md +550 -0
- package/.agent/skills/quality-check/references/scoring-criteria.md +454 -0
- package/.agent/skills/quality-validation/SKILL.md +519 -0
- package/.agent/skills/quality-validation/SKILL.md.backup +573 -0
- package/.agent/skills/quality-validation/SKILL.md.backup_20260105_093646 +573 -0
- package/.agent/skills/ralph/SKILL.md +236 -0
- package/.agent/skills/ralph-init/SKILL.md +78 -0
- package/.agent/skills/ralplan/SKILL.md +58 -0
- package/.agent/skills/refactor-clean/SKILL.md +49 -0
- package/.agent/skills/release/SKILL.md +84 -0
- package/.agent/skills/research/SKILL.md +526 -0
- package/.agent/skills/research-methodology/SKILL.md +268 -0
- package/.agent/skills/review/SKILL.md +53 -0
- package/.agent/skills/security-review/SKILL.md +509 -0
- package/.agent/skills/security-review/cloud-infrastructure-security.md +361 -0
- package/.agent/skills/setup-pm/SKILL.md +102 -0
- package/.agent/skills/skill/SKILL.md +424 -0
- package/.agent/skills/skill-create/SKILL.md +209 -0
- package/.agent/skills/skill-debugger/HOW_TO_USE.md +244 -0
- package/.agent/skills/skill-debugger/README.md +44 -0
- package/.agent/skills/skill-debugger/SKILL.md +326 -0
- package/.agent/skills/skill-debugger/diagnostic_checklist.md +115 -0
- package/.agent/skills/skill-development/SKILL.md +661 -0
- package/.agent/skills/skill-development/references/skill-creator-original.md +209 -0
- package/.agent/skills/skill-doc-generator/README.md +37 -0
- package/.agent/skills/skill-doc-generator/SKILL.md +331 -0
- package/.agent/skills/skill-quality-analyzer/HOW_TO_USE.md +243 -0
- package/.agent/skills/skill-quality-analyzer/README.md +61 -0
- package/.agent/skills/skill-quality-analyzer/SKILL.md +247 -0
- package/.agent/skills/skill-quality-analyzer/analyzer.py +209 -0
- package/.agent/skills/skill-quality-analyzer/expected_output.json +81 -0
- package/.agent/skills/skill-quality-analyzer/sample_input.json +9 -0
- package/.agent/skills/skill-tester/README.md +46 -0
- package/.agent/skills/skill-tester/SKILL.md +345 -0
- package/.agent/skills/start-dev/SKILL.md +701 -0
- package/.agent/skills/swarm/SKILL.md +691 -0
- package/.agent/skills/task-kb-lookup/SKILL.md +211 -0
- package/.agent/skills/task-kb-record/SKILL.md +417 -0
- package/.agent/skills/tdd/SKILL.md +446 -0
- package/.agent/skills/tdd-generator/DEMO.md +516 -0
- package/.agent/skills/tdd-generator/README.md +89 -0
- package/.agent/skills/tdd-generator/SKILL.md +278 -0
- package/.agent/skills/tdd-workflow/SKILL.md +424 -0
- package/.agent/skills/test-coverage/SKILL.md +48 -0
- package/.agent/skills/thinkdeep/HOW_TO_USE.md +183 -0
- package/.agent/skills/thinkdeep/README.md +41 -0
- package/.agent/skills/thinkdeep/SKILL.md +343 -0
- package/.agent/skills/ui-ux-pro-max/SKILL.md +228 -0
- package/.agent/skills/ui-ux-pro-max/data/charts.csv +26 -0
- package/.agent/skills/ui-ux-pro-max/data/colors.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/landing.csv +31 -0
- package/.agent/skills/ui-ux-pro-max/data/products.csv +97 -0
- package/.agent/skills/ui-ux-pro-max/data/prompts.csv +24 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/flutter.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/html-tailwind.csv +56 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/nextjs.csv +53 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react-native.csv +52 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/react.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/svelte.csv +54 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/swiftui.csv +51 -0
- package/.agent/skills/ui-ux-pro-max/data/stacks/vue.csv +50 -0
- package/.agent/skills/ui-ux-pro-max/data/styles.csv +59 -0
- package/.agent/skills/ui-ux-pro-max/data/typography.csv +58 -0
- package/.agent/skills/ui-ux-pro-max/data/ux-guidelines.csv +100 -0
- package/.agent/skills/ui-ux-pro-max/scripts/core.py +236 -0
- package/.agent/skills/ui-ux-pro-max/scripts/search.py +61 -0
- package/.agent/skills/ultrapilot/SKILL.md +647 -0
- package/.agent/skills/ultraqa/SKILL.md +152 -0
- package/.agent/skills/ultrawork/SKILL.md +123 -0
- package/.agent/skills/update-codemaps/SKILL.md +38 -0
- package/.agent/skills/update-docs/SKILL.md +52 -0
- package/.agent/skills/verification-loop/SKILL.md +140 -0
- package/.agent/skills/verify/SKILL.md +80 -0
- package/.agent/skills/writer-memory/SKILL.md +459 -0
- package/.agent/skills/writer-memory/lib/character-tracker.ts +338 -0
- package/.agent/skills/writer-memory/lib/memory-manager.ts +804 -0
- package/.agent/skills/writer-memory/lib/relationship-graph.ts +400 -0
- package/.agent/skills/writer-memory/lib/scene-organizer.ts +544 -0
- package/.agent/skills/writer-memory/lib/synopsis-builder.ts +339 -0
- package/.agent/skills/writer-memory/templates/synopsis-template.md +46 -0
- package/.governance/skill-lint.allowlist +4 -0
- package/.governance/skill-llm.allowlist +4 -0
- package/AGENTS.md +59 -0
- package/LICENSE +21 -0
- package/README.md +169 -0
- package/README.zh.md +145 -0
- package/bin/omcodex.js +8 -0
- package/commands/conductor/implement.toml +358 -0
- package/commands/conductor/newTrack.toml +142 -0
- package/commands/conductor/revert.toml +123 -0
- package/commands/conductor/setup.toml +429 -0
- package/commands/conductor/status.toml +57 -0
- package/docs/ALIGNMENT.md +40 -0
- package/docs/CODEX.md +133 -0
- package/docs/NOTIFY.md +81 -0
- package/docs/SKILL_GOVERNANCE.md +72 -0
- package/docs/SKILL_GOVERNANCE_FRAMEWORK.md +182 -0
- package/docs/SKILL_GOVERNANCE_FRAMEWORK.zh.md +170 -0
- package/package.json +50 -0
- package/prompts/architect.md +105 -0
- package/prompts/executor.md +134 -0
- package/prompts/planner.md +113 -0
- package/scripts/check-skill-governance.sh +84 -0
- package/scripts/check-skill-llm-governance.js +302 -0
- package/scripts/eval-skills.js +217 -0
- package/scripts/generate-catalog-docs.js +95 -0
- package/scripts/generate-codex-mcp-config.sh +22 -0
- package/scripts/install-codex-force.sh +5 -0
- package/scripts/install-codex-incremental.sh +5 -0
- package/scripts/install-codex.sh +79 -0
- package/scripts/notify-dispatch.js +15 -0
- package/scripts/setup-package-manager.js +137 -0
- package/src/catalog/generated/public-catalog.json +547 -0
- package/src/catalog/manifest.json +542 -0
- package/src/catalog/reader.js +43 -0
- package/src/catalog/schema.js +79 -0
- package/src/cli/doctor.js +62 -0
- package/src/cli/index.js +85 -0
- package/src/cli/notify.js +127 -0
- package/src/cli/route.js +43 -0
- package/src/cli/setup.js +155 -0
- package/src/cli/team.js +125 -0
- package/src/config/generator.js +119 -0
- package/src/mcp/memory-server.js +241 -0
- package/src/mcp/state-server.js +112 -0
- package/src/mcp/trace-server.js +168 -0
- package/src/notify/dispatch.js +74 -0
- package/src/notify/extensibility/dispatcher.js +113 -0
- package/src/notify/extensibility/events.js +15 -0
- package/src/notify/extensibility/loader.js +54 -0
- package/src/router/skill-router.js +90 -0
- package/src/team/auto-advance.js +72 -0
- package/src/team/orchestrator.js +82 -0
- package/src/team/state-store.js +33 -0
- package/src/utils/paths.js +33 -0
- package/templates/AGENTS.md +15 -0
- package/templates/catalog-manifest.json +542 -0
- package/templates/code_styleguides/csharp.md +115 -0
- package/templates/code_styleguides/dart.md +238 -0
- package/templates/code_styleguides/general.md +23 -0
- package/templates/code_styleguides/go.md +48 -0
- package/templates/code_styleguides/html-css.md +49 -0
- package/templates/code_styleguides/javascript.md +51 -0
- package/templates/code_styleguides/python.md +37 -0
- package/templates/code_styleguides/typescript.md +43 -0
- package/templates/rules/README.md +23 -0
- package/templates/rules/agents.md +49 -0
- package/templates/rules/coding-style.md +70 -0
- package/templates/rules/dev.md +20 -0
- package/templates/rules/git-workflow.md +45 -0
- package/templates/rules/notify.md +6 -0
- package/templates/rules/patterns.md +55 -0
- package/templates/rules/performance.md +47 -0
- package/templates/rules/research.md +26 -0
- package/templates/rules/review.md +22 -0
- package/templates/rules/security.md +36 -0
- package/templates/rules/testing.md +30 -0
- package/templates/workflow.md +333 -0
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Project Intelligence Analysis
|
|
3
|
+
description: Analyze project architecture, dependencies, and structure using ProjectMind knowledge graph. Use when user asks about project structure, wants to understand codebases, or needs impact analysis before making changes. Provides 40s intelligent project understanding.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Project Intelligence Analysis Skill
|
|
7
|
+
|
|
8
|
+
## When to Use This Skill
|
|
9
|
+
|
|
10
|
+
Automatically invoke this Skill when:
|
|
11
|
+
- User asks "explain this project", "how does this work?"
|
|
12
|
+
- User wants to understand architecture or module structure
|
|
13
|
+
- User needs impact analysis before refactoring
|
|
14
|
+
- User asks about dependencies or file relationships
|
|
15
|
+
- User mentions "high-risk files", "critical modules"
|
|
16
|
+
- Keywords: "project structure", "architecture", "dependencies", "impact", "understand codebase"
|
|
17
|
+
|
|
18
|
+
## What This Skill Does
|
|
19
|
+
|
|
20
|
+
**ProjectMind Intelligence** provides:
|
|
21
|
+
1. **Knowledge Graph Analysis** - Deep project structure understanding
|
|
22
|
+
2. **Dependency Mapping** - Complete relationship visualization
|
|
23
|
+
3. **Risk Assessment** - High-risk file identification
|
|
24
|
+
4. **Impact Prediction** - Change impact estimation
|
|
25
|
+
5. **Smart Caching** - 40s first run, <1s subsequent queries
|
|
26
|
+
|
|
27
|
+
## Instructions
|
|
28
|
+
|
|
29
|
+
When this Skill is invoked:
|
|
30
|
+
|
|
31
|
+
### Step 1: Extract the Query and Project Path
|
|
32
|
+
|
|
33
|
+
Identify:
|
|
34
|
+
- **User's Question**: What they want to know
|
|
35
|
+
- **Project Path**: Usually current directory `$(pwd)` or user-specified path
|
|
36
|
+
|
|
37
|
+
### Step 2: Execute the Analysis
|
|
38
|
+
|
|
39
|
+
**IMPORTANT**: You MUST execute this Python command:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
python /Users/WangQiao/claude-enhanced-quality/hybrid_intelligent_system_v2.py "user's question" [project_path]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If project path is not specified, use current directory:
|
|
46
|
+
```bash
|
|
47
|
+
python /Users/WangQiao/claude-enhanced-quality/hybrid_intelligent_system_v2.py "user's question" $(pwd)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Step 3: Present Results
|
|
51
|
+
|
|
52
|
+
Format the output as:
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
## 🧠 Project Intelligence Analysis
|
|
56
|
+
|
|
57
|
+
**Query**: [User's Question]
|
|
58
|
+
**Project**: [Project Path]
|
|
59
|
+
**Analysis Time**: [Cached/40s] ⚡
|
|
60
|
+
|
|
61
|
+
### 📊 Project Overview
|
|
62
|
+
|
|
63
|
+
- **Total Files**: XXX
|
|
64
|
+
- **Lines of Code**: XXX,XXX
|
|
65
|
+
- **Main Technologies**: [React, TypeScript, Node.js, etc.]
|
|
66
|
+
- **Architecture Pattern**: [MVC, Microservices, Monolith, etc.]
|
|
67
|
+
|
|
68
|
+
### 🎯 Answer to Your Question
|
|
69
|
+
|
|
70
|
+
[Direct answer to the user's specific question based on ProjectMind analysis]
|
|
71
|
+
|
|
72
|
+
### 🏗️ Architecture Insights
|
|
73
|
+
|
|
74
|
+
**Module Structure**:
|
|
75
|
+
```
|
|
76
|
+
Core Modules:
|
|
77
|
+
├── [Module 1] (XX files, core business logic)
|
|
78
|
+
├── [Module 2] (XX files, data layer)
|
|
79
|
+
└── [Module 3] (XX files, API layer)
|
|
80
|
+
|
|
81
|
+
Supporting Modules:
|
|
82
|
+
├── [Utils] (XX files)
|
|
83
|
+
└── [Components] (XX files)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**Key Relationships**:
|
|
87
|
+
- [Module A] depends heavily on [Module B]
|
|
88
|
+
- [File X] is central hub (XX dependencies)
|
|
89
|
+
- [Component Y] is isolated (low coupling)
|
|
90
|
+
|
|
91
|
+
### ⚠️ High-Risk Areas
|
|
92
|
+
|
|
93
|
+
| File/Module | Risk Level | Reason | Dependencies |
|
|
94
|
+
|-------------|------------|--------|--------------|
|
|
95
|
+
| [Path 1] | 🔴 Critical | Core auth logic, 45 dependencies | 45 files |
|
|
96
|
+
| [Path 2] | 🟠 High | Payment processing | 32 files |
|
|
97
|
+
| [Path 3] | 🟡 Medium | Complex business rules | 18 files |
|
|
98
|
+
|
|
99
|
+
### 💡 Recommendations
|
|
100
|
+
|
|
101
|
+
**If Planning Changes**:
|
|
102
|
+
1. **[Specific Module]**
|
|
103
|
+
- Files Affected: XX files
|
|
104
|
+
- Risk Level: [Low/Medium/High]
|
|
105
|
+
- Test Requirements: [Unit/Integration/E2E]
|
|
106
|
+
- Estimated Effort: X hours
|
|
107
|
+
|
|
108
|
+
2. **[Another Module]**
|
|
109
|
+
- Impact: [Detailed impact analysis]
|
|
110
|
+
- Mitigation: [How to reduce risk]
|
|
111
|
+
|
|
112
|
+
**Architecture Improvements**:
|
|
113
|
+
- [Specific decoupling opportunity]
|
|
114
|
+
- [Specific pattern improvement]
|
|
115
|
+
- [Specific technical debt reduction]
|
|
116
|
+
|
|
117
|
+
### 🔍 Dependency Visualization
|
|
118
|
+
|
|
119
|
+
```mermaid
|
|
120
|
+
graph TD
|
|
121
|
+
A[Core Module] --> B[Feature 1]
|
|
122
|
+
A --> C[Feature 2]
|
|
123
|
+
B --> D[Util 1]
|
|
124
|
+
C --> D
|
|
125
|
+
B --> E[DB Layer]
|
|
126
|
+
C --> E
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
(Note: Mermaid diagram representing key dependencies)
|
|
130
|
+
|
|
131
|
+
### 🚨 Change Impact Assessment
|
|
132
|
+
|
|
133
|
+
**Before modifying [specific file/module]**:
|
|
134
|
+
- ✅ Test these files: [List]
|
|
135
|
+
- ⚠️ Watch for side effects in: [List]
|
|
136
|
+
- 🔍 Review integration points: [List]
|
|
137
|
+
- ⏱️ Estimated impact: [Low/Medium/High]
|
|
138
|
+
|
|
139
|
+
### 📈 Technical Metrics
|
|
140
|
+
|
|
141
|
+
- **Modularity Score**: XX/100
|
|
142
|
+
- **Coupling Level**: [Low/Medium/High]
|
|
143
|
+
- **Code Churn**: [Files frequently changed]
|
|
144
|
+
- **Critical Path**: [Most important business logic files]
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Step 4: Provide Actionable Guidance
|
|
148
|
+
|
|
149
|
+
Offer specific next steps:
|
|
150
|
+
- Code locations to examine
|
|
151
|
+
- Tests to run before changes
|
|
152
|
+
- Files to backup before refactoring
|
|
153
|
+
- Team members to consult (if AI annotations present)
|
|
154
|
+
|
|
155
|
+
## Examples
|
|
156
|
+
|
|
157
|
+
### Example 1: Understanding Architecture
|
|
158
|
+
**User**: "Explain how the authentication system works"
|
|
159
|
+
|
|
160
|
+
**You execute**:
|
|
161
|
+
```bash
|
|
162
|
+
python ~/claude-enhanced-quality/hybrid_intelligent_system_v2.py "authentication system flow" $(pwd)
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**You present**: Architecture explanation with module relationships, file paths, and authentication flow diagram.
|
|
166
|
+
|
|
167
|
+
### Example 2: Refactoring Impact
|
|
168
|
+
**User**: "I want to refactor the database layer, what's the impact?"
|
|
169
|
+
|
|
170
|
+
**You execute**:
|
|
171
|
+
```bash
|
|
172
|
+
python ~/claude-enhanced-quality/hybrid_intelligent_system_v2.py "database layer refactoring impact" $(pwd)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**You present**: Impact analysis showing XX affected files, risk assessment, and refactoring strategy.
|
|
176
|
+
|
|
177
|
+
### Example 3: Finding High-Risk Code
|
|
178
|
+
**User**: "What are the most critical files in this project?"
|
|
179
|
+
|
|
180
|
+
**You execute**:
|
|
181
|
+
```bash
|
|
182
|
+
python ~/claude-enhanced-quality/hybrid_intelligent_system_v2.py "identify critical and high-risk files" $(pwd)
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**You present**: List of high-risk files with dependency counts, complexity scores, and business criticality.
|
|
186
|
+
|
|
187
|
+
## Performance Characteristics
|
|
188
|
+
|
|
189
|
+
- **First Analysis**: ~40 seconds (deep project scan)
|
|
190
|
+
- **Cached Queries**: <1 second (instant response)
|
|
191
|
+
- **File Limit**: 300 files deep analysis
|
|
192
|
+
- **Cache Invalidation**: Automatic on file changes
|
|
193
|
+
|
|
194
|
+
## Smart Caching System
|
|
195
|
+
|
|
196
|
+
The system automatically caches:
|
|
197
|
+
- ✅ Project structure analysis
|
|
198
|
+
- ✅ Dependency mappings
|
|
199
|
+
- ✅ Code entity relationships
|
|
200
|
+
- ✅ Risk assessments
|
|
201
|
+
|
|
202
|
+
Cache updates when:
|
|
203
|
+
- Files are modified
|
|
204
|
+
- Dependencies change
|
|
205
|
+
- Project structure updates
|
|
206
|
+
|
|
207
|
+
## Integration with Other Systems
|
|
208
|
+
|
|
209
|
+
### Git Memory Integration
|
|
210
|
+
- Tracks commit intentions automatically
|
|
211
|
+
- Analyzes team collaboration patterns
|
|
212
|
+
- Detects potentially conflicting changes
|
|
213
|
+
|
|
214
|
+
### CodeDNA Integration
|
|
215
|
+
- Project-level quality scoring
|
|
216
|
+
- Hotspot identification with quality metrics
|
|
217
|
+
- ROI-optimized refactoring prioritization
|
|
218
|
+
|
|
219
|
+
### AI-Specific Annotations
|
|
220
|
+
|
|
221
|
+
Recognizes and utilizes:
|
|
222
|
+
```typescript
|
|
223
|
+
/*@ai:risk=1-5|deps=file1,file2|core=true|chain=auth*/
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Annotation fields:
|
|
227
|
+
- `risk`: 1 (safe) to 5 (critical)
|
|
228
|
+
- `deps`: Key dependencies
|
|
229
|
+
- `core`: Core functionality flag
|
|
230
|
+
- `chain`: Business logic chain identifier
|
|
231
|
+
- `api`: API type (internal/external)
|
|
232
|
+
- `auth`: Authentication requirements
|
|
233
|
+
|
|
234
|
+
## Important Notes
|
|
235
|
+
|
|
236
|
+
- **Always execute** the Python command, don't simulate analysis
|
|
237
|
+
- **Use current directory** as default project path
|
|
238
|
+
- **Explain relationships**, not just list files
|
|
239
|
+
- **Provide visual diagrams** when helpful
|
|
240
|
+
- **Assess real impact**, not theoretical concerns
|
|
241
|
+
- **Offer specific actions**, not generic advice
|
|
242
|
+
|
|
243
|
+
## Common Analysis Queries
|
|
244
|
+
|
|
245
|
+
### Architecture Understanding
|
|
246
|
+
- "How does [feature] work?"
|
|
247
|
+
- "What's the data flow for [process]?"
|
|
248
|
+
- "Explain the module structure"
|
|
249
|
+
|
|
250
|
+
### Impact Analysis
|
|
251
|
+
- "Impact of changing [file/module]?"
|
|
252
|
+
- "What depends on [component]?"
|
|
253
|
+
- "Risk of refactoring [area]?"
|
|
254
|
+
|
|
255
|
+
### Code Navigation
|
|
256
|
+
- "Where is [functionality] implemented?"
|
|
257
|
+
- "Which files handle [feature]?"
|
|
258
|
+
- "What are the entry points?"
|
|
259
|
+
|
|
260
|
+
### Quality Assessment
|
|
261
|
+
- "What are the problem areas?"
|
|
262
|
+
- "Where should we focus refactoring?"
|
|
263
|
+
- "What's the technical debt?"
|
|
264
|
+
|
|
265
|
+
## Prerequisites
|
|
266
|
+
|
|
267
|
+
- Python environment
|
|
268
|
+
- ProjectMind V2 system installed
|
|
269
|
+
- Read access to project files
|
|
270
|
+
- Write access for caching (automatic)
|
|
271
|
+
|
|
272
|
+
## Fallback Strategy
|
|
273
|
+
|
|
274
|
+
**DO NOT use V1** (`hybrid_intelligent_system.py`) - it's deprecated
|
|
275
|
+
|
|
276
|
+
If V2 fails:
|
|
277
|
+
1. Check project path is correct
|
|
278
|
+
2. Verify Python environment
|
|
279
|
+
3. Examine error message
|
|
280
|
+
4. Report the issue
|
|
281
|
+
|
|
282
|
+
## Performance Tips
|
|
283
|
+
|
|
284
|
+
- First query takes 40s to build knowledge graph
|
|
285
|
+
- Subsequent queries are instant (cached)
|
|
286
|
+
- Narrow queries get faster responses
|
|
287
|
+
- Broader queries provide more context
|
|
@@ -0,0 +1,287 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: Project Intelligence Analysis
|
|
3
|
+
description: Analyze project architecture, dependencies, and structure using ProjectMind knowledge graph. Use when user asks about project structure, wants to understand codebases, or needs impact analysis before making changes. Provides 40s intelligent project understanding.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Project Intelligence Analysis Skill
|
|
7
|
+
|
|
8
|
+
## When to Use This Skill
|
|
9
|
+
|
|
10
|
+
Automatically invoke this Skill when:
|
|
11
|
+
- User asks "explain this project", "how does this work?"
|
|
12
|
+
- User wants to understand architecture or module structure
|
|
13
|
+
- User needs impact analysis before refactoring
|
|
14
|
+
- User asks about dependencies or file relationships
|
|
15
|
+
- User mentions "high-risk files", "critical modules"
|
|
16
|
+
- Keywords: "project structure", "architecture", "dependencies", "impact", "understand codebase"
|
|
17
|
+
|
|
18
|
+
## What This Skill Does
|
|
19
|
+
|
|
20
|
+
**ProjectMind Intelligence** provides:
|
|
21
|
+
1. **Knowledge Graph Analysis** - Deep project structure understanding
|
|
22
|
+
2. **Dependency Mapping** - Complete relationship visualization
|
|
23
|
+
3. **Risk Assessment** - High-risk file identification
|
|
24
|
+
4. **Impact Prediction** - Change impact estimation
|
|
25
|
+
5. **Smart Caching** - 40s first run, <1s subsequent queries
|
|
26
|
+
|
|
27
|
+
## Instructions
|
|
28
|
+
|
|
29
|
+
When this Skill is invoked:
|
|
30
|
+
|
|
31
|
+
### Step 1: Extract the Query and Project Path
|
|
32
|
+
|
|
33
|
+
Identify:
|
|
34
|
+
- **User's Question**: What they want to know
|
|
35
|
+
- **Project Path**: Usually current directory `$(pwd)` or user-specified path
|
|
36
|
+
|
|
37
|
+
### Step 2: Execute the Analysis
|
|
38
|
+
|
|
39
|
+
**IMPORTANT**: You MUST execute this Python command:
|
|
40
|
+
|
|
41
|
+
```bash
|
|
42
|
+
python /Users/WangQiao/claude-enhanced-quality/hybrid_intelligent_system_v2.py "user's question" [project_path]
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
If project path is not specified, use current directory:
|
|
46
|
+
```bash
|
|
47
|
+
python /Users/WangQiao/claude-enhanced-quality/hybrid_intelligent_system_v2.py "user's question" $(pwd)
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### Step 3: Present Results
|
|
51
|
+
|
|
52
|
+
Format the output as:
|
|
53
|
+
|
|
54
|
+
```markdown
|
|
55
|
+
## 🧠 Project Intelligence Analysis
|
|
56
|
+
|
|
57
|
+
**Query**: [User's Question]
|
|
58
|
+
**Project**: [Project Path]
|
|
59
|
+
**Analysis Time**: [Cached/40s] ⚡
|
|
60
|
+
|
|
61
|
+
### 📊 Project Overview
|
|
62
|
+
|
|
63
|
+
- **Total Files**: XXX
|
|
64
|
+
- **Lines of Code**: XXX,XXX
|
|
65
|
+
- **Main Technologies**: [React, TypeScript, Node.js, etc.]
|
|
66
|
+
- **Architecture Pattern**: [MVC, Microservices, Monolith, etc.]
|
|
67
|
+
|
|
68
|
+
### 🎯 Answer to Your Question
|
|
69
|
+
|
|
70
|
+
[Direct answer to the user's specific question based on ProjectMind analysis]
|
|
71
|
+
|
|
72
|
+
### 🏗️ Architecture Insights
|
|
73
|
+
|
|
74
|
+
**Module Structure**:
|
|
75
|
+
```
|
|
76
|
+
Core Modules:
|
|
77
|
+
├── [Module 1] (XX files, core business logic)
|
|
78
|
+
├── [Module 2] (XX files, data layer)
|
|
79
|
+
└── [Module 3] (XX files, API layer)
|
|
80
|
+
|
|
81
|
+
Supporting Modules:
|
|
82
|
+
├── [Utils] (XX files)
|
|
83
|
+
└── [Components] (XX files)
|
|
84
|
+
```
|
|
85
|
+
|
|
86
|
+
**Key Relationships**:
|
|
87
|
+
- [Module A] depends heavily on [Module B]
|
|
88
|
+
- [File X] is central hub (XX dependencies)
|
|
89
|
+
- [Component Y] is isolated (low coupling)
|
|
90
|
+
|
|
91
|
+
### ⚠️ High-Risk Areas
|
|
92
|
+
|
|
93
|
+
| File/Module | Risk Level | Reason | Dependencies |
|
|
94
|
+
|-------------|------------|--------|--------------|
|
|
95
|
+
| [Path 1] | 🔴 Critical | Core auth logic, 45 dependencies | 45 files |
|
|
96
|
+
| [Path 2] | 🟠 High | Payment processing | 32 files |
|
|
97
|
+
| [Path 3] | 🟡 Medium | Complex business rules | 18 files |
|
|
98
|
+
|
|
99
|
+
### 💡 Recommendations
|
|
100
|
+
|
|
101
|
+
**If Planning Changes**:
|
|
102
|
+
1. **[Specific Module]**
|
|
103
|
+
- Files Affected: XX files
|
|
104
|
+
- Risk Level: [Low/Medium/High]
|
|
105
|
+
- Test Requirements: [Unit/Integration/E2E]
|
|
106
|
+
- Estimated Effort: X hours
|
|
107
|
+
|
|
108
|
+
2. **[Another Module]**
|
|
109
|
+
- Impact: [Detailed impact analysis]
|
|
110
|
+
- Mitigation: [How to reduce risk]
|
|
111
|
+
|
|
112
|
+
**Architecture Improvements**:
|
|
113
|
+
- [Specific decoupling opportunity]
|
|
114
|
+
- [Specific pattern improvement]
|
|
115
|
+
- [Specific technical debt reduction]
|
|
116
|
+
|
|
117
|
+
### 🔍 Dependency Visualization
|
|
118
|
+
|
|
119
|
+
```mermaid
|
|
120
|
+
graph TD
|
|
121
|
+
A[Core Module] --> B[Feature 1]
|
|
122
|
+
A --> C[Feature 2]
|
|
123
|
+
B --> D[Util 1]
|
|
124
|
+
C --> D
|
|
125
|
+
B --> E[DB Layer]
|
|
126
|
+
C --> E
|
|
127
|
+
```
|
|
128
|
+
|
|
129
|
+
(Note: Mermaid diagram representing key dependencies)
|
|
130
|
+
|
|
131
|
+
### 🚨 Change Impact Assessment
|
|
132
|
+
|
|
133
|
+
**Before modifying [specific file/module]**:
|
|
134
|
+
- ✅ Test these files: [List]
|
|
135
|
+
- ⚠️ Watch for side effects in: [List]
|
|
136
|
+
- 🔍 Review integration points: [List]
|
|
137
|
+
- ⏱️ Estimated impact: [Low/Medium/High]
|
|
138
|
+
|
|
139
|
+
### 📈 Technical Metrics
|
|
140
|
+
|
|
141
|
+
- **Modularity Score**: XX/100
|
|
142
|
+
- **Coupling Level**: [Low/Medium/High]
|
|
143
|
+
- **Code Churn**: [Files frequently changed]
|
|
144
|
+
- **Critical Path**: [Most important business logic files]
|
|
145
|
+
```
|
|
146
|
+
|
|
147
|
+
### Step 4: Provide Actionable Guidance
|
|
148
|
+
|
|
149
|
+
Offer specific next steps:
|
|
150
|
+
- Code locations to examine
|
|
151
|
+
- Tests to run before changes
|
|
152
|
+
- Files to backup before refactoring
|
|
153
|
+
- Team members to consult (if AI annotations present)
|
|
154
|
+
|
|
155
|
+
## Examples
|
|
156
|
+
|
|
157
|
+
### Example 1: Understanding Architecture
|
|
158
|
+
**User**: "Explain how the authentication system works"
|
|
159
|
+
|
|
160
|
+
**You execute**:
|
|
161
|
+
```bash
|
|
162
|
+
python ~/claude-enhanced-quality/hybrid_intelligent_system_v2.py "authentication system flow" $(pwd)
|
|
163
|
+
```
|
|
164
|
+
|
|
165
|
+
**You present**: Architecture explanation with module relationships, file paths, and authentication flow diagram.
|
|
166
|
+
|
|
167
|
+
### Example 2: Refactoring Impact
|
|
168
|
+
**User**: "I want to refactor the database layer, what's the impact?"
|
|
169
|
+
|
|
170
|
+
**You execute**:
|
|
171
|
+
```bash
|
|
172
|
+
python ~/claude-enhanced-quality/hybrid_intelligent_system_v2.py "database layer refactoring impact" $(pwd)
|
|
173
|
+
```
|
|
174
|
+
|
|
175
|
+
**You present**: Impact analysis showing XX affected files, risk assessment, and refactoring strategy.
|
|
176
|
+
|
|
177
|
+
### Example 3: Finding High-Risk Code
|
|
178
|
+
**User**: "What are the most critical files in this project?"
|
|
179
|
+
|
|
180
|
+
**You execute**:
|
|
181
|
+
```bash
|
|
182
|
+
python ~/claude-enhanced-quality/hybrid_intelligent_system_v2.py "identify critical and high-risk files" $(pwd)
|
|
183
|
+
```
|
|
184
|
+
|
|
185
|
+
**You present**: List of high-risk files with dependency counts, complexity scores, and business criticality.
|
|
186
|
+
|
|
187
|
+
## Performance Characteristics
|
|
188
|
+
|
|
189
|
+
- **First Analysis**: ~40 seconds (deep project scan)
|
|
190
|
+
- **Cached Queries**: <1 second (instant response)
|
|
191
|
+
- **File Limit**: 300 files deep analysis
|
|
192
|
+
- **Cache Invalidation**: Automatic on file changes
|
|
193
|
+
|
|
194
|
+
## Smart Caching System
|
|
195
|
+
|
|
196
|
+
The system automatically caches:
|
|
197
|
+
- ✅ Project structure analysis
|
|
198
|
+
- ✅ Dependency mappings
|
|
199
|
+
- ✅ Code entity relationships
|
|
200
|
+
- ✅ Risk assessments
|
|
201
|
+
|
|
202
|
+
Cache updates when:
|
|
203
|
+
- Files are modified
|
|
204
|
+
- Dependencies change
|
|
205
|
+
- Project structure updates
|
|
206
|
+
|
|
207
|
+
## Integration with Other Systems
|
|
208
|
+
|
|
209
|
+
### Git Memory Integration
|
|
210
|
+
- Tracks commit intentions automatically
|
|
211
|
+
- Analyzes team collaboration patterns
|
|
212
|
+
- Detects potentially conflicting changes
|
|
213
|
+
|
|
214
|
+
### CodeDNA Integration
|
|
215
|
+
- Project-level quality scoring
|
|
216
|
+
- Hotspot identification with quality metrics
|
|
217
|
+
- ROI-optimized refactoring prioritization
|
|
218
|
+
|
|
219
|
+
### AI-Specific Annotations
|
|
220
|
+
|
|
221
|
+
Recognizes and utilizes:
|
|
222
|
+
```typescript
|
|
223
|
+
/*@ai:risk=1-5|deps=file1,file2|core=true|chain=auth*/
|
|
224
|
+
```
|
|
225
|
+
|
|
226
|
+
Annotation fields:
|
|
227
|
+
- `risk`: 1 (safe) to 5 (critical)
|
|
228
|
+
- `deps`: Key dependencies
|
|
229
|
+
- `core`: Core functionality flag
|
|
230
|
+
- `chain`: Business logic chain identifier
|
|
231
|
+
- `api`: API type (internal/external)
|
|
232
|
+
- `auth`: Authentication requirements
|
|
233
|
+
|
|
234
|
+
## Important Notes
|
|
235
|
+
|
|
236
|
+
- **Always execute** the Python command, don't simulate analysis
|
|
237
|
+
- **Use current directory** as default project path
|
|
238
|
+
- **Explain relationships**, not just list files
|
|
239
|
+
- **Provide visual diagrams** when helpful
|
|
240
|
+
- **Assess real impact**, not theoretical concerns
|
|
241
|
+
- **Offer specific actions**, not generic advice
|
|
242
|
+
|
|
243
|
+
## Common Analysis Queries
|
|
244
|
+
|
|
245
|
+
### Architecture Understanding
|
|
246
|
+
- "How does [feature] work?"
|
|
247
|
+
- "What's the data flow for [process]?"
|
|
248
|
+
- "Explain the module structure"
|
|
249
|
+
|
|
250
|
+
### Impact Analysis
|
|
251
|
+
- "Impact of changing [file/module]?"
|
|
252
|
+
- "What depends on [component]?"
|
|
253
|
+
- "Risk of refactoring [area]?"
|
|
254
|
+
|
|
255
|
+
### Code Navigation
|
|
256
|
+
- "Where is [functionality] implemented?"
|
|
257
|
+
- "Which files handle [feature]?"
|
|
258
|
+
- "What are the entry points?"
|
|
259
|
+
|
|
260
|
+
### Quality Assessment
|
|
261
|
+
- "What are the problem areas?"
|
|
262
|
+
- "Where should we focus refactoring?"
|
|
263
|
+
- "What's the technical debt?"
|
|
264
|
+
|
|
265
|
+
## Prerequisites
|
|
266
|
+
|
|
267
|
+
- Python environment
|
|
268
|
+
- ProjectMind V2 system installed
|
|
269
|
+
- Read access to project files
|
|
270
|
+
- Write access for caching (automatic)
|
|
271
|
+
|
|
272
|
+
## Fallback Strategy
|
|
273
|
+
|
|
274
|
+
**DO NOT use V1** (`hybrid_intelligent_system.py`) - it's deprecated
|
|
275
|
+
|
|
276
|
+
If V2 fails:
|
|
277
|
+
1. Check project path is correct
|
|
278
|
+
2. Verify Python environment
|
|
279
|
+
3. Examine error message
|
|
280
|
+
4. Report the issue
|
|
281
|
+
|
|
282
|
+
## Performance Tips
|
|
283
|
+
|
|
284
|
+
- First query takes 40s to build knowledge graph
|
|
285
|
+
- Subsequent queries are instant (cached)
|
|
286
|
+
- Narrow queries get faster responses
|
|
287
|
+
- Broader queries provide more context
|