python-workflows
Create or edit the project's single Python workflow (script.json, main.py, inputs, agents, checks).
от manishiitg★ 16 звёзд на GitHub
Установить python-workflows в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Об этом скилле
Write a workflow as a Python script
A new workflow is a Python script: a script.json that declares its inputs and outputs, and a main.py that does the work with the agentworks helpers. There is no plan file to build. Ordinary Python decides the order: functions, if/elif, loops.
Several workflows per project
A project can have several workflows, each with its own name (unique in the project), ID, files, runs and tasks. Make a separate workflow for a separate purpose (for example one for GitHub and one for Slack). A new task of the same job is a new path inside its workflow, not a new workflow:
- Add an input that picks the task (for example
TASK) and anif/elifbranch for it inmain.py. - Save a preset (a saved setting) for that task, such as
{"name": "Weekly report", "values": {"TASK": "report"}}. - Point the task's schedule, webhook or action at that preset.
Put reusable code in a helper .py file beside main.py and import it normally:
# gate.py
def run_gate():
...
# main.py
import gate
gate.run_gate()
First list this project's workflows with crew_workflow_files action=list. Change the matching workflow for a new task of the same job; create another one for a different purpose. A name already used by another workflow of the project is refused (HTTP409), so pick a different name. To copy one from this or another accessible project (no # tag needed), find its workflow ID with workspace action=references_list and pass copy_from to create; only the code comes across. To make one, use crew_workflow_files action=create kind=script with a name and a description (one or two plain sentences saying what the workflow is for; always give it), then write script.json, main.py and helper files with its write action. Run from project chat with the admitted bound runs action=start, or functions action=run_trigger using the returned workflow address, and inspect the saved result. The workflow page shows steps, files and runs; ask for changes in chat.
External MCP and CLI
An external MCP agent uses workspace action=automation_create/read/write with
crew_id; read and write also take the returned workspace_path and file
(root script.json, main.py or a nested Python path). Use workflow action=list/get
for script kind, typed inputs and presets; workflow action=save_inputs replaces
input_presets and optionally inputs through the same validated editor.
workflow action=outline inspects saved source without running it and
keeps Builder source-editor authority. @step labels are not independently runnable.
In the owning project chat, use its bound runs action=start when offered:
optional input_preset selects saved values and inputs carries typed JSON
values (numbers, booleans, objects and arrays stay typed). The workflow is
selected by the project, so do not supply a path or workflow ID. This shortcut is
bound to this project's workflow. A different task uses a declared input and saved
setting in that same workflow. Inputs override
the preset and defaults; unknown names and wrong types are refused before a
run starts. Stop it through the chat's background work control. For different
behavior or instructions, edit the saved Python/project configuration first.
Start with runs action=start (workflow_id, optional input_preset, typed
inputs) and poll runs action=status with its session_id, or use the existing
functions action=run_trigger/trigger_status receipt. Do not start both for one
intended run. Read runs action=get for metadata.python_steps and canonical
evidence checks/notices; full run files keep the same read grants. Use
runs action=logs for bounded stdout/stderr tails, failure traceback, saved
inputs, step timings and agent answer/provider-log paths. After editing nested
source, runs action=rerun with the old run_folder starts current source with
the recorded values/preset and reports changed source files. It repeats real
effects (including database writes and sends), so do not rerun merely to inspect
an uncertain start. External
agents can read help action=topic topic=python-workflows for the complete MCP
and named laptop CLI instructions. These operations keep current project,
source-editing, account and file grants.
script.json
{
"id": "weekly-leads",
"name": "Weekly leads",
"description": "Finds new leads and saves them.",
"inputs": [
{"name": "REGION", "type": "string", "value": "India", "description": "Market to search."},
{"name": "LIMIT", "type": "integer", "value": "20", "description": "Most leads per run."}
],
"input_presets": [{"name": "USA", "values": {"REGION": "USA"}}],
"outputs": ["leads.json"]
}
inputsare typed (string,integer,number,boolean) with an optional default invalue; add"required": truewhen there is no sensible default.input_presetsare optional named sets of values, for example one per market.
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
FAQ
Что делает скилл python-workflows?
Create or edit the project's single Python workflow (script.json, main.py, inputs, agents, checks).
Как установить скилл python-workflows?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл python-workflows запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
theme-factory
AnthropicToolkit for styling artifacts with a theme. These artifacts can be slides, docs, reportings, HTML landing pages, etc. There are 10 pre-set themes with…
access
AnthropicManage Discord channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…
configure
AnthropicSet up the Discord channel — save the bot token and review access policy. Use when the user pastes a Discord bot token, asks to configure Discord, asks "how…
access
AnthropicManage iMessage channel access — approve pairings, edit allowlists, set DM/group policy. Use when the user asks to pair, approve someone, check who's allowed…