skmtc-model

skmtc-model is a skill for Claude Code from skmtc/skmtc. It costs 127 tokens per session (2,540 once invoked), scanned A, original, Apache-2.0.

A framework for building SKMTC generators that turn component schemas into code definitions. A schema describes the shape and rules of data, including references, optional fields, arrays, and unions.

In plain words
What is it for?
Use it when creating a model generator for a target library, including support for references, recursion, nullable fields, maps, enums, arrays, objects, and unions.
Why use it?
Writing each generator from scratch makes common edge cases easy to miss. The provided structure and tests give generators a consistent starting point.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin.

Part of the skmtc plugin — 12 skills, 2 commands shipped together

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/skmtc/skmtc/skmtc-model
Any agent
npx skills add skmtc/skmtc --skill skmtc-model
Clone the repo
git clone --depth 1 https://github.com/skmtc/skmtc

Made for: Claude Code.

Or install skmtc, the plugin that ships this one along with the rest of its 12 skills, 2 commands.

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 skmtc-model

README.md
[![agentmods](https://agentmods.dev/badge/skills/skmtc/skmtc/skmtc-model.svg)](https://agentmods.dev/skills/skmtc/skmtc/skmtc-model)
Your own site
<a href="https://agentmods.dev/skills/skmtc/skmtc/skmtc-model"><img src="https://agentmods.dev/badge/skills/skmtc/skmtc/skmtc-model.svg" alt="Measured on agentmods" height="20"></a>
Per session 127 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,540 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.00127 $0.02540
Opus 5 $0.00063 $0.01270
Sonnet 5 $0.00025 $0.00508
Haiku 4.5 $0.00013 $0.00254

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

Security

Grade A, and why

skmtc-model 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.

The scan reads SKILL.md. This mod also ships 15 executable files (skeleton/mod.test.ts, skeleton/mod.ts, skeleton/src/base.ts, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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.

deno/docs/skills/skmtc-model/SKILL.md · 179 lines

How it starts

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

Model generators: fill the skeleton

A model generator turns each component schema (refName) into one definition in one file: entry → projection → schema-type router → one snippet class per schema type. That structure is invariant across target libraries — only naming policy and per-type syntax vary. So do not write the structure: copy it.

1. The method

The skeleton/ directory next to this file is a complete, compiling, engine-tested model generator that renders a placeholder syntax (m.object({...})). Author by transplant, not from scratch:

  1. Copy skeleton/ to your package location; run deno test --allow-env --allow-sys --allow-read — 6 green tests prove the machinery before you touch anything.
  2. Rename: name in deno.json; MyLibYourLib in class names and filenames; myLibEntryyourLibEntry; then src/lib.tsLIB_MODULE (emitted module specifier) and LIB (imported symbol).
  3. Fill the slots (§2), smallest first: scalars → string/enum → array/object → union → lazy/recursion annotation.
  4. Re-pin the test: update the pinned strings in mod.test.ts to your target syntax. The structural assertions (files exist, shared refs dedup to ONE definition, import headers stitched, recursion annotated) must pass UNCHANGED — if one breaks, you broke machinery, not syntax.

Every slot is a // SLOT(name): comment. Everything outside a SLOT is engine machinery — modifying it is almost always a mistake.

2. The slots

Slot File Decision
library src/lib.ts emitted module + symbol, single point
naming, identifier-kind, export-path src/base.ts identity policy (from refName ONLY)
string, string-constraints src/MyLibString.ts string / enum / literal syntax; formats, min/maxLength
number, integer, boolean, unknown, void src/MyLibScalars.ts scalar syntax; numeric constraints
array src/MyLibArray.ts list syntax
object-properties, object-intersection, object-empty, visibility src/MyLibObject.ts object syntax; properties+record composition; readOnly/writeOnly policy
record src/MyLibObject.ts additionalProperties map syntax
union src/MyLibUnion.ts oneOf/anyOf; discriminated form
lazy src/MyLibRef.ts deferred-reference form for cycles
recursion-annotation src/MyLibProjection.ts type annotation breaking circular inference
modifiers src/modifiers.ts optional/nullable syntax and wrap order
enrichments src/enrichments.ts config seam (default: opt-out)

Read the full file on GitHub · 179 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 · 179 lines · 127 tokens per session scan A 5f17653fe2b9

Subscribe to this mod's changes

skmtc-model is a skill published in the GitHub repository skmtc/skmtc (19 stars, last pushed 4d ago), licensed Apache-2.0. It adds 127 tokens to every session and 2,540 once invoked, about $0.0006 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

lathe

Initialize CLI-first applications and keep their OpenAPI contract, generated CLI, and Agent Skill synchronized. Use when creating an application with lathe init or changing a Lathe-generated application.

lathe-cli/lathe · 39 tokens

aomi-build

Scaffold new Aomi apps and plugins from API docs, OpenAPI/Swagger specs, or SDK references. aomi-build generates production-ready Rust SDK crates (lib.rs, client.rs, tool.rs) with tool schemas, preambles, host-interop flows, and validation — turning a vendor's API surface into AI-agent-callable tools. It covers the…

aomi-labs/skills · 244 tokens

lathe-release

Run Lathe release validation and publishing workflows. Use when the user asks to prepare, validate, cut, tag, publish, or ship a Lathe versioned release; runs the captured pre-release regression gate before tagging.

lathe-cli/lathe · 48 tokens

bittensor

Use when a developer asks what a Bittensor subnet does, whether it's up right now, how to call/integrate its API, or what mining/validating one costs and earns — e.g. "which subnet does image generation", "is subnet 7 healthy", "call the Beam API for me", "does mining subnet 3 need a GPU", "what does the median miner…

JSONbored/metagraphed · 127 tokens

evaluating-code-models

Evaluates code generation models across HumanEval, MBPP, MultiPL-E, and 15+ benchmarks with pass@k metrics. Use when benchmarking code models, comparing coding abilities, testing multi-language support, or measuring code generation quality. Industry standard from BigCode Project used by HuggingFace leaderboards.

davila7/claude-code-templates · 68 tokens

system-prompts

Write system prompts, tool docs, and agent definitions. Project tag conventions + RFC 2119 keywords + dense compression. Use when authoring or editing any prompt the model reads.

can1357/oh-my-pi · 40 tokens