Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add ArcBlock/agent-skills --skill setup-routinesgit clone --depth 1 https://github.com/ArcBlock/agent-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/arcblock/agent-skills/setup-routines)<a href="https://agentmods.dev/skills/arcblock/agent-skills/setup-routines"><img src="https://agentmods.dev/badge/skills/arcblock/agent-skills/setup-routines/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/arcblock/agent-skills/setup-routines"><img src="https://agentmods.dev/badge/skills/arcblock/agent-skills/setup-routines.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00058 | $0.03716 |
| Opus 5.5 | $0.00023 | $0.01486 |
| Sonnet 5.5 | $0.00012 | $0.00743 |
| Haiku 4.5 | $0.00006 | $0.00372 |
Grade B, and why
setup-routines scanned grade B with 1 finding against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
cat .claude/routines/catalog.json # the contract; stop if absent How it starts
The opening of the file, as written. The whole thing — 266 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Setup Routines — one Q&A pass, a repo's custom routines fully reconciled
Any team member runs /agentloop:setup-routines inside a repo that ships a routine
catalog (.claude/routines/), answers a few all-defaulted questions, and gets:
- Cloud routines (via the RemoteTrigger tool): create-or-update by canonical name, per-runner stagger, per-trigger git sources, prompt rendered from the repo's templates
- Durable local cron jobs (system crontab + dedicated worktree/clone, optional)
- Reconciliation of what already exists: canonical-name matches are updated in place; unknown routines are listed for the human (the API has no delete)
★ Interactive skill — never run unattended. Denied by a
deny-interactive-unattendedhook = you are in an unattended environment → stop and say "/agentloop:setup-routines needs a human present". Do NOT silently apply defaults: registering schedules is a durable outward action.
Scope split:
/agentloop:fleet-setupowns the generic per-repo issue-sweep/pr-sweep loop (driver-based, multi-repo). This skill owns the routines a repo declares in its own catalog — producers, QA sweeps, nightly deploys, GC jobs, anything repo-shaped. Never schedule issue/pr-sweep from here (it would double-fire against the fleet and the templates have long since diverged).
The catalog contract (what the consuming repo provides)
Everything repo-specific lives in the repo, not in this skill:
.claude/routines/
catalog.json # the machine-readable routine list (schema below)
templates/*.md # one prompt template per routine, {{RUNNER}} etc. placeholders
catalog.json schema (all routine fields except name/template/cron optional):
{
"repo": "Owner/repo", // canonical slug, used for trigger sources
"envSetupScript": ["line1", "line2"], // the environment's setup-script lines (printed, see Step 2c)
"identity": { "gitUserName": true }, // Step 2 renders `git config --global user.name <runner>` advice into report
"presenceRegister": "CMD {{RUNNER}} {{ROUTINES}} {{MODEL}} {{LOCAL}}", // optional post-reconcile hook, run from repo root
"routines": [
{
"name": "issue-graph producer hourly", // canonical trigger name — the reconcile key
"template": "templates/producer.md",
"cron": "{{MIN}} * * * *", // {{MIN}} = (minBase + runner offset) % 60
"minBase": 45,
"allowedTools": ["Bash", "Read", "Glob", "Grep"],
"model": "claude-sonnet-5", // default; Step 1 lets the user override
"extraSources": ["Owner/other-repo"], // additional git sources → per-trigger scope (see doctrine below)
"clearMcpConnections": true, // script-only routines don't need inherited MCP connectors
"singleton": true, // team should run exactly one — affects Step 1 default
"singletonProbe": "some read-only shell command", // optional; output shown to inform the default
"defaultOn": false, // Step 1 pre-selection when the runner has no existing trigger
"vars": { "ENV": ["test", "staging"] }, // extra template placeholders; user picks/notes a value in Step 1
"localOnly": false, // true = never a cloud trigger (crontab only), e.g. GC jobs
"local": { // optional local-crontab form of this routine
"command": "bun scripts/foo.ts", // run inside the dedicated checkout; pure-script routines skip `claude -p`
"lockName": "foo.lock"
},
"envPrereqs": ["Network Access: *.example.dev", "env var FOO_BAR (optional)"],
"note": "one per team; shown in Step 1 option description"
}
]
}
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago Changed · +3 lines · -106 tokens per session 4b198a4fafd5
- 3mo ago First seen · 263 lines · 164 tokens per session scan B 6f5ba4fbd3be
setup-routines is a skill published in the GitHub repository ArcBlock/agent-skills (5 stars, last pushed 22d ago), licensed MIT. It adds 58 tokens to every session and 3,716 once invoked, about $0.0002 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
setup-routines compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| setup-routinesArcBlock/agent-skills | Skill | 5 | 22d ago | MIT | B | 58 | Claude Code |
| orbit-notionnexu-io/open-design | Skill | 111k | today | Apache-2.0 | A | 117 | Claude Code, Codex |
| agentmailpaperclipai/paperclip | Skill | 119k | today | MIT | A | 30 | Claude Code, Codex |
| rowboat-spacesrowboatlabs/rowboat | Skill | 18k | today | Apache-2.0 | A | 60 | Claude Code, Codex |
| Cortexdanielmiessler/LifeOS | Skill | 21k | 13d ago | MIT | A | 184 | Claude Code |
| feishuHmbown/CodeWhale | Skill | 41k | 3d ago | MIT | A | 33 | Claude Code, Codex |
| pinchtab-mcppinchtab/pinchtab | Skill | 11k | 7d ago | MIT | A | 52 | Claude Code, Codex |