My Easy Claude Code Passive Income AI Automation Setup
Based on All About AI's video on YouTube. If you like this content, support the original creators by watching, liking and subscribing to their content.
Create a Claude Code skill (a dedicated skill file) to encapsulate the workflow logic you want to repeat.
Briefing
A practical “set-and-forget” automation loop can turn Claude Code skills into steady, low-effort side income—by running a headless skill on a timer and wiring the results to actions like bug-bounty monitoring or scheduled email reports. The core method is simple: create a Claude Code skill (a Markdown “skill” file), then trigger it repeatedly from the terminal using a `while true` loop that calls `claude-p` with the skill name and sleeps between runs. The payoff is that the same pattern can support very different workflows without needing a complex server or custom scheduler.
For income, one example centers on the Cali market bug bounty program. The system continuously scans for new bug-bounty opportunities on Cali’s prediction markets, checks and claims relevant items in a structured sequence, and sends an email to the appropriate support address when a qualifying bug is found. The transcript gives a rough payout structure—minor bugs around $25, moderate $50, severe $100, with an additional $10 for pre-listing bugs—and describes the setup as fully autonomous. The creator reports earning roughly $100 to $200 per week at times (with variability), while also noting other projects can make smaller amounts or even lose money.
Technically, the automation is built around three pieces. First, a skill file such as `autoc cali` (stored in a skills directory) contains step-by-step logic: checking for front batches, claiming logs, and grouping by event while following a checklist so runs stay consistent. Second, supporting scripts and data flow handle external inputs—like polling for new markets and writing them to a log (e.g., a `new markets` file). Third, an email automation component (a Python file) integrates into the skill so the workflow can notify the right address when conditions are met.
Once the skill exists, the continuous runner is handled with a terminal loop: `while true; do claude-p /<skill-name>; sleep <seconds>; done` (the transcript uses `sleep 60` as the initial test). After each run finishes, the loop waits and triggers the skill again. Timing is adjustable—switching from 60 seconds to 3,600 seconds (one hour) is suggested for a more useful cadence and for running 24/7.
To demonstrate the same pattern beyond bug bounties, the transcript walks through building an “automail” skill that emails the top five Hacker News posts. The workflow: use Claude Code to create a placeholder skill, then implement steps to fetch the top five posts (including URLs) into a `news.json` file and send an email via a Gmail script using a token JSON for authentication. After updating Claude Code settings to allow the required bash commands, the loop is started again with `claude-p /automail` and a sleep interval. The result is repeated email batches, with the transcript showing that the system can trigger again and send multiple emails per run.
Overall, the key insight is that Claude Code skills plus a simple terminal `while` loop can provide reliable, repeatable automation for monitoring opportunities or distributing curated information—without relying on more fragile third-party scheduling changes—so long as permissions and timing are set correctly.
Cornell Notes
Claude Code skills can be run on a timer to automate recurring tasks that can support side income or useful reporting. The method uses a terminal `while true` loop that repeatedly calls `claude-p` with a slash command for a specific skill, then sleeps for a chosen interval (e.g., 60 seconds for testing, 3,600 seconds for hourly runs). One example monitors the Cali market bug bounty program by scanning for new prediction-market bugs, following a checklist of actions (check batches, claim logs, group by event), and emailing a support address when a bug is found. A second example builds an “automail” skill that fetches the top five Hacker News posts into `news.json` and sends them via Gmail using a token JSON. Proper settings permissions are required to let Claude Code run the needed bash commands.
What is the reusable “automation loop” pattern described, and why does it matter?
How does the Cali bug-bounty example generate notifications?
What role do “skills” and supporting files play in keeping runs consistent?
How is the Hacker News email automation set up end-to-end?
Why are settings permissions mentioned as a necessary step?
Review Questions
- How does changing the `sleep` interval in the terminal loop affect the behavior of the automation, and what interval is suggested for more practical reporting?
- In the Cali bug-bounty workflow, what are the key ordered steps inside the skill and what external data source feeds the scan?
- For the Hacker News automail example, what files are produced (e.g., `news.json`) and what credential type is used to send emails?
Key Points
- 1
Create a Claude Code skill (a dedicated skill file) to encapsulate the workflow logic you want to repeat.
- 2
Run the skill headlessly on a schedule using a terminal `while true` loop that calls `claude-p /<skill-name>` and then `sleep` for a chosen number of seconds.
- 3
Use a structured checklist inside the skill (e.g., check batches, claim logs, group by event) to keep repeated runs consistent.
- 4
Feed the skill with external inputs via polling/watchers that write to log files (such as `new markets` or `news.json`).
- 5
Integrate side actions like email sending by adding a Python-based email step that uses a token JSON for authentication.
- 6
Update Claude Code settings to allow the bash commands required by the automation, otherwise the loop may fail silently.
- 7
Adjust cadence for usefulness: test with short intervals (like 60 seconds) and switch to longer intervals (like 3,600 seconds) for ongoing operation.