/n8n-autopilot:mirror-syncfrom n8n-autopilot
Pulls all remote-only n8n workflows into the local repo to mirror the instance, using a deterministic JS workflow that discovers, fans-out pulls, and verifies completeness.
Ships in n8n-autopilot. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Make the local repo a complete mirror of the instance's workflows. n8nac has no pull-all; this skill drives the list --json → per-id pull loop deterministically via a Workflow script (fan-out, no silent cap, verified).
The edit flow of /n8n-autopilot:build-workflow-v2 is local-first — it assumes every remote workflow already has a local .workflow.ts. Nothing established that invariant before (init pulled schemas, never workflows). This skill is the enforcement: it pulls the gap and the SessionStart probe keeps it honest.
Normalize the script into the scratchpad, then invoke that copy via the Workflow tool (it runs in
the consumer-repo cwd, so npx n8nac still resolves the pinned project + sync folder):
sed 's/\r$//' "<plugin>/skills/mirror-sync/sync.workflow.js" > "<scratchpad>/sync.workflow.js"
Workflow({ scriptPath: "<scratchpad>/sync.workflow.js" })
The
sedis not optional — and seeing LF once does not excuse skipping it. Line endings in the installed copy are sporadic: measured withfile, this script was CRLF in 5.3.0 and 5.3.1 and LF in 5.3.2, whilebuild.workflow.jswas LF in all three. A version that works proves nothing about the next install, so normalize unconditionally — even though the repo blob is LF and.gitattributespins*.js text eol=lf.Workflow({scriptPath})then refuses it outright: "script contains control characters that would be hidden in the approval dialog". Normalizing costs one command and is content-identical to the blob (cmpagainstgit show HEAD:<path>). Never hand-edit the plugin cache.
Then render the result:
{ status:'success', pulled, mirrorComplete:true } — report how many pulled (0 = already complete).{ status:'partial', failed:[…], remoteOnlyRemaining } — list the failed ids + reasons; suggest a re-run or a manual npx n8nac pull <id>.Watch live progress with /workflows.
n8n-mirror runs npx n8nac list --json and returns the remote-only set (status matches /REMOTE/i — vocabulary-robust across n8nac versions — and not archived). Zero remote-only → returns early, mirror already complete.n8n-mirror agent per missing workflow runs npx n8nac pull <id>. Failures are collected, not fatal.remoteOnlyRemaining === 0 ⇒ mirrorComplete.| Source | Mechanism |
|---|---|
| SessionStart | scripts/check-mirror-drift.sh --quiet emits AUTOPILOT_ACTION_REQUIRED: /n8n-autopilot:mirror-sync only when remote-only workflows exist (no blind every-session pull). |
| init-repo | Step 6.5 runs this after schemas, so a fresh repo starts as a full mirror. |
| Manual | /n8n-autopilot:mirror-sync any time. |
check-schema-versions.sh → /n8n-autopilot:pull-schemas); this skill does not duplicate them.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub neurawork-git/n8n-autopilot --plugin n8n-autopilot25 skills in this plugin
/build-stack-v2EXPERIMENTAL deterministic builder for a whole n8n workflow STACK (multiple sub-workflows wired via Execute Workflow), JS-orchestrated. Takes a PRP-style end-to-end use case, decomposes it into sub-workflows along known rules, fixes the handover contracts between them, documents the architecture (mermaid) in one central file, then builds each sub-workflow bottom-up via build-workflow-v2. Two modes: GREENFIELD (new stack) and EXTEND (change an existing one). Decomposition rules, build order (topological), and per-sub-WF gates are JS control flow the model cannot skip. Use for multi-workflow use cases; for a single workflow use build-workflow-v2./build-workflowFull 3-phase pipeline (Research → Write+Validate → Deploy+Test) for shipping an n8n workflow end-to-end. Wraps Etienne's `n8n-as-code:n8n-architect` skill for schema research + authoring, adds repo-scoped orchestration — community-template lookup, validate-push-test loop, mcpTrigger publish gate, execution inspection, Completion Report./build-workflow-v2EXPERIMENTAL deterministic variant of build-workflow + deploy, JS-orchestrated. Two modes: GREENFIELD (new workflow) and EDIT (change an existing one). Phase ordering, gate-checks (validate / drift-safe push --verify), and fix-loop limits are enforced by a Claude Code JS Workflow script instead of prose — gates become if/while control flow the model cannot skip or short-circuit. Subagent roles live in agents/n8n-*.md. Use when you want hard-enforced discipline over the soft prose pipelines.Other plugins' skills for the same job