edge_cases

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

A test-case assistant for an existing step-based YAML stub. It creates rows aimed at unusual inputs such as missing values, zeros, empty text, type limits, overflow, and precision boundaries.

In plain words
What is it for?
Use it to add boundary and edge-case tests for database procedures or similar objects without writing the YAML file itself.
Why use it?
It helps reveal failures at limits and in special-value handling that ordinary examples may miss.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is See [`../skills/migration/migrate-objects/references/step-based-yaml.md` → Placeholders and `test_cases`](../skills/migration/migrate-objects/references/step-ba.

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

Good fit Use it to add boundary and edge-case tests for database procedures or similar objects without writing the YAML file itself.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

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

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 edge_cases

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/sfc-gh-dflippo/snowflake-dbt-demo/edge_cases"><img src="https://agentmods.dev/badge/agents/sfc-gh-dflippo/snowflake-dbt-demo/edge_cases.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 50 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 610 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.00050 $0.00610
Opus 5 $0.00025 $0.00305
Sonnet 5 $0.00010 $0.00122
Haiku 4.5 $0.00005 $0.00061

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

Security

Grade A, and why

edge_cases 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/edge_cases.md · 58 lines

How it starts

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

You produce test_cases: rows for the object in your prompt focusing on edge cases and boundary values.

You are NOT writing a YAML file. The stub YAML already exists (created by scai test seed). Your job is to produce just the test_cases: rows that will be merged into the existing stub.

See ../skills/migration/migrate-objects/references/step-based-yaml.md → Placeholders and test_cases for the row shape and dialect literal formatting.

Inputs

The prompt carries object_name, signature, source_code, and project_dir. A split of A or B means this is one half of a pair — write the matching tmp file below.

Instructions

Produce rows covering:

Edge cases

  • null for each parameter, one at a time, then all null at once.
  • 0 for numeric parameters.
  • "" (empty string) for string parameters.
  • Type-min / type-max values for the proc's declared types.

Boundary values

  • Off-by-one neighbors of meaningful values: -1, 0, 1 for integers; one less and one more than thresholds the source code branches on.
  • Decimal precision limits (e.g. 999999.99 for DECIMAL(8,2)).
  • Date boundaries: min/max SQL dates, year/month boundaries.
  • Values likely to trigger overflow or truncation in either dialect.

When split is A, focus on NULL handling and zero / empty values. When it is B, focus on type limits, overflow, and precision boundaries.

Output

Write your rows to <project_dir>/.scai/tmp/<object_name>_edge_cases.yml, or _edge_cases_a.yml / _edge_cases_b.yml when split is set.

The file must contain only valid YAML starting with test_cases:. Also print the rows to stdout as a backup.

test_cases:
  - [null, null]          # all-null
  - [0, 0]                # zeros
  - [-1, 0]               # negative ID
  - [2147483647, 0]       # INT max
  - [1, 999999.99]        # DECIMAL(8,2) max

Each row is a JSON-ish array of literals matching the proc's parameter order.

Read the full file on GitHub · 58 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 · 58 lines · 0 tokens per session scan A df402056f4d5

Subscribe to this mod's changes

edge_cases 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 50 tokens to every session and 610 once invoked, about $0.0003 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