task-invalidate

task-invalidate is an agent for Claude Code from sfc-gh-dflippo/snowflake-dbt-demo. It costs 41 tokens per session (950 once invoked), scanned A, original, Apache-2.0.

A workflow agent that reopens a specific code unit at a named migration task by recording a resume marker. A code unit is one tracked database object, such as a procedure or view.

In plain words
What is it for?
It helps resume selected objects at tasks such as validation or test execution, while checking that the task belongs to the object's migration workflow.
Why use it?
Migration work can stop at the wrong point or need to be repeated after a diagnosis. This agent reopens only the requested object and task without changing source files or running the migration itself.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: mentions subagents.

Part of the snowflake-migration plugin — 72 skills, 7 agents shipped together

Good fit It helps resume selected objects at tasks such as validation or test execution, while checking that the task belongs to the object's migration workflow.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/sfc-gh-dflippo/snowflake-dbt-demo/task-invalidate
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.

Clone the repo
git clone --depth 1 https://github.com/sfc-gh-dflippo/snowflake-dbt-demo

Made for: Claude Code.

Or install snowflake-migration, the plugin that ships this one along with the rest of its 72 skills, 7 agents.

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 task-invalidate

README.md
[![agentmods](https://agentmods.dev/badge/agents/sfc-gh-dflippo/snowflake-dbt-demo/task-invalidate/github.svg)](https://agentmods.dev/agents/sfc-gh-dflippo/snowflake-dbt-demo/task-invalidate)
Your own site
<a href="https://agentmods.dev/agents/sfc-gh-dflippo/snowflake-dbt-demo/task-invalidate"><img src="https://agentmods.dev/badge/agents/sfc-gh-dflippo/snowflake-dbt-demo/task-invalidate/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.

agentmods 80×15 button for task-invalidate

Your own site · 80×15
<a href="https://agentmods.dev/agents/sfc-gh-dflippo/snowflake-dbt-demo/task-invalidate"><img src="https://agentmods.dev/badge/agents/sfc-gh-dflippo/snowflake-dbt-demo/task-invalidate.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 41 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 950 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.00041 $0.00950
Opus 5 $0.00020 $0.00475
Sonnet 5 $0.00008 $0.00190
Haiku 4.5 $0.00004 $0.00095

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

Security

Grade A, and why

task-invalidate 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 2d 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.

.claude/skills/snowflake-migration/agents/task-invalidate.md · 100 lines

How it starts

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

You reopen one or more in-scope code units at a named resume task, in one turn. The prompt carries codeUnitIds, task (the resume point), reason, the waiter's objectId / verification task when the walker also needs its tests re-run, and projectDir. That context is the walker's diagnosis. It is not a write. You decide the where and task from the registry and the walk.

1. Attach

configure(project_dir="<projectDir>")

Pass nothing else — attach only, no dashboard or session rewrite. Cortex stamps your identity. Do not pass agent_id. Do not begin. Do not edit any file. Do not run SQL that changes a code unit.

2. Read

For each codeUnitId (and the waiter, if named):

query_registry(where="id = '<codeUnitId>'", fields="id,source,dependencies,inScope,extensions")
migration_status(mode="next_task", object_ids=["<codeUnitId>"])

Hold source.objectType, dependsOn / requiredBy, and whether isDone is set. The resume task must be a node on that type's walk (validateView on a view, runTests on a procedure — not the other way around).

3. Decide

You exist so a walker cannot stamp another code unit's walk. Invalidate when:

What you found Do
The defect is on this in-scope code unit, and task is the first stale step invalidate at that task
The waiter also needs its verification re-run (runTests / validateView) invalidate the waiter at that verification task too
The named id is out of scope, missing, or task is not on its walk reject that id — do not write
Someone is actively walking the target as their own code unit and it is not the waiter reject — do not stomp a live walk

Do not pick an earlier resume than the diagnosis needs. Reopening a view at validateView leaves deploy completed. Reopening a procedure at runTests does not recapture baselines.

4. Act

One call per code unit:

transition_status(status="invalidate", task="<resume>",
                  reason="<why this walk is stale, from the SQL you read>",
                  where="id = '<codeUnitId>'")

Read the full file on GitHub · 100 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. 2d ago First seen · 100 lines · 0 tokens per session scan A b5eed9053d6c

Subscribe to this mod's changes

task-invalidate is an agent published in the GitHub repository sfc-gh-dflippo/snowflake-dbt-demo (33 stars, last pushed 3d ago), licensed Apache-2.0. It adds 41 tokens to every session and 950 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-10.

Related

Other agents, from other repositories

project-implementer

Implementation specialist - executes tasks from plans with TDD methodology, writes tests, and validates acceptance criteria. Use for executing phased implementation plans generated by attune:plan.

athola/claude-night-market · 38 tokens

scrum-master

Scrum Master agent (Bob) — generates story files from Epic Manifest rows and the delivery file.

LuisFelipeMoro/Harness-devkit · 24 tokens

onboard-guide

Onboarding assistant that provides ongoing personalized guidance after initial /onboard. Use for questions about conventions, architecture, patterns, or "where do I put this?" — answers are tailored to the engineer's background.

smicolon/ai-kit · 46 tokens

jira-analyst

Read full Jira ticket context (description, comments, attachments, links, media) and produce structured analysis suitable for posting back as a Jira comment. Read-only via the jira-as CLI wrapper. Routed by mk:jira-analyst skill. NOT for complexity scoring (jira-evaluator); NOT for story-point estimation…

ngocsangyem/MeowKit · 72 tokens

pm-advisor

You are pm-advisor — great-pm's external-perspective product advisor. You are NOT a process reviewer. You are the seasoned operator the founder pulls aside and says: "Be honest — what do you actually think of this?".

VandanaAjayDubey111/great-pm · 123 tokens

goals-onboarding

Use this agent to set up the OKR/goals system for a new company or project. Guides the user through defining annual objectives, key results, team quarterly OKRs, initiatives, tasks, support functions, and org chart. Generates YAML files following the workspace goals schema. Examples: Context: User wants to set up…

41fred/ace-level1 · 206 tokens