10x-Anit

n8n Branch — Git skill for Claude Code

Git community

List tracked workflow branches or create a new one.

How to install n8n Branch

Installs to ~/.claude/commands/10x-anit-10x-n8n-skill-n8n-branch.md

Terminal
mkdir -p ~/.claude/commands && curl -fsSL https://raw.githubusercontent.com/10x-Anit/10x-n8n-skill/HEAD/.claude/commands/n8n-branch.md -o ~/.claude/commands/10x-anit-10x-n8n-skill-n8n-branch.md

Restart Claude Code, or start a new session, for it to be picked up.

What n8n Branch does


description: "List tracked workflow branches or create a new one" argument-hint: "[create ] [--list]"

CONTEXT: .n8n-track/branches.json + HEAD.json REQUIRES: initialized .n8n-track/

STEPS:

  1. VERIFY initialized
  2. IF no args or --list → READ branches.json, display all branches
  3. MARK current branch from HEAD.json with *
  4. IF create → POST /api/v1/workflows with empty workflow
  5. ADD new branch to branches.json, save initial snapshot, append init commit
  6. OUTPUT list

Alternatives in Git

  • Ws Reset — Reset the current branch to main, fetch upstream, and update submodules 38.1k ★
  • Clean Worktrees (Automatic) — Automatically remove all worktrees for branches merged into master 25.5k ★
  • OSS PR — Commit + PR workflow for open source contributions: auto-creates a user-prefixed branch when on main/master, t 19.7k ★

Full documentation available on GitHub

View Source Repository