mirror-sync

mirror-sync is a skill for Claude Code from neurawork-git/n8n-autopilot. It costs 94 tokens per session (760 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, 4 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, 4 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 760 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.00760
Opus 5 $0.00047 $0.00380
Sonnet 5 $0.00019 $0.00152
Haiku 4.5 $0.00009 $0.00076

Measured 10d ago against content hash 9850abc3974c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, 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 10d 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 · 50 lines

How it starts

The opening of the file, as written. The whole thing — 50 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

Invoke the script via the Workflow tool (runs in the consumer-repo cwd so npx n8nac resolves the pinned project + sync folder):

Workflow({ scriptPath: "<plugin>/skills/mirror-sync/sync.workflow.js" })

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.

Phases (in the script)

  1. Discovern8n-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.
  2. Pull — fan-out: one n8n-mirror agent per missing workflow runs npx n8nac pull <id>. Failures are collected, not fatal.
  3. Verify — re-discover; remoteOnlyRemaining === 0mirrorComplete.

Triggers

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.

Read the full file on GitHub · 50 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. 10d 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 1mo ago), licensed MIT. It adds 94 tokens to every session and 760 once invoked, about $0.0005 per session on Opus 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.

Related

Other skills, from other repositories

commit

Git commit workflow with precommit hook handling, lint/type checking, README updates, and API reference updates. Use when the user wants to commit changes. Handles precommit hooks that modify files (formatting, linting) by re-staging and retrying. Runs ruff lint and pyright type checks on staged Python files, and…

ReflexioAI/claude-smart · 122 tokens

update-pr

Update an existing pull request with new changes. Use when the user wants to update a PR, push follow-up changes to a PR, refresh a PR description, or sync a PR with latest commits. Triggers on: update pr, update-pr, update the pr, push to pr, refresh pr, sync pr, update pull request.

ReflexioAI/claude-smart · 71 tokens

smart-rebase

Smart partial rebase for squash-merge repositories. Auto-detect which commits to keep/drop when base branch was squash-merged into target. Use when: user says 'rebase', 'partial rebase', 'base already merged', 'smart rebase', or /smart-rebase. Not for: simple git rebase (the developer runs it — Claude never executes…

sd0xdev/sd0x-harness · 131 tokens

merge-prep

Pre-merge analysis and preparation. Analyzes source branch vs target branch: commit stats, conflict detection, file impact. Analysis-only v1 — outputs report + suggested commands, does not auto-merge. Use when: user says 'merge prep', 'pre-merge', 'merge analysis', or /merge-prep.

sd0xdev/sd0x-harness · 69 tokens

next-step

Change-aware next step advisor. Use when: user asks what to do next, workflow progression is unclear, session just started with dirty worktree. Not for: executing the suggested command (user decides), auto-loop decisions (hooks handle that). Output: findings-based suggestions or session summary with commit seed.

sd0xdev/sd0x-harness · 63 tokens

pr-comment

Post friendly review comments to a GitHub PR — prepare locally, preview, then submit as atomic review. Use when: posting code review comments, giving PR feedback, sending inline suggestions. Not for: reading existing reviews (use load-pr-review), creating PRs (use create-pr), PR status (use pr-summary).

sd0xdev/sd0x-harness · 67 tokens