create-workflow
Create and run user-triggered workflows with declared steps. Use when the user asks about a workflow or wants a verifiable recipe (fetch, compare, summarize) they can run on demand from chat or the dashboard.
- Star
- 873
- 分类
- 数据
- 许可证
- MIT
- 最近提交
- 2026年11月30日
packages/plugins/workflows/skills/create-workflow/SKILL.md
在 GitHub 上查看When the user wants a workflow they can run on demand (for example "morning brief"), explain the step recipe clearly before saving.
Use plugin_workflows__create_workflow with kind (never type). Last step must be summarize with prompt (never instruction).
[
{ "id": "news", "kind": "tool", "tool": "web_fetch", "input": { "url": "https://news.ycombinator.com" } },
{ "id": "summary", "kind": "summarize", "prompt": "Write a brief from the receipts only." }
]
tool— assigned profile or MCP tool that can run locally;inputmust match that tool's schema. Useweb_fetchfor URLs. Do not useweb_search— it only runs inside a provider chat turn.template— substitutes values into text only. Writing “extract stories” in a template returns those instructions; it does not call AI, parse content, or produce structured JSON.compare/assert— deterministic checks on prior receipts.compare.opiseq|near|contains. Do not use compare as free-text analysis- Filter: set
onFail: "skip"on acompare/assertstep when a false check is a normal outcome (for example "only continue if the sender contains github.com"). The run then ends as skipped, not failed, and later steps do not run agent— asks the bot in the middle of the run and returns named fields.prompttakes references;fieldsmaps each output key to what goes there. Later steps read{{steps.<id>.<field>}}. The run stops if the reply is not JSON or a field is missing.- exactly one final
summarize— turns the receipt bag into prose (no tools). It cannot be an intermediate extraction step or feed a later database step.
Classify, then act:
[
{ "id": "github", "kind": "compare", "left": "{{input.from}}", "op": "contains", "right": "github.com", "onFail": "skip" },
{ "id": "classify", "kind": "agent", "prompt": "Classify this email. Subject: {{input.subject}}", "fields": { "type": "security | mention | other", "decision": "act | ignore" } },
{ "id": "should_act", "kind": "compare", "left": "{{steps.classify.decision}}", "op": "eq", "right": "act", "onFail": "skip" },
{ "id": "label", "kind": "tool", "tool": "<label tool>", "input": { "label": "{{steps.classify.type}}" } },
{ "id": "summary", "kind": "summarize", "prompt": "Say what was done." }
]
For extraction or analysis before a write, use an agent step or an available tool that actually performs that work. Verify its input and output schema; do not invent a tool or output field. If no suitable tool is assigned, explain the missing capability instead of saving a recipe that cannot fulfill the request.
References use the tool's actual output shape: {{steps.fetch.content}}, not an assumed .output wrapper. Missing references stop the run. Explicit null values are allowed, so check required data with assert/compare steps before writes when applicable.
For a requested quantity such as five saved stories, check the extraction count and the database result with an assert/compare step. Inspect receipts before claiming success: a completed SQL call with changes: 0 does not prove stories were saved. Do not blindly rerun writes after a failure; inspect which writes already completed.
When the user names a profile to run as, confirm that profile and pass its agentId. Omit agentId to use the current chat profile.
When the user asks to run a saved workflow, use plugin_workflows__list_workflows to find it, then plugin_workflows__run_workflow. Pass input when the recipe uses {{input.*}} bindings.
When the user wants to change an existing workflow, use plugin_workflows__update_workflow.
Do not use workflows for clock-driven jobs — use create_automation for schedules.
相似的 Skill
health
GAgarrytan/gstack143k近 7 天新增 524 个 star
deprecation-and-migration
ADaddyosmani/agent-skills122k近 7 天新增 1,421 个 star
ccs-align
THthedotmack/claude-mem121k近 7 天新增 1,354 个 star
handoff
THthedotmack/claude-mem121k近 7 天新增 1,354 个 star
knowledge-agent
THthedotmack/claude-mem121k近 7 天新增 1,354 个 star