Agent 生成器
- 作者仓库星标 190,957
- 作者更新于 实时读取
- 作者仓库 n8n
- 领域
- 通用
- 兼容 Agent
-
- Claude Code
- Cursor
- Cline
- Codex
- Windsurf
- Gemini CLI
- +20
- 信任分
- 88 / 100 · 社区维护
- 作者 / 版本 / 许可
- @n8n-io · 未声明 license
- Token 消耗评级
- 低消耗
- 接入复杂程度
- 需简单配置
- 是否需要外部 API Key
- 不需要
- 兼容的系统
- 未声明(默认跨平台)
- 底层运行要求
- 无特殊要求
- 文件与系统权限
-
- 只读
- 允许写入 / 修改
- Shell 执行
- 网络行为
- 仅限本地
- 安装命令数
- 26 条
档案由构建时根据 SKILL.md 与安装命令自动衍生,可能与作者实际意图存在差异。
需要注意: 未限定 allowed-tools,默认拥有全部工具权限。
---
name: n8n:create-skill
description: >- Skills are markdown (plus optional scripts) that teach the agent a focused workflow. Keep SKI…
category: 通用
runtime: 无特殊运行时
---
# n8n:create-skill 输出预览
## PART A: 任务判断
- 适用问题:通用任务拆解、检查和交付。
- 输入要求:目标材料、限制条件、期望输出和验收方式。
- 证据边界:围绕“Where skills live / Before you write: gather requirements / File layout”读取原文规则,不把推断写成作者承诺。
## PART B: 执行结果
- **01** 任务判断:确认你的需求是否属于通用任务拆解、检查和交付,并标出输入、限制和预期结果。
- **02** 执行计划:优先按“Where skills live / Before you write: gather requirements / File layout”拆成步骤,说明每一步会读取什么、修改什么、产出什么。
- **03** 交付结果:给出可复制的命令、文件改动、检查清单或内容草稿,并说明如何继续迭代。
- **04** 风险边界:结合 读取文件、写入/修改文件、执行终端命令、主要在本地完成、通常不需要额外 API Key 给出执行前确认项。
## Running Rules
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先小样例验证,再放大到真实任务。
- 交付时同时给结果、检查口径和下一步迭代建议。 原文没有稳定的斜杠命令要求。安装验证后通常全局生效,直接在对话里点名这个 Skill 并描述任务即可。
告诉 Agent 目标文件或材料、期望结果、不可改范围、是否允许联网或执行命令。本 Skill 的权限画像是:读取文件、写入/修改文件、执行终端命令。
先用一个小任务确认它会围绕“Where skills live / Before you write: gather requirements / File layout”工作;涉及文件或命令时,先看 diff、日志、预览或测试结果。
检查最终产物是否包含明确结果、必要证据和下一步动作;如果输出泛泛而谈,就补充输入、边界和验收标准后重跑。
---
name: n8n:create-skill
description: >- Skills are markdown (plus optional scripts) that teach the agent a focused workflow. Keep SKI…
category: 通用
source: n8n-io/n8n
---
# n8n:create-skill
## 什么时候使用
- 把通用方向的常用动作沉淀成 Agent 可调用的技能 适合处理通用任务拆解、检查、交付和复盘,核心价值是把输入、判断、执行、验证和交付边界固定下来,避免 Agent 泛泛回答。 把任务拆成可执行、可检查、可继续迭代的步骤;通常不需要额外…
- 面向通用任务拆解、检查和交付,优先处理能明确输入、步骤和验收标准的工作。
## 需要提供什么
- 目标材料、目录范围、期望结果和不可改动内容。
- 是否允许联网、执行命令、读写文件或调用外部服务。
## 执行规则
- 围绕「Where skills live / Before you write: gather requirements / File layout」组织步骤,不把推断写成作者事实。
- 读取文件、写入/修改文件、执行终端命令;主要在本地完成;通常不需要额外 API Key。
- 先跑小样例,确认结果可检查后再扩大任务范围。
## 输出要求
- 给出最终产物、关键证据、验证方式和下一步动作。
- 信息不足时标记 unknown,不编造命令、平台或依赖。 作者原文负责流程事实;仓库文件负责来源和命令;流狐只补充适用场景、限制和质量判断。
skill "n8n:create-skill" {
输入层 -> 用户目标 + 目标文件 + 禁止范围 + 验收标准
上下文层 -> Where skills live / Before you write: gather requirements / File layout
规则层 -> SKILL.md 触发条件 / 执行顺序 / 输出格式
运行层 -> 无特殊运行时 | 读取文件、写入/修改文件、执行终端命令 | 主要在本地完成
安全层 -> 通常不需要额外 API Key + 小任务验证 + diff / 日志复核
输出层 -> 可复制结果 + 检查清单 + 下一步迭代
} Creating skills
Skills are markdown (plus optional scripts) that teach the agent a focused workflow. Keep SKILL.md short—the context window is shared with chat, code, and other skills.
Where skills live
| Location | When to use |
|---|---|
.claude/plugins/n8n/skills/<name>/ |
Default for n8n: team-shared, versioned, namespaced under n8n:. |
~/.claude/skills/<name>/ |
Personal skill for Claude Code across all projects. |
~/.cursor/skills/<name>/ |
Optional personal skill for Cursor only, global to your machine. |
Do not put custom skills in ~/.cursor/skills-cursor/—that is reserved for Cursor’s built-in skills.
Prefer plugin .claude/plugins/n8n/skills/ for anything that should match how the rest of the team works.
Before you write: gather requirements
Ask (or infer) briefly:
- Purpose — one concrete task or workflow.
- Triggers — when should the agent apply this skill?
- Gaps — what does the agent not already know (project rules, URLs, formats)?
- Outputs — templates, checklists, or strict formats?
- Examples — follow an existing skill in
.claude/plugins/n8n/skills/if one fits.
Ask the user in plain language when you need more detail.
File layout
skill-name/
├── SKILL.md # required
├── reference.md # optional — detail the agent reads only if needed
├── examples.md # optional
└── scripts/ # optional
Frontmatter (required)
---
name: skill-name # lowercase, hyphens, max 64 chars
description: >- # max 1024 chars, non-empty — see below
...
---
Description (discovery is everything — third person, WHAT + WHEN, trigger words):
- Good:
Extracts tables from PDFs and fills forms. Use when the user works with PDFs, forms, or document extraction. - Bad:
Helps with documentsorI can help you with PDFs
Authoring rules
- Concise — assume the model is capable; only add non-obvious domain or project facts.
- Progressive disclosure — essentials in
SKILL.md; long reference inreference.md. Link one level deep fromSKILL.md. - Prefer one default — e.g. one library or one workflow; add an escape hatch only if needed.
- Stable wording — one term per concept; avoid dated “until month X” notes unless you tuck legacy bits behind a short “Deprecated” note.
- Paths — forward slashes only (
scripts/foo.py).
Rough size: aim for well under ~200 lines in SKILL.md; if it grows, split detail out.
Scope: one job per skill (and parent skills)
- Single responsibility — one primary workflow or decision tree per skill. If triggers and steps diverge a lot (e.g. “create issue” vs “create PR” vs “full ticket → PR flow”), split into smaller dedicated skills.
- Prefer small + compose — two or three focused skills keep irrelevant detail out of context until needed. A parent (orchestrator) skill can say when to follow each child workflow and link to their
SKILL.md; avoid pasting full child content into the parent. - When one large skill is OK — a single end-to-end flow that always runs together and shares one tight checklist;
MCPs, CLI tools, and other skills
- Prefer CLI and repo commands when they solve the same problem — agents handle them well and they usually add less scaffolding noise to context than MCP tool discovery and schemas. Examples:
ghfor PRs/issues,pnpmscripts fromAGENTS.md. - MCPs are optional per user — not everyone has the same servers enabled. If a skill requires a specific MCP to work as written, say so explicitly:
- Put a hint in the frontmatter description (e.g. “Requires Linear MCP for …”) so mismatches are obvious early.
- Add a short Prerequisites (or Requirements) block near the top: which integration, what it is used for, and a fallback (e.g. web UI,
gh, or “ask the user to paste …”) when it is missing.
- Referencing other skills — use the namespaced invocation name (e.g.
n8n:create-issue) so the agent resolves the plugin skill. For human-readable links, give the path from the repo root (e.g..claude/plugins/n8n/skills/create-issue/SKILL.md). From a sibling folder, a relative link works too:[create-issue](../create-issue/SKILL.md). Parent skills should delegate steps instead of duplicating long procedures.
Patterns (pick what fits)
- Template — give the exact output shape (markdown/code blocks).
- Checklist — numbered or
- [ ]steps for multi-step work. - Branching — “If A → …; if B → …” at the top of a workflow.
- Scripts — document run commands; say whether to execute or read the script.
Workflow: create → verify
- Name + description — hyphenated name; description with triggers.
- Outline — minimal sections; link optional files.
- Implement —
SKILL.mdfirst; addreference.md/scripts/only if they save tokens or reduce errors. - Check — third-person description; terminology consistent; no duplicate encyclopedic content the model already knows.
Anti-patterns
- Verbose tutorials (“what is a PDF”) inside the skill.
- Many equivalent options with no default.
- Vague names (
helper,utils). - Deep chains of linked files.
- Assuming an MCP or tool is present without stating it or offering a fallback.
- One oversized skill that mixes unrelated workflows instead of smaller skills + a thin parent.
Quick example stub
---
name: my-workflow
description: Does X using project convention Y. Use when the user asks for X or mentions Z.
---
# My workflow
1. …
2. …
## Output format
Use a fenced code block for the exact shape reviewers should see.
## More detail
See [reference.md](reference.md) if edge cases matter.
先判断是否适合
作者设计意图
作者的方法与取舍
边界和复核