mirror-sync

mirror-sync is a skill for Claude Code from neurawork-git/n8n-autopilot. It costs 94 tokens per session (993 once invoked), scanned A, original, MIT.

A workflow skill that copies workflows from an n8n automation server into a local repository when they exist only remotely. n8n is a tool for connecting automated steps into workflows.

In plain words
What is it for?
It discovers remote-only workflows, downloads each one, verifies the result, and reports successful or failed pulls for another attempt or manual recovery.
Why use it?
It keeps the local project as a complete mirror, so local editing tools can find every workflow instead of missing ones stored only on the server.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the n8n-autopilot plugin — 24 skills, 12 agents, 5 hooks shipped together

Good fit It discovers remote-only workflows, downloads each one, verifies the result, and reports successful or failed pulls for another attempt or manual recovery.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/neurawork-git/n8n-autopilot/mirror-sync
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add neurawork-git/n8n-autopilot --skill mirror-sync
Clone the repo
git clone --depth 1 https://github.com/neurawork-git/n8n-autopilot

Made for: Claude Code.

Or install n8n-autopilot, the plugin that ships this one along with the rest of its 24 skills, 12 agents, 5 hooks.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mirror-sync

README.md
[![agentmods](https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/mirror-sync/github.svg)](https://agentmods.dev/skills/neurawork-git/n8n-autopilot/mirror-sync)
Your own site
<a href="https://agentmods.dev/skills/neurawork-git/n8n-autopilot/mirror-sync"><img src="https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/mirror-sync/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mirror-sync

Your own site · 80×15
<a href="https://agentmods.dev/skills/neurawork-git/n8n-autopilot/mirror-sync"><img src="https://agentmods.dev/badge/skills/neurawork-git/n8n-autopilot/mirror-sync.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 94 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 993 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00094 $0.00993
Opus 5.5 $0.00038 $0.00397
Sonnet 5.5 $0.00019 $0.00199
Haiku 4.5 $0.00009 $0.00099

Measured 24d ago against content hash 3c0530266970, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

mirror-sync scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 24d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (sync.workflow.js), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/mirror-sync/SKILL.md · 63 lines

How it starts

The opening of the file, as written. The whole thing — 63 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Mirror Sync — pull all remote-only workflows

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).

Why this exists

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.

How to run

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 sed is not optional — and seeing LF once does not excuse skipping it. Line endings in the installed copy are sporadic: measured with file, this script was CRLF in 5.3.0 and 5.3.1 and LF in 5.3.2, while build.workflow.js was 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 .gitattributes pins *.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 (cmp against git 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.

Read the full file on GitHub · 63 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 24d ago Changed · +13 lines 3c0530266970
  2. 1mo ago First seen · 50 lines · 94 tokens per session scan A 9850abc3974c

Subscribe to this mod's changes

mirror-sync is a skill published in the GitHub repository neurawork-git/n8n-autopilot (18 stars, last pushed 10d ago), licensed MIT. It adds 94 tokens to every session and 993 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.