assertion-synthesizer

assertion-synthesizer is a skill for Claude Code, Codex from ArabelaTso/Skills-4-SE. It costs 87 tokens per session (2,735 once invoked), scanned A, original, Apache-2.0.

A helper that creates test assertions from existing implementation code. An assertion is a check in a test that says what result, error, or state change should be true.

In plain words
What is it for?
Use it with Python, Java, or supported code to generate assertions for outputs, truth conditions, collections, errors, object state, and other behavior revealed by the implementation.
Why use it?
It helps add tests when code has few or no checks written around its behavior. It examines normal cases, boundaries, invalid inputs, exceptions, state changes, collections, and external calls.

Skill for Claude CodeCodex

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

Good fit Use it with Python, Java, or supported code to generate assertions for outputs, truth conditions, collections, errors, object state, and other behavior revealed by the implementation.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/arabelatso/skills-4-se/assertion-synthesizer
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 ArabelaTso/Skills-4-SE --skill assertion-synthesizer
Clone the repo
git clone --depth 1 https://github.com/ArabelaTso/Skills-4-SE

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 assertion-synthesizer

README.md
[![agentmods](https://agentmods.dev/badge/skills/arabelatso/skills-4-se/assertion-synthesizer/github.svg)](https://agentmods.dev/skills/arabelatso/skills-4-se/assertion-synthesizer)
Your own site
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/assertion-synthesizer"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/assertion-synthesizer/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 assertion-synthesizer

Your own site · 80×15
<a href="https://agentmods.dev/skills/arabelatso/skills-4-se/assertion-synthesizer"><img src="https://agentmods.dev/badge/skills/arabelatso/skills-4-se/assertion-synthesizer.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 87 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,735 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00087 $0.02735
Opus 5.5 $0.00035 $0.01094
Sonnet 5.5 $0.00017 $0.00547
Haiku 4.5 $0.00009 $0.00274

Measured 3mo ago against content hash 4de8311f8770, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

assertion-synthesizer 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 3mo 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.

skills/assertion-synthesizer/SKILL.md · 443 lines

How it starts

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

Assertion Synthesizer

Generate comprehensive test assertions by analyzing code implementation, behavior, and expected outputs.

Workflow

1. Analyze Code

Read and understand the implementation to identify testable behavior:

  • Function signatures: Parameters, return types, side effects
  • Logic paths: Conditionals, loops, branching behavior
  • Edge cases: Boundary conditions, null/empty inputs, error conditions
  • State changes: Object mutations, attribute modifications
  • Dependencies: External calls, database operations, I/O

2. Identify Test Scenarios

Extract scenarios that need assertions:

  • Happy path: Normal inputs producing expected outputs
  • Edge cases: Empty lists, zero values, boundary conditions
  • Error cases: Invalid inputs, exceptions, error handling
  • State verification: Object state before/after operations
  • Collection assertions: List contents, ordering, membership

3. Generate Assertions

Create appropriate assertions for each scenario:

Assertion Types:

  • Equality: assert result == expected, assertEquals(expected, actual)
  • Truthiness: assert is_valid, assertTrue(condition)
  • Collections: assert item in list, assertContains(list, item)
  • Exceptions: pytest.raises(Exception), assertThrows(Exception)
  • State: assert obj.status == "active", assertEquals("active", obj.getStatus())

4. Structure Tests

Organize assertions into well-structured test functions:

  • Use descriptive test names
  • Follow Arrange-Act-Assert pattern
  • Group related assertions
  • Add explanatory comments

5. Verify Coverage

Ensure all important behaviors have assertions:

  • Check all return values are tested
  • Verify edge cases are covered
  • Confirm error conditions are tested
  • Validate state changes are asserted

Language-Specific Patterns

Python (pytest)

def test_basic_equality():
    # Arrange
    calculator = Calculator()

    # Act
    result = calculator.add(2, 3)

    # Assert
    assert result == 5

def test_collection_membership():
    items = get_active_items()
    assert "item1" in items
    assert len(items) == 3

def test_exception_handling():
    with pytest.raises(ValueError, match="Invalid input"):
        process_data(None)

def test_state_change():
    user = User("Alice")
    user.activate()
    assert user.is_active == True
    assert user.status == "active"

Read the full file on GitHub · 443 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. 3mo ago First seen · 443 lines · 87 tokens per session scan A 4de8311f8770

Subscribe to this mod's changes

assertion-synthesizer is a skill published in the GitHub repository ArabelaTso/Skills-4-SE (262 stars, last pushed 3mo ago), licensed Apache-2.0. It adds 87 tokens to every session and 2,735 once invoked, about $0.0003 per session on Opus 5.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.

Related

assertion-synthesizer compared with skills from other repositories

assertion-synthesizer next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
assertion-synthesizerArabelaTso/Skills-4-SESkill2623mo agoApache-2.0A87Claude Code, Codex
skill-code-qualitysaitarrun/Sdlc-ai-workflowSkill82mo agononeA34Claude Code
skill-pr-reviewsaitarrun/Sdlc-ai-workflowSkill82mo agononeA65Claude Code
teachsaitarrun/Sdlc-ai-workflowSkill82mo agononeA15Claude Code
improve-codebase-architecturesaitarrun/Sdlc-ai-workflowSkill82mo agononeA68Claude Code
skill-developer-relationssaitarrun/Sdlc-ai-workflowSkill82mo agononeA46Claude Code
diagnosesaitarrun/Sdlc-ai-workflowSkill82mo agononeA66Claude Code