moai-adk 0.9.0__py3-none-any.whl → 0.15.0__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/cli/commands/init.py +14 -2
- moai_adk/cli/commands/update.py +214 -56
- moai_adk/core/issue_creator.py +2 -2
- moai_adk/core/project/detector.py +201 -12
- moai_adk/core/project/initializer.py +62 -1
- moai_adk/core/project/phase_executor.py +48 -6
- moai_adk/core/tags/ci_validator.py +34 -4
- moai_adk/core/tags/pre_commit_validator.py +40 -2
- moai_adk/core/tags/reporter.py +2 -3
- moai_adk/core/tags/validator.py +1 -1
- moai_adk/core/template_engine.py +20 -5
- moai_adk/templates/.claude/agents/alfred/backend-expert.md +319 -0
- moai_adk/templates/.claude/agents/alfred/devops-expert.md +464 -0
- moai_adk/templates/.claude/agents/alfred/doc-syncer.md +1 -1
- moai_adk/templates/.claude/agents/alfred/frontend-expert.md +357 -0
- moai_adk/templates/.claude/agents/alfred/git-manager.md +2 -2
- moai_adk/templates/.claude/agents/alfred/implementation-planner.md +76 -3
- moai_adk/templates/.claude/agents/alfred/project-manager.md +49 -10
- moai_adk/templates/.claude/agents/alfred/quality-gate.md +3 -3
- moai_adk/templates/.claude/agents/alfred/spec-builder.md +108 -3
- moai_adk/templates/.claude/agents/alfred/tag-agent.md +74 -0
- moai_adk/templates/.claude/agents/alfred/tdd-implementer.md +107 -5
- moai_adk/templates/.claude/agents/alfred/trust-checker.md +2 -2
- moai_adk/templates/.claude/agents/alfred/ui-ux-expert.md +571 -0
- moai_adk/templates/.claude/commands/alfred/0-project.md +465 -129
- moai_adk/templates/.claude/commands/alfred/1-plan.md +139 -65
- moai_adk/templates/.claude/commands/alfred/2-run.md +214 -50
- moai_adk/templates/.claude/commands/alfred/3-sync.md +372 -46
- moai_adk/templates/.claude/commands/alfred/9-feedback.md +1 -1
- moai_adk/templates/.claude/hooks/alfred/core/project.py +25 -27
- 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 +4 -4
- moai_adk/templates/.claude/hooks/alfred/handlers/__init__.py +29 -0
- moai_adk/templates/.claude/hooks/alfred/post_tool__log_changes.py +11 -19
- moai_adk/templates/.claude/hooks/alfred/pre_tool__auto_checkpoint.py +11 -19
- moai_adk/templates/.claude/hooks/alfred/session_end__cleanup.py +11 -19
- moai_adk/templates/.claude/hooks/alfred/session_start__show_project_info.py +10 -18
- moai_adk/templates/.claude/hooks/alfred/shared/core/__init__.py +2 -2
- moai_adk/templates/.claude/hooks/alfred/shared/core/checkpoint.py +3 -3
- moai_adk/templates/.claude/hooks/alfred/shared/core/context.py +5 -5
- moai_adk/templates/.claude/hooks/alfred/shared/core/project.py +40 -41
- moai_adk/templates/.claude/hooks/alfred/shared/core/tags.py +55 -23
- moai_adk/templates/.claude/hooks/alfred/shared/core/version_cache.py +4 -4
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/notification.py +132 -3
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/session.py +9 -10
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/tool.py +3 -6
- moai_adk/templates/.claude/hooks/alfred/shared/handlers/user.py +19 -0
- moai_adk/templates/.claude/hooks/alfred/user_prompt__jit_load_docs.py +14 -22
- moai_adk/templates/.claude/hooks/alfred/utils/__init__.py +1 -0
- moai_adk/templates/.claude/hooks/alfred/utils/timeout.py +161 -0
- moai_adk/templates/.claude/settings.json +5 -5
- 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/{.moai/memory/CLAUDE-AGENTS-GUIDE.md → .claude/skills/moai-alfred-agent-guide/reference.md} +34 -0
- moai_adk/templates/.claude/skills/moai-alfred-config-schema/SKILL.md +56 -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-gitflow-policy/SKILL.md +74 -0
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-gitflow-policy/reference.md +269 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-alfred-issue-labels/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/SKILL.md +198 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/examples.md +431 -0
- moai_adk/templates/.claude/skills/moai-alfred-persona-roles/reference.md +141 -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-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-reporting/SKILL.md +273 -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-session-state/SKILL.md +19 -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-spec-authoring → moai-alfred-spec-authoring}/SKILL.md +5 -5
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/SKILL.md +115 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/examples.md +4 -0
- moai_adk/templates/.claude/skills/moai-alfred-spec-metadata-extended/reference.md +348 -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-skill-descriptions/SKILL.md +19 -0
- moai_adk/templates/.claude/skills/moai-cc-skill-descriptions/examples.md +4 -0
- moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL.md +3 -3
- 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-frontend/SKILL.md +17 -13
- moai_adk/templates/.claude/skills/moai-lang-go/SKILL.md +15 -12
- moai_adk/templates/.claude/skills/moai-lang-java/SKILL.md +14 -12
- moai_adk/templates/.claude/skills/moai-lang-php/SKILL.md +14 -11
- moai_adk/templates/.claude/skills/moai-lang-python/SKILL.md +10 -8
- moai_adk/templates/.claude/skills/moai-lang-rust/SKILL.md +15 -12
- moai_adk/templates/.claude/skills/moai-lang-scala/SKILL.md +13 -11
- moai_adk/templates/.claude/skills/moai-lang-typescript/SKILL.md +16 -10
- moai_adk/templates/.claude/skills/moai-project-documentation.md +622 -0
- moai_adk/templates/.git-hooks/pre-push +143 -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 +182 -25
- moai_adk/templates/.github/workflows/moai-release-pipeline.yml +35 -29
- 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 +76 -7
- 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 +208 -41
- 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/.moai/config.json +3 -1
- moai_adk/templates/CLAUDE.md +940 -45
- moai_adk/templates/workflows/go-tag-validation.yml +30 -0
- moai_adk/templates/workflows/javascript-tag-validation.yml +41 -0
- moai_adk/templates/workflows/python-tag-validation.yml +42 -0
- moai_adk/templates/workflows/typescript-tag-validation.yml +31 -0
- moai_adk/utils/banner.py +5 -5
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.0.dist-info}/METADATA +1166 -455
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.0.dist-info}/RECORD +169 -109
- moai_adk/templates/.claude/hooks/alfred/alfred_hooks.py +0 -209
- moai_adk/templates/.claude/hooks/alfred/notification__handle_events.py +0 -102
- moai_adk/templates/.claude/hooks/alfred/stop__handle_interrupt.py +0 -102
- moai_adk/templates/.claude/hooks/alfred/subagent_stop__handle_subagent_end.py +0 -102
- moai_adk/templates/.claude/output-styles/alfred/agentic-coding.md +0 -640
- moai_adk/templates/.claude/output-styles/alfred/moai-adk-learning.md +0 -696
- moai_adk/templates/.claude/output-styles/alfred/study-with-alfred.md +0 -474
- moai_adk/templates/.github/ISSUE_TEMPLATE/spec.yml +0 -176
- 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/SPEC-METADATA.md +0 -356
- moai_adk/templates/.moai/memory/gitflow-protection-policy.md +0 -330
- 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/README.md +0 -256
- moai_adk/templates/__init__.py +0 -2
- /moai_adk/templates/{.moai/memory/ISSUE-LABEL-MAPPING.md → .claude/skills/moai-alfred-issue-labels/reference.md} +0 -0
- /moai_adk/templates/{.moai/memory/CLAUDE-PRACTICES.md → .claude/skills/moai-alfred-practices/reference.md} +0 -0
- /moai_adk/templates/{.moai/memory/CLAUDE-RULES.md → .claude/skills/moai-alfred-rules/reference.md} +0 -0
- /moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/README.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/examples/validate-spec.sh +0 -0
- /moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/examples.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-spec-authoring → moai-alfred-spec-authoring}/reference.md +0 -0
- /moai_adk/templates/{.moai/memory/SKILLS-DESCRIPTION-POLICY.md → .claude/skills/moai-cc-skill-descriptions/reference.md} +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/CHECKLIST.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/EXAMPLES.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/INTERACTIVE-DISCOVERY.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/METADATA.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/PARALLEL-ANALYSIS-REPORT.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/PYTHON-VERSION-MATRIX.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL-FACTORY-WORKFLOW.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/SKILL-UPDATE-ADVISOR.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/STEP-BY-STEP-GUIDE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/STRUCTURE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/WEB-RESEARCH.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/reference.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/scripts/generate-structure.sh +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/scripts/validate-skill.sh +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/SKILL_TEMPLATE.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/examples-template.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/reference-template.md +0 -0
- /moai_adk/templates/.claude/skills/{moai-skill-factory → moai-cc-skill-factory}/templates/scripts-template.sh +0 -0
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.0.dist-info}/WHEEL +0 -0
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.0.dist-info}/entry_points.txt +0 -0
- {moai_adk-0.9.0.dist-info → moai_adk-0.15.0.dist-info}/licenses/LICENSE +0 -0
|
@@ -0,0 +1,126 @@
|
|
|
1
|
+
# Alfred Expertise Detection - Quick Reference
|
|
2
|
+
|
|
3
|
+
> **Main Skill**: [SKILL.md](SKILL.md)
|
|
4
|
+
> **Examples**: [examples.md](examples.md)
|
|
5
|
+
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## Signal Detection Cheat Sheet
|
|
9
|
+
|
|
10
|
+
| Signal Type | Beginner | Intermediate | Expert | Weight |
|
|
11
|
+
|-------------|----------|--------------|--------|--------|
|
|
12
|
+
| **Command Syntax** | Trial-and-error | Mostly correct | Always correct | +2/+1/0 |
|
|
13
|
+
| **Questions** | "How?", "Why?" | "Can I?" | Direct commands | +2/+1/0 |
|
|
14
|
+
| **Error Recovery** | Needs help | Self-corrects | Debugs alone | +2/+1/0 |
|
|
15
|
+
| **Documentation** | Frequent refs | Occasional refs | Rare refs | +2/+1/0 |
|
|
16
|
+
| **Git Workflow** | `/alfred:*` only | Mixed usage | Direct git | +2/+1/0 |
|
|
17
|
+
|
|
18
|
+
**Score calculation**: Sum all weights → 0-3=Expert, 4-7=Intermediate, 8-10=Beginner
|
|
19
|
+
|
|
20
|
+
---
|
|
21
|
+
|
|
22
|
+
## Behavioral Adaptation Matrix
|
|
23
|
+
|
|
24
|
+
### Response Verbosity
|
|
25
|
+
|
|
26
|
+
| Level | Length | Examples | Context |
|
|
27
|
+
|-------|--------|----------|---------|
|
|
28
|
+
| Beginner | 200-400 words | 2-3 | Deep background |
|
|
29
|
+
| Intermediate | 100-200 words | 1-2 | Key points |
|
|
30
|
+
| Expert | 50-100 words | 0-1 | Action-focused |
|
|
31
|
+
|
|
32
|
+
### Confirmation Gates
|
|
33
|
+
|
|
34
|
+
| Risk Level | Beginner | Intermediate | Expert |
|
|
35
|
+
|------------|----------|--------------|--------|
|
|
36
|
+
| **Low** | Confirm | Skip | Skip |
|
|
37
|
+
| **Medium** | Confirm | Confirm | Skip |
|
|
38
|
+
| **High** | Confirm + explain | Confirm | Confirm |
|
|
39
|
+
|
|
40
|
+
### Proactive Suggestions
|
|
41
|
+
|
|
42
|
+
| Level | Suggestions/Session | Threshold |
|
|
43
|
+
|-------|---------------------|-----------|
|
|
44
|
+
| Beginner | 3-5 | Low (common patterns) |
|
|
45
|
+
| Intermediate | 2-3 | Medium (optimizations) |
|
|
46
|
+
| Expert | 1-2 | High (advanced techniques) |
|
|
47
|
+
|
|
48
|
+
---
|
|
49
|
+
|
|
50
|
+
## Quick Decision Tree
|
|
51
|
+
|
|
52
|
+
```
|
|
53
|
+
User Request
|
|
54
|
+
↓
|
|
55
|
+
Analyze 5 signals (commands, questions, errors, docs, git)
|
|
56
|
+
↓
|
|
57
|
+
Calculate weighted score (0-10)
|
|
58
|
+
↓
|
|
59
|
+
├─ 0-3: Expert → Efficiency Coach bias
|
|
60
|
+
├─ 4-7: Intermediate → Project Manager bias
|
|
61
|
+
└─ 8-10: Beginner → Technical Mentor bias
|
|
62
|
+
↓
|
|
63
|
+
Apply adaptations (verbosity, confirmations, suggestions)
|
|
64
|
+
```
|
|
65
|
+
|
|
66
|
+
---
|
|
67
|
+
|
|
68
|
+
## Override Mechanisms
|
|
69
|
+
|
|
70
|
+
**User keywords override detection**:
|
|
71
|
+
- "quick", "fast" → Force Expert mode
|
|
72
|
+
- "explain", "how", "why" → Force Beginner mode
|
|
73
|
+
- `/alfred:*` commands → Force Project Manager (Intermediate)
|
|
74
|
+
|
|
75
|
+
**Example**:
|
|
76
|
+
- Detected: Expert (score 2)
|
|
77
|
+
- User says: "explain @TAG system"
|
|
78
|
+
- Override: Beginner mode (verbose explanation)
|
|
79
|
+
|
|
80
|
+
---
|
|
81
|
+
|
|
82
|
+
## Signal Examples
|
|
83
|
+
|
|
84
|
+
### Beginner Signal Pattern
|
|
85
|
+
|
|
86
|
+
```
|
|
87
|
+
User: "How do I create a SPEC?"
|
|
88
|
+
Alfred detects:
|
|
89
|
+
- Question keyword: "How" (+2)
|
|
90
|
+
- Documentation unfamiliarity (+2)
|
|
91
|
+
- No direct command usage (+2)
|
|
92
|
+
|
|
93
|
+
Score: 6 → Beginner
|
|
94
|
+
|
|
95
|
+
Response: Verbose explanation with Skill("moai-foundation-specs")
|
|
96
|
+
```
|
|
97
|
+
|
|
98
|
+
### Expert Signal Pattern
|
|
99
|
+
|
|
100
|
+
```
|
|
101
|
+
User: "/alfred:2-run SPEC-AUTH-001"
|
|
102
|
+
Alfred detects:
|
|
103
|
+
- Direct command with correct syntax (0)
|
|
104
|
+
- No questions (0)
|
|
105
|
+
- Knows SPEC ID format (0)
|
|
106
|
+
|
|
107
|
+
Score: 0 → Expert
|
|
108
|
+
|
|
109
|
+
Response: Execute immediately, minimal output
|
|
110
|
+
```
|
|
111
|
+
|
|
112
|
+
---
|
|
113
|
+
|
|
114
|
+
## Integration Hooks
|
|
115
|
+
|
|
116
|
+
**Called by**:
|
|
117
|
+
- Every Alfred request (implicit)
|
|
118
|
+
- `moai-alfred-persona-roles` (role selection)
|
|
119
|
+
- `moai-alfred-proactive-suggestions` (suggestion threshold)
|
|
120
|
+
|
|
121
|
+
**Calls**:
|
|
122
|
+
- None (standalone signal analysis)
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
**End of Reference** | 2025-11-02
|
|
@@ -0,0 +1,74 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: "Managing GitFlow Branch Strategy"
|
|
3
|
+
description: "Enforces MoAI-ADK GitFlow workflow for team and personal modes. Covers branch protection, PR creation rules, release process, and conflict resolution. Essential for /alfred:1-plan (feature branch creation), /alfred:3-sync (PR targeting), and git-manager agent validation. Prevents direct main pushes, enforces develop-based workflow, and ensures code quality."
|
|
4
|
+
allowed-tools: "Bash(git:*), Read, Edit"
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# GitFlow Protection Policy Skill
|
|
8
|
+
|
|
9
|
+
## Enforced Workflow
|
|
10
|
+
|
|
11
|
+
```
|
|
12
|
+
feature/SPEC-XXX → develop → main
|
|
13
|
+
(your work) (integration) (release)
|
|
14
|
+
↓ ↓ ↓
|
|
15
|
+
[commit] [merge PR] [auto-deploy]
|
|
16
|
+
[PR to dev] [code review] [tag release]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
## Core Rules (Enforced)
|
|
20
|
+
|
|
21
|
+
### 1. Main Branch Protection
|
|
22
|
+
- ❌ **Direct push blocked** – All changes require PR
|
|
23
|
+
- ❌ **Force push blocked** – Ensures linear history
|
|
24
|
+
- ✅ **PR required** – Code review + approval needed
|
|
25
|
+
- ✅ **CI/CD validation** – All checks must pass
|
|
26
|
+
|
|
27
|
+
### 2. Feature Branch Creation
|
|
28
|
+
```bash
|
|
29
|
+
# CORRECT: Start from develop
|
|
30
|
+
git checkout develop
|
|
31
|
+
git pull origin develop
|
|
32
|
+
git checkout -b feature/SPEC-{ID}
|
|
33
|
+
|
|
34
|
+
# WRONG: Starting from main (blocked by rules)
|
|
35
|
+
git checkout -b feature/something main # ❌ Will fail on PR
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### 3. Pull Request Rules
|
|
39
|
+
```
|
|
40
|
+
Feature Branch → develop (✅ CORRECT)
|
|
41
|
+
Example: feature/SPEC-AUTH-001 → develop
|
|
42
|
+
|
|
43
|
+
Feature Branch → main (❌ BLOCKED)
|
|
44
|
+
Git-manager validates and rejects this pattern
|
|
45
|
+
```
|
|
46
|
+
|
|
47
|
+
### 4. Release Process
|
|
48
|
+
```
|
|
49
|
+
1. Work on feature/SPEC-{ID}
|
|
50
|
+
2. Create PR → develop
|
|
51
|
+
3. Code review + merge
|
|
52
|
+
4. When develop stable: PR develop → main
|
|
53
|
+
5. Release manager merges + creates tag
|
|
54
|
+
6. CI/CD auto-deploys package
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
## Common Patterns
|
|
58
|
+
|
|
59
|
+
| Scenario | Action |
|
|
60
|
+
|----------|--------|
|
|
61
|
+
| Start feature | Create feature/SPEC-{ID} from develop |
|
|
62
|
+
| Push changes | git push origin feature/SPEC-{ID} |
|
|
63
|
+
| Create PR | gh pr create --base develop |
|
|
64
|
+
| Merge to develop | gh pr merge --squash --delete-branch |
|
|
65
|
+
| Release to main | Merge develop → main (when ready) |
|
|
66
|
+
| Fix merge conflict | Resolve + rebase, keep clean history |
|
|
67
|
+
|
|
68
|
+
## Troubleshooting
|
|
69
|
+
|
|
70
|
+
| Error | Cause | Fix |
|
|
71
|
+
|-------|-------|-----|
|
|
72
|
+
| "PR to main blocked" | Base branch = main | Close PR, create new with base=develop |
|
|
73
|
+
| "Force push rejected" | Attempted force push | Use normal commit + push |
|
|
74
|
+
| "Branch out of sync" | Develop changed | git pull origin develop, rebase |
|
|
@@ -0,0 +1,269 @@
|
|
|
1
|
+
# GitFlow Protection Policy - Reference
|
|
2
|
+
|
|
3
|
+
## GitHub Branch Protection Configuration
|
|
4
|
+
|
|
5
|
+
### Main Branch Rules (Enforced)
|
|
6
|
+
|
|
7
|
+
```
|
|
8
|
+
Settings → Branches → Branch protection rules
|
|
9
|
+
├── Require a pull request before merging
|
|
10
|
+
│ └── Require approvals: 1
|
|
11
|
+
├── Require status checks to pass
|
|
12
|
+
│ └── Require branches to be up to date before merging
|
|
13
|
+
├── Require conversation resolution before merging
|
|
14
|
+
├── Require signed commits
|
|
15
|
+
└── Restrict who can push to matching branches
|
|
16
|
+
└── Allows: [maintainers only]
|
|
17
|
+
```
|
|
18
|
+
|
|
19
|
+
### Develop Branch Rules (Advisory)
|
|
20
|
+
|
|
21
|
+
```
|
|
22
|
+
Settings → Branches → Branch protection rules
|
|
23
|
+
├── Require a pull request before merging
|
|
24
|
+
│ └── Require approvals: 0 (flexible)
|
|
25
|
+
├── Require status checks to pass
|
|
26
|
+
│ └── Both: Linting + Tests
|
|
27
|
+
└── Dismiss stale pull request approvals when new commits are pushed
|
|
28
|
+
```
|
|
29
|
+
|
|
30
|
+
## Feature Branch Workflow
|
|
31
|
+
|
|
32
|
+
### 1. Create Feature Branch
|
|
33
|
+
|
|
34
|
+
```bash
|
|
35
|
+
# Always start from develop
|
|
36
|
+
git checkout develop
|
|
37
|
+
git pull origin develop
|
|
38
|
+
git checkout -b feature/SPEC-AUTH-001
|
|
39
|
+
|
|
40
|
+
# Naming convention: feature/SPEC-{DOMAIN}-{NUMBER}
|
|
41
|
+
# Examples: feature/SPEC-AUTH-001, feature/SPEC-CACHE-FIX-002
|
|
42
|
+
```
|
|
43
|
+
|
|
44
|
+
### 2. Make Commits
|
|
45
|
+
|
|
46
|
+
```bash
|
|
47
|
+
# Follow conventional commit format
|
|
48
|
+
git commit -m "feat(auth): Implement email verification
|
|
49
|
+
|
|
50
|
+
- Add email validation logic
|
|
51
|
+
- Create verification token system
|
|
52
|
+
- Update user model with verification status
|
|
53
|
+
|
|
54
|
+
@CODE:AUTH-001"
|
|
55
|
+
```
|
|
56
|
+
|
|
57
|
+
### 3. Push and Create PR
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# Push to remote
|
|
61
|
+
git push origin feature/SPEC-AUTH-001
|
|
62
|
+
|
|
63
|
+
# Create PR (gh cli)
|
|
64
|
+
gh pr create \
|
|
65
|
+
--base develop \
|
|
66
|
+
--head feature/SPEC-AUTH-001 \
|
|
67
|
+
--title "[FEAT] Implement Email Verification" \
|
|
68
|
+
--body "$(cat <<'EOF'
|
|
69
|
+
## Summary
|
|
70
|
+
Implements email verification system as per SPEC-AUTH-001
|
|
71
|
+
|
|
72
|
+
## Test Plan
|
|
73
|
+
- [ ] Unit tests pass (npm run test)
|
|
74
|
+
- [ ] Email sending verified in dev
|
|
75
|
+
- [ ] Verification flow tested end-to-end
|
|
76
|
+
|
|
77
|
+
@TEST:AUTH-001
|
|
78
|
+
@CODE:AUTH-001
|
|
79
|
+
EOF
|
|
80
|
+
)"
|
|
81
|
+
```
|
|
82
|
+
|
|
83
|
+
### 4. Code Review and Merge
|
|
84
|
+
|
|
85
|
+
```bash
|
|
86
|
+
# After approval
|
|
87
|
+
gh pr merge <PR_NUMBER> \
|
|
88
|
+
--squash \
|
|
89
|
+
--delete-branch \
|
|
90
|
+
-m "Merge: Email verification system (SPEC-AUTH-001)"
|
|
91
|
+
|
|
92
|
+
# Auto-deletes feature branch after merge
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
## Release Process (develop → main)
|
|
96
|
+
|
|
97
|
+
### When Develop is Stable
|
|
98
|
+
|
|
99
|
+
```bash
|
|
100
|
+
# 1. Ensure develop is fully tested
|
|
101
|
+
git checkout develop
|
|
102
|
+
git pull origin develop
|
|
103
|
+
|
|
104
|
+
# 2. Run complete test suite
|
|
105
|
+
npm run test
|
|
106
|
+
npm run lint
|
|
107
|
+
npm run type-check
|
|
108
|
+
|
|
109
|
+
# 3. Create release PR to main
|
|
110
|
+
gh pr create \
|
|
111
|
+
--base main \
|
|
112
|
+
--head develop \
|
|
113
|
+
--title "Release: v0.2.0" \
|
|
114
|
+
--body "$(cat <<'EOF'
|
|
115
|
+
## Release v0.2.0
|
|
116
|
+
|
|
117
|
+
### Features
|
|
118
|
+
- EMAIL: Email verification system (SPEC-AUTH-001)
|
|
119
|
+
- CACHE: Redis caching (SPEC-CACHE-FIX-001)
|
|
120
|
+
|
|
121
|
+
### Bug Fixes
|
|
122
|
+
- AUTH: Session expiration logic
|
|
123
|
+
- API: Rate limiting edge cases
|
|
124
|
+
|
|
125
|
+
### Breaking Changes
|
|
126
|
+
None
|
|
127
|
+
|
|
128
|
+
## Checklist
|
|
129
|
+
- [x] All tests passing
|
|
130
|
+
- [x] Documentation updated
|
|
131
|
+
- [x] Changelog generated
|
|
132
|
+
- [x] Version bumped
|
|
133
|
+
- [x] No security vulnerabilities
|
|
134
|
+
EOF
|
|
135
|
+
)"
|
|
136
|
+
|
|
137
|
+
# 4. After approval, merge to main
|
|
138
|
+
gh pr merge <RELEASE_PR_NUMBER> \
|
|
139
|
+
--merge \
|
|
140
|
+
--delete-branch \
|
|
141
|
+
-m "Release: v0.2.0 - Email verification and caching"
|
|
142
|
+
|
|
143
|
+
# 5. Create git tag
|
|
144
|
+
git tag -a v0.2.0 -m "Release v0.2.0"
|
|
145
|
+
git push origin v0.2.0
|
|
146
|
+
|
|
147
|
+
# 6. CI/CD auto-deploys to PyPI
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
## Conflict Resolution
|
|
151
|
+
|
|
152
|
+
### When Develop Changed After Feature Branch Created
|
|
153
|
+
|
|
154
|
+
```bash
|
|
155
|
+
# 1. Fetch latest develop
|
|
156
|
+
git fetch origin develop
|
|
157
|
+
|
|
158
|
+
# 2. Rebase (preferred) or merge
|
|
159
|
+
git rebase origin/develop
|
|
160
|
+
|
|
161
|
+
# 3. If conflicts exist, resolve manually
|
|
162
|
+
git status # See conflicted files
|
|
163
|
+
|
|
164
|
+
# Edit conflicted files, keep desired changes
|
|
165
|
+
|
|
166
|
+
# 4. Continue rebase
|
|
167
|
+
git add .
|
|
168
|
+
git rebase --continue
|
|
169
|
+
|
|
170
|
+
# 5. Force push (safe, rebasing your own branch)
|
|
171
|
+
git push origin feature/SPEC-AUTH-001 --force-with-lease
|
|
172
|
+
```
|
|
173
|
+
|
|
174
|
+
### When PR Has Merge Conflicts
|
|
175
|
+
|
|
176
|
+
```bash
|
|
177
|
+
# If CI shows merge conflicts:
|
|
178
|
+
# 1. Update local develop
|
|
179
|
+
git checkout develop
|
|
180
|
+
git pull origin develop
|
|
181
|
+
|
|
182
|
+
# 2. Rebase feature branch
|
|
183
|
+
git checkout feature/SPEC-AUTH-001
|
|
184
|
+
git rebase develop
|
|
185
|
+
|
|
186
|
+
# 3. Resolve conflicts manually
|
|
187
|
+
# (same as above)
|
|
188
|
+
|
|
189
|
+
# 4. Push resolved version
|
|
190
|
+
git push origin feature/SPEC-AUTH-001 --force-with-lease
|
|
191
|
+
|
|
192
|
+
# GitHub PR automatically updates
|
|
193
|
+
```
|
|
194
|
+
|
|
195
|
+
## Error Handling
|
|
196
|
+
|
|
197
|
+
### PR to Main Blocked
|
|
198
|
+
|
|
199
|
+
**Error Message**:
|
|
200
|
+
```
|
|
201
|
+
❌ GitFlow Violation Detected
|
|
202
|
+
Base branch: main (forbidden)
|
|
203
|
+
Expected: develop
|
|
204
|
+
|
|
205
|
+
Feature branches must target develop, not main.
|
|
206
|
+
```
|
|
207
|
+
|
|
208
|
+
**Fix**:
|
|
209
|
+
```bash
|
|
210
|
+
# 1. Close the incorrect PR
|
|
211
|
+
gh pr close <PR_NUMBER>
|
|
212
|
+
|
|
213
|
+
# 2. Create correct PR
|
|
214
|
+
gh pr create --base develop --head feature/SPEC-AUTH-001
|
|
215
|
+
```
|
|
216
|
+
|
|
217
|
+
### Force Push to Main Rejected
|
|
218
|
+
|
|
219
|
+
**Error Message**:
|
|
220
|
+
```
|
|
221
|
+
❌ [remote rejected] main (protected branch hook declined)
|
|
222
|
+
fatal: Could not read from remote repository.
|
|
223
|
+
```
|
|
224
|
+
|
|
225
|
+
**Fix**:
|
|
226
|
+
```bash
|
|
227
|
+
# Cannot force push to main (by design)
|
|
228
|
+
# Create PR instead
|
|
229
|
+
gh pr create --base main --head develop
|
|
230
|
+
```
|
|
231
|
+
|
|
232
|
+
### Branch Out of Sync (Behind Develop)
|
|
233
|
+
|
|
234
|
+
**Error Message**:
|
|
235
|
+
```
|
|
236
|
+
⚠️ This branch is out-of-date with the base branch
|
|
237
|
+
Consider updating your branch before merging.
|
|
238
|
+
```
|
|
239
|
+
|
|
240
|
+
**Fix**:
|
|
241
|
+
```bash
|
|
242
|
+
# Update from latest develop
|
|
243
|
+
git fetch origin
|
|
244
|
+
git rebase origin/develop
|
|
245
|
+
git push origin feature/SPEC-AUTH-001 --force-with-lease
|
|
246
|
+
```
|
|
247
|
+
|
|
248
|
+
## Checklist: Before Merging to Develop
|
|
249
|
+
|
|
250
|
+
- [ ] Feature branch created from latest develop
|
|
251
|
+
- [ ] All commits follow conventional commit format
|
|
252
|
+
- [ ] Code passes linting and type checking
|
|
253
|
+
- [ ] Tests pass locally and in CI
|
|
254
|
+
- [ ] PR description includes @SPEC:ID and @TEST:ID
|
|
255
|
+
- [ ] Code review approved by at least 1 maintainer
|
|
256
|
+
- [ ] All conversations resolved
|
|
257
|
+
- [ ] Branch is up-to-date with develop
|
|
258
|
+
- [ ] Commits are squashed (optional but recommended)
|
|
259
|
+
|
|
260
|
+
## Checklist: Before Merging to Main
|
|
261
|
+
|
|
262
|
+
- [ ] All features merged and tested in develop
|
|
263
|
+
- [ ] Complete test suite passes
|
|
264
|
+
- [ ] Documentation is current
|
|
265
|
+
- [ ] Changelog is generated
|
|
266
|
+
- [ ] Version is bumped (semver)
|
|
267
|
+
- [ ] Security review completed
|
|
268
|
+
- [ ] Release notes drafted
|
|
269
|
+
- [ ] No regressions detected
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-alfred-issue-labels
|
|
3
|
+
description: "GitHub issue label configuration, label taxonomy, workflow automation mapping."
|
|
4
|
+
tier: Alfred
|
|
5
|
+
allowed-tools: "Read, Bash"
|
|
6
|
+
---
|
|
7
|
+
|
|
8
|
+
## What It Does
|
|
9
|
+
|
|
10
|
+
GitHub issue label 종류, 사용 규칙, workflow 자동화 연결을 정의합니다.
|
|
11
|
+
|
|
12
|
+
## When to Use
|
|
13
|
+
|
|
14
|
+
- ✅ Issue 생성 시 label 선택
|
|
15
|
+
- ✅ Label 워크플로우 이해
|
|
16
|
+
|
|
17
|
+
---
|
|
18
|
+
|
|
19
|
+
Learn more in `reference.md`.
|
|
@@ -0,0 +1,198 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: moai-alfred-persona-roles
|
|
3
|
+
version: 1.0.0
|
|
4
|
+
created: 2025-11-02
|
|
5
|
+
updated: 2025-11-02
|
|
6
|
+
status: active
|
|
7
|
+
description: Guide Alfred role-switching logic based on context and user expertise
|
|
8
|
+
keywords: ['persona', 'roles', 'adaptation', 'context', 'mentor', 'coach', 'manager', 'coordinator']
|
|
9
|
+
allowed-tools:
|
|
10
|
+
- Read
|
|
11
|
+
---
|
|
12
|
+
|
|
13
|
+
# Alfred Persona Roles - Role Selection Guide
|
|
14
|
+
|
|
15
|
+
## Skill Metadata
|
|
16
|
+
|
|
17
|
+
| Field | Value |
|
|
18
|
+
| ----- | ----- |
|
|
19
|
+
| **Skill Name** | moai-alfred-persona-roles |
|
|
20
|
+
| **Version** | 1.0.0 (2025-11-02) |
|
|
21
|
+
| **Status** | Active |
|
|
22
|
+
| **Tier** | Alfred |
|
|
23
|
+
| **Purpose** | Guide role-switching behavior based on user context |
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
## What It Does
|
|
28
|
+
|
|
29
|
+
Alfred automatically switches between 4 professional roles to adapt communication and behavior based on context.
|
|
30
|
+
|
|
31
|
+
**Key capabilities**:
|
|
32
|
+
- ✅ Context-aware role detection (keywords, commands, complexity)
|
|
33
|
+
- ✅ Expertise-based behavior adjustment (beginner/intermediate/expert)
|
|
34
|
+
- ✅ Risk-aware decision making (low/medium/high risk)
|
|
35
|
+
- ✅ Token-efficient (no memory file loads)
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
## When to Use
|
|
40
|
+
|
|
41
|
+
**Automatic triggers**:
|
|
42
|
+
- User asks "how", "why", "explain" questions → 🧑🏫 Technical Mentor
|
|
43
|
+
- User says "quick", "fast", direct commands → ⚡ Efficiency Coach
|
|
44
|
+
- `/alfred:*` commands or complex workflows → 📋 Project Manager
|
|
45
|
+
- Team mode or Git/PR operations → 🤝 Collaboration Coordinator
|
|
46
|
+
|
|
47
|
+
**Manual reference**:
|
|
48
|
+
- Understanding Alfred's adaptive behavior
|
|
49
|
+
- Customizing role-switching logic
|
|
50
|
+
- Learning best practices for each role
|
|
51
|
+
|
|
52
|
+
---
|
|
53
|
+
|
|
54
|
+
## Four Professional Roles
|
|
55
|
+
|
|
56
|
+
### 🧑🏫 Technical Mentor (Teaching Mode)
|
|
57
|
+
|
|
58
|
+
**When activated**:
|
|
59
|
+
- User asks "how", "why", "what is", "explain" questions
|
|
60
|
+
- First-time feature usage detected
|
|
61
|
+
- Beginner expertise level signals present
|
|
62
|
+
- Complex concept explanation needed
|
|
63
|
+
|
|
64
|
+
**Behavior**:
|
|
65
|
+
- Verbose, educational tone
|
|
66
|
+
- Provide background context and rationale
|
|
67
|
+
- Link to relevant Skills and documentation
|
|
68
|
+
- Suggest learning resources explicitly
|
|
69
|
+
- Use step-by-step guidance with examples
|
|
70
|
+
|
|
71
|
+
**Example**: User asks "How does the @TAG system work?"
|
|
72
|
+
→ Explain concept, show example, link to Skill("moai-foundation-tags"), suggest learning path
|
|
73
|
+
|
|
74
|
+
---
|
|
75
|
+
|
|
76
|
+
### ⚡ Efficiency Coach (Optimization Mode)
|
|
77
|
+
|
|
78
|
+
**When activated**:
|
|
79
|
+
- Request contains "quick", "fast", "speed up" keywords
|
|
80
|
+
- Expert expertise level signals present
|
|
81
|
+
- Direct command usage (minimal questions)
|
|
82
|
+
- Simple, straightforward requests
|
|
83
|
+
|
|
84
|
+
**Behavior**:
|
|
85
|
+
- Concise, action-oriented responses
|
|
86
|
+
- Minimize confirmations (auto-approve low-risk)
|
|
87
|
+
- Suggest shortcuts and parallel execution
|
|
88
|
+
- Assume prior knowledge
|
|
89
|
+
- Skip explanations unless asked
|
|
90
|
+
|
|
91
|
+
**Example**: User says "quick SPEC fix"
|
|
92
|
+
→ Auto-edit, skip long explanations, confirm only high-risk actions
|
|
93
|
+
|
|
94
|
+
---
|
|
95
|
+
|
|
96
|
+
### 📋 Project Manager (Coordination Mode)
|
|
97
|
+
|
|
98
|
+
**When activated**:
|
|
99
|
+
- `/alfred:*` commands executed
|
|
100
|
+
- Multi-step workflows detected (SPEC → TDD → Sync)
|
|
101
|
+
- Complex features with multiple dependencies
|
|
102
|
+
- Milestone/progress tracking needed
|
|
103
|
+
|
|
104
|
+
**Behavior**:
|
|
105
|
+
- Structured progress tracking with TodoWrite
|
|
106
|
+
- Phase-based reporting
|
|
107
|
+
- Clear milestone definitions
|
|
108
|
+
- Next-step guidance and blockers highlighted
|
|
109
|
+
- Transparent timeline estimation
|
|
110
|
+
|
|
111
|
+
**Example**: `/alfred:2-run SPEC-AUTH-001` executed
|
|
112
|
+
→ Activate TodoWrite, report RED-GREEN-REFACTOR phases, show completion percentage
|
|
113
|
+
|
|
114
|
+
---
|
|
115
|
+
|
|
116
|
+
### 🤝 Collaboration Coordinator (Team Mode)
|
|
117
|
+
|
|
118
|
+
**When activated**:
|
|
119
|
+
- Team mode enabled in `.moai/config.json`
|
|
120
|
+
- Git/GitHub operations (PR, issue, branch)
|
|
121
|
+
- Multi-author commits needed
|
|
122
|
+
- Team communication required
|
|
123
|
+
|
|
124
|
+
**Behavior**:
|
|
125
|
+
- Communication-focused tone
|
|
126
|
+
- Draft comprehensive PRs with team context
|
|
127
|
+
- Request reviews explicitly
|
|
128
|
+
- Document decisions for team visibility
|
|
129
|
+
- Build consensus for major changes
|
|
130
|
+
|
|
131
|
+
**Example**: SPEC completed in team mode
|
|
132
|
+
→ Draft issue, create PR, request reviews, notify team
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Role Selection Algorithm
|
|
137
|
+
|
|
138
|
+
```
|
|
139
|
+
User Request Received
|
|
140
|
+
↓
|
|
141
|
+
Analyze Request Keywords & Command Type
|
|
142
|
+
↓
|
|
143
|
+
├─ Contains: "how", "why", "explain" + first-time? → 🧑🏫 Technical Mentor
|
|
144
|
+
├─ Contains: "quick", "fast" + direct command? → ⚡ Efficiency Coach
|
|
145
|
+
├─ Starts with: /alfred: + complexity > 1 step? → 📋 Project Manager
|
|
146
|
+
├─ Action: git/PR + team_mode: true? → 🤝 Collaboration Coordinator
|
|
147
|
+
└─ Default: → 📋 Project Manager (coordination default)
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
**No memory file access required - pure request analysis**
|
|
151
|
+
|
|
152
|
+
---
|
|
153
|
+
|
|
154
|
+
## Role-Specific Best Practices
|
|
155
|
+
|
|
156
|
+
### For Technical Mentor 🧑🏫
|
|
157
|
+
|
|
158
|
+
- **Depth**: Always provide background context
|
|
159
|
+
- **Examples**: Show 2-3 concrete examples
|
|
160
|
+
- **Links**: Reference related Skills and docs
|
|
161
|
+
- **Confirmation**: Check understanding before proceeding
|
|
162
|
+
- **Resources**: Suggest learning paths explicitly
|
|
163
|
+
|
|
164
|
+
### For Efficiency Coach ⚡
|
|
165
|
+
|
|
166
|
+
- **Speed**: Minimize words, maximize action
|
|
167
|
+
- **Shortcuts**: Suggest automation opportunities
|
|
168
|
+
- **Confirmation**: Skip confirmations for low-risk
|
|
169
|
+
- **Assumptions**: Assume significant prior knowledge
|
|
170
|
+
- **Parallel**: Suggest parallel execution when possible
|
|
171
|
+
|
|
172
|
+
### For Project Manager 📋
|
|
173
|
+
|
|
174
|
+
- **Structure**: Use clear phase breakdowns
|
|
175
|
+
- **Tracking**: Leverage TodoWrite for progress
|
|
176
|
+
- **Milestones**: Define clear completion criteria
|
|
177
|
+
- **Guidance**: Proactively suggest next steps
|
|
178
|
+
- **Timeline**: Provide realistic time estimates
|
|
179
|
+
|
|
180
|
+
### For Collaboration Coordinator 🤝
|
|
181
|
+
|
|
182
|
+
- **Communication**: Draft clear PRs and issues
|
|
183
|
+
- **Consensus**: Involve team in decisions
|
|
184
|
+
- **Documentation**: Record decisions for team
|
|
185
|
+
- **Reviews**: Explicitly request code reviews
|
|
186
|
+
- **Transparency**: Share blockers and risks
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
## Key Principles
|
|
191
|
+
|
|
192
|
+
1. **No Memory Required**: Role detection is pure request analysis
|
|
193
|
+
2. **Fast Execution**: <50ms role selection
|
|
194
|
+
3. **Context-Free**: Works within current session only
|
|
195
|
+
4. **User-Transparent**: Users see role changes naturally
|
|
196
|
+
5. **Safe Default**: Project Manager if unclear
|
|
197
|
+
|
|
198
|
+
---
|