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.
- package/README.md +8 -0
- package/bin/postinstall.js +2 -0
- package/framework/mobile_development/.agent/workflows/ac-lite.md +70 -179
- package/framework/mobile_development/.agent/workflows/ac.md +226 -410
- package/framework/mobile_development/.amazonq/prompts/ac-lite.md +70 -179
- package/framework/mobile_development/.amazonq/prompts/ac.md +226 -410
- package/framework/mobile_development/.antigravity/workflows/ac-lite.md +70 -179
- package/framework/mobile_development/.antigravity/workflows/ac.md +226 -410
- package/framework/mobile_development/.augment/commands/ac-lite.md +70 -179
- package/framework/mobile_development/.augment/commands/ac.md +226 -410
- package/framework/mobile_development/.claude/commands/opsx/ac-lite.md +70 -179
- package/framework/mobile_development/.claude/commands/opsx/ac.md +226 -410
- package/framework/mobile_development/.cline/commands/opsx/ac-lite.md +70 -179
- package/framework/mobile_development/.cline/commands/opsx/ac.md +226 -410
- package/framework/mobile_development/.clinerules/workflows/ac-lite.md +70 -179
- package/framework/mobile_development/.clinerules/workflows/ac.md +226 -410
- package/framework/mobile_development/.codebuddy/commands/opsx/ac-lite.md +70 -179
- package/framework/mobile_development/.codebuddy/commands/opsx/ac.md +226 -410
- package/framework/mobile_development/.continue/prompts/ac-lite.md +70 -179
- package/framework/mobile_development/.continue/prompts/ac.md +226 -410
- package/framework/mobile_development/.cospec/openspec/commands/ac-lite.md +70 -179
- package/framework/mobile_development/.cospec/openspec/commands/ac.md +226 -410
- package/framework/mobile_development/.crush/commands/opsx/ac-lite.md +70 -179
- package/framework/mobile_development/.crush/commands/opsx/ac.md +226 -410
- package/framework/mobile_development/.cursor/commands/ac-lite.md +70 -179
- package/framework/mobile_development/.cursor/commands/ac.md +226 -410
- package/framework/mobile_development/.factory/commands/ac-lite.md +70 -179
- package/framework/mobile_development/.factory/commands/ac.md +226 -410
- package/framework/mobile_development/.gemini/commands/opsx/ac-lite.md +70 -179
- package/framework/mobile_development/.gemini/commands/opsx/ac.md +226 -410
- package/framework/mobile_development/.github/prompts/ac-lite.md +70 -179
- package/framework/mobile_development/.github/prompts/ac.md +226 -410
- package/framework/mobile_development/.github/prompts/ac.prompt.md +282 -177
- package/framework/mobile_development/.iflow/commands/ac-lite.md +70 -179
- package/framework/mobile_development/.iflow/commands/ac.md +226 -410
- package/framework/mobile_development/.kilocode/workflows/ac-lite.md +70 -179
- package/framework/mobile_development/.kilocode/workflows/ac.md +226 -410
- package/framework/mobile_development/.kimi/workflows/ac-lite.md +70 -179
- package/framework/mobile_development/.kimi/workflows/ac.md +226 -410
- package/framework/mobile_development/.opencode/command/ac-lite.md +70 -179
- package/framework/mobile_development/.opencode/command/ac.md +226 -410
- package/framework/mobile_development/.qoder/commands/opsx/ac-lite.md +70 -179
- package/framework/mobile_development/.qoder/commands/opsx/ac.md +226 -410
- package/framework/mobile_development/.qwen/commands/ac-lite.md +70 -179
- package/framework/mobile_development/.qwen/commands/ac.md +226 -410
- package/framework/mobile_development/.roo/commands/ac-lite.md +70 -179
- package/framework/mobile_development/.roo/commands/ac.md +226 -410
- package/framework/mobile_development/.windsurf/workflows/ac-lite.md +70 -179
- package/framework/mobile_development/.windsurf/workflows/ac.md +226 -410
- package/framework/mobile_development/AGENTS.md +205 -416
- package/framework/mobile_development/CLAUDE.md +205 -416
- package/framework/mobile_development/GEMINI.md +205 -416
- package/framework/mobile_development/copilot-instructions.md +205 -416
- package/framework/new_project/.opencode/command/ac.md +27 -0
- package/framework/new_project/AGENTS.md +27 -0
- package/framework/web_development/.opencode/command/ac.md +27 -0
- package/framework/web_development/AGENTS.md +27 -0
- package/package.json +1 -1
- package/src/commands/agents.js +71 -2
- package/src/commands/init.js +33 -0
- package/src/mcp/collab-server.js +198 -0
- package/src/services/mcp-installer.js +82 -54
|
@@ -10,132 +10,115 @@ If you attempt to proceed without completing a required step, you MUST STOP and
|
|
|
10
10
|
|
|
11
11
|
## Available Skills
|
|
12
12
|
|
|
13
|
-
###
|
|
13
|
+
### AC Framework Core Skills
|
|
14
14
|
|
|
15
15
|
| Skill | Description | Primary Use | Required Before |
|
|
16
16
|
|-------|-------------|-------------|-----------------|
|
|
17
|
-
| `
|
|
18
|
-
| `
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
| `test-generator` | Generate comprehensive test suites (Unit, Integration, E2E) ensuring requirements are met. | Test Driven Development | `openspec-continue-change` |
|
|
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
|
|
22
21
|
|
|
23
|
-
|
|
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
|
|
24
36
|
|
|
25
37
|
| Skill | Description | Primary Use | Required Before |
|
|
26
38
|
|-------|-------------|-------------|-----------------|
|
|
27
|
-
| `project-constitution` |
|
|
28
|
-
| `
|
|
29
|
-
| `
|
|
30
|
-
| `
|
|
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` |
|
|
31
47
|
|
|
32
|
-
###
|
|
48
|
+
### Mobile Platform and Stack Skills
|
|
33
49
|
|
|
34
50
|
| Skill | Description | Primary Use | Required Before |
|
|
35
51
|
|-------|-------------|-------------|-----------------|
|
|
36
|
-
| `
|
|
37
|
-
| `
|
|
38
|
-
| `
|
|
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] |
|
|
39
60
|
|
|
40
|
-
###
|
|
61
|
+
### Delivery and Support Skills
|
|
41
62
|
|
|
42
63
|
| Skill | Description | Primary Use | Required Before |
|
|
43
64
|
|-------|-------------|-------------|-----------------|
|
|
44
|
-
| `
|
|
45
|
-
| `
|
|
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` |
|
|
69
|
+
|
|
70
|
+
---
|
|
46
71
|
|
|
47
|
-
|
|
72
|
+
## Persistent Memory Protocol (Mandatory)
|
|
48
73
|
|
|
49
74
|
The AC Framework includes a persistent memory system that agents must use proactively.
|
|
50
75
|
|
|
51
76
|
**Session-start requirement (always):**
|
|
52
|
-
1. At the start of every new chat/session, consult the available persistent memory tool or MCP before planning
|
|
77
|
+
1. At the start of every new chat/session, consult the available persistent memory tool or MCP before planning or implementing.
|
|
53
78
|
2. Recall project-level context first, then search for task-specific decisions, conventions, bugfixes, and architecture notes.
|
|
54
|
-
3. Treat recalled memory as active project context unless
|
|
55
|
-
4. If memory tooling is unavailable, continue with repository inspection and use
|
|
56
|
-
|
|
57
|
-
**What gets saved automatically:**
|
|
58
|
-
- Architectural decisions from proposals/designs
|
|
59
|
-
- Bugfix patterns and solutions
|
|
60
|
-
- Performance optimizations
|
|
61
|
-
- Refactoring techniques
|
|
62
|
-
- Security fixes
|
|
63
|
-
- API patterns and conventions
|
|
64
|
-
- Reusable workflow conventions and project constraints
|
|
65
|
-
|
|
66
|
-
**How to use memory:**
|
|
67
|
-
```text
|
|
68
|
-
Preferred: use the available persistent memory tool or MCP for recall, search, save, and project-scoped context.
|
|
69
|
-
Fallback: use the AC Framework memory CLI commands when direct tool access is not available.
|
|
70
|
-
```
|
|
71
|
-
```bash
|
|
72
|
-
# Recall relevant context before starting work
|
|
73
|
-
acfm memory recall "implementing authentication"
|
|
74
|
-
|
|
75
|
-
# Search for specific patterns
|
|
76
|
-
acfm memory search "JWT token refresh"
|
|
77
|
-
|
|
78
|
-
# Get full context for current project
|
|
79
|
-
acfm memory recall
|
|
80
|
-
|
|
81
|
-
# View statistics
|
|
82
|
-
acfm memory stats
|
|
83
|
-
```
|
|
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.
|
|
84
81
|
|
|
85
|
-
**
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
6. After identifying conventions, constraints, or reusable operating rules worth preserving
|
|
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
|
|
92
88
|
|
|
93
89
|
**Memory hygiene rules:**
|
|
94
|
-
-
|
|
95
|
-
-
|
|
96
|
-
-
|
|
97
|
-
- Prefer concise titles, the correct memory type, clear tags, and realistic confidence scores.
|
|
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
|
|
98
93
|
|
|
99
|
-
**User communication:**
|
|
94
|
+
**User communication:** `Memory saved: [brief description]`
|
|
100
95
|
|
|
96
|
+
## SynapseGrid Collaborative MCP Protocol (Optional)
|
|
101
97
|
|
|
102
|
-
|
|
98
|
+
If SynapseGrid is enabled in `acfm init`, AC Framework installs the collaborative MCP server automatically for detected assistants.
|
|
103
99
|
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
| `openspec-ff-change` | Fast-forward: creates all artifacts at once to start implementation quickly. | Quick start | `brainstorming` |
|
|
109
|
-
| `openspec-continue-change` | Continues an existing change by creating the next artifact in the sequence. | Continue workflow | `openspec-new-change` OR `microtask-decomposition` |
|
|
110
|
-
| `openspec-apply-change` | Implements tasks from a change (applies code according to specs and tasks). | Change execution | `test-generator` |
|
|
111
|
-
| `openspec-verify-change` | Verifies that implementation matches artifacts (specs, tasks, design). | Validation | `openspec-apply-change` |
|
|
112
|
-
| `openspec-archive-change` | Archives a completed change by moving it to `{specDir}/changes/archive/`. | Change closure | `openspec-verify-change` |
|
|
113
|
-
| `openspec-onboard` | Guided tutorial to learn OpenSpec with a complete example workflow. | Learning | `acfm-spec-workflow` |
|
|
114
|
-
| `openspec-sync-specs` | Synchronizes delta specs to main specs (intelligent merge). | Update specs | `openspec-verify-change` |
|
|
115
|
-
| `openspec-bulk-archive-change` | Archives multiple completed changes at once. | Bulk cleanup | `openspec-verify-change` |
|
|
116
|
-
|
|
117
|
-
### Documentation and Debugging Skills
|
|
100
|
+
**Session-start requirement when collaboration is enabled:**
|
|
101
|
+
1. Prefer the available SynapseGrid MCP tools for collaborative session control before falling back to direct CLI.
|
|
102
|
+
2. Use shared session state and transcript as the source of truth for role-by-role collaboration.
|
|
103
|
+
3. If collaborative MCP is unavailable, use CLI fallback commands and keep behavior equivalent.
|
|
118
104
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
105
|
+
**How to use SynapseGrid collaboration:**
|
|
106
|
+
```text
|
|
107
|
+
Preferred: use SynapseGrid MCP tools (ac-framework-collab) for session start/status/step/stop.
|
|
108
|
+
Fallback: use AC Framework agents CLI commands directly.
|
|
109
|
+
```
|
|
110
|
+
```bash
|
|
111
|
+
# Optional install/reinstall of collaborative MCP servers
|
|
112
|
+
acfm agents install-mcps
|
|
127
113
|
|
|
128
|
-
|
|
114
|
+
# Start collaborative runtime manually
|
|
115
|
+
acfm agents start --task "design and implement feature X"
|
|
129
116
|
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
| `documentation` | Generate clear documentation for each task: technical descriptions, architecture diagrams, usage guides. | Documentation & communication | `openspec-verify-change` |
|
|
136
|
-
| `research-retrieval` | Search external documentation (web pages, API docs, papers) and generate useful summaries for development. | Research & context gathering | `openspec-explore` |
|
|
137
|
-
| `context-synthesizer` | Manage memory in long projects and summarize current state to prevent agent context loss. | Memory & context management | `project-constitution` |
|
|
138
|
-
| `ci-deploy` | Automate continuous integration, deployment, and post-deployment verification of developed solutions. | CI/CD automation | `openspec-verify-change` |
|
|
117
|
+
# Resume/list/export operations
|
|
118
|
+
acfm agents resume
|
|
119
|
+
acfm agents list
|
|
120
|
+
acfm agents export --format md --out synapse-session.md
|
|
121
|
+
```
|
|
139
122
|
|
|
140
123
|
---
|
|
141
124
|
|
|
@@ -146,363 +129,196 @@ acfm memory stats
|
|
|
146
129
|
**Rule 1: Phase Completion Checkpoint**
|
|
147
130
|
After EACH phase, you MUST confirm completion:
|
|
148
131
|
```
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
132
|
+
+------------------------------------------------------------+
|
|
133
|
+
| PHASE [X] COMPLETION CHECKPOINT |
|
|
134
|
+
+------------------------------------------------------------+
|
|
135
|
+
| Have you COMPLETED ALL skills in Phase [X]? |
|
|
136
|
+
| [ ] Yes - I read and executed every required skill |
|
|
137
|
+
| [ ] No - I must go back and complete missing skills |
|
|
138
|
+
+------------------------------------------------------------+
|
|
156
139
|
```
|
|
157
140
|
**IF NO: STOP. Go back and complete missing skills.**
|
|
158
141
|
|
|
159
142
|
**Rule 2: Skill Dependency Chain**
|
|
160
|
-
Each skill table above shows
|
|
143
|
+
Each skill table above shows `Required Before`. You CANNOT use a skill before satisfying its dependency.
|
|
161
144
|
|
|
162
145
|
**Rule 3: Output Verification**
|
|
163
|
-
Before proceeding to next phase, verify
|
|
146
|
+
Before proceeding to next phase, verify outputs exist:
|
|
164
147
|
|
|
165
148
|
| Phase | Required Outputs | Check |
|
|
166
|
-
|
|
167
|
-
| Phase 0 | `acfm spec status`
|
|
168
|
-
| Phase 1 | project-constitution
|
|
169
|
-
| Phase 2 |
|
|
170
|
-
| Phase 3 | proposal.md
|
|
171
|
-
| Phase 4 |
|
|
172
|
-
| Phase 5 |
|
|
149
|
+
|-------|------------------|-------|
|
|
150
|
+
| Phase 0 | `acfm spec status` validated + memory recall completed | [ ] |
|
|
151
|
+
| Phase 1 | `project-constitution` defined + mobile baseline declared | [ ] |
|
|
152
|
+
| Phase 2 | exploration notes + platform/stack decision recorded | [ ] |
|
|
153
|
+
| Phase 3 | `proposal.md`, `specs/`, `design.md`, `tasks.md` + `spec-analysis` review | [ ] |
|
|
154
|
+
| Phase 4 | implementation done + tasks updated + issues debugged | [ ] |
|
|
155
|
+
| Phase 5 | verification passed + docs/index synced + archive/sync complete | [ ] |
|
|
173
156
|
|
|
174
157
|
**Rule 4: Pre-Implementation Safety Check**
|
|
175
158
|
Before `openspec-apply-change`, ALL must be TRUE:
|
|
176
|
-
- [ ] tasks.md exists and
|
|
177
|
-
- [ ]
|
|
178
|
-
- [ ]
|
|
179
|
-
- [ ] spec-analysis
|
|
159
|
+
- [ ] `tasks.md` exists and contains actionable checkboxes
|
|
160
|
+
- [ ] Target platform(s) and stack (Flutter / React Native / Native iOS) are explicit
|
|
161
|
+
- [ ] Required mobile skills for selected stack/platform have been applied
|
|
162
|
+
- [ ] `design.md` and `spec-analysis` were reviewed
|
|
180
163
|
|
|
181
164
|
**IF ANY IS FALSE: STOP. Complete missing items.**
|
|
182
165
|
|
|
183
166
|
---
|
|
184
167
|
|
|
185
|
-
## Workflow: New Project
|
|
168
|
+
## Workflow: New Mobile Project
|
|
186
169
|
|
|
187
|
-
When starting a project **from scratch**, follow this **MANDATORY** workflow:
|
|
170
|
+
When starting a mobile project **from scratch**, follow this **MANDATORY** workflow:
|
|
188
171
|
|
|
189
172
|
```
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
║ [ ] project-index.md exists
|
|
258
|
-
║ [ ] Exploration notes documented
|
|
259
|
-
║ [ ] Brainstorming questions answered
|
|
260
|
-
║
|
|
261
|
-
║ YES ▼
|
|
262
|
-
▼
|
|
263
|
-
╔══════════════════════════════════════════════╗
|
|
264
|
-
║ PHASE 3: REQUIREMENTS & DESIGN ║
|
|
265
|
-
╠══════════════════════════════════════════════╣
|
|
266
|
-
║ 10. spec-clarification (CRITICAL) ║
|
|
267
|
-
║ └─ CLARIFY requirements first ║
|
|
268
|
-
║ 11. openspec-new-change ║
|
|
269
|
-
║ └─ Create proposal ║
|
|
270
|
-
║ 12. microtask-decomposition ║
|
|
271
|
-
║ └─ ONLY if task is still too complex ║
|
|
272
|
-
║ └─ Break into MICROTASKS (1 file each) ║
|
|
273
|
-
║ 13. openspec-continue-change ║
|
|
274
|
-
║ └─ Draft Specs, Design, Tasks ║
|
|
275
|
-
║ 14. spec-analysis ║
|
|
276
|
-
║ └─ Verify consistency ║
|
|
277
|
-
║ 15. requirement-checklist ║
|
|
278
|
-
║ └─ "Unit test" the specs ║
|
|
279
|
-
║ 16. api-design-principles [IF APIs] ║
|
|
280
|
-
║ └─ Design REST/GraphQL APIs ║
|
|
281
|
-
║ 17. interface-design [IF UI] ║
|
|
282
|
-
║ └─ Design dashboards/apps interface ║
|
|
283
|
-
╚════════════════════╬═════════════════════════╝
|
|
284
|
-
║
|
|
285
|
-
║ CHECKPOINT: Phase 3 Complete?
|
|
286
|
-
║ [ ] proposal.md created
|
|
287
|
-
║ [ ] specs/ directory with specs
|
|
288
|
-
║ [ ] design.md written
|
|
289
|
-
║ [ ] tasks.md with checkboxes
|
|
290
|
-
║ [ ] spec-analysis passed
|
|
291
|
-
║
|
|
292
|
-
║ YES ▼
|
|
293
|
-
▼
|
|
294
|
-
╔══════════════════════════════════════════════╗
|
|
295
|
-
║ PHASE 4: IMPLEMENTATION ║
|
|
296
|
-
╠══════════════════════════════════════════════╣
|
|
297
|
-
║ SAFETY CHECK - ALL MUST BE TRUE: ║
|
|
298
|
-
║ [ ] tasks.md exists ║
|
|
299
|
-
║ [ ] Tests from test-generator written ║
|
|
300
|
-
║ [ ] design.md reviewed ║
|
|
301
|
-
║ [ ] spec-analysis shows consistency ║
|
|
302
|
-
╠══════════════════════════════════════════════╣
|
|
303
|
-
║ 18. test-generator ║
|
|
304
|
-
║ └─ TDD: Write tests first ║
|
|
305
|
-
║ 19. openspec-apply-change ║
|
|
306
|
-
║ └─ Implement code to pass tests ║
|
|
307
|
-
║ 20. testing-qa ║
|
|
308
|
-
║ └─ Automate test maintenance ║
|
|
309
|
-
║ 21. code-review ║
|
|
310
|
-
║ └─ Review for style/security/arch ║
|
|
311
|
-
║ 22. secure-coding-cybersecurity ║
|
|
312
|
-
║ └─ Audit code for security ║
|
|
313
|
-
║ 23. error-handling-patterns ║
|
|
314
|
-
║ └─ Verify robust error handling ║
|
|
315
|
-
║ 24. performance-optimizer ║
|
|
316
|
-
║ └─ Optimize critical paths ║
|
|
317
|
-
╚════════════════════╬═════════════════════════╝
|
|
318
|
-
║
|
|
319
|
-
║ CHECKPOINT: Phase 4 Complete?
|
|
320
|
-
║ [ ] All tasks in tasks.md marked [x]
|
|
321
|
-
║ [ ] Tests passing
|
|
322
|
-
║ [ ] Code reviewed
|
|
323
|
-
║ [ ] Security audited
|
|
324
|
-
║
|
|
325
|
-
║ YES ▼
|
|
326
|
-
▼
|
|
327
|
-
╔══════════════════════════════════════════════╗
|
|
328
|
-
║ PHASE 5: VALIDATION & CLOSURE ║
|
|
329
|
-
╠══════════════════════════════════════════════╣
|
|
330
|
-
║ 25. systematic-debugging ║
|
|
331
|
-
║ └─ Resolve any issues ║
|
|
332
|
-
║ 26. openspec-verify-change ║
|
|
333
|
-
║ └─ Validate against specs ║
|
|
334
|
-
║ 27. documentation ║
|
|
335
|
-
║ └─ Generate technical docs & diagrams ║
|
|
336
|
-
║ 28. sync-index ║
|
|
337
|
-
║ └─ Update project documentation ║
|
|
338
|
-
║ 29. changelog-generator ║
|
|
339
|
-
║ └─ Generate release notes ║
|
|
340
|
-
║ 30. ci-deploy ║
|
|
341
|
-
║ └─ Deploy and verify solution ║
|
|
342
|
-
║ 31. openspec-archive-change ║
|
|
343
|
-
║ └─ Archive the change ║
|
|
344
|
-
╚══════════════════════════════════════════════╝
|
|
173
|
+
+--------------------------------------------------------------------------+
|
|
174
|
+
| WORKFLOW: NEW MOBILE PROJECT - ZERO SKIP |
|
|
175
|
+
+--------------------------------------------------------------------------+
|
|
176
|
+
|
|
177
|
+
START
|
|
178
|
+
|
|
|
179
|
+
v
|
|
180
|
+
PHASE 0 - AC FRAMEWORK SETUP (BLOCKING)
|
|
181
|
+
1) acfm-spec-workflow
|
|
182
|
+
- verify initialization and workflow mode
|
|
183
|
+
- run `acfm spec init` if missing
|
|
184
|
+
2) acfm-memory
|
|
185
|
+
- perform session-start memory recall
|
|
186
|
+
|
|
187
|
+
CHECKPOINT: initialized + memory recall complete
|
|
188
|
+
|
|
|
189
|
+
v
|
|
190
|
+
PHASE 1 - FOUNDATIONS AND MOBILE BASELINE
|
|
191
|
+
3) project-constitution
|
|
192
|
+
4) mobile-design (mandatory baseline doctrine)
|
|
193
|
+
5) context-synthesizer
|
|
194
|
+
6) project-index (if not created)
|
|
195
|
+
|
|
196
|
+
CHECKPOINT: constitution + baseline mobile rules documented
|
|
197
|
+
|
|
|
198
|
+
v
|
|
199
|
+
PHASE 2 - DISCOVERY AND REQUIREMENTS
|
|
200
|
+
7) openspec-explore
|
|
201
|
+
8) research-retrieval
|
|
202
|
+
9) brainstorming (single comprehensive question set)
|
|
203
|
+
10) openspec-new-change (or openspec-ff-change if explicitly chosen)
|
|
204
|
+
11) spec-clarification
|
|
205
|
+
|
|
206
|
+
CHECKPOINT: scope clarified + platform/stack chosen
|
|
207
|
+
|
|
|
208
|
+
v
|
|
209
|
+
PHASE 3 - DESIGN AND TASK PLANNING
|
|
210
|
+
12) openspec-continue-change (proposal/specs/design/tasks)
|
|
211
|
+
13) spec-analysis
|
|
212
|
+
14) microtask-decomposition [IF tasks are still too complex]
|
|
213
|
+
15) platform/stack skills as required:
|
|
214
|
+
- mobile-ios-design [IF iOS UI]
|
|
215
|
+
- mobile-android-design [IF Android UI]
|
|
216
|
+
- react-native-design [IF RN UI]
|
|
217
|
+
- react-native-architecture [IF RN architecture]
|
|
218
|
+
- react-state-management [IF complex state]
|
|
219
|
+
- flutter-expert [IF Flutter]
|
|
220
|
+
- ios-developer [IF native iOS]
|
|
221
|
+
|
|
222
|
+
CHECKPOINT: proposal/spec/design/tasks coherent and implementation-ready
|
|
223
|
+
|
|
|
224
|
+
v
|
|
225
|
+
PHASE 4 - IMPLEMENTATION
|
|
226
|
+
16) openspec-apply-change
|
|
227
|
+
17) systematic-debugging [IF issues/regressions appear]
|
|
228
|
+
18) update tasks progress in tasks.md continuously
|
|
229
|
+
|
|
230
|
+
CHECKPOINT: implementation complete and stable
|
|
231
|
+
|
|
|
232
|
+
v
|
|
233
|
+
PHASE 5 - VALIDATION AND CLOSURE
|
|
234
|
+
19) openspec-verify-change
|
|
235
|
+
20) documentation
|
|
236
|
+
21) sync-index
|
|
237
|
+
22) openspec-sync-specs [IF syncing specs without archive]
|
|
238
|
+
23) openspec-archive-change OR openspec-bulk-archive-change
|
|
239
|
+
24) changelog-generator
|
|
345
240
|
```
|
|
346
241
|
|
|
347
|
-
**Conditional
|
|
348
|
-
-
|
|
349
|
-
- `
|
|
350
|
-
- `
|
|
351
|
-
- `microtask-decomposition`: Use ONLY when a single task from tasks.md is still too complex (3+ files). NOT for initial breakdown.
|
|
242
|
+
**Conditional Skill Notes:**
|
|
243
|
+
- Use only skills that match selected platform/stack and risk profile.
|
|
244
|
+
- `mobile-design` is mandatory for all mobile work regardless of stack.
|
|
245
|
+
- `microtask-decomposition` is only for complex tasks after tasks.md exists.
|
|
352
246
|
|
|
353
247
|
---
|
|
354
248
|
|
|
355
|
-
## Workflow: Existing Project
|
|
249
|
+
## Workflow: Existing Mobile Project
|
|
356
250
|
|
|
357
|
-
When working on an **existing codebase** (
|
|
251
|
+
When working on an **existing mobile codebase** (feature, bugfix, refactor):
|
|
358
252
|
|
|
359
253
|
```
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
║ └─ Ideate on feature/fix ║
|
|
400
|
-
╚════════════════════╬═════════════════════════╝
|
|
401
|
-
║ CHECKPOINT
|
|
402
|
-
▼
|
|
403
|
-
╔══════════════════════════════════════════════╗
|
|
404
|
-
║ PHASE 2: DISCOVERY & CLARIFICATION ║
|
|
405
|
-
╠══════════════════════════════════════════════╣
|
|
406
|
-
║ 7. spec-clarification (CRITICAL) ║
|
|
407
|
-
║ └─ CLARIFY requirements first ║
|
|
408
|
-
║ 8. openspec-new-change ║
|
|
409
|
-
║ └─ Initialize change artifact ║
|
|
410
|
-
║ 9. microtask-decomposition ║
|
|
411
|
-
║ └─ If task too complex ║
|
|
412
|
-
╚════════════════════╬═════════════════════════╝
|
|
413
|
-
║ CHECKPOINT
|
|
414
|
-
▼
|
|
415
|
-
╔══════════════════════════════════════════════╗
|
|
416
|
-
║ PHASE 3: DESIGN & PLANNING ║
|
|
417
|
-
╠══════════════════════════════════════════════╣
|
|
418
|
-
║ 10. openspec-continue-change ║
|
|
419
|
-
║ └─ Draft Specs, Design, Tasks ║
|
|
420
|
-
║ 11. spec-analysis ║
|
|
421
|
-
║ └─ Check consistency with existing ║
|
|
422
|
-
║ 12. requirement-checklist ║
|
|
423
|
-
║ └─ Validate requirements ║
|
|
424
|
-
║ 13. api-design-principles [IF APIs] ║
|
|
425
|
-
║ └─ Design API changes ║
|
|
426
|
-
║ 14. interface-design [IF UI] ║
|
|
427
|
-
║ └─ Design interface changes ║
|
|
428
|
-
╚════════════════════╬═════════════════════════╝
|
|
429
|
-
║ CHECKPOINT
|
|
430
|
-
▼
|
|
431
|
-
╔══════════════════════════════════════════════╗
|
|
432
|
-
║ PHASE 4: IMPLEMENTATION ║
|
|
433
|
-
╠══════════════════════════════════════════════╣
|
|
434
|
-
║ SAFETY CHECK REQUIRED ║
|
|
435
|
-
╠══════════════════════════════════════════════╣
|
|
436
|
-
║ 15. test-generator ║
|
|
437
|
-
║ └─ Generate tests for new feature ║
|
|
438
|
-
║ 16. openspec-apply-change ║
|
|
439
|
-
║ └─ Implement code ║
|
|
440
|
-
║ 17. testing-qa ║
|
|
441
|
-
║ └─ Automate test maintenance ║
|
|
442
|
-
║ 18. code-review ║
|
|
443
|
-
║ └─ Review for style/security/arch ║
|
|
444
|
-
║ 19. secure-coding-cybersecurity ║
|
|
445
|
-
║ └─ Audit new code ║
|
|
446
|
-
║ 20. error-handling-patterns ║
|
|
447
|
-
║ └─ Verify error handling ║
|
|
448
|
-
║ 21. performance-optimizer ║
|
|
449
|
-
║ └─ Ensure no perf degradation ║
|
|
450
|
-
╚════════════════════╬═════════════════════════╝
|
|
451
|
-
║ CHECKPOINT
|
|
452
|
-
▼
|
|
453
|
-
╔══════════════════════════════════════════════╗
|
|
454
|
-
║ PHASE 5: OPTIMIZATION & VERIFICATION ║
|
|
455
|
-
╠══════════════════════════════════════════════╣
|
|
456
|
-
║ 22. systematic-debugging ║
|
|
457
|
-
║ └─ Fix regressions ║
|
|
458
|
-
║ 23. openspec-verify-change ║
|
|
459
|
-
║ └─ Final verification ║
|
|
460
|
-
║ 24. documentation ║
|
|
461
|
-
║ └─ Generate technical docs & diagrams ║
|
|
462
|
-
║ 25. sync-index (IMPORTANT) ║
|
|
463
|
-
║ └─ Update docs with new changes ║
|
|
464
|
-
║ 26. changelog-generator ║
|
|
465
|
-
║ └─ Generate release notes ║
|
|
466
|
-
║ 27. ci-deploy ║
|
|
467
|
-
║ └─ Deploy and verify solution ║
|
|
468
|
-
║ 28. openspec-archive-change ║
|
|
469
|
-
║ └─ Archive change ║
|
|
470
|
-
╚══════════════════════════════════════════════╝
|
|
254
|
+
+--------------------------------------------------------------------------+
|
|
255
|
+
| WORKFLOW: EXISTING MOBILE PROJECT - ZERO SKIP |
|
|
256
|
+
+--------------------------------------------------------------------------+
|
|
257
|
+
|
|
258
|
+
START CHANGE
|
|
259
|
+
|
|
|
260
|
+
v
|
|
261
|
+
PHASE 0 - SETUP (BLOCKING)
|
|
262
|
+
1) acfm-spec-workflow (status, current changes, initialization)
|
|
263
|
+
2) acfm-memory (session-start recall)
|
|
264
|
+
|
|
265
|
+
PHASE 1 - CONTEXT AND DISCOVERY
|
|
266
|
+
3) context-synthesizer
|
|
267
|
+
4) project-index [if missing/stale]
|
|
268
|
+
5) openspec-explore
|
|
269
|
+
6) research-retrieval
|
|
270
|
+
7) brainstorming
|
|
271
|
+
|
|
272
|
+
PHASE 2 - CLARIFICATION AND CHANGE INIT
|
|
273
|
+
8) openspec-new-change
|
|
274
|
+
9) spec-clarification
|
|
275
|
+
|
|
276
|
+
PHASE 3 - DESIGN, CONSISTENCY, AND PLATFORM FIT
|
|
277
|
+
10) openspec-continue-change
|
|
278
|
+
11) spec-analysis
|
|
279
|
+
12) microtask-decomposition [if needed]
|
|
280
|
+
13) apply required mobile platform/stack skills
|
|
281
|
+
|
|
282
|
+
PHASE 4 - IMPLEMENTATION
|
|
283
|
+
14) openspec-apply-change
|
|
284
|
+
15) systematic-debugging [if needed]
|
|
285
|
+
|
|
286
|
+
PHASE 5 - VALIDATION AND CLOSURE
|
|
287
|
+
16) openspec-verify-change
|
|
288
|
+
17) documentation
|
|
289
|
+
18) sync-index
|
|
290
|
+
19) openspec-sync-specs [if needed]
|
|
291
|
+
20) openspec-archive-change / openspec-bulk-archive-change
|
|
292
|
+
21) changelog-generator
|
|
471
293
|
```
|
|
472
294
|
|
|
473
|
-
**Conditional Skills Notes:**
|
|
474
|
-
- `[IF APIs]`: Use api-design-principles only if modifying/creating REST/GraphQL APIs
|
|
475
|
-
- `[IF UI]`: Use interface-design only if modifying dashboards, admin panels, or apps
|
|
476
|
-
- `project-index`: Run only if you haven't indexed the project yet or need to refresh context
|
|
477
|
-
|
|
478
295
|
---
|
|
479
296
|
|
|
480
297
|
## Skill Loading Reference
|
|
481
298
|
|
|
482
299
|
All skills are located in: `skills/`
|
|
483
300
|
|
|
484
|
-
To load a skill, read its SKILL.md file:
|
|
485
|
-
- Example:
|
|
486
|
-
- Example:
|
|
301
|
+
To load a skill, read its `SKILL.md` file:
|
|
302
|
+
- Example: `skills/spec-clarification/SKILL.md`
|
|
303
|
+
- Example: `skills/mobile-design/SKILL.md`
|
|
304
|
+
- Example: `skills/react-native-architecture/SKILL.md`
|
|
487
305
|
|
|
488
306
|
### MANDATORY SKILL EXECUTION CHECKLIST
|
|
489
307
|
|
|
490
|
-
Before claiming a skill is
|
|
491
|
-
- [ ] I
|
|
492
|
-
- [ ] I
|
|
493
|
-
- [ ] I
|
|
494
|
-
- [ ] I can
|
|
495
|
-
|
|
496
|
-
**Remember**: Skills are documentation-based workflows with ZERO SKIP policy. Load them by reading the SKILL.md files, execute CLI commands when instructed, and NEVER proceed without completing all steps.
|
|
308
|
+
Before claiming a skill is done, verify:
|
|
309
|
+
- [ ] I read the entire `SKILL.md`
|
|
310
|
+
- [ ] I executed all required steps
|
|
311
|
+
- [ ] I produced required artifacts/checkpoints
|
|
312
|
+
- [ ] I can explain exactly what the skill produced
|
|
497
313
|
|
|
498
314
|
---
|
|
499
315
|
|
|
500
316
|
## VIOLATION CONSEQUENCES
|
|
501
317
|
|
|
502
|
-
If you
|
|
503
|
-
1.
|
|
504
|
-
2.
|
|
505
|
-
3. You MUST
|
|
506
|
-
4. No
|
|
318
|
+
If you skip a skill or phase:
|
|
319
|
+
1. Workflow integrity is compromised
|
|
320
|
+
2. Mobile quality and consistency are no longer guaranteed
|
|
321
|
+
3. You MUST return and complete the missing steps
|
|
322
|
+
4. No shortcuts. No exceptions.
|
|
507
323
|
|
|
508
324
|
**Quality over speed. Documentation before code. Planning before execution.**
|