/create-routine
Create a new automated routine (ADW) for the scheduler. Guides the user through defining what the routine does, the type (AI or systematic), the schedule, and generates the Python script + Makefile target. Use when the user says 'create a routine', 'add a routine', 'automate
$ npx -y skills add evolution-foundation/evo-nexus --skill create-routine --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
- Fires itselfAuto-invocation. Claude auto-loads it when your prompt matches the work.Auto-invocation is when the right skill fires by itself at the right moment, driven by a FLOW.md router and a hook, instead of you invoking it by name. It is the difference between a skill being installed and a skill actually getting used.Read the full definition →
- You can call itInvoke it directly when you want it.
- Slash command
/create-routine
Context preview
The summary Claude sees to decide when to auto-load this skill.
Create a new automated routine (ADW) for the scheduler. Guides the user through defining what the routine does, the type (AI or systematic), the schedule, and generates the Python script + Makefile target. Use when the user says 'create a routine', 'add a routine', 'automate
SKILL.md
create-routine.SKILL.mdname: create-routine
description: "Create a new automated routine (ADW) for the scheduler. Guides the user through defining what the routine does, the type (AI or systematic), the schedule, and generates the Python script + Makefile target. Use when the user says 'create a routine', 'add a routine', 'automate this', 'schedule this task', 'new ADW', 'I want this to run automatically', or wants to turn any manual task into a scheduled automation."
Create Custom Routine
Guide the user through creating a new automated routine that runs on schedule via the EvoNexus scheduler.
What You're Building
A routine is a Python script in `ADWs/routines/custom/` that runs on a schedule (daily, weekly, monthly, or interval). There are two types:
- **AI routines** — invoke Claude Code CLI with an agent to perform reasoning tasks (reports, analysis, decisions). Cost tokens and ~30-120s per run.
- **Systematic routines** — pure Python scripts that perform deterministic operations (API calls, file ops, data transforms). No AI, no tokens, no cost, ~1-5s per run.
Step 1: Understand the Task
Ask the user: 1. **What should this routine do?** (e.g., "check my GitHub repos every morning", "ping API endpoints every 5 minutes") 2. **AI or systematic?** Help the user decide:
- **Use AI when:** the task needs reasoning, analysis, writing, or decisions (generate a report, analyze sentiment, summarize data, make recommendations)
- **Use systematic when:** the task is deterministic and repeatable (HTTP health checks, file cleanup, data snapshots, metric logging, backups, CSV exports)
3. **When should it run?** (daily at X, every N minutes, weekly on day, monthly on day 1) 4. **What output?** (HTML report, markdown file, CSV, JSON, Telegram notification, log entry, or just action)
If AI routine, also ask:
- **Which agent should run it?**
- `clawdia-assistant` — ops, daily tasks, email, meetings
- `flux-finance` — financial reports, Stripe, ERP
- `atlas-project` — GitHub, Linear, project tracking
- `pulse-community` — Discord, WhatsApp, community
- `pixel-social-media` — social media, content, analytics
- `sage-strategy` — OKRs, strategy, competitive analysis
- `nex-sales` — pipeline, proposals, leads
- `mentor-courses` — courses, learning paths
- `kai-personal-assistant` — health, habits, personal
Step 2: Generate the Script
AI routine
Create the routine script at `ADWs/routines/custom/{name}.py`:
#!/usr/bin/env python3
"""ADW: {Routine Name} — {brief description}. Agent: @{agent-name}"""
import sys, os
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from runner import run_skill, run_claude, banner, summary
def main():
banner("{Routine Name}", "{description} | @{agent}")
results = []
results.append(run_skill(
"{skill-name}",
log_name="{routine-id}",
timeout=600,
agent="{agent-name}"
))
summary(results, "{Routine Name}")
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("\nCancelled.")Key rules for AI routines:
- Use `run_skill()` when there's an existing skill, or `run_claude()` for inline prompts
- Specify the agent name for context loading
- Set a reasonable timeout (300-900s depending on complexity)
Systematic routine
Create the routine script at `ADWs/routines/custom/{name}.py`:
#!/usr/bin/env python3
"""ADW: {Routine Name} — {brief description}. Type: systematic"""
import sys, os
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from runner import run_script, banner, summary
def do_task():
"""Pure Python logic — no Claude CLI, no AI, no tokens."""
# YOUR CODE HERE: API calls, file ops, data transforms
# ...
return {
"ok": True, # or False on failure
"summary": "Short description of what happened",
"data": {} # optional structured data for logs
}
def main():
banner("{Routine Name}", "{description} | systematic")
results = []
results.append(run_script(do_task, log_name="{routine-id}", timeout=60))
summary(results, "{Routine Name}")
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("\nCancelled.")Key rules for systematic routines:
- Write the actual Python logic in the `do_task()` function — this is where YOU (Claude) generate the implementation code
- Use stdlib + `requests` for HTTP calls (already in pyproject.toml dependencies)
- Return `{"ok": bool, "summary": str}` so the runner can log success/failure
- Keep timeout short (30-120s) — these should be fast
- No `agent` parameter — systematic routines don't use agents
- Common patterns: `requests.get()` for API polling, `os.walk()` for file ops, `csv.writer()` for data export, `shutil` for backups
Step 3: Run It
No Makefile changes needed — routines are discovered dynamically from scripts.
make run R={routine-id} # Run by ID
make list-routines # List all availableStep 4: Add to Scheduler (Optional)
If the user wants it automated, add to `scheduler.py` in the appropriate section:
# Daily
schedule.every().day.at("{HH:MM}").do(run_adw, "{Routine Name}", "custom/{script_name}.py")
# Weekly
schedule.every().{day}.at("{HH:MM}").do(run_adw, "{Routine Name}", "custom/{script_name}.py")
# Monthly (in the monthly block)
run_adw("{Routine Name}", "custom/{script_name}.py")
# Interval
schedule.every({N}).minutes.do(run_adw, "{Routine Name}", "custom/{script_name}.py")Step 5: Test
Run the routine manually:
make run R={routine-id}Check the output and adjust the prompt if needed.
Step 6: Create HTML Template (Optional)
If the routine generates an HTML report, create a template at `.claude/templates/html/{name}.html` following the pattern of existing templates:
- Dark theme (bg #0C111D, green #00FFA7)
- Evolution Foundation logo in heade
Read more
name: create-routine description: "Create a new automated routine (ADW) for the scheduler. Guides the user through defining what the routine does, the type (AI or systematic), the schedule, and generates the Python script + Makefile target. Use when the user says 'create a routine', 'add a routine', 'automate this', 'schedule this task', 'new ADW', 'I want this to run automatically', or wants to turn any manual task into a scheduled automation."
Create Custom Routine
Guide the user through creating a new automated routine that runs on schedule via the EvoNexus scheduler.
What You're Building
A routine is a Python script in `ADWs/routines/custom/` that runs on a schedule (daily, weekly, monthly, or interval). There are two types:
- **AI routines** — invoke Claude Code CLI with an agent to perform reasoning tasks (reports, analysis, decisions). Cost tokens and ~30-120s per run.
- **Systematic routines** — pure Python scripts that perform deterministic operations (API calls, file ops, data transforms). No AI, no tokens, no cost, ~1-5s per run.
Step 1: Understand the Task
Ask the user: 1. **What should this routine do?** (e.g., "check my GitHub repos every morning", "ping API endpoints every 5 minutes") 2. **AI or systematic?** Help the user decide:
- **Use AI when:** the task needs reasoning, analysis, writing, or decisions (generate a report, analyze sentiment, summarize data, make recommendations)
- **Use systematic when:** the task is deterministic and repeatable (HTTP health checks, file cleanup, data snapshots, metric logging, backups, CSV exports)
3. **When should it run?** (daily at X, every N minutes, weekly on day, monthly on day 1) 4. **What output?** (HTML report, markdown file, CSV, JSON, Telegram notification, log entry, or just action)
If AI routine, also ask:
- **Which agent should run it?**
- `clawdia-assistant` — ops, daily tasks, email, meetings
- `flux-finance` — financial reports, Stripe, ERP
- `atlas-project` — GitHub, Linear, project tracking
- `pulse-community` — Discord, WhatsApp, community
- `pixel-social-media` — social media, content, analytics
- `sage-strategy` — OKRs, strategy, competitive analysis
- `nex-sales` — pipeline, proposals, leads
- `mentor-courses` — courses, learning paths
- `kai-personal-assistant` — health, habits, personal
Step 2: Generate the Script
AI routine
Create the routine script at `ADWs/routines/custom/{name}.py`:
#!/usr/bin/env python3
"""ADW: {Routine Name} — {brief description}. Agent: @{agent-name}"""
import sys, os
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from runner import run_skill, run_claude, banner, summary
def main():
banner("{Routine Name}", "{description} | @{agent}")
results = []
results.append(run_skill(
"{skill-name}",
log_name="{routine-id}",
timeout=600,
agent="{agent-name}"
))
summary(results, "{Routine Name}")
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("\nCancelled.")Key rules for AI routines:
- Use `run_skill()` when there's an existing skill, or `run_claude()` for inline prompts
- Specify the agent name for context loading
- Set a reasonable timeout (300-900s depending on complexity)
Systematic routine
Create the routine script at `ADWs/routines/custom/{name}.py`:
#!/usr/bin/env python3
"""ADW: {Routine Name} — {brief description}. Type: systematic"""
import sys, os
sys.path.insert(0, os.path.dirname(os.path.dirname(os.path.abspath(__file__))))
from runner import run_script, banner, summary
def do_task():
"""Pure Python logic — no Claude CLI, no AI, no tokens."""
# YOUR CODE HERE: API calls, file ops, data transforms
# ...
return {
"ok": True, # or False on failure
"summary": "Short description of what happened",
"data": {} # optional structured data for logs
}
def main():
banner("{Routine Name}", "{description} | systematic")
results = []
results.append(run_script(do_task, log_name="{routine-id}", timeout=60))
summary(results, "{Routine Name}")
if __name__ == "__main__":
try:
main()
except KeyboardInterrupt:
print("\nCancelled.")Key rules for systematic routines:
- Write the actual Python logic in the `do_task()` function — this is where YOU (Claude) generate the implementation code
- Use stdlib + `requests` for HTTP calls (already in pyproject.toml dependencies)
- Return `{"ok": bool, "summary": str}` so the runner can log success/failure
- Keep timeout short (30-120s) — these should be fast
- No `agent` parameter — systematic routines don't use agents
- Common patterns: `requests.get()` for API polling, `os.walk()` for file ops, `csv.writer()` for data export, `shutil` for backups
Step 3: Run It
No Makefile changes needed — routines are discovered dynamically from scripts.
make run R={routine-id} # Run by ID
make list-routines # List all availableStep 4: Add to Scheduler (Optional)
If the user wants it automated, add to `scheduler.py` in the appropriate section:
# Daily
schedule.every().day.at("{HH:MM}").do(run_adw, "{Routine Name}", "custom/{script_name}.py")
# Weekly
schedule.every().{day}.at("{HH:MM}").do(run_adw, "{Routine Name}", "custom/{script_name}.py")
# Monthly (in the monthly block)
run_adw("{Routine Name}", "custom/{script_name}.py")
# Interval
schedule.every({N}).minutes.do(run_adw, "{Routine Name}", "custom/{script_name}.py")Step 5: Test
Run the routine manually:
make run R={routine-id}Check the output and adjust the prompt if needed.
Step 6: Create HTML Template (Optional)
If the routine generates an HTML report, create a template at `.claude/templates/html/{name}.html` following the pattern of existing templates:
- Dark theme (bg #0C111D, green #00FFA7)
- Evolution Foundation logo in heade
Other skills on evo-nexus.
- /ai-image-creator
Generate PNG images using AI (multiple models via OpenRouter including Gemini, FLUX.2, Riverflow, SeedDream, GPT-5 Image, proxied through Cloudflare AI Gateway BYOK). Also analyze/describe existing images using multimodal AI vision. Use when user asks to "generate an image",
Open skill - /create-agent
Create a new custom agent for the workspace. Guides the user through defining agent name, domain, personality, skills, model, and memory folder. Use when the user says 'create an agent', 'new agent', 'add an agent', 'I need a custom agent', or wants to create a specialized agent
Open skill - /create-command
Create a new slash command for Claude Code. Guides the user through defining the command name, what it does, and generates the markdown file in .claude/commands/. Use when the user says 'create a command', 'new command', 'add a slash command', 'I want a shortcut for', or wants
Open skill - /create-goal
Create a Mission, Project, or Goal (Mission → Project → Goal → Task hierarchy) in EvoNexus. Guides the user through picking a mission, choosing or creating a project, defining a measurable goal with metric_type and target_value. Writes to the SQLite goals tables via POST
Open skill - /create-heartbeat
Create a new heartbeat (proactive agent scheduled with a decision prompt) for EvoNexus. Guides the user through picking an agent, setting interval, wake triggers, and the decision prompt that governs when the agent acts. Writes to config/heartbeats.yaml with pydantic validation.
Open skill - /create-integration
Create a new custom integration (API/service wrapper) for the workspace. Guides the user through defining the integration's slug, display name, description, category, and required env keys. Writes .claude/skills/custom-int-{slug}/SKILL.md via POST /api/integrations/custom. Use
Open skill

