You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(skills): prevent create-workflow from eagerly checking integrations
Simplify MCP sandbox instructions to avoid prompting the model to fetch
integration guides and check connections during the design phase. Templates,
integration gate, and skill guide table removed from MCP context (already
in skill guides). Added "stay in design mode" guard to create-workflow skill.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
- \`run_workflow\` — execute a workflow with JSON input
67
-
- \`run_node\` — execute a single node (for testing)
68
-
69
-
**Run history:**
70
-
- \`list_runs\` — list past executions
71
-
- \`get_run\` — get details of a specific run
72
-
- \`get_trace\` — full execution trace with step-by-step output
73
-
74
-
**Integrations:**
75
-
- \`list_integrations\` — list available OAuth integrations (Salesforce, Slack, etc.)
76
-
- \`get_connection_info\` — get credentials for a specific integration + node
77
-
78
-
**Scaffolding:**
79
-
- \`create_app\` — scaffold a new crayon project
80
-
- \`create_database\` — set up a database
81
-
- \`setup_app_schema\` — initialize crayon tables in existing DB
82
-
83
-
**Skill guides:**
84
-
- \`get_skill_guide\` — detailed procedural guides for workflow development
85
-
86
62
### Workflow Development Pipeline
87
63
88
-
1. **Design** — create \`src/crayon/workflows/<name>.ts\` with a \`description\` field that captures the flow (task ordering, conditions, loops)
89
-
2. **Create stubs** — for each task, create node stubs in \`src/crayon/nodes/<name>.ts\` or agent stubs in \`src/crayon/agents/<name>.ts\` + \`<name>.md\`
90
-
3. **Refine** — add typed Zod schemas, tools, implementation details to each node/agent
91
-
4. **Compile** — update the workflow's \`run()\` method from embedded descriptions
3. **Compile** (\`compile-workflow\`) — regenerate the workflow's \`run()\` method from descriptions
67
+
68
+
**Each phase has a skill guide.** Call \`get_skill_guide\` with the phase name (e.g., \`create-workflow\`) before starting. The guides contain all templates, connection gates, and step-by-step instructions. Follow them — do not improvise steps from other phases.
92
69
93
70
### Key Patterns
94
71
95
-
- **Description-driven:** The \`description\` field in workflows and nodes is the source of truth. It drives code generation.
96
-
- **Node types:** \`Node.create()\` for deterministic functions, \`Agent.create()\` for AI reasoning (uses Vercel AI SDK)
97
-
- **Agent specs:** Each agent has a colocated \`.md\` file with system prompt, guidelines, and output format
98
-
- **Integrations:** Declare in \`integrations: ["salesforce", "openai"]\` array. Credentials fetched at runtime via \`ctx.getConnection()\`.
99
-
- **Draft first, ask later:** Make your best guess and let the user correct, rather than interrogating upfront.
100
-
- **Run it yourself:** When the user wants to test, use \`run_workflow\` / \`run_node\` tools directly.
72
+
- **Description-driven:** The \`description\` field in workflows and nodes is the source of truth
73
+
- **Node types:** \`Node.create()\` for deterministic functions, \`Agent.create()\` for AI reasoning
74
+
- **Draft first, ask later:** Make your best guess and let the user correct
75
+
- **Run it yourself:** When the user wants to test, use \`run_workflow\` / \`run_node\` tools directly
101
76
102
77
### File Locations
103
78
@@ -106,100 +81,7 @@ You have access to crayon MCP tools for building and running AI-native workflows
Before implementing nodes that use external services, call \`get_connection_info\` to verify the connection exists. If it fails, tell the user to set up the connection in the Dev UI first.
187
-
188
-
### Skill Guides
189
-
190
-
Detailed procedural guides are available for complex tasks. Call \`get_skill_guide\` to load them:
191
-
192
-
| Guide | When to fetch |
193
-
|-------|---------------|
194
-
| \`create-workflow\` | Designing a new workflow from scratch |
195
-
| \`compile-workflow\` | Updating a workflow's run() from descriptions |
196
-
| \`refine-node\` | Adding schemas, tools, implementation to nodes |
197
-
| \`integrations\` | Index of integration setup guides |
| \`integrations/unlisted\` | Custom integration for unlisted systems |
201
-
202
-
**Always fetch the relevant guide before starting a complex workflow task.** The guides contain critical steps, connection gates, and templates that ensure correct implementation.`;
Copy file name to clipboardExpand all lines: skills/create-workflow/SKILL.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -38,6 +38,8 @@ Then stop. Do not proceed to any subsequent steps.
38
38
39
39
Once the tool succeeds, the returned integration IDs are what nodes declare in their `integrations: [...]` arrays.
40
40
41
+
**IMPORTANT — stay in design mode:** Do NOT read integration-specific guides (e.g., `integrations/salesforce`), call `get_connection_info`, or research SDKs/libraries during this phase. You only need the integration IDs for node stub `integrations: [...]` arrays. All integration research and connection checks happen later in `/crayon:refine-node`.
42
+
41
43
### 3. Read Existing Context
42
44
43
45
- Read `src/crayon/workflows/*.ts` — existing workflows to reuse or reference
0 commit comments