edge-case-generation

edge-case-generation is a skill for Claude Code, Codex from vladkesler/initrunner. It costs 25 tokens per session (622 once invoked), scanned A, original, Apache-2.0.

A testing guide for finding edge cases such as boundary values, empty or missing inputs, wrong data types, unusual text, and special numeric values.

In plain words
What is it for?
Use it when writing tests for a function or module. It suggests concrete cases for numbers, strings, collections, optional values, Unicode, and invalid types.
Why use it?
It reduces the chance that tests cover only normal inputs while missing failures caused by limits, nulls, type mismatches, or unusual characters.

Skill for Claude CodeCodex

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

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/vladkesler/initrunner/edge-case-generation
Any agent
npx skills add vladkesler/initrunner --skill edge-case-generation
Clone the repo
git clone --depth 1 https://github.com/vladkesler/initrunner

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 edge-case-generation

README.md
[![agentmods](https://agentmods.dev/badge/skills/vladkesler/initrunner/edge-case-generation.svg)](https://agentmods.dev/skills/vladkesler/initrunner/edge-case-generation)
Your own site
<a href="https://agentmods.dev/skills/vladkesler/initrunner/edge-case-generation"><img src="https://agentmods.dev/badge/skills/vladkesler/initrunner/edge-case-generation.svg" alt="Measured on agentmods" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 622 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.1 $0.00025 $0.00622
Opus 5 $0.00013 $0.00311
Sonnet 5 $0.00005 $0.00124
Haiku 4.5 $0.00003 $0.00062

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

Security

Grade A, and why

edge-case-generation 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 6d 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.

examples/roles/unit-tester/skills/edge-case-generation/SKILL.md · 82 lines

How it starts

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

Systematic edge-case generation for thorough test coverage.

When to activate

Use this skill when generating tests for any function or module -- always consider edge cases alongside the happy path.

Boundary values

  • Min and max integers (0, -1, sys.maxsize, Number.MAX_SAFE_INTEGER).
  • Empty string "", single-character string "a", very long strings.
  • Empty collections: [], {}, set().
  • Zero, negative numbers, very large numbers.
  • Single-element collections -- many off-by-one bugs surface here.
  • Boundary of valid ranges: if a function accepts 1--100, test 0, 1, 100, and 101.

Null/None inputs

  • None (Python) or null/undefined (JavaScript) for every parameter that could receive them.
  • Missing dictionary or object keys.
  • null values inside JSON payloads.
  • Optional parameters omitted vs explicitly set to None/null.

Type edge cases

  • Wrong types passed to loosely-typed functions (string where int expected).
  • Unicode strings with emoji, RTL characters, zero-width joiners.
  • Special characters: newlines, tabs, null bytes, path separators.
  • NaN, Infinity, -Infinity for numeric inputs.
  • Very long strings (10k+ characters) to surface truncation or memory bugs.

Error paths

  • Invalid arguments that should raise/throw.
  • File not found, permission denied, directory instead of file.
  • Network timeout, connection refused, DNS resolution failure.
  • Malformed input: invalid JSON, broken XML, truncated data.
  • Division by zero, integer overflow.

Concurrency

  • Race conditions when two calls happen simultaneously (if applicable).
  • Concurrent reads and writes to shared state.
  • Reentrant calls -- calling a function while it is already executing.

Methodology

For each function parameter:

  1. List the valid range.
  2. Test the first valid value, the last valid value, and one value just outside each boundary.

For each branch in the function:

  1. Ensure at least one test exercises that branch.

For each exception or error the function can raise:

  1. Write a test that triggers it and verifies both the type and the message.

Read the full file on GitHub · 82 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. 6d ago First seen · 82 lines · 25 tokens per session scan A 8ec6b51e9ae4

Subscribe to this mod's changes

edge-case-generation is a skill published in the GitHub repository vladkesler/initrunner (41 stars, last pushed 5d ago), licensed Apache-2.0. It adds 25 tokens to every session and 622 once invoked, about $0.0001 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-30.