Command Palette

Search for a command to run...

Back to skills
skill № 87124

python-workflows

Create or edit the project's single Python workflow (script.json, main.py, inputs, agents, checks).

FreeNo executable scripts
manishiitgby manishiitg★ 16 GitHub stars

Install python-workflows in Claude Code & Claude Desktop

Sign up to install this skill

Create a free account to reveal the install command and save the skill to your library.

  • Reveal the one-line install command
  • Save skills to your synced library
  • Get notified when skills update
Sign up freeI already have an account

About this skill

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 an if/elif branch for it in main.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"]
}
  • inputs are typed (string, integer, number, boolean) with an optional default in value; add "required": true when there is no sensible default.
  • input_presets are optional named sets of values, for example one per market.
Full SKILL.md on GitHub

Allowed tools

Tools this skill is permitted to call.

No restriction — this skill can use any tool.

FAQ

What does the python-workflows skill do?

Create or edit the project's single Python workflow (script.json, main.py, inputs, agents, checks).

How do I install the python-workflows skill?

Copy the skill folder into ~/.claude/skills (the Claude Code tab above does this in one command), or install it as a plugin.

Does the python-workflows skill run scripts?

No, this skill is instructions only (SKILL.md) with no executable scripts.

Related skills

Compare python-workflows with