routine

routine is a skill for Claude Code, Codex from masa-san-jp/Agent-Aiko. It costs 103 tokens per session (1,376 once invoked), scanned A, original, MIT.

A command for checking and manually running recurring tasks recorded in a repository. It can show task status, run maintenance agents, or start organization-specific jobs such as data collection and report generation.

In plain words
What is it for?
Use it to inspect recurring-task status, run review or cleanup agents, or manually start a repository-specific pipeline.
Why use it?
It gives developers one place to see when recurring work last ran and whether anything is waiting. It also lets them run a scheduled task immediately instead of waiting for its normal time.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to inspect recurring-task status, run review or cleanup agents, or manually start a repository-specific pipeline.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/masa-san-jp/agent-aiko/routine
Install

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.

Any agent
npx skills add masa-san-jp/Agent-Aiko --skill routine
Clone the repo
git clone --depth 1 https://github.com/masa-san-jp/Agent-Aiko

Made for: Claude Code, Codex.

Wrote 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.

agentmods badge for routine

README.md
[![agentmods](https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/routine.svg)](https://agentmods.dev/skills/masa-san-jp/agent-aiko/routine)
Your own site
<a href="https://agentmods.dev/skills/masa-san-jp/agent-aiko/routine"><img src="https://agentmods.dev/badge/skills/masa-san-jp/agent-aiko/routine.svg" alt="Measured on agentmods" height="20"></a>
Per session 103 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,376 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00103 $0.01376
Opus 5 $0.00051 $0.00688
Sonnet 5 $0.00021 $0.00275
Haiku 4.5 $0.00010 $0.00138

Measured 8d ago against content hash ce429f01c41a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

routine scanned grade A with 0 findings 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 8d 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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

reference/skills/routine/SKILL.md · 85 lines

How it starts

The opening of the file, as written. The whole thing — 85 lines — stays where its author put it; the contents beside it link to each section on GitHub.

/routine

リポジトリに記録された定期実行タスクを手動で確認・実行する入口の参考実装。パス・名称は各組織の構成に合わせて調整して使う。

対象は 2 種類:

  1. メタエージェント — このパッケージの meta / run-meta-pending と同じ仕組み(reviewer / scout / lab / janitor 等)
  2. 組織固有の定期ジョブ — 各組織が用意する任意のパイプライン(データ収集・レポート生成・外部同期など)。ジョブ名・mode は自分の実装に置き換える

引数

コマンド 何をするか 外部への影響
/routine / /routine status メタエージェントの最終実行時刻と、登録済み定期ジョブの状態を表示 読み取りのみ
/routine meta <role> メタエージェント(reviewer / scout / lab / janitor / all)を手動実行 ログと last-run を更新
/routine <job> [mode] 組織固有の定期ジョブを手動実行(<job> は自分で定義) ジョブ次第(下記の注意参照)

引数なしの /routine/routine status と同じ。第 1 引数の statusmeta予約語なので、<job> 名には使えない(衝突を避けるため別名を付ける)。

/routine status

メタエージェントと登録済み定期ジョブの状態を確認する。

# メタエージェントの last-run / pending(自環境のメタ構成に合わせる)
for role in reviewer scout lab janitor; do
  last="{{ORG_REPO_PATH}}/Agent-team/logs/reviews/.last-run-$role"
  pending="{{ORG_REPO_PATH}}/Agent-team/logs/reviews/.pending/$role"
  if [ -f "$last" ]; then
    ts=$(cat "$last" 2>/dev/null)
    last_str=$(date -r "$ts" '+%Y-%m-%d %H:%M' 2>/dev/null || echo "$ts")
  else
    last_str="未起動"
  fi
  [ -f "$pending" ] && pend=" (pending)" || pend=""
  echo "$role: $last_str$pend"
done

# 組織固有ジョブの状態(例。自分のジョブの status コマンドに置き換える)
# cd "{{ORG_REPO_PATH}}/Agent-team/tools/<job>" && python3 run.py status

必要に応じて <tasks-file>(例:tasks.json)のうち定期実行由来の項目も確認する。

/routine meta <role|all>

メタエージェントを手動起動する。rolereviewer / scout / lab / janitor / all。手順は /meta と同じ。完了後は必ず last-run を更新し pending を消す:

date +%s > "{{ORG_REPO_PATH}}/Agent-team/logs/reviews/.last-run-<role>"
rm -f "{{ORG_REPO_PATH}}/Agent-team/logs/reviews/.pending/<role>"

/routine <job> [mode] — 組織固有の定期ジョブ

各組織が用意した定期ジョブを手動で叩く汎用パターン。ジョブは {{ORG_REPO_PATH}}/Agent-team/tools/<job>/ 配下に置き、run.py <mode> などのエントリで実行する想定。

cd "{{ORG_REPO_PATH}}/Agent-team/tools/<job>"
python3 run.py <mode>       # 例:status / collect / build / sync / all など、ジョブが定義する mode

Read the full file on GitHub · 85 lines

Changes

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.

  1. 8d ago First seen · 85 lines · 103 tokens per session scan A ce429f01c41a

Subscribe to this mod's changes

routine is a skill published in the GitHub repository masa-san-jp/Agent-Aiko (3 stars, last pushed 1mo ago), licensed MIT. It adds 103 tokens to every session and 1,376 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.