@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,151 +1,182 @@
|
|
|
1
1
|
---
|
|
2
|
-
description:
|
|
2
|
+
description: Help for working with skills and general-purpose sub-agents
|
|
3
3
|
---
|
|
4
4
|
|
|
5
|
-
#
|
|
5
|
+
# Skills & Roles Help
|
|
6
6
|
|
|
7
|
-
Display
|
|
7
|
+
Display how to work with the skill-based model and general-purpose sub-agents.
|
|
8
8
|
|
|
9
9
|
## Output
|
|
10
10
|
|
|
11
11
|
```
|
|
12
12
|
╭─────────────────────────────────────────╮
|
|
13
|
-
│
|
|
13
|
+
│ HAILER MCP - SKILLS & WORKFLOWS │
|
|
14
14
|
╰─────────────────────────────────────────╯
|
|
15
15
|
|
|
16
|
-
|
|
17
|
-
|
|
16
|
+
The new model: General-purpose sub-agents + skills. No named agents.
|
|
17
|
+
Load the right skills for the domain, spawn a sub-agent with them.
|
|
18
18
|
|
|
19
19
|
HOW IT WORKS:
|
|
20
20
|
|
|
21
21
|
1. You ask Claude to do something
|
|
22
|
-
2. Claude
|
|
23
|
-
3. Claude spawns
|
|
24
|
-
4.
|
|
22
|
+
2. Claude picks the relevant skills for context
|
|
23
|
+
3. Claude spawns a general-purpose sub-agent with skill instructions
|
|
24
|
+
4. Sub-agent executes using domain knowledge from skills
|
|
25
25
|
5. Claude interprets result and reports back
|
|
26
26
|
|
|
27
27
|
─────────────────────────────────────────────────────────────────────────
|
|
28
28
|
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
29
|
+
SKILL CATALOG:
|
|
30
|
+
|
|
31
|
+
Workspace & Config:
|
|
32
|
+
sdk-ws-config-skill - Understanding workflows, fields, phases, type generation
|
|
33
|
+
sdk-function-fields - Creating calculated fields
|
|
34
|
+
sdk-activity-patterns - Creating/updating activities
|
|
35
|
+
sdk-insight-queries - Writing insight queries
|
|
36
|
+
sdk-document-templates - Creating PDF/CSV templates
|
|
37
|
+
|
|
38
|
+
App Development:
|
|
39
|
+
hailer-app-builder - Building Hailer apps (React/Chakra)
|
|
40
|
+
hailer-design-system - Theme, colors, icons, components, UI/UX patterns
|
|
41
|
+
hailer-apps-pictures - Working with images in apps
|
|
42
|
+
publish-hailer-app - Publishing to production
|
|
43
|
+
hailer-api-client - Making REST API calls
|
|
44
|
+
|
|
45
|
+
Integrations:
|
|
46
|
+
hailer-monolith-automations - Webhook handlers, scheduled jobs, phase cascade bots
|
|
47
|
+
zapier-hailer-patterns - Zapier integrations
|
|
48
|
+
integration-patterns - General integration patterns
|
|
49
|
+
hailer-api-client - Using HailerApiClient
|
|
50
|
+
|
|
51
|
+
Testing & Quality:
|
|
52
|
+
testing-patterns - vitest/playwright patterns
|
|
53
|
+
lsp-setup - Code inspection tools
|
|
54
|
+
api-documentation-patterns - API endpoint documentation
|
|
55
|
+
tool-builder - Building MCP tools
|
|
56
|
+
|
|
57
|
+
Error Handling:
|
|
58
|
+
tool-parameter-usage - MCP validation errors
|
|
59
|
+
tool-response-verification - Tool failures
|
|
60
|
+
optional-parameters - Optional param errors
|
|
61
|
+
json-only-output - JSON formatting issues
|
|
43
62
|
|
|
44
63
|
─────────────────────────────────────────────────────────────────────────
|
|
45
64
|
|
|
46
|
-
|
|
65
|
+
ROLE-BASED WORKFLOWS:
|
|
47
66
|
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
67
|
+
Data Operations:
|
|
68
|
+
• Data Reader - Read workflows, fields, activities (LOCAL FIRST)
|
|
69
|
+
• Activity Writer - Create/update activities
|
|
70
|
+
• Data Analyzer - Query patterns, anomalies, analysis
|
|
71
|
+
• Access Controller - Manage app access
|
|
53
72
|
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
Ivan - Monolith automations
|
|
60
|
-
Marco - Mockups
|
|
61
|
-
Ingrid - Document templates
|
|
73
|
+
Configuration:
|
|
74
|
+
• Workflow Config - Manage workflows, fields, phases
|
|
75
|
+
• Function Fields - Calculated fields + nameFunction
|
|
76
|
+
• SQL Insights - SQL-like reports
|
|
77
|
+
• Template Designer - PDF/CSV document templates
|
|
62
78
|
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
79
|
+
Development:
|
|
80
|
+
• App Builder - Build Hailer apps (production)
|
|
81
|
+
• UI Designer - Design specs (layout, components)
|
|
82
|
+
• Code Builder - Build MCP tools, backends
|
|
83
|
+
• Activity Mover - Phase cascade microservices
|
|
84
|
+
• Automation Builder - Webhooks, scheduled jobs
|
|
67
85
|
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
86
|
+
Quality:
|
|
87
|
+
• Code Reviewer - Code review, security
|
|
88
|
+
• Test Runner - Run tests, verify builds
|
|
89
|
+
• Code Inspector - Find dead code, type errors
|
|
90
|
+
• Config Auditor - Audit configuration
|
|
91
|
+
• Code Simplifier - Refactor for clarity
|
|
71
92
|
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
93
|
+
Meta:
|
|
94
|
+
• Skill Builder - Create skills from patterns
|
|
95
|
+
• Documentation Generator - API endpoint docs
|
|
96
|
+
• Publisher - Publish to marketplace
|
|
97
|
+
• Reviewer - PR review
|
|
75
98
|
|
|
76
99
|
─────────────────────────────────────────────────────────────────────────
|
|
77
100
|
|
|
78
|
-
|
|
101
|
+
COMMON WORKFLOWS:
|
|
79
102
|
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
agent-yevgeni-discussions - Read/post discussion messages
|
|
84
|
-
agent-permissions-handler - Manage app access
|
|
85
|
-
agent-simple-writer - Basic code edits (ID swaps, string replacements)
|
|
103
|
+
Add a field:
|
|
104
|
+
Data Reader (get IDs) → Workflow Config (create field) → (push)
|
|
105
|
+
→ Data Reader (verify)
|
|
86
106
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
agent-alejandro-function-fields - Calculated fields + name functions
|
|
90
|
-
agent-viktor-sql-insights - SQL-like reports
|
|
91
|
-
agent-ingrid-doc-templates - PDF/CSV document templates
|
|
107
|
+
Create an activity:
|
|
108
|
+
Data Reader (get schema) → Activity Writer (create)
|
|
92
109
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
agent-gunther-mcp-tools - Build MCP tools
|
|
97
|
-
agent-igor-activity-mover - Phase cascade microservices
|
|
98
|
-
agent-ivan-monolith - Monolith automations
|
|
99
|
-
agent-zara-zapier - Zapier integrations
|
|
110
|
+
Build an app:
|
|
111
|
+
Data Reader (discover schema) → UI Designer (design spec)
|
|
112
|
+
→ App Builder (build) → Test Runner (verify)
|
|
100
113
|
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
agent-lars-code-inspector - Find bugs, dead code (LSP)
|
|
105
|
-
agent-bjorn-config-audit - Audit configuration
|
|
106
|
-
agent-code-simplifier - Simplify code for clarity
|
|
114
|
+
Create a report:
|
|
115
|
+
Data Reader (get schema) → Function Fields (if needed)
|
|
116
|
+
→ SQL Insights (build queries)
|
|
107
117
|
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
agent-builder-agent-creator - Create new agents
|
|
111
|
-
agent-marcus-api-documenter - Document API endpoints
|
|
112
|
-
agent-marketplace-publisher - Publish plugins
|
|
113
|
-
agent-marketplace-reviewer - Review plugin PRs
|
|
118
|
+
Review code:
|
|
119
|
+
Code Reviewer (find issues) → Code Fixer (fix) → Code Reviewer (verify)
|
|
114
120
|
|
|
115
121
|
─────────────────────────────────────────────────────────────────────────
|
|
116
122
|
|
|
117
|
-
|
|
123
|
+
HOW TO SPAWN SUB-AGENTS:
|
|
118
124
|
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
125
|
+
With skills:
|
|
126
|
+
Task(prompt="Load <skill-name> for understanding the domain.
|
|
127
|
+
|
|
128
|
+
Your mission: [detailed task description]")
|
|
123
129
|
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
130
|
+
Multiple skills:
|
|
131
|
+
Task(prompt="Load <skill-1> and <skill-2> skills.
|
|
132
|
+
|
|
133
|
+
Your mission: [detailed task description]")
|
|
134
|
+
|
|
135
|
+
Example:
|
|
136
|
+
Task(prompt="Load sdk-ws-config-skill for workspace understanding.
|
|
137
|
+
|
|
138
|
+
List all workflows and their fields for the Customer workflow.")
|
|
128
139
|
|
|
129
140
|
─────────────────────────────────────────────────────────────────────────
|
|
130
141
|
|
|
131
|
-
|
|
142
|
+
DATA OPERATION RULES:
|
|
143
|
+
|
|
144
|
+
Read First: Always check workspace/ before API calls
|
|
145
|
+
- workflow/ directory has all structural data (IDs, field types, phases)
|
|
146
|
+
- API only needed for live activity data, counts, discussion messages
|
|
132
147
|
|
|
133
|
-
|
|
134
|
-
|
|
148
|
+
Refresh Often: `npm run pull` updates workspace/ from Hailer
|
|
149
|
+
- After pushing new config, pull to get new IDs
|
|
150
|
+
- Between pipeline steps
|
|
151
|
+
|
|
152
|
+
ID Format: Field IDs, workflow IDs, phase IDs come from workspace/
|
|
153
|
+
- Never guess IDs - always read them from workspace/ files
|
|
154
|
+
- Always verify types match before using in code
|
|
155
|
+
|
|
156
|
+
Activity Updates: Use correct wrapper format
|
|
157
|
+
- Correct: `{type: "string", value: "x"}`
|
|
158
|
+
- Wrong: Raw value `"x"`
|
|
159
|
+
|
|
160
|
+
─────────────────────────────────────────────────────────────────────────
|
|
135
161
|
|
|
136
|
-
|
|
137
|
-
→ Kenji (get schema) → Giuseppe (build app)
|
|
162
|
+
SQUAD WORKFLOWS:
|
|
138
163
|
|
|
139
|
-
|
|
140
|
-
|
|
164
|
+
Pre-built multi-step orchestrations:
|
|
165
|
+
/app-squad - Build apps end-to-end
|
|
166
|
+
/review-squad - Code review + auto-fix
|
|
167
|
+
/config-squad - Workflow config + functions + insights
|
|
168
|
+
/hotfix-squad - Test → fix → security review
|
|
169
|
+
/debug-squad - Parallel investigation
|
|
170
|
+
/crud-squad - Schema discovery → CRUD → verify
|
|
171
|
+
/data-squad - Build reports (discover → functions → insights)
|
|
141
172
|
|
|
142
|
-
|
|
143
|
-
|
|
173
|
+
Large-scale parallel:
|
|
174
|
+
/swarm <desc> - Auto-select roles, split work across workers
|
|
144
175
|
|
|
145
176
|
─────────────────────────────────────────────────────────────────────────
|
|
146
177
|
|
|
147
178
|
SEE ALSO:
|
|
148
|
-
/stats -
|
|
149
|
-
/help
|
|
150
|
-
/help
|
|
179
|
+
/stats - Task statistics
|
|
180
|
+
/help:skills - Skill details
|
|
181
|
+
/help:commands - All commands
|
|
151
182
|
```
|
|
@@ -46,19 +46,19 @@ PLANNING
|
|
|
46
46
|
/project-status Sync DEVELOPMENT.md with PRD statuses
|
|
47
47
|
|
|
48
48
|
SQUADS (multi-agent commands)
|
|
49
|
-
/review-squad [files] Parallel+Loop:
|
|
50
|
-
/cleanup-squad [files] Parallel:
|
|
51
|
-
/app-squad <desc> Pipeline+Loop:
|
|
52
|
-
/config-squad <desc> Pipeline:
|
|
53
|
-
/crud-squad <desc> Pipeline:
|
|
54
|
-
/data-squad <desc> Pipeline:
|
|
55
|
-
/integration-squad <desc> Pipeline:
|
|
56
|
-
/doc-squad <desc> Pipeline:
|
|
57
|
-
/hotfix-squad <desc> Pipeline+Loop:
|
|
58
|
-
/debug-squad <desc> Parallel+Loop:
|
|
59
|
-
/audit-squad Parallel:
|
|
60
|
-
/onboard-squad <desc> Pipeline+Loop:
|
|
61
|
-
/janitor-squad Parallel+Loop:
|
|
49
|
+
/review-squad [files] Parallel+Loop: Code Reviewer + LSP Inspector + Test Runner + Code Editor
|
|
50
|
+
/cleanup-squad [files] Parallel: Config Auditor + Code Simplifier + LSP Inspector
|
|
51
|
+
/app-squad <desc> Pipeline+Loop: Data Reader → UI Designer → App Builder → Test Runner (build verify)
|
|
52
|
+
/config-squad <desc> Pipeline: Workflow Config → Function Fields → SQL Insights
|
|
53
|
+
/crud-squad <desc> Pipeline: Data Reader → Activity Writer → Data Reader (verify)
|
|
54
|
+
/data-squad <desc> Pipeline: Data Reader → Function Fields → SQL Insights
|
|
55
|
+
/integration-squad <desc> Pipeline: Data Reader → Monolith Automations → Test Runner
|
|
56
|
+
/doc-squad <desc> Pipeline: LSP Inspector → API Documenter
|
|
57
|
+
/hotfix-squad <desc> Pipeline+Loop: Test Runner → Code Editor → Code Reviewer (max 3 iter)
|
|
58
|
+
/debug-squad <desc> Parallel+Loop: Data Reader + SQL Insights + Code Reviewer + Test Runner (--debate for competing hypotheses)
|
|
59
|
+
/audit-squad Parallel: Code Reviewer + Permissions Auditor + Tool Security Auditor (security audit)
|
|
60
|
+
/onboard-squad <desc> Pipeline+Loop: Workflow Config → Function Fields → App Builder → Config Auditor (bootstrap)
|
|
61
|
+
/janitor-squad Parallel+Loop: LSP Inspector + Config Auditor + SQL Insights → Code Editor (cleanup)
|
|
62
62
|
/swarm <desc> Swarm: orchestrator picks agents, splits work, dispatches parallel workers
|
|
63
63
|
|
|
64
64
|
SESSION
|
|
@@ -66,7 +66,7 @@ SESSION
|
|
|
66
66
|
/save <message> Save changes to git (local commit)
|
|
67
67
|
/restore Restore to a previous save point
|
|
68
68
|
/handoff Create session handoff for next session
|
|
69
|
-
/learn <cat> <desc> Capture learning and apply fix
|
|
69
|
+
/learn <cat> <desc> Capture learning and apply fix (cat: skill/X, pattern, bug, gotcha)
|
|
70
70
|
|
|
71
71
|
───────────────────────────────────────────
|
|
72
72
|
Examples:
|
|
@@ -74,5 +74,5 @@ Examples:
|
|
|
74
74
|
/autoplan "Add invoicing" Quick planning for feature
|
|
75
75
|
/prd "customer portal" Create PRD for feature
|
|
76
76
|
/save "Add customer form" Local git commit
|
|
77
|
-
/learn
|
|
77
|
+
/learn skill/data-reader "Check enums first"
|
|
78
78
|
```
|
|
@@ -20,41 +20,41 @@ A: Check two things:
|
|
|
20
20
|
(the one with CLAUDE.md and .claude/ folder)
|
|
21
21
|
|
|
22
22
|
Q: Why do I need to restart Claude Code after installing a plugin?
|
|
23
|
-
A: Claude Code
|
|
24
|
-
won't be
|
|
23
|
+
A: Claude Code reloads configuration at startup. New skills and hooks
|
|
24
|
+
won't be active until restart. Use 'claude -c' to keep context.
|
|
25
25
|
|
|
26
26
|
Q: What's the difference between /plugin install and /install-plugin?
|
|
27
27
|
A: /plugin install - Claude's built-in plugin system (global)
|
|
28
28
|
/install-plugin - Our local marketplace system (per-project)
|
|
29
29
|
|
|
30
|
-
Q: Can I create my own
|
|
31
|
-
A: Yes! Add a
|
|
32
|
-
structure. See existing
|
|
30
|
+
Q: Can I create my own skills?
|
|
31
|
+
A: Yes! Add a SKILL.md file to .claude/skills/<name>/ following the
|
|
32
|
+
skill structure. See existing skills for examples.
|
|
33
33
|
|
|
34
|
-
Q: How do I publish my
|
|
35
|
-
A: Use /publish-plugin. It creates a PR that gets
|
|
34
|
+
Q: How do I publish my skill or hook to the marketplace?
|
|
35
|
+
A: Use /publish-plugin. It creates a PR that gets reviewed.
|
|
36
36
|
See /help plugins for details.
|
|
37
37
|
|
|
38
|
-
Q: Why does
|
|
39
|
-
A:
|
|
40
|
-
|
|
38
|
+
Q: Why does Claude spawn sub-agents instead of doing work directly?
|
|
39
|
+
A: Sub-agents with focused skills produce better results for domain-
|
|
40
|
+
specific tasks by loading only the relevant context.
|
|
41
41
|
|
|
42
|
-
Q: What happens if
|
|
43
|
-
A: The orchestrator receives an error
|
|
42
|
+
Q: What happens if a sub-agent fails?
|
|
43
|
+
A: The orchestrator receives an error and reports the failure.
|
|
44
44
|
It should identify root cause and fix it, never apply bandaids.
|
|
45
45
|
|
|
46
|
-
Q: How
|
|
47
|
-
A: Check the
|
|
48
|
-
|
|
46
|
+
Q: How does Claude decide which skills to use?
|
|
47
|
+
A: Check the skill catalog in CLAUDE.md. Skills are loaded based on
|
|
48
|
+
the task domain (workspace config, app building, testing, etc.).
|
|
49
49
|
|
|
50
50
|
Q: Can I use MCP tools directly without agents?
|
|
51
51
|
A: Yes! Tools like list_workflows, create_activity, etc. are
|
|
52
52
|
available directly. Agents just provide structured workflows.
|
|
53
53
|
|
|
54
54
|
Q: Where is configuration stored?
|
|
55
|
-
A: -
|
|
56
|
-
- Skills: .claude/skills/
|
|
55
|
+
A: - Skills: .claude/skills/
|
|
57
56
|
- Hooks: .claude/hooks/
|
|
57
|
+
- Commands: .claude/commands/
|
|
58
58
|
- Settings: .claude/settings.json
|
|
59
59
|
- Instructions: CLAUDE.md
|
|
60
60
|
|
|
@@ -22,36 +22,29 @@ HOW SKILLS WORK:
|
|
|
22
22
|
SubagentStart hook injects them automatically when the agent spawns.
|
|
23
23
|
|
|
24
24
|
On-demand: The orchestrator tells an agent to load a skill via the
|
|
25
|
-
Skill tool.
|
|
26
|
-
Alejandro, Ingrid, Ada.
|
|
25
|
+
Skill tool. Load skills before spawning sub-agents or doing domain-specific work.
|
|
27
26
|
|
|
28
27
|
─────────────────────────────────────────────────────────────────────────
|
|
29
28
|
|
|
30
29
|
SDK SKILLS (core patterns):
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
SDK-insight-queries - SQL query patterns for insights
|
|
37
|
-
SDK-ws-config-skill - Workflow config: fields, phases, schemas
|
|
30
|
+
sdk-activity-patterns - Field value formats, dates, users, links
|
|
31
|
+
sdk-document-templates - PDF/CSV template structure + generation
|
|
32
|
+
sdk-function-fields - Calculated fields in Hailer workflows
|
|
33
|
+
sdk-insight-queries - SQL query patterns for insights, cross-workflow JOINs
|
|
34
|
+
sdk-ws-config-skill - Workflow config: fields, phases, schemas, type generation, project setup
|
|
38
35
|
|
|
39
36
|
HAILER PLATFORM SKILLS:
|
|
40
|
-
hailer-
|
|
41
|
-
hailer-api-client - @hailer/cli auth, requests, signals
|
|
37
|
+
hailer-api-client - @hailer/cli auth, requests, signals, direct HTTP API endpoints
|
|
42
38
|
hailer-app-builder - Build apps with @hailer/app-sdk
|
|
43
39
|
hailer-apps-pictures - Fetch and display images from Hailer
|
|
44
|
-
hailer-design-system - Chakra UI theme, colors, icons, components
|
|
45
|
-
hailer-monolith-automations - Webhooks, scheduled jobs in monolith
|
|
40
|
+
hailer-design-system - Chakra UI theme, colors, icons, components, UI/UX patterns
|
|
41
|
+
hailer-monolith-automations - Webhooks, scheduled jobs in monolith, phase cascade bots
|
|
46
42
|
hailer-permissions-system - Users, teams, access control
|
|
47
43
|
hailer-project-protocol - Full SDK workflow reference
|
|
48
|
-
hailer-rest-api - Direct HTTP API endpoints
|
|
49
44
|
|
|
50
45
|
INTEGRATION SKILLS:
|
|
51
46
|
integration-patterns - Activity movers, webhooks, SCIM, Kafka
|
|
52
47
|
zapier-hailer-patterns - Zapier triggers, actions, Zap configs
|
|
53
|
-
insight-join-patterns - JOIN syntax for cross-workflow insights
|
|
54
|
-
|
|
55
48
|
TOOL & AGENT SKILLS:
|
|
56
49
|
agent-structure - Template for creating new agents
|
|
57
50
|
delegation-routing - Full routing table + chaining patterns
|
|
@@ -66,23 +59,24 @@ QUALITY & FIX SKILLS (auto-loaded on errors):
|
|
|
66
59
|
testing-patterns - vitest, playwright, build verification
|
|
67
60
|
|
|
68
61
|
REFERENCE SKILLS:
|
|
69
|
-
api-documentation-patterns - API
|
|
62
|
+
api-documentation-patterns - API endpoint documentation standards
|
|
70
63
|
chrome-mcp-reference - Browser automation reference
|
|
71
|
-
frontend-design - UI design patterns
|
|
72
64
|
lsp-setup - Language Server Protocol setup
|
|
73
65
|
publish-hailer-app - App publishing to production
|
|
74
66
|
|
|
75
67
|
─────────────────────────────────────────────────────────────────────────
|
|
76
68
|
|
|
77
|
-
ON-DEMAND SKILL LOADING
|
|
69
|
+
ON-DEMAND SKILL LOADING:
|
|
78
70
|
|
|
79
|
-
|
|
80
|
-
|
|
71
|
+
Tell the orchestrator which skill a sub-agent needs:
|
|
72
|
+
"Load hailer-apps-pictures for the app builder sub-agent"
|
|
73
|
+
→ Sub-agent gets image handling patterns
|
|
81
74
|
|
|
82
|
-
"
|
|
83
|
-
→
|
|
75
|
+
"Load sdk-insight-queries for this SQL query"
|
|
76
|
+
→ Sub-agent gets insight patterns including JOIN syntax for cross-workflow data
|
|
84
77
|
|
|
85
|
-
|
|
78
|
+
Skill content is loaded by the orchestrator and pasted directly
|
|
79
|
+
into the sub-agent prompt — agents never load skills themselves.
|
|
86
80
|
|
|
87
81
|
─────────────────────────────────────────────────────────────────────────
|
|
88
82
|
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
---
|
|
2
|
-
description: Quick bug fix with
|
|
2
|
+
description: Quick bug fix with test creation, code editing, and security review
|
|
3
3
|
argument-hint: "bug description"
|
|
4
4
|
allowed-tools: Task, Bash
|
|
5
5
|
---
|
|
@@ -7,21 +7,21 @@ allowed-tools: Task, Bash
|
|
|
7
7
|
|
|
8
8
|
Sequential pipeline with iterative loop: Reproduce bug, apply fix, verify, review. Loops back if review fails.
|
|
9
9
|
|
|
10
|
-
**
|
|
11
|
-
1. **
|
|
12
|
-
2. **
|
|
13
|
-
3. **
|
|
10
|
+
**Roles:**
|
|
11
|
+
1. **Test Runner** - Test runner (create failing test, verify fix)
|
|
12
|
+
2. **Code Editor** - Code editor (apply minimal fix)
|
|
13
|
+
3. **Code Reviewer** - Code review (security audit of the fix)
|
|
14
14
|
|
|
15
15
|
**Goal:** $ARGUMENTS
|
|
16
16
|
|
|
17
17
|
## Protocol
|
|
18
18
|
|
|
19
|
-
### Step 1:
|
|
19
|
+
### Step 1: Reproduce Bug
|
|
20
20
|
|
|
21
|
-
Spawn
|
|
21
|
+
Spawn a test runner to create a test that demonstrates the bug:
|
|
22
22
|
|
|
23
23
|
```
|
|
24
|
-
Task(
|
|
24
|
+
Task(prompt="Load testing-patterns skill for writing focused tests.\n\nCreate a test that reproduces this bug: $ARGUMENTS.\n\nThe test should:\n- Fail with the current code (red)\n- Clearly demonstrate the bug\n- Be minimal and focused\n\nDo NOT fix the bug yet. Just create the failing test and report the failure.")
|
|
25
25
|
```
|
|
26
26
|
|
|
27
27
|
Wait for result. The test should be failing (RED state).
|
|
@@ -32,38 +32,38 @@ Track iteration count. Max **3 iterations** before escalating to user with remai
|
|
|
32
32
|
|
|
33
33
|
**Set:** `iteration = 1`
|
|
34
34
|
|
|
35
|
-
#### Step 2a:
|
|
35
|
+
#### Step 2a: Apply Fix
|
|
36
36
|
|
|
37
|
-
Spawn
|
|
37
|
+
Spawn a code editor with accumulated context from all previous iterations:
|
|
38
38
|
|
|
39
39
|
```
|
|
40
|
-
Task(
|
|
40
|
+
Task(prompt="Fix the bug in: $ARGUMENTS.\n\nContext:\nTest runner created a failing test that reproduces the bug:\n[PASTE TEST CODE AND FAILURE OUTPUT]\n\n[IF iteration > 1: Include ALL accumulated feedback:\n- Test runner's latest test results (pass/fail details)\n- Code Reviewer's feedback (if review was reached in previous iteration)\n- What was already tried and why it didn't fully work\nThis prevents repeating previous mistakes.]\n\nMake the MINIMAL change needed to make the test pass (GREEN state). Do not refactor or improve surrounding code.")
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
#### Step 2b:
|
|
43
|
+
#### Step 2b: Verify Fix
|
|
44
44
|
|
|
45
45
|
Run the test to confirm the fix works:
|
|
46
46
|
|
|
47
47
|
```
|
|
48
|
-
Task(
|
|
48
|
+
Task(prompt="Load testing-patterns skill for test execution.\n\nRe-run the test for: $ARGUMENTS. Confirm it now passes with the code editor's fix. Also run any related tests to check for regressions.")
|
|
49
49
|
```
|
|
50
50
|
|
|
51
51
|
If tests FAIL:
|
|
52
52
|
- If `iteration < 3`: increment iteration, go back to **Step 2a** with the test failure output
|
|
53
53
|
- If `iteration >= 3`: escalate to user (see Step 3)
|
|
54
54
|
|
|
55
|
-
#### Step 2c:
|
|
55
|
+
#### Step 2c: Security Review
|
|
56
56
|
|
|
57
|
-
Tests passed. Spawn
|
|
57
|
+
Tests passed. Spawn a code reviewer to audit the fix:
|
|
58
58
|
|
|
59
59
|
```
|
|
60
|
-
Task(
|
|
60
|
+
Task(prompt="Security review of the hotfix for: $ARGUMENTS.\n\nFix applied by code editor:\n[PASTE CODE EDITOR'S CHANGES]\n\nIteration: [iteration] of 3\n\nCheck for:\n- Security vulnerabilities\n- Data validation issues\n- Authentication/authorization concerns\n- Edge cases that could be exploited\n\nReturn verdict: APPROVED or REQUEST_CHANGES with specific issues to fix.")
|
|
61
61
|
```
|
|
62
62
|
|
|
63
63
|
**If APPROVED:** proceed to Step 3 (report).
|
|
64
64
|
|
|
65
65
|
**If REQUEST_CHANGES:**
|
|
66
|
-
- If `iteration < 3`: increment iteration, go back to **Step 2a** with
|
|
66
|
+
- If `iteration < 3`: increment iteration, go back to **Step 2a** with Code Reviewer's feedback
|
|
67
67
|
- If `iteration >= 3`: escalate to user (see Step 3)
|
|
68
68
|
|
|
69
69
|
### Step 3: Report
|
|
@@ -75,18 +75,18 @@ Task(subagent_type="agent-svetlana-code-review", prompt="Security review of the
|
|
|
75
75
|
- Iterations: [count] of 3 max
|
|
76
76
|
- Final status: FIXED / ESCALATED
|
|
77
77
|
|
|
78
|
-
###
|
|
78
|
+
### Test Runner
|
|
79
79
|
- Bug reproduced: YES
|
|
80
80
|
- Test status before fix: FAILED
|
|
81
81
|
- Test status after fix: PASSED / STILL FAILING
|
|
82
82
|
- Regressions found: [yes/no]
|
|
83
83
|
|
|
84
|
-
###
|
|
84
|
+
### Code Editor
|
|
85
85
|
- Files modified: [list]
|
|
86
86
|
- Lines changed: [count]
|
|
87
87
|
- Approach: [brief description]
|
|
88
88
|
|
|
89
|
-
###
|
|
89
|
+
### Code Reviewer
|
|
90
90
|
- Verdict: APPROVED / REQUEST_CHANGES
|
|
91
91
|
- Critical issues: [count]
|
|
92
92
|
- Warnings: [count]
|
|
@@ -99,7 +99,7 @@ Task(subagent_type="agent-svetlana-code-review", prompt="Security review of the
|
|
|
99
99
|
|
|
100
100
|
[If ESCALATED after 3 iterations:]
|
|
101
101
|
- Manual intervention needed
|
|
102
|
-
- Remaining issues: [list from
|
|
102
|
+
- Remaining issues: [list from security reviewer/test runner]
|
|
103
103
|
- Attempted fixes: [summary of what was tried]
|
|
104
104
|
```
|
|
105
105
|
|
|
@@ -108,5 +108,5 @@ Task(subagent_type="agent-svetlana-code-review", prompt="Security review of the
|
|
|
108
108
|
- RED -> GREEN -> REVIEW loop ensures quality
|
|
109
109
|
- Fix must be minimal - no refactoring
|
|
110
110
|
- Max 3 iterations prevents infinite loops
|
|
111
|
-
- Each iteration passes previous feedback to
|
|
111
|
+
- Each iteration passes previous feedback to the code editor so it doesn't repeat mistakes
|
|
112
112
|
- Security check is mandatory before reporting success
|