routine

routine is a skill for Claude Code, Codex from Snowflake-Labs/cocoplus. It costs 44 tokens per session (844 once invoked), scanned A, original, MIT.

A command for managing scheduled Snowflake tasks, which run database work automatically on a timetable.

In plain words
What is it for?
Use it to list, schedule, disable, or delete Snowflake routines when scheduling is enabled for the project.
Why use it?
It helps keep recurring data jobs organized while respecting project settings and approval rules.

Skill for Claude CodeCodex

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.

agentmods
npx agentmods add skills/snowflake-labs/cocoplus/routine
Any agent
npx skills add Snowflake-Labs/cocoplus --skill routine
Clone the repo
git clone --depth 1 https://github.com/Snowflake-Labs/cocoplus

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/snowflake-labs/cocoplus/routine.svg)](https://agentmods.dev/skills/snowflake-labs/cocoplus/routine)
Your own site
<a href="https://agentmods.dev/skills/snowflake-labs/cocoplus/routine"><img src="https://agentmods.dev/badge/skills/snowflake-labs/cocoplus/routine.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 844 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00044 $0.00844
Opus 5 $0.00022 $0.00422
Sonnet 5 $0.00009 $0.00169
Haiku 4.5 $0.00004 $0.00084

Measured yesterday against content hash 87e0c1139325, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 yesterday.

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.

.cortex/skills/cocoroutine/routine.skill.md · 92 lines

How it starts

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

Use this skill for $routine commands.

Guardrails

  • CocoRoutine is opt-in. Read cocoplus.toml [routine] before scheduling.
  • If [routine] enabled = false, report that routines are disabled and stop.
  • If [routine] allow_snowflake_tasks = false, list/status operations are allowed, but scheduling must stop before generating or executing TASK SQL.
  • Routines must not reference local filesystem paths, local MCPs, local environment variables, or developer-specific state.
  • CocoPilot may offer scheduling after a successful flow, but it must never auto-schedule.
  • Any TASK creation, alteration, or deletion still runs through Safety Gate, RBAC escalation guard, retained proposal rules, and normal Snowflake confirmation behavior.

State

Routines are tracked locally in .cocoplus/routines/registry.json:

{
  "version": 1,
  "routines": [
    {
      "name": "daily_health_check",
      "flow_id": "flow-health",
      "cadence": "daily",
      "snowflake_task": "COCOPLUS_DAILY_HEALTH_CHECK",
      "status": "active",
      "last_run": null,
      "next_run": null,
      "created_at": "..."
    }
  ]
}

Commands

$routine list

  1. Verify .cocoplus/ exists.
  2. Read .cocoplus/routines/registry.json; if absent, show No scheduled routines.
  3. Display routine name, cadence, status, last run, next run, and Snowflake task name.

$routine schedule <flow> --cadence <cadence>

  1. Verify [routine] enabled = true and [routine] allow_snowflake_tasks = true.
  2. Load the completed flow definition and confirm all required inputs are self-contained.
  3. Reject flows that reference local paths, local MCPs, local-only credentials, or unsatisfied project-relative files.
  4. Generate a Snowflake TASK proposal under .cocoplus/proposals/routine/<timestamp>/.
  5. If the project uses retained proposals, stop and instruct the developer to settle with $flow settle.
  6. Otherwise, ask for explicit confirmation before executing TASK SQL.
  7. Update .cocoplus/routines/registry.json only after the Snowflake operation succeeds.

Read the full file on GitHub · 92 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. yesterday First seen · 92 lines · 44 tokens per session scan A 87e0c1139325

Subscribe to this mod's changes

routine is a skill published in the GitHub repository Snowflake-Labs/cocoplus (720 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 844 once invoked, about $0.0002 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-09-03.

Related

Other skills, from other repositories

capacity-and-cost-engineering

Model technical capacity, unit cost, and budget constraints connected to demand, performance, and reliability decisions. Use when projecting capacity from growth forecasts, sizing for peak events, designing cost-aware scaling policies, defining budget thresholds or quota/rate-limit enforcement, running or planning…

magnus919/agent-skills · 168 tokens

jira

Interact with Atlassian Jira from the terminal: search issues with JQL, view details, create issues, add comments, count matches with fast approximate-count, list projects, discover valid transitions, and change status. Includes a full JQL language reference (functions, operators, history predicates, date expressions…

magnus919/agent-skills · 144 tokens

cncf-landscape

Use this skill when discovering and comparing cloud-native technologies from the CNCF Landscape for an architecture or engineering decision. Query the live public Landscape API, filter candidates by capability, category, maturity, license, and repository signals, then produce an evidence-backed shortlist with…

magnus919/agent-skills · 90 tokens

grafana

Operate, configure, provision, secure, and troubleshoot Grafana OSS, Enterprise, and Cloud, including dashboards, folders, data sources, annotations, alert rules, contact points, notification policies, silences, mute timings, service accounts, RBAC, plugins, APIs, and as-code workflows. Use for Grafana product work…

magnus919/agent-skills · 127 tokens

kubernetes

Operate, troubleshoot, secure, upgrade, and automate Kubernetes clusters and workloads safely across upstream Kubernetes, k3s, RKE2, MicroK8s, k0s, Talos, OpenShift/OKD, kind, Minikube, Rancher-managed clusters, EKS, AKS, and GKE. Use when a task involves kubectl, Kubernetes APIs, Pods, Deployments, StatefulSets…

magnus919/agent-skills · 141 tokens

linear

Manage Linear teams, projects, cycles, issues, comments, workflow state, and documents from a terminal through Linear's public GraphQL API. Use when a user asks to list, search, inspect, create, update, move, or comment on Linear work, or to find Linear documents. Do not use to embed a live agent inside Linear or to…

magnus919/agent-skills · 77 tokens