edit-flow
БесплатноБез исполняемых скриптовНе проверенCreate and edit pi-flows flows and agents from the main session. Use when the user wants to create a new flow, add or change an agent, or edit an existing…
от BlackBeltTechnology★ 357 звёзд на GitHubОб этом скилле
Edit Flow
You are creating and editing pi-flows flows and agents directly in this session. Two tools do the writing (both validate before writing and return diagnostics on failure):
flow_agents—op: "list"returns the agent catalog;op: "write"validates and writes an agent.mdto.pi/flows/agents/<name>.md(filename derived from the agent's frontmattername).flow_write—namespace(defaultcustom),name,content. Validates and writes a flow to.pi/flows/flows/<namespace>/<name>.yaml, which auto-registers as the/<namespace>:<name>command.
These tools derive their write locations from the discovery convention — there is no raw path. Writing to a name that already exists overwrites it (that is how you edit).
The edit-flow tools are off by default. They are active only when
flows.editFlow: trueis set in.pi/settings.json(project, when trusted) or~/.pi/agent/settings.json(global). Ifflow_agents/flow_writeare not available, tell the user to enable that setting and restart the session.
Workflow
- Clarify what the user wants the flow to do. Ask if it is unclear.
- Call
flow_agentswithop: "list"to see existing agents and theirinputs,outputs, andsource_type. Reusebuilt-in/localagents where they fit. - For each role not already covered, author a purpose-built agent with
flow_agentsop: "write". Do not repurpose infrastructure agents (flow-decision,project-context-reader) for unrelated tasks. - Author the flow with
flow_write. Wire every declared input. Fix any validation diagnostics and retry. - Tell the user the resulting command name (
/<namespace>:<name>).
Editing an existing flow/agent = read the current file, change it, then write it back with the same tool and the same name/namespace.
Agent files (.md)
YAML frontmatter + Markdown body (the system prompt).
---
name: code-reviewer
description: Reviews source code for quality and correctness
model: @coding
thinking: medium
tools: read, grep, find
inputs:
- research_context
outputs:
- name: findings
description: Categorized issues found
- name: verdict
description: "pass" or "fail"
access:
read:
- "src/**"
write:
- "src/**"
bash:
deny:
- "rm -rf *"
card:
label: "Reviewer"
metric: "default"
architect:
use_when: "User wants code reviewed for quality"
produces: "A findings report and a pass/fail verdict"
depends_on: "An implementer must have produced code"
domain: "review"
---
# System Prompt
You are a code reviewer. Task: ${{task}}
Context: ${{input.research_context}}
| Field | Required | Notes |
|---|---|---|
name |
Yes | Unique. Filename = <name>.md. Referenced as agent: <name> in steps. |
description |
Yes | One line. Shown in catalog. |
model |
Yes | See Model references. |
tools |
Yes | Comma-separated. Guard blocks anything not listed. Standard: read, write, edit, grep, find, ls, bash, ask_user, skill_read. |
thinking |
No | off/minimal/low/medium/high/xhigh. Overrides any :level suffix in model. |
skills |
No | Comma-separated skill names injected into the prompt. |
inputs |
No | Names → ${{input.NAME}} in the prompt. Flow step must wire each one. |
outputs |
No | Names (or {name, description} objects). Become finish parameters and ${{result.STEP.NAME}} downstream. |
interactive |
No | true allows mid-task UI prompts. Default false. |
output |
No | Output file hint (display only). |
access |
No | read/write glob allowlists; bash.deny command patterns. * = segment, ** = any depth. |
card |
No | label, metric (default/files/tests/custom), role. |
architect |
No | use_when/produces/depends_on/domain metadata surfaced in flow_agents op: list. |
Model references
The model: field accepts three forms. Prefer @role. Use the other two when a specific model is required regardless of role config, or when the user explicitly asks for a non-role model.
| Form | Example | When |
|---|---|---|
@role (preferred) |
model: @coding |
Default. Resolves via the active role→model map (/roles). Built-in roles: @planning, @coding, @fast, @architect. |
provider/model[:thinking] |
model: anthropic/claude-haiku-4-5:high |
A specific provider+model is required; optional :thinking suffix sets the thinking level. |
bare model-id |
model: claude-haiku-4-5 |
A specific model id with no provider qualifier; thinking comes from the thinking: field or none. |
A thinking: field always overrides any :thinking suffix in model.
Flow files (.yaml)
name: my-flow # REQUIRED
description: What it does # REQUIRED
max_concurrent: 3 # optional (default 4)
task_required: true # optional — prompt for task if invoked with no args
task_prompt: "Task:" # optional
Установить edit-flow в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл edit-flow?
Create and edit pi-flows flows and agents from the main session. Use when the user wants to create a new flow, add or change an agent, or edit an existing flow/agent. Covers agent frontmatter, flow YAML, step types, model references, the flow_agents and flow_write tools, write locations, and how to fix validation errors.
Как установить скилл edit-flow?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл edit-flow запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
doc-coauthoring
Guide users through a structured workflow for co-authoring documentation. Use when user wants to write documentation, proposals, technical specs, decision…
от Anthropicacademy-guide
Stop and check this skill before finishing any reply to a question about how to use Claude or a Claude product — it recommends matching courses, tutorials…
от Anthropicinternal-comms
A set of resources to help me write all kinds of internal communications, using the formats that my company likes to use. Claude should use this skill…
от Anthropicskill-development
This skill should be used when the user wants to "create a skill", "add a skill to plugin", "write a new skill", "improve skill description", "organize skill…
от Anthropic