@atlashub/smartstack-cli 3.43.0 → 3.45.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/mcp-entry.mjs +201 -22
- package/dist/mcp-entry.mjs.map +1 -1
- package/package.json +1 -1
- package/templates/agents/efcore/conflicts.md +22 -2
- package/templates/agents/efcore/migration.md +11 -0
- package/templates/agents/efcore/rebase-snapshot.md +7 -0
- package/templates/agents/efcore/scan.md +24 -2
- package/templates/agents/efcore/squash.md +7 -0
- package/templates/agents/gitflow/init.md +195 -12
- package/templates/skills/apex/SKILL.md +14 -9
- package/templates/skills/apex/_shared.md +3 -0
- package/templates/skills/apex/references/analysis-methods.md +1 -1
- package/templates/skills/apex/references/challenge-questions.md +21 -0
- package/templates/skills/apex/references/core-seed-data.md +59 -104
- package/templates/skills/apex/references/post-checks.md +289 -225
- package/templates/skills/apex/references/smartstack-api.md +33 -35
- package/templates/skills/apex/references/smartstack-frontend.md +99 -3
- package/templates/skills/apex/references/smartstack-layers.md +145 -23
- package/templates/skills/apex/steps/step-00-init.md +2 -2
- package/templates/skills/apex/steps/step-01-analyze.md +1 -0
- package/templates/skills/apex/steps/step-02-plan.md +4 -3
- package/templates/skills/apex/steps/step-03-execute.md +24 -24
- package/templates/skills/apex/steps/step-04-examine.md +64 -24
- package/templates/skills/apex/steps/step-05-deep-review.md +1 -1
- package/templates/skills/apex/steps/step-08-run-tests.md +21 -13
- package/templates/skills/application/references/application-roles-template.md +10 -15
- package/templates/skills/application/references/backend-entity-seeding.md +6 -5
- package/templates/skills/application/references/backend-seeding-and-dto-output.md +1 -1
- package/templates/skills/application/references/nav-fallback-procedure.md +14 -17
- package/templates/skills/application/references/provider-template.md +5 -5
- package/templates/skills/application/references/roles-client-project-handling.md +1 -1
- package/templates/skills/application/references/roles-fallback-procedure.md +10 -15
- package/templates/skills/application/steps/step-01-navigation.md +1 -1
- package/templates/skills/application/steps/step-02-permissions.md +3 -3
- package/templates/skills/application/steps/step-03b-provider.md +1 -0
- package/templates/skills/application/templates-seed.md +41 -47
- package/templates/skills/business-analyse/references/team-orchestration.md +2 -2
- package/templates/skills/controller/steps/step-04-perms.md +1 -1
- package/templates/skills/efcore/references/troubleshooting.md +2 -2
- package/templates/skills/efcore/steps/rebase-snapshot/step-00-init.md +2 -2
- package/templates/skills/efcore/steps/squash/step-00-init.md +2 -2
- package/templates/skills/apex/references/examine-build-validation.md +0 -82
- package/templates/skills/apex/references/execution-frontend-gates.md +0 -177
- package/templates/skills/apex/references/execution-frontend-patterns.md +0 -105
- package/templates/skills/apex/references/execution-layer1-rules.md +0 -96
- package/templates/skills/apex/references/initialization-challenge-flow.md +0 -110
- package/templates/skills/apex/references/planning-layer-mapping.md +0 -151
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
# Layer 1: Execution Rules — Application + API + Seed Data
|
|
2
|
-
|
|
3
|
-
> **Loaded by:** step-03-execute.md (section: Layer 1)
|
|
4
|
-
> **Purpose:** Critical rules for Layer 1 execution — NavRoute, permissions, validators, code generation, frontend patterns.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## NavRoute and Permission Kebab-Case (CRITICAL)
|
|
9
|
-
|
|
10
|
-
**ALL NavRoute segments and permission codes MUST use kebab-case for multi-word identifiers.**
|
|
11
|
-
|
|
12
|
-
Root cause (test-apex-007): Controllers had `[NavRoute("humanresources.employees")]` instead of `[NavRoute("human-resources.employees")]`. This mismatched seed data routes and permission codes, causing 404s and permission denials at runtime.
|
|
13
|
-
|
|
14
|
-
**Rules:**
|
|
15
|
-
- NavRoute: `human-resources.employees` (NEVER `humanresources.employees`)
|
|
16
|
-
- Permissions: `human-resources.employees.read` (segments MATCH NavRoute exactly)
|
|
17
|
-
- Seed data codes: `human-resources` (NEVER `humanresources`)
|
|
18
|
-
- C# class names stay PascalCase (`HumanResourcesController`) — only route/permission strings use kebab-case
|
|
19
|
-
- POST-CHECKs 41 + 48 validate this. Fix BEFORE committing.
|
|
20
|
-
|
|
21
|
-
---
|
|
22
|
-
|
|
23
|
-
## Controller Route Attribute (BLOCKING)
|
|
24
|
-
|
|
25
|
-
**Controllers with `[NavRoute]` must NOT have `[Route]` attribute.**
|
|
26
|
-
|
|
27
|
-
Root cause (test-apex-007): ALL 7 controllers had BOTH `[Route("api/...")]` AND `[NavRoute("...")]`. In SmartStack, `[NavRoute]` resolves routes dynamically from Navigation entities in the database at startup. Having `[Route]` alongside causes route conflicts → all endpoints return 404.
|
|
28
|
-
|
|
29
|
-
**Rules:**
|
|
30
|
-
- `[NavRoute("app.module")]` is the ONLY route attribute needed on controllers
|
|
31
|
-
- **FORBIDDEN:** `[Route("api/human-resources/employees")]` alongside `[NavRoute]`
|
|
32
|
-
- **FORBIDDEN:** `[Route("api/[controller]")]` alongside `[NavRoute]`
|
|
33
|
-
- If generating via MCP `scaffold_extension` with `navRoute` option → output is correct (NavRoute only)
|
|
34
|
-
- If generating via `/controller` skill → verify NO `[Route]` is added
|
|
35
|
-
- POST-CHECK 50 validates this. Fix BEFORE committing.
|
|
36
|
-
|
|
37
|
-
---
|
|
38
|
-
|
|
39
|
-
## Validators DI Registration (CRITICAL)
|
|
40
|
-
|
|
41
|
-
After creating validators, they MUST be registered in DI. Without registration, `[FromBody]` DTOs are never validated.
|
|
42
|
-
|
|
43
|
-
```csharp
|
|
44
|
-
In DependencyInjection.cs (or ServiceCollectionExtensions.cs):
|
|
45
|
-
services.AddValidatorsFromAssemblyContaining<Create{Entity}DtoValidator>();
|
|
46
|
-
```
|
|
47
|
-
|
|
48
|
-
POST-CHECK 46 validates this. If validators exist but no DI registration → BLOCKING.
|
|
49
|
-
|
|
50
|
-
---
|
|
51
|
-
|
|
52
|
-
## Date Fields — Use DateOnly (CRITICAL)
|
|
53
|
-
|
|
54
|
-
**ALL date-only fields in DTOs MUST use `DateOnly`, NEVER `string`.**
|
|
55
|
-
|
|
56
|
-
Root cause (test-apex-007): WorkLog DTO had `string Date` instead of `DateOnly Date`. This causes: no date validation, inconsistent date formats, parsing errors.
|
|
57
|
-
|
|
58
|
-
**Type mapping for DTOs:**
|
|
59
|
-
|
|
60
|
-
| Domain type | DTO type | Example |
|
|
61
|
-
|-------------|----------|---------|
|
|
62
|
-
| `DateTime` | `DateTime` | `CreatedAt`, `UpdatedAt` |
|
|
63
|
-
| Date-only field | `DateOnly` | `Date`, `StartDate`, `EndDate`, `BirthDate` |
|
|
64
|
-
| `string` for date | **FORBIDDEN** | Never use `string` for dates |
|
|
65
|
-
| `DateTime` for date-only | **Avoid** | Use `DateOnly` when no time component needed |
|
|
66
|
-
|
|
67
|
-
POST-CHECK 47 validates this. If a DTO has `string` type for a property named `*Date*` → BLOCKING.
|
|
68
|
-
|
|
69
|
-
---
|
|
70
|
-
|
|
71
|
-
## Code Generation (if entities have codePattern != "manual")
|
|
72
|
-
|
|
73
|
-
For each entity with auto-generated code pattern (from feature.json or step-02 decisions):
|
|
74
|
-
|
|
75
|
-
```
|
|
76
|
-
1. Create CodePatternConfig for the entity (strategy, prefix, digits from codePattern)
|
|
77
|
-
2. Register ICodeGenerator<TEntity> in DependencyInjection.cs (Infrastructure layer)
|
|
78
|
-
→ See references/code-generation.md for DI registration pattern
|
|
79
|
-
3. Update CreateDto: REMOVE Code property (auto-generated, not user-provided)
|
|
80
|
-
4. Update CreateDtoValidator: REMOVE Code regex rule (not in DTO anymore)
|
|
81
|
-
5. Update service CreateAsync: inject ICodeGenerator<TEntity>, call NextCodeAsync()
|
|
82
|
-
→ Code is auto-generated BEFORE entity creation
|
|
83
|
-
→ See references/code-generation.md for service integration pattern
|
|
84
|
-
6. Keep Code in ResponseDto (returned to frontend after creation)
|
|
85
|
-
7. Keep Code in UpdateDto ONLY if code is mutable (rare — discuss with user)
|
|
86
|
-
```
|
|
87
|
-
|
|
88
|
-
**CRITICAL:** If `codePattern.strategy == "manual"` (or no codePattern), keep the current behavior: Code stays in CreateDto, user provides it, validator has regex rule.
|
|
89
|
-
|
|
90
|
-
---
|
|
91
|
-
|
|
92
|
-
## Sequential vs Parallel Execution
|
|
93
|
-
|
|
94
|
-
**If economy_mode:** Execute each item from the plan sequentially using skills and MCP.
|
|
95
|
-
|
|
96
|
-
**If NOT economy_mode:** See `references/agent-teams-protocol.md` for parallel team-based execution with exec-backend and exec-frontend teammates.
|
|
@@ -1,110 +0,0 @@
|
|
|
1
|
-
# Initialization — Challenge Flow & Hierarchy Definition
|
|
2
|
-
|
|
3
|
-
> **Loaded by:** step-00-init.md (sections 4-5)
|
|
4
|
-
> **Purpose:** Detailed flow for challenging user hierarchy assumptions and defining the 4-level navigation structure.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Challenge Questions Reference
|
|
9
|
-
|
|
10
|
-
> **Complete question templates with validation:**
|
|
11
|
-
> Load `references/challenge-questions.md` for the actual YAML question blocks and validation logic.
|
|
12
|
-
|
|
13
|
-
---
|
|
14
|
-
|
|
15
|
-
## 4-Level Navigation Hierarchy (BLOCKING RULE)
|
|
16
|
-
|
|
17
|
-
SmartStack uses a **4-level navigation hierarchy:**
|
|
18
|
-
- **Level 1: Application** — e.g., "HumanResources", "ProjectManagement"
|
|
19
|
-
- **Level 2: Module** — e.g., "Employees", "Timesheet"
|
|
20
|
-
- **Level 3: Section** — e.g., "List", "Dashboard", "Approval"
|
|
21
|
-
- **Level 4: Resource** — e.g., "Export", "Settings" (optional)
|
|
22
|
-
|
|
23
|
-
**BLOCKING RULE:** Every module MUST have at least one section. A module without sections produces an incomplete navigation tree, broken seed data, and missing frontend routes.
|
|
24
|
-
|
|
25
|
-
---
|
|
26
|
-
|
|
27
|
-
## Step 4: Validate Application Level (4a)
|
|
28
|
-
|
|
29
|
-
Load application question from `references/challenge-questions.md` section 4a.
|
|
30
|
-
|
|
31
|
-
**If `{app_name}` was clearly inferred from the task description:**
|
|
32
|
-
- Skip question, use inferred value
|
|
33
|
-
|
|
34
|
-
**If unclear:**
|
|
35
|
-
- Present question with best guess as recommended option
|
|
36
|
-
- Options:
|
|
37
|
-
1. "Inferred app name (Recommended)" + description
|
|
38
|
-
2. "New application" + option to create
|
|
39
|
-
3. "Existing application" + option to select from scanned projects
|
|
40
|
-
- If "New application": collect `{app_name}`, `{app_code}`, `{app_icon}`, `{app_labels}` (4 langs)
|
|
41
|
-
- If "Existing application": scan `**/Seeding/Data/**/NavigationApplicationSeedData.cs` and present discovered apps
|
|
42
|
-
|
|
43
|
-
---
|
|
44
|
-
|
|
45
|
-
## Step 4b: Validate Module Level
|
|
46
|
-
|
|
47
|
-
Load module question from `references/challenge-questions.md` section 4b.
|
|
48
|
-
|
|
49
|
-
**If `{module_code}` was clearly inferred:**
|
|
50
|
-
- Skip question
|
|
51
|
-
|
|
52
|
-
**If unclear:**
|
|
53
|
-
- Present question with best guess(es) as options
|
|
54
|
-
- Options:
|
|
55
|
-
1. "Inferred module code (Recommended)" + from task description
|
|
56
|
-
2. "Alternative suggestions" + based on keywords
|
|
57
|
-
- User selects or enters custom value
|
|
58
|
-
- Store as `{module_code}` (kebab-case)
|
|
59
|
-
|
|
60
|
-
---
|
|
61
|
-
|
|
62
|
-
## Step 4c: Define Sections (MANDATORY — at least one)
|
|
63
|
-
|
|
64
|
-
Load section questions from `references/challenge-questions.md` section 4c.
|
|
65
|
-
|
|
66
|
-
**BLOCKING VALIDATION:** Sections list MUST contain at least one entry before proceeding.
|
|
67
|
-
|
|
68
|
-
Infer section suggestions from:
|
|
69
|
-
1. Task description (extract nouns/concepts that suggest functional sub-areas)
|
|
70
|
-
2. PRD/feature.json if available (module.sections)
|
|
71
|
-
3. Common patterns: "list" (default for simple CRUD), "dashboard", "settings", "reports"
|
|
72
|
-
|
|
73
|
-
**Question format:**
|
|
74
|
-
```yaml
|
|
75
|
-
question: "What sections should the module '{module_code}' contain?
|
|
76
|
-
(Select at least one — use 'Other' to add custom sections)"
|
|
77
|
-
options:
|
|
78
|
-
- label: "<inferred section 1>"
|
|
79
|
-
description: "Primary functional area based on module purpose"
|
|
80
|
-
- label: "<inferred section 2>"
|
|
81
|
-
description: "Secondary functional area"
|
|
82
|
-
- label: "<inferred section 3>"
|
|
83
|
-
description: "Additional area inferred from context"
|
|
84
|
-
multiSelect: true
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
**Validation (BLOCKING):**
|
|
88
|
-
```
|
|
89
|
-
IF {sections}.length == 0:
|
|
90
|
-
DISPLAY: "Every module must have at least one section."
|
|
91
|
-
→ Re-ask the sections question
|
|
92
|
-
→ DO NOT proceed to next step
|
|
93
|
-
```
|
|
94
|
-
|
|
95
|
-
**Store for each section:**
|
|
96
|
-
```yaml
|
|
97
|
-
sections:
|
|
98
|
-
- code: "section-kebab"
|
|
99
|
-
labels: { fr: "...", en: "...", it: "...", de: "..." }
|
|
100
|
-
icon: "LucideIconName"
|
|
101
|
-
displayOrder: 10
|
|
102
|
-
```
|
|
103
|
-
|
|
104
|
-
---
|
|
105
|
-
|
|
106
|
-
## Delegate Mode Skip (if -d)
|
|
107
|
-
|
|
108
|
-
When `/ralph-loop` invokes `/apex -d {prd_path}`, ALL hierarchy is extracted from the PRD file:
|
|
109
|
-
- Skip sections 2-4 (no interactive questions)
|
|
110
|
-
- Jump directly to section 3 (MCP verify)
|
|
@@ -1,151 +0,0 @@
|
|
|
1
|
-
# Planning — Layer Mapping, Skill Assignment, Parallelization Strategy
|
|
2
|
-
|
|
3
|
-
> **Loaded by:** step-02-plan.md (sections 1-4)
|
|
4
|
-
> **Purpose:** Map analyzed elements to layers, assign skills/MCP tools, and identify parallelization opportunities.
|
|
5
|
-
|
|
6
|
-
---
|
|
7
|
-
|
|
8
|
-
## Map Changes to Layers
|
|
9
|
-
|
|
10
|
-
For each element identified in step-01, assign to a SmartStack layer:
|
|
11
|
-
|
|
12
|
-
| Layer | Category | Order |
|
|
13
|
-
|-------|----------|-------|
|
|
14
|
-
| 0 | Domain (entities, enums, exceptions) | Sequential |
|
|
15
|
-
| 0 | Infrastructure - EF Configs | Sequential |
|
|
16
|
-
| 0 | Infrastructure - Migration (BLOCKING) | Sequential |
|
|
17
|
-
| 1 | Application (services, DTOs, validators) | Parallel |
|
|
18
|
-
| 1 | API (controllers) | Parallel |
|
|
19
|
-
| 1 | Infrastructure - Seed Data | Parallel |
|
|
20
|
-
| 2 | Frontend (pages, components) | Parallel |
|
|
21
|
-
| 2 | I18n (translations) | Parallel |
|
|
22
|
-
| 3 | Tests | Sequential |
|
|
23
|
-
|
|
24
|
-
---
|
|
25
|
-
|
|
26
|
-
## Entity Definition Template
|
|
27
|
-
|
|
28
|
-
Each entity in the plan MUST include:
|
|
29
|
-
|
|
30
|
-
```yaml
|
|
31
|
-
Entity: {EntityName}
|
|
32
|
-
- tenantMode: strict | optional | scoped | none
|
|
33
|
-
- codePattern: auto-generated strategy (if applicable)
|
|
34
|
-
- fkFields: [{field, targetEntity}] (if applicable)
|
|
35
|
-
- acceptance criteria: [AC1, AC2, ...]
|
|
36
|
-
```
|
|
37
|
-
|
|
38
|
-
The `tenantMode` decision (from step-01) drives:
|
|
39
|
-
- EF query filters
|
|
40
|
-
- Seed data approach
|
|
41
|
-
- API authorization
|
|
42
|
-
|
|
43
|
-
See `smartstack-layers.md` for tenant mode seed data strategies.
|
|
44
|
-
|
|
45
|
-
---
|
|
46
|
-
|
|
47
|
-
## Assign Skill/MCP per File
|
|
48
|
-
|
|
49
|
-
For EACH file in the plan, specify HOW it will be created/modified.
|
|
50
|
-
|
|
51
|
-
**Format:**
|
|
52
|
-
|
|
53
|
-
```markdown
|
|
54
|
-
| # | File | Action | Tool |
|
|
55
|
-
|---|------|--------|------|
|
|
56
|
-
| 1 | Domain/Entities/.../MyEntity.cs | create | MCP scaffold_extension |
|
|
57
|
-
| 2 | Infrastructure/.../MyEntityConfiguration.cs | create | MCP scaffold_extension |
|
|
58
|
-
| 3 | Migration | create | MCP suggest_migration + dotnet ef |
|
|
59
|
-
```
|
|
60
|
-
|
|
61
|
-
---
|
|
62
|
-
|
|
63
|
-
## Layer 0 — Domain + Infrastructure (sequential)
|
|
64
|
-
|
|
65
|
-
| # | File | Action | Tool |
|
|
66
|
-
|---|------|--------|------|
|
|
67
|
-
| 1 | Domain/Entities/.../Entity.cs | create | MCP scaffold_extension |
|
|
68
|
-
| 2 | Infrastructure/.../EntityConfiguration.cs | create | MCP scaffold_extension |
|
|
69
|
-
| 3 | Infrastructure/Migrations/ | create | MCP suggest_migration + dotnet ef |
|
|
70
|
-
|
|
71
|
-
---
|
|
72
|
-
|
|
73
|
-
## Layer 1 — Application + API + Seed Data (parallel)
|
|
74
|
-
|
|
75
|
-
**Backend:** Application/API/Seed Data
|
|
76
|
-
|
|
77
|
-
| # | File | Action | Tool |
|
|
78
|
-
|---|------|--------|------|
|
|
79
|
-
| 4 | Application/Services/.../Service.cs | create | MCP scaffold_extension |
|
|
80
|
-
| 5 | Application/DTOs/.../Dto.cs | create | MCP scaffold_extension |
|
|
81
|
-
| 6 | Api/Controllers/.../Controller.cs | create | /controller skill or MCP scaffold_extension |
|
|
82
|
-
| 7 | Seeding/Data/NavigationApplicationSeedData.cs | create | Reference smartstack-layers.md (once per app) |
|
|
83
|
-
| 7b | Seeding/Data/ApplicationRolesSeedData.cs | create | Reference smartstack-layers.md (once per app) |
|
|
84
|
-
| 7c | Infrastructure/Services/CodeGeneration/ | create | Reference code-generation.md (per entity with codePattern != manual) |
|
|
85
|
-
| 8 | Seeding/Data/.../NavigationModuleSeedData.cs | create | Reference core-seed-data.md (4 langs: fr, en, it, de) |
|
|
86
|
-
| 8c | ↳ (same file) Section methods | add | Reference core-seed-data.md §2b (if sections exist) |
|
|
87
|
-
| 8d | ↳ (same file) Resource methods | add | Reference core-seed-data.md §2b (if resources exist) |
|
|
88
|
-
| 8b | Application/Authorization/Permissions.cs | create | MCP generate_permissions |
|
|
89
|
-
| 9 | Seeding/Data/.../PermissionsSeedData.cs | create | MCP generate_permissions |
|
|
90
|
-
| 10 | Seeding/Data/.../RolesSeedData.cs | create | Reference smartstack-layers.md |
|
|
91
|
-
| 10b | Seeding/{App}SeedDataProvider.cs | create | Reference core-seed-data.md (IClientSeedDataProvider + DI) |
|
|
92
|
-
|
|
93
|
-
**Frontend:** API Client, Routes, Pages, I18n
|
|
94
|
-
|
|
95
|
-
| # | File | Action | Tool |
|
|
96
|
-
|---|------|--------|------|
|
|
97
|
-
| 11 | src/pages/{App}/{Mod}/ListPage.tsx | create | /ui-components skill |
|
|
98
|
-
| 11b | src/pages/{App}/{Mod}/CreatePage.tsx | create | /ui-components skill (FK: EntityLookup) |
|
|
99
|
-
| 11c | src/pages/{App}/{Mod}/EditPage.tsx | create | /ui-components skill (FK: EntityLookup) |
|
|
100
|
-
| 11d | src/pages/{App}/{Mod}/{Section}Page.tsx | create | /ui-components skill (per section in `{sections}`) |
|
|
101
|
-
| 11e | src/pages/{App}/{Mod}/{Section}DetailPage.tsx | create | /ui-components skill (per section) |
|
|
102
|
-
| 12 | src/services/api/{module}Api.ts | create | MCP scaffold_api_client |
|
|
103
|
-
| 13 | src/routes/{module}.tsx | create | MCP scaffold_routes |
|
|
104
|
-
| 14 | src/i18n/locales/{lang}/{module}.json | create | Reference smartstack-frontend.md (4 languages) |
|
|
105
|
-
|
|
106
|
-
**FK Field Guidance:** If step-01 identified `fkFields[]`, every Create/Edit page MUST use `EntityLookup` for those fields (see `smartstack-frontend.md` section 6). The corresponding backend GetAll endpoints (Layer 1) MUST support `?search=` parameter.
|
|
107
|
-
|
|
108
|
-
---
|
|
109
|
-
|
|
110
|
-
## Layer 2b — Documentation (after frontend pages exist)
|
|
111
|
-
|
|
112
|
-
| # | File | Action | Tool |
|
|
113
|
-
|---|------|--------|------|
|
|
114
|
-
| 14b | src/pages/docs/business/{app}/{module}/doc-data.ts | create | /documentation skill |
|
|
115
|
-
| 14c | src/pages/docs/business/{app}/{module}/index.tsx | create | /documentation skill |
|
|
116
|
-
|
|
117
|
-
---
|
|
118
|
-
|
|
119
|
-
## Layer 3 — Tests (sequential)
|
|
120
|
-
|
|
121
|
-
| # | File | Action | Tool |
|
|
122
|
-
|---|------|--------|------|
|
|
123
|
-
| 15 | tests/.../EntityTests.cs | create | MCP scaffold_tests |
|
|
124
|
-
| 16 | tests/.../ServiceTests.cs | create | MCP scaffold_tests |
|
|
125
|
-
|
|
126
|
-
---
|
|
127
|
-
|
|
128
|
-
## Identify Parallelization (Agent Teams)
|
|
129
|
-
|
|
130
|
-
If NOT economy_mode AND Layer 1 has both backend and frontend work:
|
|
131
|
-
|
|
132
|
-
**Create agent teams to execute Layer 1 backend and frontend in parallel.**
|
|
133
|
-
|
|
134
|
-
See `references/agent-teams-protocol.md` for team creation, teammate spawning, task coordination, and shutdown procedures.
|
|
135
|
-
|
|
136
|
-
---
|
|
137
|
-
|
|
138
|
-
## Delegate Mode Fast Path
|
|
139
|
-
|
|
140
|
-
When `/ralph-loop` invokes `/apex -d {prd_path}`, PRD tasks already define the scope:
|
|
141
|
-
|
|
142
|
-
Map each PRD task to a layer based on `task.category`:
|
|
143
|
-
- `domain` → Layer 0
|
|
144
|
-
- `infrastructure` → Layer 0
|
|
145
|
-
- `application` → Layer 1
|
|
146
|
-
- `api` → Layer 1
|
|
147
|
-
- `seedData` → Layer 1
|
|
148
|
-
- `frontend` → Layer 2
|
|
149
|
-
- `test` → Layer 3
|
|
150
|
-
|
|
151
|
-
For each task: infer file_path, action, and tool from category. SKIP user checkpoint. Jump to "Estimated Commits" section.
|