layer-contract-doctrine

layer-contract-doctrine is a skill for Claude Code from vibeic/vibe-ic. It costs 143 tokens per session (6,209 once invoked), scanned A, original, Apache-2.0.

A set of rules for placing information correctly in a 27-layer design pipeline, which turns natural-language specifications into structured data and hardware output.

In plain words
What is it for?
Use it before creating or changing a layer data field, a layer-producing component, or a layer validation check.
Why use it?
It prevents facts from being stored in a layer that later tools do not read, and explains design choices that automated checks cannot decide.

Skill for Claude Code

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

Needs its repository: it runs a file that does not travel with it, so clone the repository first. The line is python3 plugins/vibe-ic/_shared/skill_compliance_check.py \.

Part of the vibe-ic plugin — 70 skills, 8 commands, 8 agents, 2 hooks, 1 MCP server shipped together

Good fit Use it before creating or changing a layer data field, a layer-producing component, or a layer validation check.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

It runs from inside its repository, so the clone comes first — what it calls does not travel with the file alone.

Clone the repo
git clone --depth 1 https://github.com/vibeic/vibe-ic
agentmods
npx agentmods add skills/vibeic/vibe-ic/layer-contract-doctrine

Made for: Claude Code.

Or install vibe-ic, the plugin that ships this one along with the rest of its 70 skills, 8 commands, 8 agents, 2 hooks, 1 MCP server.

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 layer-contract-doctrine

README.md
[![agentmods](https://agentmods.dev/badge/skills/vibeic/vibe-ic/layer-contract-doctrine/github.svg)](https://agentmods.dev/skills/vibeic/vibe-ic/layer-contract-doctrine)
Your own site
<a href="https://agentmods.dev/skills/vibeic/vibe-ic/layer-contract-doctrine"><img src="https://agentmods.dev/badge/skills/vibeic/vibe-ic/layer-contract-doctrine/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 layer-contract-doctrine

Your own site · 80×15
<a href="https://agentmods.dev/skills/vibeic/vibe-ic/layer-contract-doctrine"><img src="https://agentmods.dev/badge/skills/vibeic/vibe-ic/layer-contract-doctrine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 143 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 6,209 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.00143 $0.06209
Opus 5 $0.00072 $0.03104
Sonnet 5 $0.00029 $0.01242
Haiku 4.5 $0.00014 $0.00621

Measured 11d ago against content hash 4a0dfc7f485c, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

layer-contract-doctrine 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 11d ago.

The scan reads SKILL.md. This mod also ships 2 executable files (tests/test_compliance.py, tests/test_verdict_paths.py), 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.

vibe-ic-marketplace/plugins/vibe-ic/skills/layer-contract-doctrine/SKILL.md · 477 lines

How it starts

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

Layer Contract Doctrine

Purpose. The L1-L27 corpus is a layered intermediate representation: natural language in, structured JSON through, RTL and back end out. Every gate we own checks a layer against a contract. Nothing in the tree states what the contract IS, so each author re-derives it, and each re-derivation is one more chance to put a fact in a layer that nothing downstream reads.

This skill is that statement. It is deliberately short on things a program can check and long on the three judgements a program cannot make.

Chip-AGNOSTIC: every rule below is a property of the layering, not of any design, PDK, vendor or part number. The measured evidence names L-doc fields, program files and line numbers — never a customer part.

Provenance — which parts are ours and which are borrowed. Stated up front because the difference changes how much weight a section carries.

Section Origin
§1 (Y-chart refinement, ESL/golden-model, MDA/MDE traceability, ABD) External. Restated from an external survey of spec→RTL methodology, the same survey cited in the Provenance block of issue #377. Framing borrowed; not independently re-derived here.
§2 (the consuming-layer rule + 5 measurements) Ours. Every measurement is from our own runs and our own tree; each cites the file, line or verdict it rests on.
§3 (structural/behavioural boundary; the IP-XACT / SystemRDL / PSS scope table) External for the standards table, ours for the ladder test that is drawn from it. The scope claims are the standards' own stated exclusions, taken from that survey and not independently verified against the ratified documents.
§4 (declarative-layer alignment rule) External for the recommendation, ours for the coverage measurement (grep result below, re-measured on this tree).
§5, §6, §7 Ours. §7 is from an adversarial re-measurement of our own first attempt at §2.2; the transcript in it was produced on a fixture built for that purpose.

Treat an external row as direction, not as evidence. Where a section makes a claim about our tree, that claim is measured and cited.


Read the full file on GitHub · 477 lines

Files

What ships with it

3 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.

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. 11d ago First seen · 477 lines · 143 tokens per session scan A 4a0dfc7f485c

Subscribe to this mod's changes

layer-contract-doctrine is a skill published in the GitHub repository vibeic/vibe-ic (23 stars, last pushed today), licensed Apache-2.0. It adds 143 tokens to every session and 6,209 once invoked, about $0.0007 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

analog-netlist-crawl

Crawl and analyze post-layout parasitic netlists without running SPICE. Answers "what's the effective resistance from node A to node B across this massive R mesh?", "inside the VREFN mesh, which device pins are electrically farthest apart?", "which nets have the worst coupling?", "where does settling bottleneck?" — by…

Arcadia-1/analog-agents · 291 tokens

analog-verify

Pre-simulation review and Spectre simulation verification for analog circuits. Reviews circuit netlist and testbench, runs simulation, produces margin report. Use after analog-design completes a netlist.

Arcadia-1/analog-agents · 41 tokens

analog-design

Transistor-level circuit design for one analog sub-block. Produces Spectre netlist with hand-calculation rationale. Use when designing a specific circuit block after architecture is defined.

Arcadia-1/analog-agents · 38 tokens

analog-pipeline

MANDATORY — MUST load this skill when the user mentions: OTA, ADC, PLL, comparator, bandgap, LDO, amplifier, opamp, or any analog/mixed-signal IC design task. Full analog design pipeline: spec -> architecture -> design -> verify -> deliver. Orchestrates analog-decompose, analog-behavioral, analog-design…

Arcadia-1/analog-agents · 94 tokens

analog-audit

Audit analog circuit netlists for correctness, quality, and risks. Supports both pre-layout (schematic) and post-layout (extracted) netlists. Post-layout mode filters massive parasitic netlists before auditing. Works without EDA. TRIGGER on: "audit", "review netlist", "check this circuit", "design review"…

Arcadia-1/analog-agents · 92 tokens

analog-decompose

Architect Phase 1: decompose top-level analog spec into sub-block specs. Use when starting a new analog design to select architecture, allocate budgets, define sub-block specs, write testbenches, and create verification plans.

Arcadia-1/analog-agents · 49 tokens