agentleFS
rahmanef63rahmanef63/si-coder-agent/skills/sc-n8n/SKILL.md

sc-n8n

Skill13 starsChanged 2 months agoMITView on GitHub

Drive a user-configured self-hosted or cloud n8n instance through the official @n8n/cli. List, inspect, create, update, activate, and verify workflows; inspect executions; manage projects, tags, variables, data tables, and packages without assuming a specific server, deployment platform, or account.

  • Reads credentials
  • Installs packages

The file

We split this skill into the rules it gives an agent

9 rules. About 0 are common, 6 are distinctive, and 3 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈6

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 3

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Very specific:

    Use the official @n8n/cli binary (n8n-cli) against the user-selected n8n instance.

    line 14
  2. Very specific:

    Every command supports --help.

    line 48
  3. Distinctive:

    Do not assume backups live in a particular directory or that n8n is deployed with a particular provider.

    line 87
  4. Distinctive:

    verify the workflow after the mutation.

    line 93
  5. Distinctive:

    Read before write; use dry-run functionality when the installed subcommand provides it.

    line 97
  6. Distinctive:

    Never bulk-edit workflows based on names alone when IDs can disambiguate them.

    line 99
  7. Distinctive:

    Never assume production webhooks, workflows, projects, credentials, URLs, or backup paths from repository documentation.

    line 100
  8. Very specific:

    Treat CLI capabilities as version-dependent.

    line 101
  9. Distinctive:

    Keep credentials outside memory, evidence, recipes, logs, and tool payloads.

    line 102

≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

sc-n8n — n8n control via @n8n/cli

Use the official @n8n/cli binary (n8n-cli) against the user-selected n8n instance. Do not assume a fixed hostname, backup location, deployment platform, shell profile, project, or workflow set.

Required connection state

SettingPurpose
N8N_URLBase URL of the selected n8n instance, for example https://n8n.example.com
N8N_API_KEYPublic API key for that instance; keep it in the selected SI-Coder credential store or another secure local source
~/.n8n-cli/config.jsonOptional CLI-local configuration; never treat it as the only possible source of truth

Install the binary only when needed:

npm i -g @n8n/cli
# or use: npx @n8n/cli ...

Auth resolution

When diagnosing which account/instance is active, inspect explicit CLI flags first, then environment variables, then CLI config. Environment variables can override a value saved in the CLI config, so a newly written config value may appear ignored when an older environment variable is still present.

If the API returns 401 or an invalid-signature error, do not guess that the header format is wrong. Verify the selected instance/account, then create or rotate an API key from the official n8n UI and store it through the safe SI-Coder credential handoff. Never print the key during verification.

Connect / verify

n8n-cli config show
n8n-cli workflow list --format=id-only

A successful read-only workflow listing is the preferred smoke check before mutations.

Command surface

Every command supports --help. Common output formats are table, json, and id-only when supported by the installed CLI version.

TopicTypical commands
workflowlist · get · create · update · delete · activate · deactivate · tags · transfer
executionlist · get · retry · stop · delete
credentiallist · get · schema · create · delete · transfer
projectlist · get · create · update · delete · members
taglist · create · update · delete
variablelist · create · update · delete
data-tablelist · get · create · delete · rows operations
userlist · get
configset-url · set-api-key · show
source-controlpull
packageexport · import when supported by the installed CLI
audit / authinspect with --help because availability can vary by CLI version

Safe recipes

# inspect before changing
n8n-cli workflow list
n8n-cli workflow get <id> --format=json

# recent failures
n8n-cli execution list --status=error --limit=10

# create from reviewed JSON
cat workflow.json | n8n-cli workflow create --stdin

# inspect a credential schema before creating metadata
n8n-cli credential schema <credentialType>

# portable workflow package when supported
n8n-cli package export --workflow-id=<id> --output=export.n8np

Backup / restore policy

Do not assume backups live in a particular directory or that n8n is deployed with a particular provider. Before a destructive or broad workflow change:

  1. identify the selected n8n instance;
  2. inspect the affected workflow/project IDs;
  3. export the relevant workflow/package when the CLI supports it, or use the deployment provider's existing backup mechanism;
  4. record an Evidence Receipt for high-risk changes;
  5. verify the workflow after the mutation.

Rules

  1. Read before write; use dry-run functionality when the installed subcommand provides it.
  2. Require explicit confirmation for delete, bulk deactivate, transfer, or other destructive/broad operations.
  3. Never bulk-edit workflows based on names alone when IDs can disambiguate them.
  4. Never assume production webhooks, workflows, projects, credentials, URLs, or backup paths from repository documentation.
  5. Treat CLI capabilities as version-dependent; check n8n-cli <command> --help when behavior matters.
  6. Keep credentials outside memory, evidence, recipes, logs, and tool payloads.

Linked SI-Coder skills

  • sc-dokploy may be used when the user-selected n8n deployment actually runs on Dokploy.
  • sc-git may help when a workflow is intentionally replaced by a repository-native automation.

These are optional internal SI-Coder capabilities, not external project dependencies.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.