new-workflow
Scaffold a new standalone workflow with directory structure and plan template
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Menu
Scaffold a new standalone workflow with directory structure and plan template
Install with Codex or Claude Copy this prompt, paste it into Codex, Claude, or another assistant, and let it review the skill page and install it for you.
Based on SOC occupation classification
List all runnable workflows in this project with their arguments and deployment status
Onboard into this workflows codebase and provide a summary of its current state
Workflow structure, environment variable patterns, planning rules, and development flow for this project. Relevant when creating, editing, or debugging workflows.
| name | new-workflow |
| description | Scaffold a new standalone workflow with directory structure and plan template |
| argument-hint | <workflow-name> |
| disable-model-invocation | true |
Scaffold a new standalone workflow.
The user may provide a workflow name as the argument: $ARGUMENTS
Before doing anything else, you MUST gather ALL of the following inputs. Use the AskUserQuestion tool to ask for every missing piece of information. If the user provided a workflow name as the argument, you still MUST ask the remaining questions — the name alone is NOT enough to proceed.
Required inputs (ask for ALL that are not yet known):
pdf-summarizer (skip only if provided as $ARGUMENTS)Do NOT skip any of these. Do NOT proceed to the Steps section until you have answers for all five inputs (or four if Local-only, since Modal mode does not apply).
Validate the name
workflows/Create the workflow directory at workflows/$ARGUMENTS/
Scaffold files:
workflows/$ARGUMENTS/README.md
# {workflow-name}
{description}
## Usage
```bash
python workflows/{workflow-name}/main.py
This workflow loads env vars from the root .env first, then from workflows/{workflow-name}/.env (overrides).
See the root .env.example for shared vars. Copy this workflow's .env.example to .env only if you need workflow-specific overrides.
{target}
**`workflows/$ARGUMENTS/main.py`**
- If Local only: use the local-only template from [templates/main-local.py](templates/main-local.py)
- If Modal webhook mode: use the webhook template from [templates/main-modal-webhook.py](templates/main-modal-webhook.py)
- If Modal scheduled/manual mode (no webhook): use the scheduled template from [templates/main-modal-scheduled.py](templates/main-modal-scheduled.py)
- If Modal webhook + scheduled: use the combined template from [templates/main-modal-combined.py](templates/main-modal-combined.py)
- Include a docstring explaining what the workflow does
**`workflows/$ARGUMENTS/.env.example`**
- Only include workflow-specific vars that are NOT already in the root `.env.example`
- If all vars are covered by the root `.env.example`, add a comment-only file explaining that
- Always include a comment header explaining the override behavior
Add new dependencies to root requirements.txt
requirements.txt, add themrequirements.txtCreate plan file at .agent/plans/$ARGUMENTS.md
.agent/plans/_template.mdUpdate CATALOG.md
PlannedArgs to TBD (will be filled in by /build once the workflow is implemented)Report what was created
requirements.txt/build