ai/opencode/tech-team/skills/n8n-builder-planning-gate/SKILL.md
Standardizes how `n8n-builder` performs planning triage, specialist consultation, and produces plan v0 plus post–v0 edit round; mandatory `cro-loop` runs at execution intent before Stage C. Use when n8n-builder is in Stage A (planning).
npx skillsauth add akshay-na/dotfiles n8n-builder-planning-gateInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
This skill defines the planning contract that n8n-builder follows in
Stage A. It produces plan v0 on disk (feeds the CRO loop runbook
when the user signals implementation) and the structure the execution-gate skill
relies on at dispatch time.
n8n-builder (explicit entrypoint).task_id.If a plan v0 already exists for the episode, do not re-run this skill — either revise v0 in-place per user feedback (post–v0 edit round) or, when the user signals implementation, proceed to the CRO loop.
The plan file lives at
<project>/.opencode/docs/plans/YYYY-MM-DD-n8n-<slug>.md and MUST contain the
following sections in this order:
verified or pending.as-code / mcp-live /
hybrid), env (dev / staging / prod), and the justification per
n8n-builder-mode-policy.yml selection rules.| Risk | Impact | Mitigation | Owner || Group | Phase ID | Depends on | Parallel siblings | Touches (disjoint across siblings) | Mode |id: short stable id (e.g. P2a)depends_on: list of phase ids that must complete beforeparallelizable_with: list of sibling phase idstouches: bounded list of file globs and/or workflow idsrollback_scope: files / artifacts reverted on rollback (subset of
touches)mode: one of as-code, mcp-live, hybridenv: one of dev, staging, prodworker_cap: integer ≤ mode cap (≤ 4 for mcp-live, ≤ 8 for as-code)destructive: boolean; if true, list affected workflow idsrequires_review: boolean (true for as-code by default)requires_qa: boolean (true for as-code by default)what / why / files / acceptance)rollback_scope)phase-by-phase vs all-phases-approved) the user will choose after
the CRO loop completes (CRO runs when user signals implementation, not immediately after v0).Invoke specialists in parallel via Task. Pass minimal briefs only;
never the entire plan dump. Use the subagent-response-protocol envelope.
| Trigger condition | Specialist |
|---|---|
| Workflow boundary, sub-workflow design, retry/idempotency at workflow level, integration contracts | vp-architecture |
| Credentials, webhook auth, allowlisted node review, untrusted input handling, secret references | ciso |
| Concurrency, queue depth, throughput, partial failure handling, per-node timeout strategy | vp-engineering |
| Logging, metrics, alerting, runbook integration, rollout / rollback strategy | sre-lead |
| As-code artifact maintainability, naming, sub-workflow abstraction, expression-node simplification | staff-engineer |
| Repeated patterns across workflows, template extraction, generators, reusable sub-workflows | vp-platform |
| n8n version specifics, node API specifics, vendor docs, MCP capability lookups | vp-research (always — only broker for external docs) |
| Existing Jira / Confluence / Bitbucket context referenced in the plan | atlassian-pm (read-only) |
Skip a specialist if its domain does not apply. Never invoke "for show".
Never lateral-call. Specialists may not call each other; they return findings
to n8n-builder.
The plan artifact (input to cro-loop when the user signals implementation) is preferably the markdown file under <project>/.opencode/docs/plans/; prompt-only full plan text is valid when disk is unavailable — pass stable body + hash to cro. Additionally, n8n-builder
must return a structured handoff envelope (used internally by the CRO loop
runbook) containing:
plan_handoff:
plan_path: "<project>/.opencode/docs/plans/YYYY-MM-DD-n8n-<slug>.md"
plan_hash: "<sha256 of plan markdown>"
task_id: "<episode task id>"
mode: as-code | mcp-live | hybrid
env: dev | staging | prod
affected_workflow_ids: [ ... ]
node_family_set: [ ... ]
credential_aliases: [ ... ] # alias names only, never values
specialist_bundle_refs:
- agent: vp-architecture
ref: "<ref id or path>"
# ... etc
open_questions: [ ... ]
status: ready_for_post_v0_edit_round
The handoff is structured data, not a free-form chat blob. Secret values are forbidden; aliases only.
Validate before writing:
touches sets are pairwise disjoint across parallelizable_with
siblings.mode and env.destructive: true and list affected workflow
ids.as-code phase.After v0 is settled (file or prompt-only), ask once whether the user wants to add, remove, or
change anything; revise v0 until satisfied. Do not ask for approve v0 for CRO.
When the user signals implement / execute / proceed with implementation,
start the cro-loop immediately as the next step (before Stage C) — see
n8n-builder agent Stage B.
n8n-builder agentcro-loop skillsubagent-response-protocoldevelopment
Discovery + naming convention reference for typed dev/SME/QA/devops team members in any workspace folder. Primary consumer: `tech-lead` (org-tier).
devops
Automated task classification, agent selection, and state tracking. Use when routing tasks to agents, selecting pipelines, or managing task state.
testing
Use when designing scalable systems, evaluating consistency models, planning state management, making architectural decisions, or when trade-offs around coupling, failure isolation, and reversibility need explicit reasoning before implementation.
tools
CTO/tech-lead helper — split work into disjoint shard briefs with caps (instance_cap, partition_basis, determinism keys).