routines-builder
Skill0 starsChanged 4 months agoMITView on GitHub
Use when someone wants to set up recurring/automated cadence — build, optimize, or audit a Claude Code Routine (cloud scheduled agent via /schedule), a local hook, a /loop, or a daily-*/weekly-* ritual skill. Triggers on "schedule this", "automate X weekly", "make Servy run itself", "wire a recurring job", "attack our cadence gap". Runs a decision gate and Discovery Interview, then a mandatory supervised test before arming anything.
- Reads credentials
- Installs packages
1 other project uses a version of this, 1 of them edited.
Adopted by
Most recently taken up by
- GerardoRdz96/aios-starter-kitedited, first seen Jul 1, 2026
Other versions1 project uses a version of this.
Word for word · 0
None found.
Edited · 1
- GerardoRdz96/aios-starter-kit★ 367% same
Wrote their own version · 0
None found.
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository50 other files it gives its agents.
- aegisSkill
- agent-builderSkill
- agents-team-builderSkill
- ai-applySkill
- auditSkill
- bottleneckSkill
- buildSkill
- capability-radarSkill
- clay-leadsSkill
- cowatchSkill
- deepforkSkill
- design-blueprintSkill
- evalSkill
- fable-modeSkill
- financesSkill
- forgeSkill
- framework-builderSkill
- grill-meSkill
- hooks-builderSkill
- level-upSkill
- loops-builderSkill
- meeting-hudSkill
- multi-brainSkill
- nate-watchSkill
- onboardSkill
- plugin-builderSkill
- ponytailSkill
- presentSkill
- prompt-evalSkill
- radar-harvestSkill
- rag-forgeSkill
- rlsgateSkill
- rnd-loopSkill
- rndSkill
- roastSkill
- servy-routineSkill
- session-handoffSkill
- skill-builderSkill
- skill-harvestSkill
- sparkSkill
- storm-researchSkill
- studySkill
- talkSkill
- taste-skillSkill
- verify-loopSkill
- verify-specificsSkill
- wheel-of-lifeSkill
- workanaSkill
- workaround-builderSkill
- workflow-builderSkill
The file
We split this skill into the rules it gives an agent
9 rules. About 0 are common, 5 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈5
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 51
Ask with AskUserQuestion, one round at a time, skipping what's already known.
- Distinctive: line 97
Put stable rules in the repo's CLAUDE.md (read automatically on the fresh clone).
- Very specific: line 105
Create the routine via the /schedule skill (the terminal path to Routines).
- Very specific: line 108
Verify it read CLAUDE.md, stayed in scope, produced the agreed output on the claude/ branch / session.
- Distinctive: line 112
This test is a hard gate: Do not arm a recurring schedule until a supervised run passes.
- Very specific: line 130
Add the routine to CLAUDE.md (a "Your routines / cadence" area): name, what it does, cadence, repo, output location.
- Distinctive: line 168
The supervised "Run now" test is a hard gate: before arming any schedule, even on "just schedule it."
- Distinctive: line 169
Everything runs as Gera: Default to draft/branch output.
- Very specific: line 170
Secrets → cloud env vars, never
.env: Never commit .env to "solve" a missing-key error.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
What This Skill Does
Designs, ships, optimizes, and audits recurring automations so Servy runs without being asked — the Cadence pillar of the Four Cs. It's the third sibling of /skill-builder and /agent-builder: decision gate and Discovery Interview first, a mandatory supervised test before anything fires, files/schedules last.
The headline mechanism is Claude Code Routines — saved tasks that run on Anthropic's cloud on a schedule, even with your laptop closed, fully autonomous and acting AS you. That power is exactly why this skill never arms a schedule until a supervised "Run now" has passed. Full mechanics (triggers, environments, network modes, connectors, limits, what won't work) are in reference.md, distilled from references/claude-code-routines.md.
Use this whenever:
- Wiring a new recurring trigger (cloud routine, hook, loop, or ritual skill)
- Deciding which cadence mechanism fits a job
- Optimizing or auditing an existing routine
- Closing a Cadence gap surfaced by
/audit
Quick Start: the four cadence mechanisms
| Mechanism | Runs on | Needs machine on? | Needs open session? | Min interval | Best for |
Cloud Routine (/schedule) | Anthropic cloud | No | No | 1 hour | True autonomy — repo-centric work that lands as a reviewable claude/ branch + session |
Hook (.claude/settings.json) | Your machine | Yes (at the event) | A CC session/process must be running (human not required) | event-driven | React to an event (SessionStart, PreToolUse, file write) |
/loop | Your machine | Yes | Yes | 1 min | Polling / babysitting within an active session |
Ritual skill (daily-*/weekly-*) | Your machine | Yes | Yes (you trigger) | manual | A consistent SOP you run by hand; /audit counts it toward Cadence |
Servy reality (from the digest): cloud routines can't reach local MCP, localhost, or your .env, and everything posts as Gera. They shine on work reachable through a GitHub repo (Servy is GerardoRdz96/Servy) or an API. Outlook/Teams/Workday won't ride along until Connectors or Graph exist.
Mode 1: Build a Routine
Step 0 — The Decision Gate (FIRST)
Pick the right mechanism before scoping anything:
- Is the work reachable from a GitHub repo or a plain API, and valuable run unattended? → Cloud Routine (
/schedule). This is the default for real autonomy. - Does it need local files, localhost, or your local MCP servers? → a cloud routine can't do it. Use a hook,
/loop, or a ritual skill locally. - Is it reacting to a local event (session start, a file changed)? → hook.
- Is it polling something during a session you're already in? →
/loop. - Is it really a manual SOP you just want to run consistently? → a ritual skill named
weekly-*/daily-*(no true automation, but/auditcredits it).
State one sentence on the chosen mechanism and why. If cloud-routine is chosen, continue below. (For hook/loop/ritual, hand off to /hooks-builder for hooks, /loop, or /skill-builder for a ritual skill — they carry their own discovery + test discipline.)
Step 1 — Discovery Interview (cloud routine)
Ask with AskUserQuestion, one round at a time, skipping what's already known.
Round 1: Job & cadence
- What exactly should the routine do, start to finish? (One job. If it's two, that's two routines.)
- How often? (cron preset or natural language; min 1 hour. Respect daily caps: Pro 5 / Max 15 / Team 25 / Enterprise 25 runs/day.)
- Also trigger on a GitHub event or API call? (e.g. "weekly AND on every new PR")
Round 2: Repo & scope
- Which repo does it clone? (Default Servy
GerardoRdz96/Servyfor self-running rituals.) Consider a lean dedicated repo if the target'sCLAUDE.mdwould drag in irrelevant context. - What files/dirs is it allowed to touch? What is off-limits?
Round 3: Environment & secrets
- Does it need external APIs or secrets? If yes → those go in cloud env vars at claude.ai (never
.env— the fresh clone has none). The prompt must say "read KEY from the environment, don't look for a.env." - Network mode: Trusted (GitHub + Anthropic + connectors only — the default, fine for repo-only work) or Full (needed for external APIs like Google/ClickUp/YouTube)?
- Setup script needed before each run? (
npm install,pip install.)
Round 4: Output & failure path
- What does success look like, concretely? (e.g. "push to a
claude/audit-YYYY-WWbranch, open a draft PR summarizing the score delta.") - Where does output land? (
claude/branch, a connector post, a notes file committed back as a memory trail.) - What should it do on failure? There are no automatic retries — bake a fallback into the prompt ("if X fails, log it and stop" / "Slack me").
Round 5: Identity & safety
- It runs and posts as you. Confirm any comms/connector actions are OK to carry your name. Default to draft/branch output over auto-posting until trust is established.
Round 6: Confirmation — summarize:
## Routine Summary: [name]
**Mechanism:** Cloud Routine (/schedule)
**Job (one sentence):** [what it does]
**Triggers:** [schedule + any GitHub/API]
**Repo:** [owner/repo] **Touches:** [allowed] / **Off-limits:** [forbidden]
**Environment:** [env vars? network mode? setup script?]
**Output:** [claude/ branch / PR / connector / notes]
**On failure:** [fallback]
**Runs as:** Gera — [comms confirmed Y/N]Proceed only on confirmation.
Step 2 — Write the routine prompt
The prompt IS the routine. Write it as a one-shot the agent can finish without you (per the digest's "Writing good routine prompts"):
- Be specific; name files/dirs; state what success looks like.
- Set boundaries ("only modify X, don't touch Y").
- Include the output format ("push to
claude/..., open a draft PR with a summary"). - Tell it where secrets live ("API key is an env var — use it directly, no
.env"). - Say what to do on failure.
- Put stable rules in the repo's
CLAUDE.md(read automatically on the fresh clone); keep run-specific instructions in the prompt. Don't duplicate.
Step 3 — Environment setup (manual, at claude.ai — flag clearly)
If the routine needs env vars, a network mode change, or a setup script, those are configured in the claude.ai web UI before creating the routine — Servy cannot set these programmatically. Hand Gera the exact list of env-var names and network mode to set, and pause until confirmed. Repo-only routines (e.g. the self-audit) need none of this.
Step 4 — Create + the MANDATORY supervised test
Create the routine via the /schedule skill (the terminal path to Routines). Then, before the schedule is armed:
- "Run now" and watch one execution live.
- Verify it read
CLAUDE.md, stayed in scope, produced the agreed output on theclaude/branch / session. - Test the failure path, not just the happy path.
- Confirm secrets resolved from env vars (if any) and the network mode was sufficient.
This test is a hard gate. Do not arm a recurring schedule until a supervised run passes. (This is the one place routines-builder never skips, even when asked to "just schedule it.")
Step 4b — Safe-failure hardening (after Run-now passes, still before arming)
The Run-now proves the happy path; this step makes every failure a safe failure (Nate's post-deploy hardening ritual, 6h course 2026-07-11). One conversation:
- Enumerate edge cases in plain language — weird inputs, the API being down, empty results, partial data — and design a quick test for each.
- Bake the guardrails into the prompt/spec: on any error the routine notifies or shuts down — it never deletes, never merges, never sends anything externally — and leaves logs of what actually happened.
- Apply the vocabulary before arming: a run that pings Gera and stops is a safe failure; a run that acts anyway is a bad one. Arm only when every enumerated failure lands safe. (Trust rails + the bad-vs-safe-failure vocabulary:
references/deploying-claude-agents.md.)
Conditional eval gate: if the routine has a scoreable input→output (Penny-shaped: classify / extract / score), one good supervised run isn't enough — build a small golden dataset and gate it through /prompt-eval before the first arm and before any model or prompt swap (generalizes Penny's MIN 0.95 rule). Most Servy routines are judgment-shaped digests where a golden dataset doesn't fit; then this note doesn't apply.
Step 5 — Arm the schedule
Once the supervised run passes and the safe-failure hardening is baked in, set the recurring schedule via /schedule. Confirm back to Gera: cadence, repo, next fire time, daily-cap headroom, and how to review/pause it.
Step 6 — Document & register
Add the routine to CLAUDE.md (a "Your routines / cadence" area): name, what it does, cadence, repo, output location. This is also what lets /audit credit the Cadence pillar.
Mode 2: Optimize a Routine
- Burning the daily cap / tokens → widen the interval, narrow the prompt scope, or split into a leaner repo.
- Stops to ask questions → the prompt isn't one-shot; make it self-sufficient with explicit success criteria.
- Fails silently → add a failure fallback ("if X, log and Slack me").
.enverrors → move secrets to cloud env vars; tell the prompt to read them directly.- Blocked outbound calls → switch Trusted → Full (and weigh the exfiltration risk for untrusted inputs).
- Bloated context → trim the repo's
CLAUDE.mdor point at a dedicated lean repo.
Mode 3: Audit Cadence
- At least one real recurring trigger exists (routine / hook / loop / ritual skill)
- Each cloud routine has passed a supervised "Run now"
- Secrets are in cloud env vars, never committed
.env - Network mode is the minimum needed (Trusted unless an external API requires Full)
- Every routine prompt is one-shot with an explicit failure path
- Comms/connector actions that post as Gera were tested before being wired
- Routines push only to
claude/-prefixed branches; bearer tokens not leaked - Each routine is documented in CLAUDE.md so
/auditcan see it
Reference Recipe: Weekly Servy Self-Audit
The canonical first routine (closes the Cadence gap):
- Repo:
GerardoRdz96/ServyCadence: weekly Network: Trusted (repo-only) Env vars: none - Prompt (one-shot): "Run the /audit skill on this repo. Then do decisions-log housekeeping: flag any decision older than 30 days with no follow-up. Write the audit report to
audits/audit-<YYYY-MM-DD>.md. Push to aclaude/weekly-audit-<YYYY-WW>branch and open a draft PR titled 'Weekly audit<date>' summarizing the score and the delta vs the previous audit. If /audit can't run, log why in the PR body and stop. Do not modify any file outsideaudits/." - Output: reviewable
claude/branch + draft PR each week. Nothing merges without Gera.
Important Notes
- Decision gate is not optional — most "schedule this" asks for local work belong to a hook,
/loop, or a ritual skill, not a cloud routine. - The supervised "Run now" test is a hard gate before arming any schedule, even on "just schedule it."
- Everything runs as Gera. Default to draft/branch output; test before wiring any comms connector.
- Secrets → cloud env vars, never
.env. Never commit.envto "solve" a missing-key error. - Cloud routines can't reach local MCP, localhost, or local files — only what's in the repo or an API.
- For the full triggers / environments / network / connectors / limits reference, see reference.md.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

