ai/cursor/tech-team/skills/n8n-builder-execution-gate/SKILL.md
Standardizes how `n8n-builder` enters and runs Stage C (implementation) with worker fan-out, group checkpoints, and gated progression. Use when n8n-builder transitions from CRO `approved`/`degraded_skip` to execution.
npx skillsauth add akshay-na/dotfiles n8n-builder-execution-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 execution contract for Stage C of n8n-builder.
It is invoked only after the CRO loop has reached approved (v2 on disk) or
degraded_skip (explicit user override recorded in the plan).
The execution-gate skill MUST refuse to start unless all of the following hold:
degraded_skip and recorded under ## Open Risks).approved OR degraded_skip.phase-by-phase (group-by-group checkpoints), orall-phases-approved + an authorization line indicating they accept
auto-progression across groups.mode and env for every phase, and the mode policy
matrix accepts the declarations (per
n8n-builder-mode-policy.yml).n8n-builder-worker-contract.yml)
passes for every phase that intends to fan out.If any check fails, transition to blocked and surface a blocker report.
Do not improvise.
For each phase about to be dispatched:
mode, env, touches, rollback_scope, worker_cap,
destructive, requires_review, requires_qa.declare_partition_basis,disjoint_touches,side_effect_dependencies,idempotency_classification,env_consistency,destructive_pre_approval.parallelizable_with siblings in a
single assistant turn via parallel Task calls. Cap dynamic; never exceed
global_concurrent_task_cap: 12.worker_cap worker
subagents (≤ 4 in mcp-live, ≤ 8 in as-code) on disjoint partitions.touches_i),idempotent: true|false flag,rollback_ref).(phase_id, shard_id) lex key.touches slice; no two shards modified the same file/workflow id.merged_diff with merged_diff_hash.rollback_ref, log
[n8n-builder] fanout_post_edit_overlap_rollback phase=<pid> shards=<n>, and fall back to single-instance sequential dispatch.as-code (or hybrid code-side):
code-reviewer (mandatory). Wait for review envelope.n8n-builder-qa-policy.yml (mandatory minimum verification
set: schema check, workflow validation, regression checks).mcp-live (or hybrid live-side):
~/ai-brain/org/global/orchestration/n8n-builder-audit.md.execution_mode: phase-by-phase:
proceed or feedback.execution_mode: all-phases-approved:
all-phases-approved, destructive actions still require a
named per-action approval per the governance rule.mark this n8n-builder run complete before declaring
the run finished.idempotent: true; otherwise escalate.rollback_scope;
report partial success; await user guidance before re-dispatch.mcp-live): hard fail. Halt the phase and request
user guidance. Do not proceed without an audit row.status: malformed with
degraded_reason: "suspected_secret_in_output"; halt the phase; record
incident.blocked_invalid_entry: missing CRO approval or missing user mode choice.
Action: surface required remediation; do not dispatch.blocked_preflight: worker preflight rejected. Action: revise plan or
collapse fan-out; do not improvise.blocked_destructive_no_approval: destructive phase without named
approval. Action: ask for the named approval phrase per
n8n-builder-governance.mdc.blocked_audit: audit append failed. Action: investigate sink; do not
silently retry.log_metric stages:
n8n_builder.exec.group.<gid> — phases_planned, phases_dispatched,
phases_succeeded, phases_failed, group_duration_ms.n8n_builder.exec.shard.<phase>.<shard> — duration_ms, retried,
mode, env.log_decision rows for every per-phase rollback, fan-out collapse,
destructive approval received, and override use.touches disjoint pre-flight.n8n-builder agentparallel-dispatchsubagent-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).