construct-toy-examples

construct-toy-examples is a skill for Claude Code, Codex from frenzymath/Danus. It costs 57 tokens per session (465 once invoked), scanned A, original, Apache-2.0.

A reasoning aid that creates small, simple examples satisfying both the assumptions and conclusion of a theorem or subgoal. It is intended to build intuition about why the statement works.

In plain words
What is it for?
Use it when stuck on a theorem or proof step to study simple cases, verify the conclusion, and identify patterns.
Why use it?
It makes difficult abstract reasoning easier to inspect by reducing it to familiar or low-dimensional cases. The examples can show where each assumption matters and suggest reusable proof ideas.

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/frenzymath/danus/construct-toy-examples
Any agent
npx skills add frenzymath/Danus --skill construct-toy-examples
Clone the repo
git clone --depth 1 https://github.com/frenzymath/Danus

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 construct-toy-examples

README.md
[![agentmods](https://agentmods.dev/badge/skills/frenzymath/danus/construct-toy-examples.svg)](https://agentmods.dev/skills/frenzymath/danus/construct-toy-examples)
Your own site
<a href="https://agentmods.dev/skills/frenzymath/danus/construct-toy-examples"><img src="https://agentmods.dev/badge/skills/frenzymath/danus/construct-toy-examples.svg" alt="Measured on agentmods" height="20"></a>
Per session 57 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 465 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.00057 $0.00465
Opus 5 $0.00028 $0.00233
Sonnet 5 $0.00011 $0.00093
Haiku 4.5 $0.00006 $0.00047

Measured 5d ago against content hash 36bd2f2f392a, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

construct-toy-examples 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 5d 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.

agents/skills/worker/construct-toy-examples/SKILL.md · 60 lines

What it actually says

Construct Toy Examples

Use this skill when the agent is stuck in reasoning and needs simpler examples that satisfy both the assumptions and the conclusion in order to understand why the statement works.

Input Contract

Read:

  • current statement/subgoal
  • relevant immediate_conclusions
  • relevant counterexamples and failed branch notes
  • relevant background/results when available

Procedure

  1. Construct simpler cases (low degree, small dimension, special forms, canonical objects).
  2. Ensure the toy example satisfies all assumptions of the target statement or subgoal.
  3. Check that the conclusion also holds in the toy example.
  4. Study where each assumption takes effect and what mechanism makes the conclusion true.
  5. Identify repeated patterns, invariants, or proof ideas suggested by the example.
  6. Use search/reasoning/decomposition as needed to find examples or simplify the situation.

Output Contract

Publish each toy example to global memory with gm_add (kind example): claim = what the example shows, evidence = the construction, plus these fields:

{
  "example": "...",
  "why_relevant": "...",
  "assumptions_satisfied": ["..."],
  "conclusion_verified": true,
  "where_assumptions_take_effect": "...",
  "observed_pattern": "...",
  "supports_branch_ids": ["optional"],
  "subgoal_id": "optional"
}

Tools

  • gm_add (publish the example finding)
  • gm_search (recall related findings)
  • search_arxiv_theorems for matching examples/known motifs
  • Codex built-in web search for known example families and standard constructions
  • use $search-math-results when broader retrieval is needed

Failure Logging

If generated examples are inconclusive, append an events record:

  • event_type="toy_examples_inconclusive"
  • include attempted example families
Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 5d ago First seen · 60 lines · 57 tokens per session scan A 36bd2f2f392a

Subscribe to this mod's changes

construct-toy-examples is a skill published in the GitHub repository frenzymath/Danus (387 stars, last pushed 8d ago), licensed Apache-2.0. It adds 57 tokens to every session and 465 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-08-30.

Related

Other skills, from other repositories

jupyter-notebook

Iterative Python via live Jupyter kernel (hamelnb).

NousResearch/hermes-agent · 18 tokens

paper-revision-author

Revise independently drafted paper sections into one coherent LaTeX body before the abstract is written.

opensquilla/opensquilla · 24 tokens

batch-processing-clinical-text

Run large-scale batch NER, PII extraction, or de-identification over many clinical notes on-device with OpenMed, with sharding, checkpointing, resumability, and append-only JSONL output. Use when the user needs to process a corpus or folder of notes, de-identify a dataset, run NER over thousands of documents, build a…

maziyarpanahi/openmed · 161 tokens

coding-hcc-risk-adjustment

Maps chronic conditions extracted by OpenMed to CMS-HCC V28 risk-adjustment categories and estimates a RAF (Risk Adjustment Factor) score as decision support. Use when the user wants to surface risk-adjustable diagnoses from notes, map ICD-10-CM codes to HCC categories, estimate or reconcile a patient/panel RAF, find…

maziyarpanahi/openmed · 200 tokens

coding-icd10

Suggests candidate ICD-10-CM diagnosis codes (and ICD-10-PCS procedure codes) for diagnoses and procedures extracted by OpenMed, with rationale and a human-coder caveat. Use when the user wants to code a problem list, map a diagnosis span to a billable ICD-10-CM code, route a finding to the right chapter, cross-walk…

maziyarpanahi/openmed · 209 tokens

detecting-pv-signals

Computes disproportionality signals — PRR, ROR, EBGM, and IC (BCPNN) — over FAERS / OpenFDA drug-event data to flag potential safety signals. Use when the user wants to mine spontaneous-report data for drug-reaction associations, build a 2x2 contingency table, compute a Proportional Reporting Ratio or Reporting Odds…

maziyarpanahi/openmed · 218 tokens