Files
n8n/.agents/skills/AGENTS.md
T
Svetoslav Dekov fe98bef7a4 chore: Unify agent skill sources (no-changelog) (#30541)
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-06-16 09:25:09 +00:00

2.0 KiB

Agent Skills

Shared n8n skills live in .agents/skills. These are the canonical source for skills that should work across Claude Code, OpenCode, and future agent harnesses.

Layout

  • Shared skills: .agents/skills/<name>/SKILL.md
  • Claude-specific skills and overrides: .claude/plugins/n8n/skills/<name>/
  • OpenCode-specific skills and overrides: .opencode/skills/<name>/

Claude plugin skills should usually be symlinks back to .agents/skills. OpenCode discovers .agents/skills directly, so .opencode/skills should only contain OpenCode-specific real-directory overrides.

Real directories in a harness path are treated as intentional overrides and are preserved by the sync script. The sync script only prunes symlinks that point back into .agents/skills (stale shared-skill links); hand-placed symlinks pointing elsewhere are left untouched.

The Claude plugin links are git symlinks, so a checkout needs symlink support. On Windows, enable it (git config core.symlinks true, plus Developer Mode or WSL) before checking out — otherwise git writes the links as plain text stubs and Claude Code fails to load those skills. --check reports stubs with an actionable error. (OpenCode reads .agents/skills directly and is unaffected.)

Editing

  • Edit shared skills under .agents/skills, not through symlinked copies.
  • Only put a skill in .agents/skills if it can work across supported agent harnesses. Avoid hardcoded harness tool names, commands, or UI flows unless the skill includes a clear availability check and fallback.
  • Keep harness-specific commands out of shared skills unless guarded by clear tool availability checks.
  • Put harness-specific workflows, such as MCP setup commands, in real directories under the matching harness path.
  • Run node scripts/sync-agent-skill-links.mjs after adding or removing shared skills to update Claude plugin symlinks.
  • Run node scripts/sync-agent-skill-links.mjs --check before submitting changes.