ac-framework 1.9.4 → 1.9.5

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.
Files changed (62) hide show
  1. package/README.md +8 -0
  2. package/bin/postinstall.js +2 -0
  3. package/framework/mobile_development/.agent/workflows/ac-lite.md +70 -179
  4. package/framework/mobile_development/.agent/workflows/ac.md +226 -410
  5. package/framework/mobile_development/.amazonq/prompts/ac-lite.md +70 -179
  6. package/framework/mobile_development/.amazonq/prompts/ac.md +226 -410
  7. package/framework/mobile_development/.antigravity/workflows/ac-lite.md +70 -179
  8. package/framework/mobile_development/.antigravity/workflows/ac.md +226 -410
  9. package/framework/mobile_development/.augment/commands/ac-lite.md +70 -179
  10. package/framework/mobile_development/.augment/commands/ac.md +226 -410
  11. package/framework/mobile_development/.claude/commands/opsx/ac-lite.md +70 -179
  12. package/framework/mobile_development/.claude/commands/opsx/ac.md +226 -410
  13. package/framework/mobile_development/.cline/commands/opsx/ac-lite.md +70 -179
  14. package/framework/mobile_development/.cline/commands/opsx/ac.md +226 -410
  15. package/framework/mobile_development/.clinerules/workflows/ac-lite.md +70 -179
  16. package/framework/mobile_development/.clinerules/workflows/ac.md +226 -410
  17. package/framework/mobile_development/.codebuddy/commands/opsx/ac-lite.md +70 -179
  18. package/framework/mobile_development/.codebuddy/commands/opsx/ac.md +226 -410
  19. package/framework/mobile_development/.continue/prompts/ac-lite.md +70 -179
  20. package/framework/mobile_development/.continue/prompts/ac.md +226 -410
  21. package/framework/mobile_development/.cospec/openspec/commands/ac-lite.md +70 -179
  22. package/framework/mobile_development/.cospec/openspec/commands/ac.md +226 -410
  23. package/framework/mobile_development/.crush/commands/opsx/ac-lite.md +70 -179
  24. package/framework/mobile_development/.crush/commands/opsx/ac.md +226 -410
  25. package/framework/mobile_development/.cursor/commands/ac-lite.md +70 -179
  26. package/framework/mobile_development/.cursor/commands/ac.md +226 -410
  27. package/framework/mobile_development/.factory/commands/ac-lite.md +70 -179
  28. package/framework/mobile_development/.factory/commands/ac.md +226 -410
  29. package/framework/mobile_development/.gemini/commands/opsx/ac-lite.md +70 -179
  30. package/framework/mobile_development/.gemini/commands/opsx/ac.md +226 -410
  31. package/framework/mobile_development/.github/prompts/ac-lite.md +70 -179
  32. package/framework/mobile_development/.github/prompts/ac.md +226 -410
  33. package/framework/mobile_development/.github/prompts/ac.prompt.md +282 -177
  34. package/framework/mobile_development/.iflow/commands/ac-lite.md +70 -179
  35. package/framework/mobile_development/.iflow/commands/ac.md +226 -410
  36. package/framework/mobile_development/.kilocode/workflows/ac-lite.md +70 -179
  37. package/framework/mobile_development/.kilocode/workflows/ac.md +226 -410
  38. package/framework/mobile_development/.kimi/workflows/ac-lite.md +70 -179
  39. package/framework/mobile_development/.kimi/workflows/ac.md +226 -410
  40. package/framework/mobile_development/.opencode/command/ac-lite.md +70 -179
  41. package/framework/mobile_development/.opencode/command/ac.md +226 -410
  42. package/framework/mobile_development/.qoder/commands/opsx/ac-lite.md +70 -179
  43. package/framework/mobile_development/.qoder/commands/opsx/ac.md +226 -410
  44. package/framework/mobile_development/.qwen/commands/ac-lite.md +70 -179
  45. package/framework/mobile_development/.qwen/commands/ac.md +226 -410
  46. package/framework/mobile_development/.roo/commands/ac-lite.md +70 -179
  47. package/framework/mobile_development/.roo/commands/ac.md +226 -410
  48. package/framework/mobile_development/.windsurf/workflows/ac-lite.md +70 -179
  49. package/framework/mobile_development/.windsurf/workflows/ac.md +226 -410
  50. package/framework/mobile_development/AGENTS.md +205 -416
  51. package/framework/mobile_development/CLAUDE.md +205 -416
  52. package/framework/mobile_development/GEMINI.md +205 -416
  53. package/framework/mobile_development/copilot-instructions.md +205 -416
  54. package/framework/new_project/.opencode/command/ac.md +27 -0
  55. package/framework/new_project/AGENTS.md +27 -0
  56. package/framework/web_development/.opencode/command/ac.md +27 -0
  57. package/framework/web_development/AGENTS.md +27 -0
  58. package/package.json +1 -1
  59. package/src/commands/agents.js +71 -2
  60. package/src/commands/init.js +33 -0
  61. package/src/mcp/collab-server.js +198 -0
  62. package/src/services/mcp-installer.js +82 -54
@@ -1,192 +1,297 @@
1
1
  **Fundamental Principle**: *"Quality over speed. Documentation before code. Planning before execution."*
2
2
 
3
- --- YOU SHOULD FOLLOW THIS EXACT WORKFLOW HERE, DONT SKIP STEPS, DONT CHANGE THE ORDER OF THE WORKFLOW, DONT SKIP SKILLS, DONT SKIP PHASES, DONT SKIP ANYTHING, JUST FOLLOW THE WORKFLOW EXACTLY AS IT IS WRITTEN HERE
4
-
5
- ## 🛠️ Available Skills
6
-
7
- ### Quality and Security Skills
8
-
9
- | Skill | Description | Primary Use |
10
- |-------|-------------|---------------|
11
- | `secure-coding-cybersecurity` | Detects and prevents security vulnerabilities (SQLi, XSS, command injection, hardcoded secrets). Follows OWASP Top 10 standards. | Secure code validation |
12
- | `code-maintainability` | Analyzes code maintainability: duplication, documentation, error handling, naming conventions, SOLID architecture, performance. | Refactoring and standards |
13
- | `error-handling-patterns` | Error handling patterns in multiple languages: exceptions, Result types, retry, circuit breaker, graceful degradation. | Application resilience |
14
- | `performance-optimizer` | Methodologies for measuring, profiling, and optimizing code (caching, algorithm complexity, resource usage). | Performance Engineering |
15
- | `test-generator` | Generate comprehensive test suites (Unit, Integration, E2E) ensuring requirements are met. | Test Driven Development |
16
-
17
- ### SpecKit Consistency & Quality Skills
18
-
19
- | Skill | Description | Primary Use |
20
- |-------|-------------|---------------|
21
- | `project-constitution` | Manage the project's core principles and ensuring alignment. | Project Governance |
22
- | `requirement-checklist` | Generate quality control checklists for requirements (unit tests for specs). | Requirements Quality |
23
- | `spec-analysis` | Analyze consistency across Spec, Plan, and Tasks. | Consistency Check |
24
- | `spec-clarification` | Interactively clarify specific sections of the spec. | Ambiguity Resolution |
25
-
26
- ### Planning and Design Skills
27
-
28
- | Skill | Description | Primary Use |
29
- |-------|-------------|---------------|
30
- | `brainstorming` | Generates ideas and questions decisions before implementing. Explores requirements, constraints, and success criteria. | Design and architecture |
31
- | `api-design-principles` | REST and GraphQL design principles: resources, endpoints, pagination, versioning, HATEOAS. | API design |
32
- | `interface-design` | Interface design (dashboards, admin panels, apps). NOT for landing pages/marketing. | UI design |
33
-
34
- ### OpenSpec Skills (The heart of the framework)
35
-
36
- | Skill | Description | Primary Use |
37
- |-------|-------------|---------------|
38
- | `openspec-explore` | Exploration mode to investigate problems, map architecture, find integration points before implementing. | Pre-analysis |
39
- | `openspec-new-change` | Creates a new change with step-by-step workflow (proposal specs design → tasks). | Structured start |
40
- | `openspec-ff-change` | Fast-forward: creates all artifacts at once to start implementation quickly. | Quick start |
41
- | `openspec-continue-change` | Continues an existing change by creating the next artifact in the sequence. | Continue workflow |
42
- | `openspec-apply-change` | Implements tasks from a change (applies code according to specs and tasks). | Change execution |
43
- | `openspec-verify-change` | Verifies that implementation matches artifacts (specs, tasks, design). | Validation |
44
- | `openspec-archive-change` | Archives a completed change by moving it to `openspec/changes/archive/`. | Change closure |
45
- | `openspec-onboard` | Guided tutorial to learn OpenSpec with a complete example workflow. | Learning |
46
- | `openspec-sync-specs` | Synchronizes delta specs to main specs (intelligent merge). | Update specs |
47
- | `openspec-bulk-archive-change` | Archives multiple completed changes at once. | Bulk cleanup |
48
-
49
- ### Documentation and Debugging Skills
50
-
51
- | Skill | Description | Primary Use |
52
- |-------|-------------|---------------|
53
- | `project-index` | Generates structured project documentation: structure analysis, domains, agent guides. | Indexing and context |
54
- | `sync-index` | Keep project documentation (`project-index` and sub-skills) in sync with codebase changes. | Documentation Sync |
55
- | `systematic-debugging` | Structured debugging in 4 phases: root cause investigation, pattern analysis, hypothesis, implementation. | Problem resolution |
56
- | `changelog-generator` | Creates automated changelogs from git commits, translating technical to user language. | Version history |
57
- | `skill-writer` | Guide to create new skills for Claude Code with correct structure and frontmatter. | Create new skills |
3
+ --- **CRITICAL: ZERO SKIP POLICY** ---
4
+
5
+ **YOU CANNOT SKIP ANY STEP. YOU CANNOT SKIP ANY SKILL. YOU CANNOT SKIP ANY PHASE.**
6
+
7
+ If you attempt to proceed without completing a required step, you MUST STOP and complete it first.
8
+
9
+ ---
10
+
11
+ ## Available Skills
12
+
13
+ ### AC Framework Core Skills
14
+
15
+ | Skill | Description | Primary Use | Required Before |
16
+ |-------|-------------|-------------|-----------------|
17
+ | `acfm-spec-workflow` | **START HERE - MANDATORY**. Understand spec-driven workflow, `.acfm/` vs `openspec/`, and required CLI commands. | Foundation | **ANYTHING ELSE** |
18
+ | `acfm-memory` | **PERSISTENT MEMORY PROTOCOL**. Recall project context on session start and save reusable decisions/patterns after significant work. | Knowledge persistence | Session start and after significant work |
19
+
20
+ ### OpenSpec Workflow Skills
21
+
22
+ | Skill | Description | Primary Use | Required Before |
23
+ |-------|-------------|-------------|-----------------|
24
+ | `openspec-explore` | Explore architecture, constraints, and integration points before committing implementation details. | Pre-analysis | `acfm-spec-workflow` |
25
+ | `openspec-new-change` | Start a new change with structured artifacts. | Structured start | `brainstorming` |
26
+ | `openspec-ff-change` | Fast-forward artifact creation when speed is needed and scope is clear. | Accelerated start | `brainstorming` |
27
+ | `openspec-continue-change` | Continue artifact generation in sequence (proposal/specs/design/tasks). | Workflow continuation | `openspec-new-change` OR `microtask-decomposition` |
28
+ | `openspec-apply-change` | Implement tasks from artifacts. | Implementation | `openspec-continue-change` |
29
+ | `openspec-verify-change` | Verify implementation against artifacts. | Validation | `openspec-apply-change` |
30
+ | `openspec-sync-specs` | Merge delta specs to main specs without archiving. | Spec synchronization | `openspec-verify-change` |
31
+ | `openspec-archive-change` | Archive completed change. | Change closure | `openspec-verify-change` |
32
+ | `openspec-bulk-archive-change` | Archive multiple completed changes. | Batch closure | `openspec-verify-change` |
33
+ | `openspec-onboard` | Guided walkthrough to learn full OpenSpec lifecycle. | Learning | `acfm-spec-workflow` |
34
+
35
+ ### Spec and Planning Skills
36
+
37
+ | Skill | Description | Primary Use | Required Before |
38
+ |-------|-------------|-------------|-----------------|
39
+ | `project-constitution` | Define and maintain core project principles. | Governance | **PHASE 1 START** |
40
+ | `project-index` | Map codebase structure and document domains/agent guidance. | Context mapping | `project-constitution` |
41
+ | `context-synthesizer` | Maintain continuity in long sessions and multi-change efforts. | Context management | `project-constitution` |
42
+ | `research-retrieval` | Pull external references and technical docs. | Research | `openspec-explore` |
43
+ | `brainstorming` | Generate all key questions up front to reduce hidden assumptions. | Design thinking | `openspec-explore` |
44
+ | `spec-clarification` | Resolve ambiguity in specs with targeted clarifications. | Requirement clarity | `openspec-new-change` |
45
+ | `spec-analysis` | Check consistency across proposal/specs/design/tasks. | Consistency check | `openspec-continue-change` |
46
+ | `microtask-decomposition` | Split complex tasks into smaller executable microtasks (only when needed). | Advanced decomposition | `openspec-continue-change` |
47
+
48
+ ### Mobile Platform and Stack Skills
49
+
50
+ | Skill | Description | Primary Use | Required Before |
51
+ |-------|-------------|-------------|-----------------|
52
+ | `mobile-design` | Mobile-first doctrine: touch, performance, offline, platform behavior. | Baseline mobile standards | `project-constitution` |
53
+ | `mobile-ios-design` | iOS HIG-driven UI/UX guidance and SwiftUI-oriented patterns. | iOS interface design | `spec-clarification` [IF iOS UI] |
54
+ | `mobile-android-design` | Material 3 and Android UX patterns. | Android interface design | `spec-clarification` [IF Android UI] |
55
+ | `react-native-design` | React Native layout, animation, navigation, and mobile UX design. | RN UI design | `spec-clarification` [IF React Native] |
56
+ | `react-native-architecture` | React Native architecture, native modules, offline/data boundaries. | RN architecture | `spec-clarification` [IF React Native] |
57
+ | `react-state-management` | Choose and implement robust state strategy (Redux Toolkit/Zustand/Jotai/etc.). | RN/React state design | `spec-clarification` [IF complex state] |
58
+ | `flutter-expert` | Flutter/Dart architecture and implementation guidance. | Flutter implementation | `spec-clarification` [IF Flutter] |
59
+ | `ios-developer` | Native iOS engineering (Swift/SwiftUI/UIKit, platform integration). | Native iOS implementation | `spec-clarification` [IF native iOS] |
60
+
61
+ ### Delivery and Support Skills
62
+
63
+ | Skill | Description | Primary Use | Required Before |
64
+ |-------|-------------|-------------|-----------------|
65
+ | `systematic-debugging` | Structured bug isolation and root-cause resolution. | Debugging | When bugs appear |
66
+ | `documentation` | Generate technical docs, architecture notes, and usage guidance. | Documentation | `openspec-verify-change` |
67
+ | `sync-index` | Keep project index and generated guidance synchronized with implementation. | Documentation sync | `openspec-apply-change` |
68
+ | `changelog-generator` | Create user-facing release notes from implementation changes. | Release communication | `openspec-archive-change` |
58
69
 
59
70
  ---
60
71
 
61
- ## 🚀 Workflow: New Project
72
+ ## Persistent Memory Protocol (Mandatory)
73
+
74
+ The AC Framework includes a persistent memory system that agents must use proactively.
62
75
 
63
- When starting a project **from scratch**, follow this mandatory workflow:
76
+ **Session-start requirement (always):**
77
+ 1. At the start of every new chat/session, consult the available persistent memory tool or MCP before planning or implementing.
78
+ 2. Recall project-level context first, then search for task-specific decisions, conventions, bugfixes, and architecture notes.
79
+ 3. Treat recalled memory as active project context unless current repository state or explicit user instruction supersedes it.
80
+ 4. If memory tooling is unavailable, continue with repository inspection and use AC Framework CLI fallback.
64
81
 
82
+ **What gets saved automatically (only reusable context):**
83
+ - Architectural decisions from proposal/design artifacts
84
+ - Bugfix patterns and repeated solutions
85
+ - Performance and optimization insights
86
+ - Refactoring techniques and conventions
87
+ - Reusable workflow constraints and team rules
88
+
89
+ **Memory hygiene rules:**
90
+ - Never save secrets, credentials, tokens, or sensitive one-off values
91
+ - Redact content inside `<private>...</private>` before saving
92
+ - Use concise titles, correct memory type, useful tags, realistic confidence
93
+
94
+ **User communication:** `Memory saved: [brief description]`
95
+
96
+ ---
97
+
98
+ ## CRITICAL: How to Use Skills - ZERO SKIP POLICY
99
+
100
+ ### BLOCKING RULES - YOU CANNOT PROCEED WITHOUT THESE:
101
+
102
+ **Rule 1: Phase Completion Checkpoint**
103
+ After EACH phase, you MUST confirm completion:
65
104
  ```
66
- ┌─────────────────────────────────────────────────────────────────────────────────┐
67
- │ WORKFLOW: NEW PROJECT │
68
- └─────────────────────────────────────────────────────────────────────────────────┘
69
-
70
- ┌─────────────────┐
71
- │ START
72
- └────────┬────────┘
73
-
74
-
75
- ┌──────────────────────────────────────────────┐
76
- │ PHASE 1: FOUNDATIONS & GOVERNANCE │
77
- │ 1. project-constitution │
78
- │ └─ Define core principles │
79
- │ 2. secure-coding-cybersecurity │
80
- │ └─ Establish security guidelines │
81
- │ 3. code-maintainability │
82
- │ └─ Define quality standards │
83
- └────────────────────┬─────────────────────────┘
84
-
85
-
86
- ┌──────────────────────────────────────────────┐
87
- │ PHASE 2: DISCOVERY & PLANNING │
88
- │ 4. brainstorming │
89
- │ └─ Architecture/Idea generation │
90
- │ 5. openspec-new-change │
91
- │ └─ Create proposal │
92
- │ 6. spec-clarification (CRITICAL) │
93
- │ └─ Refine requirements interactively │
94
- │ 7. openspec-continue-change │
95
- │ └─ Draft Specs, Design, Tasks │
96
- │ 8. requirement-checklist │
97
- │ └─ "Unit test" the specs │
98
- │ 9. spec-analysis │
99
- │ └─ Verify Spec/Plan consistency │
100
- └────────────────────┬─────────────────────────┘
101
-
102
-
103
- ┌──────────────────────────────────────────────┐
104
- │ PHASE 3: IMPLEMENTATION │
105
- │ 10. test-generator │
106
- │ └─ TDD: Write tests first │
107
- │ 11. openspec-apply-change │
108
- │ └─ Implement code to pass tests │
109
- │ 12. performance-optimizer │
110
- │ └─ Optimize critical paths │
111
- └────────────────────┬─────────────────────────┘
112
-
113
-
114
- ┌──────────────────────────────────────────────┐
115
- │ PHASE 4: VALIDATION & CLOSURE │
116
- │ 13. systematic-debugging │
117
- │ └─ Resolve any issues │
118
- │ 14. openspec-verify-change │
119
- │ └─ Validate against initial specs │
120
- │ 15. sync-index │
121
- │ └─ Update project docs │
122
- │ 16. openspec-archive-change │
123
- │ └─ Archive the change │
124
- └──────────────────────────────────────────────┘
105
+ +------------------------------------------------------------+
106
+ | PHASE [X] COMPLETION CHECKPOINT |
107
+ +------------------------------------------------------------+
108
+ | Have you COMPLETED ALL skills in Phase [X]? |
109
+ | [ ] Yes - I read and executed every required skill |
110
+ | [ ] No - I must go back and complete missing skills |
111
+ +------------------------------------------------------------+
125
112
  ```
113
+ **IF NO: STOP. Go back and complete missing skills.**
114
+
115
+ **Rule 2: Skill Dependency Chain**
116
+ Each skill table above shows `Required Before`. You CANNOT use a skill before satisfying its dependency.
117
+
118
+ **Rule 3: Output Verification**
119
+ Before proceeding to next phase, verify outputs exist:
120
+
121
+ | Phase | Required Outputs | Check |
122
+ |-------|------------------|-------|
123
+ | Phase 0 | `acfm spec status` validated + memory recall completed | [ ] |
124
+ | Phase 1 | `project-constitution` defined + mobile baseline declared | [ ] |
125
+ | Phase 2 | exploration notes + platform/stack decision recorded | [ ] |
126
+ | Phase 3 | `proposal.md`, `specs/`, `design.md`, `tasks.md` + `spec-analysis` review | [ ] |
127
+ | Phase 4 | implementation done + tasks updated + issues debugged | [ ] |
128
+ | Phase 5 | verification passed + docs/index synced + archive/sync complete | [ ] |
129
+
130
+ **Rule 4: Pre-Implementation Safety Check**
131
+ Before `openspec-apply-change`, ALL must be TRUE:
132
+ - [ ] `tasks.md` exists and contains actionable checkboxes
133
+ - [ ] Target platform(s) and stack (Flutter / React Native / Native iOS) are explicit
134
+ - [ ] Required mobile skills for selected stack/platform have been applied
135
+ - [ ] `design.md` and `spec-analysis` were reviewed
136
+
137
+ **IF ANY IS FALSE: STOP. Complete missing items.**
126
138
 
127
139
  ---
128
140
 
129
- ## 🔄 Workflow: Existing Project
141
+ ## Workflow: New Mobile Project
130
142
 
131
- When working on an **existing codebase** (adding features, fixing bugs, refactoring):
143
+ When starting a mobile project **from scratch**, follow this **MANDATORY** workflow:
132
144
 
133
145
  ```
134
- ┌─────────────────────────────────────────────────────────────────────────────────┐
135
- WORKFLOW: EXISTING PROJECT
136
- └─────────────────────────────────────────────────────────────────────────────────┘
137
-
138
- ┌─────────────────┐
139
- │ START CHANGE │
140
- └────────┬────────┘
141
-
142
-
143
- ┌──────────────────────────────────────────────┐
144
- │ PHASE 1: CONTEXT & ANALYSIS │
145
- │ 1. project-index (if needed) │
146
- │ └─ Map current system │
147
- │ 2. openspec-explore │
148
- │ └─ Deep dive into relevant modules │
149
- │ 3. brainstorming │
150
- │ └─ Ideate on feature/fix │
151
- └────────────────────┬─────────────────────────┘
152
-
153
-
154
- ┌──────────────────────────────────────────────┐
155
- │ PHASE 2: REQUIREMENTS & PLANNING │
156
- │ 4. openspec-new-change │
157
- │ └─ Initialize change artifact │
158
- │ 5. spec-clarification │
159
- │ └─ CLARIFY requirements first │
160
- 6. requirement-checklist │
161
- │ └─ Validate requirements │
162
- │ 7. openspec-continue-change │
163
- │ └─ Draft Specs, Design, Tasks │
164
- │ 8. spec-analysis │
165
- │ └─ Check consistency with existing │
166
- └────────────────────┬─────────────────────────┘
167
-
168
-
169
- ┌──────────────────────────────────────────────┐
170
- PHASE 3: TEST-DRIVEN IMPLEMENTATION │
171
- │ 9. test-generator │
172
- │ └─ Generate tests for new feature │
173
- │ 10. openspec-apply-change │
174
- │ └─ Implement code │
175
- │ 11. secure-coding-cybersecurity │
176
- │ └─ Audit new code │
177
- └────────────────────┬─────────────────────────┘
178
-
179
-
180
- ┌──────────────────────────────────────────────┐
181
- │ PHASE 4: OPTIMIZATION & VERIFICATION │
182
- │ 12. systematic-debugging │
183
- │ └─ Fix regressions │
184
- │ 13. performance-optimizer │
185
- │ └─ Ensure no perf degradation │
186
- 14. openspec-verify-change │
187
- │ └─ Final verification │
188
- │ 15. sync-index (IMPORTANT) │
189
- │ └─ Update docs with new changes │
190
- │ 16. openspec-archive-change │
191
- │ └─ Archive change │
192
- └──────────────────────────────────────────────
146
+ +--------------------------------------------------------------------------+
147
+ | WORKFLOW: NEW MOBILE PROJECT - ZERO SKIP |
148
+ +--------------------------------------------------------------------------+
149
+
150
+ START
151
+ |
152
+ v
153
+ PHASE 0 - AC FRAMEWORK SETUP (BLOCKING)
154
+ 1) acfm-spec-workflow
155
+ - verify initialization and workflow mode
156
+ - run `acfm spec init` if missing
157
+ 2) acfm-memory
158
+ - perform session-start memory recall
159
+
160
+ CHECKPOINT: initialized + memory recall complete
161
+ |
162
+ v
163
+ PHASE 1 - FOUNDATIONS AND MOBILE BASELINE
164
+ 3) project-constitution
165
+ 4) mobile-design (mandatory baseline doctrine)
166
+ 5) context-synthesizer
167
+ 6) project-index (if not created)
168
+
169
+ CHECKPOINT: constitution + baseline mobile rules documented
170
+ |
171
+ v
172
+ PHASE 2 - DISCOVERY AND REQUIREMENTS
173
+ 7) openspec-explore
174
+ 8) research-retrieval
175
+ 9) brainstorming (single comprehensive question set)
176
+ 10) openspec-new-change (or openspec-ff-change if explicitly chosen)
177
+ 11) spec-clarification
178
+
179
+ CHECKPOINT: scope clarified + platform/stack chosen
180
+ |
181
+ v
182
+ PHASE 3 - DESIGN AND TASK PLANNING
183
+ 12) openspec-continue-change (proposal/specs/design/tasks)
184
+ 13) spec-analysis
185
+ 14) microtask-decomposition [IF tasks are still too complex]
186
+ 15) platform/stack skills as required:
187
+ - mobile-ios-design [IF iOS UI]
188
+ - mobile-android-design [IF Android UI]
189
+ - react-native-design [IF RN UI]
190
+ - react-native-architecture [IF RN architecture]
191
+ - react-state-management [IF complex state]
192
+ - flutter-expert [IF Flutter]
193
+ - ios-developer [IF native iOS]
194
+
195
+ CHECKPOINT: proposal/spec/design/tasks coherent and implementation-ready
196
+ |
197
+ v
198
+ PHASE 4 - IMPLEMENTATION
199
+ 16) openspec-apply-change
200
+ 17) systematic-debugging [IF issues/regressions appear]
201
+ 18) update tasks progress in tasks.md continuously
202
+
203
+ CHECKPOINT: implementation complete and stable
204
+ |
205
+ v
206
+ PHASE 5 - VALIDATION AND CLOSURE
207
+ 19) openspec-verify-change
208
+ 20) documentation
209
+ 21) sync-index
210
+ 22) openspec-sync-specs [IF syncing specs without archive]
211
+ 23) openspec-archive-change OR openspec-bulk-archive-change
212
+ 24) changelog-generator
213
+ ```
214
+
215
+ **Conditional Skill Notes:**
216
+ - Use only skills that match selected platform/stack and risk profile.
217
+ - `mobile-design` is mandatory for all mobile work regardless of stack.
218
+ - `microtask-decomposition` is only for complex tasks after tasks.md exists.
219
+
220
+ ---
221
+
222
+ ## Workflow: Existing Mobile Project
223
+
224
+ When working on an **existing mobile codebase** (feature, bugfix, refactor):
225
+
226
+ ```
227
+ +--------------------------------------------------------------------------+
228
+ | WORKFLOW: EXISTING MOBILE PROJECT - ZERO SKIP |
229
+ +--------------------------------------------------------------------------+
230
+
231
+ START CHANGE
232
+ |
233
+ v
234
+ PHASE 0 - SETUP (BLOCKING)
235
+ 1) acfm-spec-workflow (status, current changes, initialization)
236
+ 2) acfm-memory (session-start recall)
237
+
238
+ PHASE 1 - CONTEXT AND DISCOVERY
239
+ 3) context-synthesizer
240
+ 4) project-index [if missing/stale]
241
+ 5) openspec-explore
242
+ 6) research-retrieval
243
+ 7) brainstorming
244
+
245
+ PHASE 2 - CLARIFICATION AND CHANGE INIT
246
+ 8) openspec-new-change
247
+ 9) spec-clarification
248
+
249
+ PHASE 3 - DESIGN, CONSISTENCY, AND PLATFORM FIT
250
+ 10) openspec-continue-change
251
+ 11) spec-analysis
252
+ 12) microtask-decomposition [if needed]
253
+ 13) apply required mobile platform/stack skills
254
+
255
+ PHASE 4 - IMPLEMENTATION
256
+ 14) openspec-apply-change
257
+ 15) systematic-debugging [if needed]
258
+
259
+ PHASE 5 - VALIDATION AND CLOSURE
260
+ 16) openspec-verify-change
261
+ 17) documentation
262
+ 18) sync-index
263
+ 19) openspec-sync-specs [if needed]
264
+ 20) openspec-archive-change / openspec-bulk-archive-change
265
+ 21) changelog-generator
266
+ ```
267
+
268
+ ---
269
+
270
+ ## Skill Loading Reference
271
+
272
+ All skills are located in: `skills/`
273
+
274
+ To load a skill, read its `SKILL.md` file:
275
+ - Example: `skills/spec-clarification/SKILL.md`
276
+ - Example: `skills/mobile-design/SKILL.md`
277
+ - Example: `skills/react-native-architecture/SKILL.md`
278
+
279
+ ### MANDATORY SKILL EXECUTION CHECKLIST
280
+
281
+ Before claiming a skill is done, verify:
282
+ - [ ] I read the entire `SKILL.md`
283
+ - [ ] I executed all required steps
284
+ - [ ] I produced required artifacts/checkpoints
285
+ - [ ] I can explain exactly what the skill produced
286
+
287
+ ---
288
+
289
+ ## VIOLATION CONSEQUENCES
290
+
291
+ If you skip a skill or phase:
292
+ 1. Workflow integrity is compromised
293
+ 2. Mobile quality and consistency are no longer guaranteed
294
+ 3. You MUST return and complete the missing steps
295
+ 4. No shortcuts. No exceptions.
296
+
297
+ **Quality over speed. Documentation before code. Planning before execution.**