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.
npx skills add tdimino/claude-code-minoan --skill dag-typesafegit clone --depth 1 https://github.com/tdimino/claude-code-minoanWrote 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.
[](https://agentmods.dev/skills/tdimino/claude-code-minoan/dag-typesafe)<a href="https://agentmods.dev/skills/tdimino/claude-code-minoan/dag-typesafe"><img src="https://agentmods.dev/badge/skills/tdimino/claude-code-minoan/dag-typesafe/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.
<a href="https://agentmods.dev/skills/tdimino/claude-code-minoan/dag-typesafe"><img src="https://agentmods.dev/badge/skills/tdimino/claude-code-minoan/dag-typesafe.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00079 | $0.01496 |
| Opus 5 | $0.00039 | $0.00748 |
| Sonnet 5 | $0.00016 | $0.00299 |
| Haiku 4.5 | $0.00008 | $0.00150 |
Grade A, and why
dag-typesafe 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 10d 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.
How it starts
The opening of the file, as written. The whole thing — 170 lines — stays where its author put it; the contents beside it link to each section on GitHub.
dag-typesafe
Deterministic type safety via directed acyclic graphs for reasoning language models.
Analyze any repo's public API surface, extract a typed node registry, compose validated
execution DAGs from natural language, and compile them into native pipeline code with
GraphSentry-style (artifact, certificate) verification at every node boundary.
Category
Code Scaffolding & Templates
Core Concepts
Three layers compose into a single architecture:
-
Typed Node Registry — the repo's public functions/classes extracted as typed nodes with JSON Schema input/output contracts. The LLM selects from this registry; it never generates arbitrary code.
-
DAG Plan — a language-neutral execution graph where nodes reference registry entries and edges are schema-validated. No cycles, all inputs satisfied, all types compatible.
-
Certificates — each node emits an
(artifact, certificate)pair. Certificates are deterministic predicates evaluated from logged evidence. Failed certificates halt the pipeline with diagnostic context. Based on GraphSentry (Li et al., 2026).
Commands
Parse $ARGUMENTS to determine which command to run:
analyze
Extract a typed node registry from the current repository.
python3 ~/.claude/skills/dag-typesafe/scripts/analyze.py [--language python|typescript|auto] [--output dag-registry.json]
- Detect repo language(s) from file extensions and config files
- Run the appropriate extractor(s) from
extractors/ - Walk the AST for public API surface only (exported functions, public classes, API endpoints)
- Convert type annotations to JSON Schema
- Output
dag-registry.jsonat repo root
compose
Generate a DAG plan from natural language using the typed registry.
The compose phase is endpoint-agnostic — it works with any OpenAI-compatible API (OpenRouter, Groq, Subq Code, local models) or in-session via Claude Code.
In-session mode (default): Build a structured prompt from the registry and task description, then use the current Claude Code session to generate the DAG plan.
What ships with it
18 files 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.
- extractors/__init__.py 0 B runs code
- extractors/base.py 3.0 KB runs code
- extractors/python_extractor.py 15 KB runs code
- extractors/typescript_extractor.py 12 KB runs code
- README.md 7.9 KB
- references/research-sources.md 2.8 KB
- schemas/certificate.schema.json 2.5 KB
- schemas/dag-plan.schema.json 5.8 KB
- schemas/registry.schema.json 5.0 KB
- scripts/analyze.py 3.2 KB runs code
- scripts/compile.py 15 KB runs code
- scripts/compose.py 6.6 KB runs code
- scripts/registry.py 3.2 KB runs code
- scripts/validate.py 6.7 KB runs code
- tests/fixtures/python_repo/dag-registry.json 7.2 KB
- tests/fixtures/python_repo/models.py 1.5 KB runs code
- tests/fixtures/python_repo/test-dag-plan.json 1.5 KB
- tests/fixtures/typescript_repo/api.ts 755 B runs code
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.
- 10d ago First seen · 170 lines · 79 tokens per session scan A 229929efcdcd
dag-typesafe is a skill published in the GitHub repository tdimino/claude-code-minoan (41 stars, last pushed 2d ago), licensed MIT. It adds 79 tokens to every session and 1,496 once invoked, about $0.0004 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.
Other skills, from other repositories
manager
A session-to-GitHub tracker that creates, updates, and reads issues across repositories, including their labels, parent epics, and project-board placement.
weekly-retro
A structured weekly retrospective for a one-person business run with AI agents. It gathers evidence from code, project tools, and canonical business files, then records findings and outcomes.
art-director
Orchestrate iterative visual style searches with branch prompts, decision graphs, feedback loops, and final direction selection.
corp-doctor
A guided maintenance and setup tool for a Personal Corp system, meaning a business workflow built from AI agents, department repositories, and shared rules. It checks what exists before making changes.
html-draft
Use when user wants a standalone HTML diagram in flat engineering blueprint style — architecture diagrams, system flows, technical spec sheets, component maps. Generates one HTML file using Tailwind v4 (browser CDN) for layout and D3 v7 (CDN) for SVG diagrams. User-invoked only — do NOT auto-trigger. Triggers on…
idea
Use when capturing ONE new idea the user voices and wants recorded — "save this idea", "I have an idea", "log this idea", "/idea", "idea: ...". Creates a provenance-tracked folder (one folder per idea) in your ideas repo, dedups against an index, optionally mirrors to a GitHub Project view filtered by label:idea. NOT…