scheduled-agent-design
Skill15 starsChanged 7 days agoMITView on GitHub
Use when creating, changing or reviewing a Claude Code routine (a scheduled or event-triggered cloud agent) for this repository, its prompt, schedule, model, environment or connectors, a skill a routine runs, or a file in `.agents/routines/`.
- Commits and pushes
4 other projects use a version of this.
Adopted by
Most recently taken up by
- dominik1001/carddav-mcpword for word, first seen Nov 29, 2026
- dominik1001/imap-mcpword for word, first seen Nov 29, 2026
- dominik1001/caldav-mcpword for word, first seen Nov 29, 2026
- langmail/caldav-mcpword for word, first seen Nov 29, 2026
Other versions4 projects use a version of this.
Word for word · 4
- dominik1001/caldav-mcp★ 116100% same
- langmail/caldav-mcp★ 116100% same
- dominik1001/imap-mcp★ 15100% same
- dominik1001/carddav-mcp★ 2100% same
Edited · 0
None found.
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 repository13 other files it gives its agents.
- AGENTS.mdAGENTS.md
- decideSkill
- deliverSkill
- grillingSkill
- grill-meSkill
- handover-promptSkill
- improve-contextSkill
- mcp-tool-designSkill
- resolve-conflictsSkill
- review-agents-mdSkill
- scion-like-gitSkill
- triageSkill
- upgrade-dependencySkill
The file
Files
Scheduled agent design
A Claude Code routine (a cloud scheduled or event-triggered task) runs a skill from its repository, so what it does is versioned and reviewed like code.
- The prompt only points at files:
Read WORKFLOW.md, then .agents/skills/<name>/SKILL.md, and follow them.The run checks out the repository before the agent starts, but a cloud session does not expand the@WORKFLOW.mdimport inAGENTS.md, so the prompt names it, unless a SessionStart hook of the repository prints it. Say "read the file", not "use the skill", so the run never depends on the model choosing to invoke it. - The skill holds everything else: the logic, the limits on what it may write, how an event narrows the run, and notes for the cloud environment. Wording that lives only in the routine's prompt drifts unseen. The skill says what it does, never when its routine runs.
.agents/routines/<routine>.ymlrecords each routine of the repository: its id, name, prompt, repository, sources, environment, model, schedule, triggers, tools, connectors, auto-fix and notifications, in the API's own terms where it has one. They are set in claude.ai, and the file mirrors them: change both together, and when you create a routine, add the file. Read the values back withRemoteTrigger get. It does not return GitHub event triggers, so write those down from the routine's page. Small drift between the file and claude.ai is acceptable, and nothing checks it. The file may be public: it never holds a token or a secret.- The name starts with the repository:
<owner>/<name>: <what it does>, such asocto/app: Issue triage. The routine list in claude.ai holds routines for every repository, and the name is what tells them apart. - Only this repository's routines: a request to create, change or review routines covers the ones whose repository is this one. Leave routines for other repositories alone unless the maintainer names them.
- A public repository's routines read text written by strangers, so they get no connectors, an environment without production secrets, and their own repository as the only source.
- A change only to
.agents/routines/goes straight tomainin the maintainer's interactive Claude Code CLI (CLAUDE_CODE_ENTRYPOINTiscliandCLAUDE_CODE_REMOTEis unset). Once the change is live in claude.ai (read it back withRemoteTrigger get, or from the routine's page for a GitHub event trigger), the files only record it, so they skip the review and pull request inWORKFLOW.md. Commit them on their own, push withgit push origin <branch>:main, and finish clean asscion-like-gitsays. Where the repository's rules refuse a direct push, take the usual pull request. Anywhere else, and for a change that also touches a skill or anything else, take the usual pull request. - Cloud sessions have no GitHub GraphQL. A routine's session refuses it
with
HTTP 403: GitHub GraphQL is not available from Claude Code sessions, sogh issue,gh prandgh searchfail, and the GitHub MCPsearch_*tools are absent.gh apion REST endpoints works, search included (gh api -X GET search/issues -f q='…'). A skill a routine reads therefore writes each GitHub step as the exactgh apicall that does it, at the step. The same calls work in a local CLI. - Auto-fix pull requests is on for every routine of a private
repository: Claude watches CI and review comments on the PRs a routine
opens and pushes fixes. Those fixes follow the PR review loop in
WORKFLOW.md, its limits included. Turn it on when you create a routine (autofix_on_pr_createin the API). In a public repository anyone can comment on those PRs, so it stays off there.
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.

