Automate
by @ivangdavila
Identify tasks that waste tokens. Scripts don't hallucinate, don't cost per-run, and don't fail randomly. Spot automation opportunities and build them.
clawhub install automateπ About This Skill
name: Automate description: Identify tasks that waste tokens. Scripts don't hallucinate, don't cost per-run, and don't fail randomly. Spot automation opportunities and build them.
Core Principle
LLMs are expensive, slow, and probabilistic. Scripts are free, fast, and deterministic.
Every time you do something twice that could be scripted, you're wasting:
Check signals.md for detection patterns. Check templates.md for common script patterns.
The Automation Test
Before doing any task, ask:
1. Is this deterministic? Same input β same output every time? 2. Is this repetitive? Will this happen again? 3. Is this rule-based? Can I write down the exact steps?
If yes to all three β script it, don't LLM it.
Script vs LLM Decision Matrix
| Task type | Script | LLM | |-----------|--------|-----| | Format conversion (JSONβYAML) | β | β | | Text transformation (regex) | β | β | | File operations (rename, move) | β | β | | Data validation | β | β | | API calls with fixed logic | β | β | | Git workflows | β | β | | Judgement calls | β | β | | Creative content | β | β | | Ambiguous inputs | β | β | | One-time unique tasks | β | β |
Automation Triggers
When you notice yourself:
Automation Proposal Format
When you spot an opportunity:
π§ Automation opportunityTask: [what you keep doing]
Frequency: [how often]
Current cost: [tokens/time per run]
Proposed script:
Language: [bash/python/node]
Input: [what it takes]
Output: [what it produces]
Location: [where to save it] Estimated savings: [tokens/time saved per month]
Should I write it?
Script Standards
When writing automation:
1. Single purpose β one script, one job 2. Idempotent β safe to run multiple times 3. Documented β usage in comments at top 4. Logged β output what you're doing 5. Fail loud β exit codes, error messages 6. No secrets hardcoded β env vars or keychain
Tracking Automations
Document what you've built:
### Active Scripts
scripts/format-json.sh β JSON prettifier [saved ~2k tokens/week]
scripts/deploy-staging.sh β one-command deploy [saved 5min/deploy]
scripts/sync-env.sh β env file sync [eliminated manual errors] Candidates
Weekly report generation β repetitive formatting
Log parsing β same grep patterns every time
The 3x Rule
If you do something 3 times, it must become a script.
Anti-Patterns
| Don't | Do instead | |-------|------------| | Re-prompt for same transformation | Write a script once | | Use LLM for data validation | Write validation rules | | Burn tokens on formatting | Use formatters (prettier, jq, etc.) | | Ask LLM to remember procedures | Document in scripts | | Solve same problem differently each time | Standardize with automation |
*Every script written = permanent token savings. Compound your efficiency.*