@hailer/mcp 1.1.16 → 1.1.17-beta.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/.claude/CLAUDE.md +117 -320
- package/.claude/commands/app-squad.md +86 -90
- package/.claude/commands/audit-squad.md +19 -19
- package/.claude/commands/autoplan.md +3 -3
- package/.claude/commands/cleanup-squad.md +16 -16
- package/.claude/commands/config-squad.md +30 -30
- package/.claude/commands/crud-squad.md +23 -23
- package/.claude/commands/data-squad.md +21 -21
- package/.claude/commands/debug-squad.md +44 -44
- package/.claude/commands/doc-squad.md +16 -16
- package/.claude/commands/help:agents.md +130 -99
- package/.claude/commands/help:commands.md +15 -15
- package/.claude/commands/help:faq.md +17 -17
- package/.claude/commands/help:plugins.md +1 -1
- package/.claude/commands/help:skills.md +18 -24
- package/.claude/commands/hotfix-squad.md +22 -22
- package/.claude/commands/integration-squad.md +22 -22
- package/.claude/commands/janitor-squad.md +31 -31
- package/.claude/commands/learn-auto.md +5 -5
- package/.claude/commands/learn.md +12 -20
- package/.claude/commands/onboard-squad.md +39 -49
- package/.claude/commands/plan-workspace.md +2 -2
- package/.claude/commands/publish.md +32 -37
- package/.claude/commands/review-squad.md +27 -27
- package/.claude/commands/stats.md +26 -12
- package/.claude/commands/swarm.md +25 -25
- package/.claude/skills/chrome-mcp-reference/SKILL.md +5 -0
- package/.claude/skills/hailer-api-client/SKILL.md +55 -16
- package/.claude/skills/hailer-app-builder/SKILL.md +4 -270
- package/.claude/skills/hailer-apps-pictures/SKILL.md +3 -3
- package/.claude/skills/hailer-design-system/SKILL.md +96 -4
- package/.claude/skills/hailer-monolith-automations/SKILL.md +138 -116
- package/.claude/skills/hailer-permissions-system/SKILL.md +6 -9
- package/.claude/skills/hailer-project-protocol/SKILL.md +20 -110
- package/.claude/skills/integration-patterns/SKILL.md +6 -6
- package/.claude/skills/lsp-setup/SKILL.md +8 -9
- package/.claude/skills/sdk-activity-patterns/SKILL.md +238 -0
- package/.claude/skills/{SDK-document-templates → sdk-document-templates}/SKILL.md +13 -340
- package/.claude/skills/{SDK-function-fields → sdk-function-fields}/SKILL.md +8 -40
- package/.claude/skills/{SDK-insight-queries → sdk-insight-queries}/SKILL.md +114 -392
- package/.claude/skills/{SDK-ws-config-skill → sdk-ws-config-skill}/SKILL.md +79 -310
- package/.claude/skills/zapier-hailer-patterns/SKILL.md +84 -361
- package/.opencode/package-lock.json +117 -0
- package/CLAUDE.md +5 -358
- package/dist/app.d.ts.map +1 -1
- package/dist/app.js +10 -127
- package/dist/app.js.map +1 -1
- package/dist/bot/bot-manager.d.ts +3 -14
- package/dist/bot/bot-manager.d.ts.map +1 -1
- package/dist/bot/bot-manager.js +13 -4
- package/dist/bot/bot-manager.js.map +1 -1
- package/dist/bot/bot.d.ts +23 -102
- package/dist/bot/bot.d.ts.map +1 -1
- package/dist/bot/bot.js +356 -1212
- package/dist/bot/bot.js.map +1 -1
- package/dist/bot/services/bot-permissions.d.ts +50 -0
- package/dist/bot/services/bot-permissions.d.ts.map +1 -0
- package/dist/bot/services/bot-permissions.js +198 -0
- package/dist/bot/services/bot-permissions.js.map +1 -0
- package/dist/bot/services/index.d.ts +4 -2
- package/dist/bot/services/index.d.ts.map +1 -1
- package/dist/bot/services/index.js +10 -5
- package/dist/bot/services/index.js.map +1 -1
- package/dist/bot/services/message-classifier.d.ts +1 -1
- package/dist/bot/services/message-classifier.d.ts.map +1 -1
- package/dist/bot/services/message-classifier.js.map +1 -1
- package/dist/bot/services/signal-router.d.ts +32 -0
- package/dist/bot/services/signal-router.d.ts.map +1 -0
- package/dist/bot/services/signal-router.js +132 -0
- package/dist/bot/services/signal-router.js.map +1 -0
- package/dist/bot/services/system-prompt.d.ts +12 -0
- package/dist/bot/services/system-prompt.d.ts.map +1 -0
- package/dist/bot/services/system-prompt.js +93 -0
- package/dist/bot/services/system-prompt.js.map +1 -0
- package/dist/bot/services/types.d.ts +7 -34
- package/dist/bot/services/types.d.ts.map +1 -1
- package/dist/bot/services/types.js +0 -3
- package/dist/bot/services/types.js.map +1 -1
- package/dist/bot/services/workspace-refresh.d.ts +47 -0
- package/dist/bot/services/workspace-refresh.d.ts.map +1 -0
- package/dist/bot/services/workspace-refresh.js +154 -0
- package/dist/bot/services/workspace-refresh.js.map +1 -0
- package/dist/bot-config/constants.d.ts +0 -36
- package/dist/bot-config/constants.d.ts.map +1 -1
- package/dist/bot-config/constants.js +1 -76
- package/dist/bot-config/constants.js.map +1 -1
- package/dist/bot-config/context.d.ts +2 -42
- package/dist/bot-config/context.d.ts.map +1 -1
- package/dist/bot-config/context.js +13 -134
- package/dist/bot-config/context.js.map +1 -1
- package/dist/bot-config/index.d.ts +6 -15
- package/dist/bot-config/index.d.ts.map +1 -1
- package/dist/bot-config/index.js +5 -80
- package/dist/bot-config/index.js.map +1 -1
- package/dist/bot-config/loader.d.ts +16 -4
- package/dist/bot-config/loader.d.ts.map +1 -1
- package/dist/bot-config/loader.js +187 -96
- package/dist/bot-config/loader.js.map +1 -1
- package/dist/bot-config/persistence.d.ts +1 -52
- package/dist/bot-config/persistence.d.ts.map +1 -1
- package/dist/bot-config/persistence.js +3 -213
- package/dist/bot-config/persistence.js.map +1 -1
- package/dist/bot-config/state.d.ts +0 -41
- package/dist/bot-config/state.d.ts.map +1 -1
- package/dist/bot-config/state.js +0 -151
- package/dist/bot-config/state.js.map +1 -1
- package/dist/bot-config/tools.d.ts +1 -1
- package/dist/bot-config/tools.js +27 -27
- package/dist/bot-config/tools.js.map +1 -1
- package/dist/bot-config/types.d.ts +39 -32
- package/dist/bot-config/types.d.ts.map +1 -1
- package/dist/bot-config/types.js +0 -3
- package/dist/bot-config/types.js.map +1 -1
- package/dist/bot-config/webhooks.d.ts +0 -4
- package/dist/bot-config/webhooks.d.ts.map +1 -1
- package/dist/bot-config/webhooks.js +0 -13
- package/dist/bot-config/webhooks.js.map +1 -1
- package/dist/commands/seed-config.js +16 -31
- package/dist/commands/seed-config.js.map +1 -1
- package/dist/config.d.ts +0 -9
- package/dist/config.d.ts.map +1 -1
- package/dist/config.js +0 -15
- package/dist/config.js.map +1 -1
- package/dist/mcp/hailer-clients.js +2 -2
- package/dist/mcp/hailer-clients.js.map +1 -1
- package/dist/mcp/tool-registry.d.ts +10 -115
- package/dist/mcp/tool-registry.d.ts.map +1 -1
- package/dist/mcp/tool-registry.js +39 -363
- package/dist/mcp/tool-registry.js.map +1 -1
- package/dist/mcp/tools/activity.d.ts +3 -0
- package/dist/mcp/tools/activity.d.ts.map +1 -1
- package/dist/mcp/tools/activity.js +8 -1
- package/dist/mcp/tools/activity.js.map +1 -1
- package/dist/mcp/tools/app-core.d.ts +3 -0
- package/dist/mcp/tools/app-core.d.ts.map +1 -1
- package/dist/mcp/tools/app-core.js +9 -2
- package/dist/mcp/tools/app-core.js.map +1 -1
- package/dist/mcp/tools/app-marketplace.d.ts +3 -0
- package/dist/mcp/tools/app-marketplace.d.ts.map +1 -1
- package/dist/mcp/tools/app-marketplace.js +13 -1
- package/dist/mcp/tools/app-marketplace.js.map +1 -1
- package/dist/mcp/tools/app-member.d.ts +3 -0
- package/dist/mcp/tools/app-member.d.ts.map +1 -1
- package/dist/mcp/tools/app-member.js +6 -1
- package/dist/mcp/tools/app-member.js.map +1 -1
- package/dist/mcp/tools/app-scaffold.d.ts +3 -0
- package/dist/mcp/tools/app-scaffold.d.ts.map +1 -1
- package/dist/mcp/tools/app-scaffold.js +15 -11
- package/dist/mcp/tools/app-scaffold.js.map +1 -1
- package/dist/mcp/tools/company.d.ts +3 -0
- package/dist/mcp/tools/company.d.ts.map +1 -1
- package/dist/mcp/tools/company.js +5 -1
- package/dist/mcp/tools/company.js.map +1 -1
- package/dist/mcp/tools/discussion.d.ts +3 -0
- package/dist/mcp/tools/discussion.d.ts.map +1 -1
- package/dist/mcp/tools/discussion.js +13 -2
- package/dist/mcp/tools/discussion.js.map +1 -1
- package/dist/mcp/tools/file.d.ts +3 -0
- package/dist/mcp/tools/file.d.ts.map +1 -1
- package/dist/mcp/tools/file.js +6 -1
- package/dist/mcp/tools/file.js.map +1 -1
- package/dist/mcp/tools/index.d.ts +7 -0
- package/dist/mcp/tools/index.d.ts.map +1 -0
- package/dist/mcp/tools/index.js +34 -0
- package/dist/mcp/tools/index.js.map +1 -0
- package/dist/mcp/tools/insight.d.ts +3 -0
- package/dist/mcp/tools/insight.d.ts.map +1 -1
- package/dist/mcp/tools/insight.js +18 -8
- package/dist/mcp/tools/insight.js.map +1 -1
- package/dist/mcp/tools/user.d.ts +3 -0
- package/dist/mcp/tools/user.d.ts.map +1 -1
- package/dist/mcp/tools/user.js +6 -1
- package/dist/mcp/tools/user.js.map +1 -1
- package/dist/mcp/tools/workflow-permissions.d.ts +3 -0
- package/dist/mcp/tools/workflow-permissions.d.ts.map +1 -1
- package/dist/mcp/tools/workflow-permissions.js +8 -1
- package/dist/mcp/tools/workflow-permissions.js.map +1 -1
- package/dist/mcp/tools/workflow.d.ts +3 -0
- package/dist/mcp/tools/workflow.d.ts.map +1 -1
- package/dist/mcp/tools/workflow.js +29 -28
- package/dist/mcp/tools/workflow.js.map +1 -1
- package/dist/mcp/utils/index.d.ts +4 -11
- package/dist/mcp/utils/index.d.ts.map +1 -1
- package/dist/mcp/utils/index.js +5 -36
- package/dist/mcp/utils/index.js.map +1 -1
- package/dist/mcp/utils/role-utils.d.ts +0 -32
- package/dist/mcp/utils/role-utils.d.ts.map +1 -1
- package/dist/mcp/utils/role-utils.js +0 -73
- package/dist/mcp/utils/role-utils.js.map +1 -1
- package/dist/mcp/utils/tool-helpers.d.ts +0 -25
- package/dist/mcp/utils/tool-helpers.d.ts.map +1 -1
- package/dist/mcp/utils/tool-helpers.js +0 -34
- package/dist/mcp/utils/tool-helpers.js.map +1 -1
- package/dist/mcp/webhook-handler.d.ts +4 -34
- package/dist/mcp/webhook-handler.d.ts.map +1 -1
- package/dist/mcp/webhook-handler.js +57 -74
- package/dist/mcp/webhook-handler.js.map +1 -1
- package/dist/mcp-server.d.ts.map +1 -1
- package/dist/mcp-server.js +3 -78
- package/dist/mcp-server.js.map +1 -1
- package/package.json +1 -2
- package/.claude/agents/agent-ada-skill-builder.md +0 -94
- package/.claude/agents/agent-alejandro-function-fields.md +0 -342
- package/.claude/agents/agent-bjorn-config-audit.md +0 -103
- package/.claude/agents/agent-builder-agent-creator.md +0 -130
- package/.claude/agents/agent-code-simplifier.md +0 -53
- package/.claude/agents/agent-dmitri-activity-crud.md +0 -159
- package/.claude/agents/agent-giuseppe-app-builder.md +0 -208
- package/.claude/agents/agent-gunther-mcp-tools.md +0 -39
- package/.claude/agents/agent-helga-workflow-config.md +0 -204
- package/.claude/agents/agent-igor-activity-mover-automation.md +0 -125
- package/.claude/agents/agent-ingrid-doc-templates.md +0 -261
- package/.claude/agents/agent-ivan-monolith.md +0 -154
- package/.claude/agents/agent-kenji-data-reader.md +0 -86
- package/.claude/agents/agent-lars-code-inspector.md +0 -102
- package/.claude/agents/agent-marco-mockup-builder.md +0 -110
- package/.claude/agents/agent-marcus-api-documenter.md +0 -323
- package/.claude/agents/agent-marketplace-publisher.md +0 -280
- package/.claude/agents/agent-marketplace-reviewer.md +0 -309
- package/.claude/agents/agent-permissions-handler.md +0 -208
- package/.claude/agents/agent-simple-writer.md +0 -48
- package/.claude/agents/agent-svetlana-code-review.md +0 -171
- package/.claude/agents/agent-tanya-test-runner.md +0 -333
- package/.claude/agents/agent-ui-designer.md +0 -100
- package/.claude/agents/agent-viktor-sql-insights.md +0 -212
- package/.claude/agents/agent-web-search.md +0 -55
- package/.claude/agents/agent-yevgeni-discussions.md +0 -45
- package/.claude/agents/agent-zara-zapier.md +0 -159
- package/.claude/skills/SDK-activity-patterns/SKILL.md +0 -428
- package/.claude/skills/SDK-generate-skill/SKILL.md +0 -92
- package/.claude/skills/SDK-init-skill/SKILL.md +0 -127
- package/.claude/skills/agent-structure/SKILL.md +0 -98
- package/.claude/skills/delegation-routing/SKILL.md +0 -202
- package/.claude/skills/frontend-design/SKILL.md +0 -254
- package/.claude/skills/hailer-activity-mover/SKILL.md +0 -213
- package/.claude/skills/hailer-rest-api/SKILL.md +0 -61
- package/.claude/skills/hailer-rest-api/hailer-activities.md +0 -184
- package/.claude/skills/hailer-rest-api/hailer-admin.md +0 -473
- package/.claude/skills/hailer-rest-api/hailer-calendar.md +0 -256
- package/.claude/skills/hailer-rest-api/hailer-feed.md +0 -249
- package/.claude/skills/hailer-rest-api/hailer-insights.md +0 -195
- package/.claude/skills/hailer-rest-api/hailer-messaging.md +0 -276
- package/.claude/skills/hailer-rest-api/hailer-workflows.md +0 -283
- package/.claude/skills/insight-join-patterns/SKILL.md +0 -174
- package/.claude/skills/json-only-output/SKILL.md +0 -72
- package/.claude/skills/mcp-direct-tools/SKILL.md +0 -153
- package/.claude/skills/optional-parameters/SKILL.md +0 -72
- package/.claude/skills/tool-parameter-usage/SKILL.md +0 -126
- package/.claude/skills/tool-response-verification/SKILL.md +0 -92
- package/.opencode/agent/agent-ada-skill-builder.md +0 -35
- package/.opencode/agent/agent-alejandro-function-fields.md +0 -39
- package/.opencode/agent/agent-bjorn-config-audit.md +0 -36
- package/.opencode/agent/agent-builder-agent-creator.md +0 -39
- package/.opencode/agent/agent-code-simplifier.md +0 -31
- package/.opencode/agent/agent-dmitri-activity-crud.md +0 -40
- package/.opencode/agent/agent-giuseppe-app-builder.md +0 -37
- package/.opencode/agent/agent-gunther-mcp-tools.md +0 -39
- package/.opencode/agent/agent-helga-workflow-config.md +0 -204
- package/.opencode/agent/agent-igor-activity-mover-automation.md +0 -46
- package/.opencode/agent/agent-ingrid-doc-templates.md +0 -39
- package/.opencode/agent/agent-ivan-monolith.md +0 -46
- package/.opencode/agent/agent-kenji-data-reader.md +0 -53
- package/.opencode/agent/agent-lars-code-inspector.md +0 -28
- package/.opencode/agent/agent-marco-mockup-builder.md +0 -42
- package/.opencode/agent/agent-marcus-api-documenter.md +0 -53
- package/.opencode/agent/agent-marketplace-publisher.md +0 -44
- package/.opencode/agent/agent-marketplace-reviewer.md +0 -42
- package/.opencode/agent/agent-permissions-handler.md +0 -50
- package/.opencode/agent/agent-simple-writer.md +0 -45
- package/.opencode/agent/agent-svetlana-code-review.md +0 -39
- package/.opencode/agent/agent-tanya-test-runner.md +0 -57
- package/.opencode/agent/agent-ui-designer.md +0 -56
- package/.opencode/agent/agent-viktor-sql-insights.md +0 -34
- package/.opencode/agent/agent-web-search.md +0 -42
- package/.opencode/agent/agent-yevgeni-discussions.md +0 -37
- package/.opencode/agent/agent-zara-zapier.md +0 -53
- package/.opencode/commands/app-squad.md +0 -135
- package/.opencode/commands/audit-squad.md +0 -158
- package/.opencode/commands/autoplan.md +0 -563
- package/.opencode/commands/cleanup-squad.md +0 -98
- package/.opencode/commands/config-squad.md +0 -106
- package/.opencode/commands/crud-squad.md +0 -87
- package/.opencode/commands/data-squad.md +0 -97
- package/.opencode/commands/debug-squad.md +0 -303
- package/.opencode/commands/doc-squad.md +0 -65
- package/.opencode/commands/handoff.md +0 -137
- package/.opencode/commands/health.md +0 -49
- package/.opencode/commands/help-agents.md +0 -151
- package/.opencode/commands/help-commands.md +0 -32
- package/.opencode/commands/help-faq.md +0 -29
- package/.opencode/commands/help-plugins.md +0 -28
- package/.opencode/commands/help-skills.md +0 -7
- package/.opencode/commands/help-tools.md +0 -40
- package/.opencode/commands/help.md +0 -28
- package/.opencode/commands/hotfix-squad.md +0 -112
- package/.opencode/commands/integration-squad.md +0 -82
- package/.opencode/commands/janitor-squad.md +0 -167
- package/.opencode/commands/learn-auto.md +0 -120
- package/.opencode/commands/learn.md +0 -120
- package/.opencode/commands/mcp-list.md +0 -27
- package/.opencode/commands/onboard-squad.md +0 -140
- package/.opencode/commands/plan-workspace.md +0 -732
- package/.opencode/commands/prd.md +0 -131
- package/.opencode/commands/project-status.md +0 -82
- package/.opencode/commands/publish.md +0 -138
- package/.opencode/commands/recap.md +0 -69
- package/.opencode/commands/restore.md +0 -64
- package/.opencode/commands/review-squad.md +0 -152
- package/.opencode/commands/save.md +0 -24
- package/.opencode/commands/stats.md +0 -19
- package/.opencode/commands/swarm.md +0 -210
- package/.opencode/commands/tool-builder.md +0 -39
- package/.opencode/commands/ws-pull.md +0 -44
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Build backend integrations with
|
|
2
|
+
description: Build backend integrations with schema discovery and automation
|
|
3
3
|
argument-hint: "integration description"
|
|
4
4
|
allowed-tools: Task, Bash, Read
|
|
5
5
|
---
|
|
@@ -7,64 +7,64 @@ allowed-tools: Task, Bash, Read
|
|
|
7
7
|
|
|
8
8
|
Sequential pipeline: Schema discovery, build integration, then verify with tests.
|
|
9
9
|
|
|
10
|
-
**
|
|
11
|
-
1. **
|
|
12
|
-
2. **
|
|
13
|
-
3. **
|
|
10
|
+
**Roles:**
|
|
11
|
+
1. **Data Reader** - Schema discovery (workflow fields, types, IDs)
|
|
12
|
+
2. **Automation Builder** - Build integration (monolith webhooks, scheduled jobs, automations)
|
|
13
|
+
3. **Test Runner** - Test runner (verify integration with tests)
|
|
14
14
|
|
|
15
15
|
**Goal:** $ARGUMENTS
|
|
16
16
|
|
|
17
17
|
## Protocol
|
|
18
18
|
|
|
19
|
-
### Step 1:
|
|
19
|
+
### Step 1: Schema Discovery
|
|
20
20
|
|
|
21
|
-
Start with
|
|
21
|
+
Start with schema discovery to gather workflow schema and field IDs needed for the integration:
|
|
22
22
|
|
|
23
23
|
```
|
|
24
|
-
Task(
|
|
24
|
+
Task(prompt="Load sdk-ws-config-skill for understanding workspace structure.\n\nList all workflows and their fields relevant to: $ARGUMENTS. Include field IDs, types, and any existing integrations. Also identify webhook URLs and activity phase names needed.")
|
|
25
25
|
```
|
|
26
26
|
|
|
27
|
-
Wait for result. Save the schema output -
|
|
27
|
+
Wait for result. Save the schema output - the automation builder needs these IDs.
|
|
28
28
|
|
|
29
|
-
### Step 2:
|
|
29
|
+
### Step 2: Build Integration
|
|
30
30
|
|
|
31
|
-
Spawn
|
|
31
|
+
Spawn an automation builder with the schema context:
|
|
32
32
|
|
|
33
33
|
```
|
|
34
|
-
Task(
|
|
34
|
+
Task(prompt="Load hailer-monolith-automations skill for building integrations.\n\nBuild a backend integration for: $ARGUMENTS.\n\nWorkflow schema from data reader:\n[PASTE SCHEMA DISCOVERY OUTPUT - workflow IDs, field IDs, types, phases]\n\nImplement in the hailer-integration monolith. Use correct IDs for webhooks, scheduled jobs, or automations.")
|
|
35
35
|
```
|
|
36
36
|
|
|
37
37
|
Wait for result. If `"status": "ready_to_push"`:
|
|
38
|
-
- Run the push commands
|
|
38
|
+
- Run the push commands provided
|
|
39
39
|
|
|
40
|
-
### Step 3:
|
|
40
|
+
### Step 3: Test Integration
|
|
41
41
|
|
|
42
|
-
Spawn
|
|
42
|
+
Spawn a test runner to verify the integration works:
|
|
43
43
|
|
|
44
44
|
```
|
|
45
|
-
Task(
|
|
45
|
+
Task(prompt="Load testing-patterns skill for integration testing.\n\nTest the integration for: $ARGUMENTS.\n\nTest coverage needed:\n- Webhook payload validation (if webhook)\n- Scheduled job execution (if scheduled)\n- Activity creation/phase transitions\n- Error handling and edge cases\n\nRun tests and report pass/fail counts.")
|
|
46
46
|
```
|
|
47
47
|
|
|
48
|
-
Wait for result. If tests fail, report which ones and offer to have
|
|
48
|
+
Wait for result. If tests fail, report which ones and offer to have the automation builder fix issues.
|
|
49
49
|
|
|
50
50
|
### Step 4: Report
|
|
51
51
|
|
|
52
52
|
```markdown
|
|
53
53
|
## Integration Squad Complete
|
|
54
54
|
|
|
55
|
-
###
|
|
55
|
+
### Data Reader (Schema Discovery)
|
|
56
56
|
- Workflows found: [list]
|
|
57
57
|
- Fields mapped: [count]
|
|
58
58
|
- Phases identified: [list]
|
|
59
59
|
- Existing integrations: [list or "none"]
|
|
60
60
|
|
|
61
|
-
###
|
|
61
|
+
### Automation Builder
|
|
62
62
|
- Integration type: [webhook/scheduled/automation]
|
|
63
63
|
- Files created/modified: [list]
|
|
64
64
|
- Endpoints: [list if webhook]
|
|
65
65
|
- Commands run: [list]
|
|
66
66
|
|
|
67
|
-
###
|
|
67
|
+
### Test Runner
|
|
68
68
|
- Tests: X passed, X failed
|
|
69
69
|
- Build: Pass/Fail
|
|
70
70
|
- [Failed test details if any]
|
|
@@ -77,6 +77,6 @@ Wait for result. If tests fail, report which ones and offer to have Ivan fix iss
|
|
|
77
77
|
|
|
78
78
|
## Notes
|
|
79
79
|
|
|
80
|
-
-
|
|
80
|
+
- Data Reader must run first to get real IDs - never let automation builder guess IDs
|
|
81
81
|
- Each agent in the pipeline depends on output from the previous step
|
|
82
|
-
- If tests fail,
|
|
82
|
+
- If tests fail, the automation builder may need to revise the integration code
|
|
@@ -7,11 +7,11 @@ allowed-tools: Task, Bash
|
|
|
7
7
|
|
|
8
8
|
Deep project cleanup across code, configuration, and data. Discovers dead patterns and auto-fixes clear-cut removals.
|
|
9
9
|
|
|
10
|
-
**
|
|
11
|
-
- **
|
|
12
|
-
- **
|
|
13
|
-
- **
|
|
14
|
-
- **
|
|
10
|
+
**Roles:**
|
|
11
|
+
- **Dead Code Inspector** - Dead code detection (unused imports, unreachable code, type errors via LSP)
|
|
12
|
+
- **Config Auditor** - Configuration audit (deprecated fields, broken references, unused workflows)
|
|
13
|
+
- **Data Analyzer** - Data analysis (unpopulated fields, zero-activity workflows, silent insights)
|
|
14
|
+
- **Code Fixer** - Auto-fix confirmed dead code and unused imports (fix loop)
|
|
15
15
|
- **Code Simplifier** - Simplify complex code blocks identified during discovery (fix loop)
|
|
16
16
|
|
|
17
17
|
**Target:** $ARGUMENTS (if blank, scan full project)
|
|
@@ -26,12 +26,12 @@ If `$ARGUMENTS` has specific files/directories, use those as the target.
|
|
|
26
26
|
Otherwise, scan the entire project.
|
|
27
27
|
|
|
28
28
|
If `$ARGUMENTS` contains `--code-only`:
|
|
29
|
-
- Skip
|
|
30
|
-
- Only run
|
|
29
|
+
- Skip Config Auditor and Data Analyzer
|
|
30
|
+
- Only run Dead Code Inspector in discovery phase
|
|
31
31
|
|
|
32
32
|
If `$ARGUMENTS` contains `--config-only`:
|
|
33
|
-
- Skip
|
|
34
|
-
- Only run
|
|
33
|
+
- Skip Dead Code Inspector and Data Analyzer
|
|
34
|
+
- Only run Config Auditor in discovery phase
|
|
35
35
|
|
|
36
36
|
If `$ARGUMENTS` contains `--report-only`:
|
|
37
37
|
- Skip all fix loop iterations
|
|
@@ -43,31 +43,31 @@ If `$ARGUMENTS` contains `--report-only`:
|
|
|
43
43
|
|
|
44
44
|
Spawn all three discovery agents simultaneously using multiple Task tool calls in a single message:
|
|
45
45
|
|
|
46
|
-
**
|
|
46
|
+
**Dead Code Inspector:**
|
|
47
47
|
```
|
|
48
|
-
Task(
|
|
48
|
+
Task(prompt="Load lsp-setup skill for code inspection.\n\nInspect the project for dead code patterns: [TARGET]. Find:\n- Unused imports\n- Unreachable code blocks\n- Unused variables and functions\n- Type errors\n\nUse LSP if available, fall back to tsc/eslint. Return detailed findings grouped by file.")
|
|
49
49
|
```
|
|
50
50
|
|
|
51
|
-
**
|
|
51
|
+
**Config Auditor:**
|
|
52
52
|
```
|
|
53
|
-
Task(
|
|
53
|
+
Task(prompt="Audit workspace configuration for zombie patterns: [TARGET]. Check:\n- Deprecated fields in workspace/fields.ts\n- Broken field references in phases\n- Unused workflows (defined but zero activities)\n- Broken enum references\n- Orphaned configuration entries\n\nReturn issues grouped by category with severity.")
|
|
54
54
|
```
|
|
55
55
|
|
|
56
|
-
**
|
|
56
|
+
**Data Analyzer:**
|
|
57
57
|
```
|
|
58
|
-
Task(
|
|
58
|
+
Task(prompt="Load sdk-insight-queries skill for data analysis.\n\nAnalyze data patterns in workflows: [TARGET]. Find:\n- Fields that are defined but never populated (zero values across all activities)\n- Workflows with zero activities (created but unused)\n- Insights that return empty data (broken or obsolete)\n- Calculated fields that never execute\n- Orphaned data patterns\n\nReturn findings with field IDs, workflow IDs, and impact estimates.")
|
|
59
59
|
```
|
|
60
60
|
|
|
61
61
|
### Step 3: Categorize Findings
|
|
62
62
|
|
|
63
63
|
Collect results from all three agents. Categorize each finding as:
|
|
64
64
|
|
|
65
|
-
**AUTO-FIXABLE** (
|
|
66
|
-
- Unused imports identified by
|
|
65
|
+
**AUTO-FIXABLE** (Code Fixer can safely remove):
|
|
66
|
+
- Unused imports identified by Dead Code Inspector
|
|
67
67
|
- Dead code blocks with no side effects
|
|
68
|
-
- Workflow definitions with zero activities (from
|
|
69
|
-
- Deprecated enum references (from
|
|
70
|
-
- Never-populated fields that can be safely archived (from
|
|
68
|
+
- Workflow definitions with zero activities (from Data Analyzer + Config Auditor)
|
|
69
|
+
- Deprecated enum references (from Config Auditor)
|
|
70
|
+
- Never-populated fields that can be safely archived (from Data Analyzer + Config Auditor)
|
|
71
71
|
|
|
72
72
|
**NEEDS-HUMAN-REVIEW** (escalate to user):
|
|
73
73
|
- Architecture concerns
|
|
@@ -78,16 +78,16 @@ Collect results from all three agents. Categorize each finding as:
|
|
|
78
78
|
|
|
79
79
|
### Step 4: Auto-Fix Loop (if auto-fixable items found AND `--report-only` not set AND `iteration < 3`)
|
|
80
80
|
|
|
81
|
-
If critical auto-fixable items exist, spawn two agents to clean up. If
|
|
81
|
+
If critical auto-fixable items exist, spawn two agents to clean up. If the Code Fixer's fixes introduce new issues detected by re-audit, escalate remaining issues to user after max 2 iterations.
|
|
82
82
|
|
|
83
|
-
**
|
|
83
|
+
**Code Fixer:**
|
|
84
84
|
```
|
|
85
|
-
Task(
|
|
85
|
+
Task(prompt="Remove confirmed dead code and unused imports from the project:\n\n[LIST AUTO-FIXABLE ITEMS WITH FILE PATHS AND LINE NUMBERS]\n\nFrom Dead Code Inspector:\n- [Unused imports with files]\n- [Dead code blocks with files]\n\nFrom Config Auditor:\n- [Deprecated enum references with files]\n- [Unused workflow definitions with IDs]\n\nFrom Data Analyzer:\n- [Never-populated field definitions with IDs]\n\nApply minimal removals only. Do not refactor or improve beyond confirmed dead patterns.")
|
|
86
86
|
```
|
|
87
87
|
|
|
88
88
|
**Code Simplifier:**
|
|
89
89
|
```
|
|
90
|
-
Task(
|
|
90
|
+
Task(prompt="After dead code removal, simplify complex code blocks identified as difficult to maintain: [TARGET].\n\nFocus on:\n- Variable naming clarity\n- Function complexity reduction\n- Comment clarity around remaining logic\n- Code organization in affected files\n\nReturn refactoring suggestions with before/after examples.")
|
|
91
91
|
```
|
|
92
92
|
|
|
93
93
|
After both finish:
|
|
@@ -106,20 +106,20 @@ After both finish:
|
|
|
106
106
|
- Auto-fixes applied: [yes/no]
|
|
107
107
|
- Items removed: [count by category]
|
|
108
108
|
|
|
109
|
-
###
|
|
109
|
+
### Dead Code Inspector
|
|
110
110
|
- Unused imports: X (Y auto-removed)
|
|
111
111
|
- Dead code blocks: X (Y auto-removed)
|
|
112
112
|
- Type errors: X
|
|
113
113
|
- [Remaining issues grouped by file]
|
|
114
114
|
|
|
115
|
-
###
|
|
115
|
+
### Config Auditor
|
|
116
116
|
- Deprecated fields: X
|
|
117
117
|
- Broken references: X (Y auto-removed)
|
|
118
118
|
- Unused workflows: X (Y auto-removed)
|
|
119
119
|
- Orphaned config: X
|
|
120
120
|
- [Remaining issues grouped by category]
|
|
121
121
|
|
|
122
|
-
###
|
|
122
|
+
### Data Analyzer
|
|
123
123
|
- Never-populated fields: X (Y marked for archival)
|
|
124
124
|
- Zero-activity workflows: X (Y removed)
|
|
125
125
|
- Silent insights: X
|
|
@@ -151,8 +151,8 @@ If any agent fails or times out, report partial results from successful agents,
|
|
|
151
151
|
|
|
152
152
|
| Flag | Effect |
|
|
153
153
|
|------|--------|
|
|
154
|
-
| `--code-only` | Skip
|
|
155
|
-
| `--config-only` | Skip
|
|
154
|
+
| `--code-only` | Skip Config Auditor and Data Analyzer, just code cleanup via Dead Code Inspector |
|
|
155
|
+
| `--config-only` | Skip Dead Code Inspector and Data Analyzer, just workspace config audit via Config Auditor |
|
|
156
156
|
| `--report-only` | Report findings only, no auto-fix loop (discovery phase only) |
|
|
157
157
|
| `--bg` | Run all discovery agents in background mode |
|
|
158
158
|
|
|
@@ -161,7 +161,7 @@ If `--bg` is present, launch all discovery agents with `run_in_background: true`
|
|
|
161
161
|
## Notes
|
|
162
162
|
|
|
163
163
|
- Max 2 re-discovery iterations (3 total) to prevent infinite loops
|
|
164
|
-
-
|
|
165
|
-
- Data cleanup (
|
|
164
|
+
- Code Fixer only removes clear-cut dead code - ambiguous items go to user review
|
|
165
|
+
- Data cleanup (Data Analyzer findings) may affect reports/history - always prompt user before removal
|
|
166
166
|
- Each re-discovery is a full parallel sweep across all enabled agents
|
|
167
167
|
- The `--report-only` flag gives discovery results without auto-fixes
|
|
@@ -62,8 +62,8 @@ If learnings found, present to user:
|
|
|
62
62
|
```
|
|
63
63
|
Found [N] potential learnings from this session:
|
|
64
64
|
|
|
65
|
-
1. [agent/
|
|
66
|
-
Context:
|
|
65
|
+
1. [agent/data-reader] Field lookup should check enums.ts first
|
|
66
|
+
Context: Data Reader made API call when data was available locally
|
|
67
67
|
|
|
68
68
|
2. [pattern] Date fields from Hailer come pre-formatted
|
|
69
69
|
Context: Tried to format already-formatted date, got wrong output
|
|
@@ -96,10 +96,10 @@ If in project repo, write to `docs/learnings.md` or project's inbox location.
|
|
|
96
96
|
|
|
97
97
|
```
|
|
98
98
|
Captured [N] learnings to inbox:
|
|
99
|
-
- [agent/
|
|
99
|
+
- [agent/data-reader] Field lookup should check enums.ts first
|
|
100
100
|
- [pattern] Date fields from Hailer come pre-formatted
|
|
101
101
|
|
|
102
|
-
Review later with /learn to apply fixes, or let
|
|
102
|
+
Review later with /learn to apply fixes, or let Skill Builder auto-process.
|
|
103
103
|
```
|
|
104
104
|
|
|
105
105
|
## No Learnings Found
|
|
@@ -114,7 +114,7 @@ To capture something manually: /learn <category> <description>
|
|
|
114
114
|
|
|
115
115
|
## Notes
|
|
116
116
|
|
|
117
|
-
- This is DETECTION only - doesn't apply fixes (that's /learn
|
|
117
|
+
- This is DETECTION only - doesn't apply fixes (that's /learn's job)
|
|
118
118
|
- User confirms before anything is saved
|
|
119
119
|
- Bias toward false negatives (miss some) rather than false positives (noise)
|
|
120
120
|
- Works best at end of session when there's context to analyze
|
|
@@ -10,7 +10,6 @@ Capture a learning, ask clarifying questions, then apply the fix to the right pl
|
|
|
10
10
|
`/learn <category> <description>`
|
|
11
11
|
|
|
12
12
|
## Categories
|
|
13
|
-
- `agent/<name>` - Agent behavior issue (e.g., `agent/kenji`)
|
|
14
13
|
- `skill/<name>` - Skill missing pattern (e.g., `skill/function-fields`)
|
|
15
14
|
- `pattern` - General pattern to document
|
|
16
15
|
- `bug` - Bug in code/config
|
|
@@ -18,7 +17,7 @@ Capture a learning, ask clarifying questions, then apply the fix to the right pl
|
|
|
18
17
|
|
|
19
18
|
## Examples
|
|
20
19
|
```
|
|
21
|
-
/learn
|
|
20
|
+
/learn skill/data-reader should check enums.ts before API calls
|
|
22
21
|
/learn skill/insights JOIN syntax was wrong for linked fields
|
|
23
22
|
/learn pattern always verify push succeeded before continuing
|
|
24
23
|
/learn gotcha phase IDs change when workflow is copied
|
|
@@ -29,16 +28,16 @@ Capture a learning, ask clarifying questions, then apply the fix to the right pl
|
|
|
29
28
|
### Step 1: Parse & Understand
|
|
30
29
|
|
|
31
30
|
Parse the input:
|
|
32
|
-
- Category: first word (e.g., `
|
|
31
|
+
- Category: first word (e.g., `skill/data-reader`)
|
|
33
32
|
- Description: rest of the text
|
|
34
33
|
|
|
35
34
|
### Step 2: Ask Clarifying Questions
|
|
36
35
|
|
|
37
36
|
Use AskUserQuestion to gather details:
|
|
38
37
|
|
|
39
|
-
**For
|
|
38
|
+
**For skill issues:**
|
|
40
39
|
- "What was the symptom?" (wrong output, error, missed step)
|
|
41
|
-
- "What should the
|
|
40
|
+
- "What should the skill do differently?"
|
|
42
41
|
- "Should this be a rule, a skill addition, or both?"
|
|
43
42
|
|
|
44
43
|
**For skill issues:**
|
|
@@ -55,11 +54,10 @@ Based on category and answers, decide where the fix goes:
|
|
|
55
54
|
|
|
56
55
|
| Category | Likely Target |
|
|
57
56
|
|----------|---------------|
|
|
58
|
-
| `agent/X` | `.claude/agents/agent-X.md` |
|
|
59
57
|
| `skill/X` | `.claude/skills/X/SKILL.md` |
|
|
60
58
|
| `pattern` | Relevant skill or CLAUDE.md |
|
|
61
59
|
| `bug` | Code fix + possibly skill |
|
|
62
|
-
| `gotcha` | Skill or
|
|
60
|
+
| `gotcha` | Skill or CLAUDE.md |
|
|
63
61
|
|
|
64
62
|
### Step 4: Apply the Fix
|
|
65
63
|
|
|
@@ -67,16 +65,10 @@ Based on category and answers, decide where the fix goes:
|
|
|
67
65
|
- Edit the target file directly
|
|
68
66
|
- Add to appropriate section (rules, patterns, examples)
|
|
69
67
|
|
|
70
|
-
**Option B: Delegate to
|
|
71
|
-
For complex changes
|
|
68
|
+
**Option B: Delegate to a sub-agent (if complex)**
|
|
69
|
+
For complex changes requiring deep knowledge of skills or patterns:
|
|
72
70
|
```
|
|
73
|
-
Task(
|
|
74
|
-
"task": "apply_learning",
|
|
75
|
-
"category": "<category>",
|
|
76
|
-
"learning": "<description>",
|
|
77
|
-
"details": "<clarification answers>",
|
|
78
|
-
"target": "<determined target>"
|
|
79
|
-
})
|
|
71
|
+
Task(prompt="Apply this learning to the appropriate skill or config file.\n\nCategory: <category>\nLearning: <description>\nDetails: <clarification answers>\nTarget: <determined target>\n\nEdit the target file to incorporate this learning.")
|
|
80
72
|
```
|
|
81
73
|
|
|
82
74
|
### Step 5: Log & Confirm
|
|
@@ -89,9 +81,9 @@ Task(subagent_type="agent-ada-skill-builder", prompt={
|
|
|
89
81
|
2. Report what was done:
|
|
90
82
|
```
|
|
91
83
|
Learning applied:
|
|
92
|
-
- Category:
|
|
84
|
+
- Category: role/data-reader
|
|
93
85
|
- Fix: Added rule "Check enums.ts before making API calls"
|
|
94
|
-
- Location: .claude/
|
|
86
|
+
- Location: .claude/skills/<relevant-skill>/SKILL.md
|
|
95
87
|
```
|
|
96
88
|
|
|
97
89
|
## File Template
|
|
@@ -107,7 +99,7 @@ History of fixes applied from learnings.
|
|
|
107
99
|
|
|
108
100
|
## Log
|
|
109
101
|
|
|
110
|
-
- [
|
|
102
|
+
- [skill/data-reader] Check enums.ts first → Added to SKILL.md _(2026-01-31)_
|
|
111
103
|
- [skill/insights] JOIN syntax example → Added to SKILL.md _(2026-01-31)_
|
|
112
104
|
```
|
|
113
105
|
|
|
@@ -116,5 +108,5 @@ History of fixes applied from learnings.
|
|
|
116
108
|
- This command APPLIES fixes, not just logs them
|
|
117
109
|
- Ask questions to understand the real issue
|
|
118
110
|
- Small fixes: edit directly
|
|
119
|
-
- Complex fixes: delegate to
|
|
111
|
+
- Complex fixes: delegate to a general-purpose sub-agent
|
|
120
112
|
- Always log what was done for history
|
|
@@ -7,11 +7,11 @@ allowed-tools: Task, Bash, Read
|
|
|
7
7
|
|
|
8
8
|
Sequential pipeline: Create workspace infrastructure, scaffold the app, and verify everything is wired correctly.
|
|
9
9
|
|
|
10
|
-
**
|
|
11
|
-
1. **
|
|
12
|
-
2. **
|
|
13
|
-
3. **
|
|
14
|
-
4. **
|
|
10
|
+
**Roles:**
|
|
11
|
+
1. **Workflow Config** - Workflow configuration (create workflows, fields, phases, teams, groups)
|
|
12
|
+
2. **Function Fields** - Calculated fields and nameFunction
|
|
13
|
+
3. **App Builder** - Scaffold first app with basic CRUD interface
|
|
14
|
+
4. **Config Auditor** - Audit configuration accuracy and field references
|
|
15
15
|
|
|
16
16
|
**Goal:** $ARGUMENTS
|
|
17
17
|
|
|
@@ -24,72 +24,62 @@ Parse `$ARGUMENTS` to determine input type:
|
|
|
24
24
|
- **If it's a file path** (e.g., `docs/prd-onboarding.md`): Read it for requirements
|
|
25
25
|
- **Otherwise:** Use it as a project description
|
|
26
26
|
|
|
27
|
-
If `$ARGUMENTS` is a file path, read it first before proceeding to
|
|
27
|
+
If `$ARGUMENTS` is a file path, read it first before proceeding to Workflow Config.
|
|
28
28
|
|
|
29
|
-
### Step 2:
|
|
29
|
+
### Step 2: Workflow Config
|
|
30
30
|
|
|
31
|
-
Spawn
|
|
31
|
+
Spawn a workflow config agent to create workspace infrastructure:
|
|
32
32
|
|
|
33
33
|
```
|
|
34
|
-
Task(
|
|
34
|
+
Task(prompt="Load sdk-ws-config-skill for workspace setup.\n\nBootstrap a new Hailer project: $ARGUMENTS\n\nCreate: workflows (at least 1), fields for each workflow, phases, teams, and groups as needed.")
|
|
35
35
|
```
|
|
36
36
|
|
|
37
|
-
Wait for result. If
|
|
38
|
-
- Run the push commands
|
|
37
|
+
Wait for result. If the agent returns `"status": "ready_to_push"`:
|
|
38
|
+
- Run the push commands provided (e.g., `npm run fields-push:force`)
|
|
39
39
|
- Then run `npm run pull` to refresh local workspace with new IDs
|
|
40
|
-
- **Important:**
|
|
40
|
+
- **Important:** Workflow config ALWAYS spawns a function fields agent for nameFunction. Check if the result indicates it was spawned and created nameFunction. If yes, function fields work is done - skip to Step 3.
|
|
41
41
|
|
|
42
|
-
### Step 3:
|
|
42
|
+
### Step 3: Function Fields - Conditional
|
|
43
43
|
|
|
44
|
-
Only spawn if
|
|
44
|
+
Only spawn if workflow config indicates additional function fields are needed beyond what was created by the auto-spawn.
|
|
45
45
|
|
|
46
|
-
If needed, spawn
|
|
46
|
+
If needed, spawn a function fields agent:
|
|
47
47
|
|
|
48
48
|
```
|
|
49
|
-
Task(
|
|
49
|
+
Task(prompt="Load sdk-function-fields and sdk-ws-config-skill skills for creating calculated fields.\n\nCreate additional function fields for workflows created in: [INSERT WORKFLOW CONFIG GOAL].\n\nWorkflow config created these workflows: [SUMMARIZE WORKFLOW CONFIG RESULT - workflow names, IDs, field counts].\n\nFunction fields already created by workflow config: [FROM WORKFLOW CONFIG RESULT].")
|
|
50
50
|
```
|
|
51
51
|
|
|
52
52
|
Wait for result. If `"status": "ready_to_push"`:
|
|
53
53
|
- Run the push commands
|
|
54
54
|
- Run `npm run pull` to refresh workspace
|
|
55
55
|
|
|
56
|
-
### Step 4:
|
|
56
|
+
### Step 4: App Scaffold
|
|
57
57
|
|
|
58
|
-
|
|
59
|
-
```
|
|
60
|
-
Bash: node .claude/hooks/app-edit-guard.cjs --agent-on
|
|
61
|
-
```
|
|
62
|
-
|
|
63
|
-
Spawn Giuseppe to build the first app using the new workspace:
|
|
64
|
-
|
|
65
|
-
```
|
|
66
|
-
Task(subagent_type="agent-giuseppe-app-builder", prompt="Scaffold the first Hailer app for this new project: $ARGUMENTS\n\nWorkspace created by Helga: [SUMMARIZE HELGA'S RESULT - workflow names, IDs, field counts]. Giuseppe: read workspace/ directly to discover exact field IDs, types, and team configurations. Do not guess IDs.\n\nBuild a basic CRUD interface using @hailer/app-sdk and Chakra UI. Start with the primary workflow. Use the Hailer Design System.\n\nNote: Assume Local Dev app exists (orchestrator checks this before spawning you). Build for local development at http://localhost:3000.")
|
|
67
|
-
```
|
|
58
|
+
Spawn an app builder to build the first app using the new workspace:
|
|
68
59
|
|
|
69
|
-
**After Giuseppe completes, disable builder mode:**
|
|
70
60
|
```
|
|
71
|
-
|
|
61
|
+
Task(prompt="Load hailer-app-builder and hailer-design-system skills for app development.\n\nScaffold the first Hailer app for this new project: $ARGUMENTS\n\nWorkspace created by workflow config: [SUMMARIZE WORKFLOW CONFIG RESULT - workflow names, IDs, field counts]. You: read workspace/ directly to discover exact field IDs, types, and team configurations. Do not guess IDs.\n\nBuild a basic CRUD interface using @hailer/app-sdk and Chakra UI. Start with the primary workflow. Use the Hailer Design System.\n\nNote: Assume Local Dev app exists (orchestrator checks this before spawning you). Build for local development at http://localhost:3000.")
|
|
72
62
|
```
|
|
73
63
|
|
|
74
|
-
Wait for result. If
|
|
64
|
+
Wait for result. If the builder returns `"status": "ready_to_push"`:
|
|
75
65
|
- Run the push commands
|
|
76
66
|
|
|
77
|
-
### Step 5:
|
|
67
|
+
### Step 5: Config Audit
|
|
78
68
|
|
|
79
|
-
Spawn
|
|
69
|
+
Spawn a config auditor to verify everything is configured correctly:
|
|
80
70
|
|
|
81
71
|
```
|
|
82
|
-
Task(
|
|
72
|
+
Task(prompt="Audit this new Hailer project setup:\n\n1. Verify CLAUDE.md accuracy (check that project type detection works)\n2. Verify workspace configuration: workflows, fields, phases, teams all match workspace/ files\n3. Verify field references in the new app match workspace/ field definitions\n4. Check for missing imports, incorrect IDs, or type mismatches\n5. Verify that nameFunction is set on the primary workflow\n\nProject goal: $ARGUMENTS\n\nReport any misconfigurations. If iteration <= 1, recommend fixes to the orchestrator.")
|
|
83
73
|
```
|
|
84
74
|
|
|
85
75
|
**Loop Control:**
|
|
86
|
-
- If
|
|
87
|
-
- If
|
|
76
|
+
- If config auditor finds no critical issues: proceed to Step 6 (report)
|
|
77
|
+
- If config auditor finds issues AND `iteration <= 1`:
|
|
88
78
|
- Increment `iteration`
|
|
89
|
-
- Determine which agent to fix it (usually
|
|
79
|
+
- Determine which agent to fix it (usually Workflow Config or App Builder)
|
|
90
80
|
- Run appropriate agent with the issues to fix
|
|
91
|
-
- Return to Step 5 (
|
|
92
|
-
- If
|
|
81
|
+
- Return to Step 5 (config audit re-checks)
|
|
82
|
+
- If config auditor finds issues AND `iteration > 1`: escalate to user in Step 6
|
|
93
83
|
|
|
94
84
|
### Step 6: Report
|
|
95
85
|
|
|
@@ -98,30 +88,30 @@ Task(subagent_type="agent-bjorn-config-audit", prompt="Audit this new Hailer pro
|
|
|
98
88
|
|
|
99
89
|
**Project Goal:** $ARGUMENTS
|
|
100
90
|
|
|
101
|
-
### Workspace Setup
|
|
91
|
+
### Workspace Setup
|
|
102
92
|
- Workflows created: [list with IDs]
|
|
103
93
|
- Fields created: [count]
|
|
104
94
|
- Phases: [count]
|
|
105
95
|
- Teams: [count]
|
|
106
|
-
-
|
|
96
|
+
- Function fields auto-spawn: [nameFunction created? Y/N]
|
|
107
97
|
|
|
108
|
-
### Function Fields
|
|
98
|
+
### Function Fields
|
|
109
99
|
- Additional function fields created: [list or "None needed"]
|
|
110
100
|
- Skipped: [reason if skipped]
|
|
111
101
|
|
|
112
|
-
### App Scaffold
|
|
102
|
+
### App Scaffold
|
|
113
103
|
- App path: [path to new app]
|
|
114
104
|
- Build status: Pass/Fail
|
|
115
105
|
- Files created: [count/list]
|
|
116
106
|
- Local dev setup: [check local dev app name]
|
|
117
107
|
|
|
118
|
-
###
|
|
108
|
+
### Config Audit
|
|
119
109
|
- Critical issues found: [count] or "None"
|
|
120
110
|
- Status: VERIFIED / NEEDS FIXES (if iteration > 1, see below)
|
|
121
111
|
|
|
122
112
|
[If iteration > 1 - escalated:]
|
|
123
113
|
### Remaining Issues
|
|
124
|
-
[List issues
|
|
114
|
+
[List issues config auditor found that weren't resolved in 1 fix iteration]
|
|
125
115
|
- Manual fixes recommended: [hints]
|
|
126
116
|
|
|
127
117
|
### Next Steps
|
|
@@ -133,8 +123,8 @@ Task(subagent_type="agent-bjorn-config-audit", prompt="Audit this new Hailer pro
|
|
|
133
123
|
|
|
134
124
|
## Notes
|
|
135
125
|
|
|
136
|
-
- Each agent in the pipeline needs IDs from the previous step. Always `npm run pull` between
|
|
137
|
-
-
|
|
138
|
-
-
|
|
139
|
-
-
|
|
140
|
-
- Set `iteration = 1` at the start. Increment after each
|
|
126
|
+
- Each agent in the pipeline needs IDs from the previous step. Always `npm run pull` between Workflow Config→Function Fields→App Builder to refresh local workspace.
|
|
127
|
+
- Workflow config auto-spawns function fields agent for nameFunction. Check the result - only spawn function fields separately in Step 3 if additional function fields are needed.
|
|
128
|
+
- App builder needs real workflow and field IDs from workspace/ - always read the files and paste actual IDs, never let it guess.
|
|
129
|
+
- Config auditor's audit is the quality gate. If issues are found and you've iterated once, escalate remaining issues to the user rather than looping infinitely.
|
|
130
|
+
- Set `iteration = 1` at the start. Increment after each config audit if fixes are attempted.
|
|
@@ -707,8 +707,8 @@ Use the PRD templates from autoplan but with REAL DATA from the discovery:
|
|
|
707
707
|
**Total components planned:** X
|
|
708
708
|
|
|
709
709
|
**Recommended build order:**
|
|
710
|
-
1. Core workflows (master data first) -
|
|
711
|
-
2. Transactional workflows -
|
|
710
|
+
1. Core workflows (master data first) - create nameFunction after workflow setup
|
|
711
|
+
2. Transactional workflows - create nameFunction + function fields after workflow setup
|
|
712
712
|
3. Cross-workflow function fields (if needed separately)
|
|
713
713
|
4. Insights for apps/reports
|
|
714
714
|
5. Document templates (PDF/CSV)
|