How theaiautomators/agentic-workflows works
1. Overall shape
This repo is a scaffolded collection of independent Python “workflows.” Each workflow is meant to be self-contained under workflows/{name}/, while shared project conventions, metadata, and AI-agent tooling live at the repository root.
2. Execution boundary: one workflow = one entrypoint
The primary runtime unit is a workflow directory containing a main.py script. That script is the local executable entrypoint, and in some cases also the deployable function for Modal. The workflows/hello-world/ example shows the intended minimum shape.
3. Shared Python dependency layer
requirements.txt defines dependencies used across all workflows, not per workflow. bootstrap.py sets up the local Python environment by creating .venv and installing those shared dependencies, so the repo assumes one common dependency base rather than isolated package builds per workflow.
4. Environment configuration flow
Configuration is layered: root .env is the shared source of secrets and API keys, then each workflow may have its own .env for overrides. The root .env.example documents expected shared variables, while each workflow can provide its own .env.example for workflow-specific settings. This separation is important for diagramming config boundaries.
5. Workflow catalog and discoverability
CATALOG.md is the index of all workflows and their status. It acts as the repo-level registry for what exists, whether it is runnable, and whether it has a deploy target. This is the main human-readable inventory of workflow assets.
6. Planning and implementation artifacts
.agent/plans/ holds implementation plans for workflows. These plans are created up front and then executed during build. .agent/validation/ holds shared validation assets and smoke-test fixtures. Together, these directories form the repo’s “build intent + verification” layer separate from runtime code.
7. Claude Code skills as the orchestration layer
.claude/skills/ contains reusable prompt workflows used by Claude Code to manage the repo. The important skills are:
• new-workflow for scaffolding
• build for implementing a planned workflow
• list-workflows for surfacing repo status
• onboard for orienting a contributor
• workflow-conventions for project rules
These are not runtime components; they are the automation/control plane for developing the repo.
8. Workflow scaffolding pattern
The new-workflow skill includes templates for different workflow shapes: local-only, Modal-combined, Modal-scheduled, and Modal-webhook. This indicates the repo supports multiple deployment patterns from the same workflow abstraction, with Modal-specific templates only when the workflow needs serverless execution.
9. Deployment boundary: local vs Modal
Workflows can run locally as plain Python scripts or be deployed to Modal as serverless endpoints. Modal is optional and only relevant for workflows that expose a run_modal() function or similar deployment entrypoint. This creates a clear boundary between script execution and cloud execution.
10. Representative example
workflows/hello-world/ is the canonical example of a completed workflow directory. It contains its own README, env example, and main.py, showing the minimum artifact set for a runnable workflow. Use it as the reference node when drawing the workflow-level architecture.
11. Repository conventions and instructions
CLAUDE.md and .claude/skills/workflow-conventions/ define how workflows should be structured and operated. These files are part of the project’s governance layer, ensuring new workflows follow the same patterns for env handling, scaffolding, validation, and catalog updates.
12. High-level data/control flow
A typical lifecycle is: create a plan in .agent/plans/ → scaffold a new workflow under workflows/ → implement and validate it using Claude skills → update CATALOG.md → run locally via main.py or deploy to Modal. The repo is therefore organized around an AI-assisted workflow lifecycle rather than a single application runtime.
Main entry points: hello-world Hello world · skills Skills · main.py Main script · CLAUDE.md CLAUDE.md
Components 20
Repo Root
Shared conventions, dependency bootstrap, catalog, and agent tooling at the repository level.
- CLAUDE.md · Top-level operating rules for contributors and workflow structure.
CLAUDE.md - Catalog · Repository registry of workflows, status, and deployability.
CATALOG.md - Requirements · Common Python dependency set used by all workflows.
requirements.txt - Bootstrap · Creates the local virtual environment and installs shared dependencies.
bootstrap.py - Root env · Shared source of secrets and API keys for the repo.
.env.example
AI Control Plane
Reusable Claude Code skills that scaffold, orient, and enforce workflow conventions.
- Skills · Reusable Claude Code skills that operate the repository.
.claude/skills - New workflow · Creates workflow skeletons and selects the right deployment template.
.claude/skills/new-workflow/SKILL.md - Templates · Local and Modal workflow skeletons for different execution modes.
.claude/skills/new-workflow/templates - List workflows · Surfaces repository workflow status and discoverability.
.claude/skills/list-workflows/SKILL.md - Onboard · Orients contributors to the repository and its operating model.
.claude/skills/onboard/SKILL.md - Conventions · Defines the standard workflow structure and repo-wide operating conventions.
.claude/skills/workflow-conventions/SKILL.md
Plan & Validate
Planning artifacts and shared validation assets used before and during workflow implementation.
- Plans · Pre-build workflow plans and implementation intent artifacts.
.agent/plans - Plan template · Standard template for new workflow plans.
.agent/plans/_template.md - Hello plan · Example implementation plan for the hello-world workflow.
.agent/plans/hello-world.md - Validation · Shared validation assets and smoke-test fixtures.
.agent/validation - Smoke test · Repository-level smoke-test guidance.
.agent/validation/smoke-test.md
Example Workflow
Canonical runnable workflow showing the minimum workflow directory shape.
- Hello world · Canonical completed workflow directory showing the minimal runnable shape.
workflows/hello-world - Main script · Local executable entrypoint and possible Modal deploy function.
workflows/hello-world/main.py - Workflow README · Workflow-specific usage and implementation notes.
workflows/hello-world/README.md - Workflow env · Workflow-specific environment overrides and examples.
workflows/hello-world/.env.example
Connections 23
- CLAUDE.md → Conventions: defines · Repo rules point contributors to the workflow conventions skill.
- CLAUDE.md → Catalog: requires · Repository operating rules depend on keeping the catalog current.
- Requirements → Bootstrap: installed by · Bootstrap uses the shared dependency list to create the local environment.
- Root env → Workflow env: overridden by · Workflow-specific env files extend the shared root configuration.
- Skills → New workflow: contains · The skills directory houses the workflow scaffolding skill.
- Skills → List workflows: contains · The skills directory houses the workflow inventory skill.
- Skills → Onboard: contains · The skills directory houses the contributor onboarding skill.
- Skills → Conventions: contains · The skills directory houses the repo conventions skill.
- New workflow → Templates: uses · Scaffolding chooses among the supported workflow shapes.
- Plans → New workflow: drives · Implementation plans are executed through the workflow scaffolding process.
- Plans → Hello plan: contains · The plans directory stores workflow-specific plans.
- Plan template → Hello plan: templates · The plan template provides the structure used by individual plans.
- Validation → Smoke test: contains · Shared validation assets include smoke-test guidance.
- List workflows → Catalog: reads · The inventory skill surfaces what the catalog records.
- Onboard → CLAUDE.md: references · Onboarding relies on the repo rules and conventions.
- Conventions → Hello world: shapes · Workflow conventions define the expected directory and config shape.
- Hello world → Main script: entrypoint · A workflow directory centers on its main Python script.
- Hello world → Workflow README: documents · Each workflow includes its own usage/readme documentation.
- Hello world → Workflow env: configures · Workflows can carry their own env example for local overrides.
- Hello plan → Hello world: implements · The example plan maps to the example workflow implementation.
- Main script → Hello world: runs in · The script is the local execution boundary for the workflow.
- Main script → Templates: matches · The workflow entrypoint follows one of the scaffolded runtime patterns.
- Catalog → Hello world: indexes · The catalog records the example workflow as part of repository discoverability.