adopt-spec

adopt-spec is a skill for Claude Code from zernie/vigiles. It costs 33 tokens per session (1,842 once invoked), scanned A, original, MIT.

A tool for turning an existing hand-written CLAUDE.md or AGENTS.md instruction file into a typed TypeScript specification. It creates a new .spec.ts file while leaving the original unchanged.

In plain words
What is it for?
Use it to adopt typed specifications gradually from an existing instruction file. It preserves the original rules, commands, files, and prose for review before anything replaces the source file.
Why use it?
It gives existing agent instructions a type-safe format without forcing an immediate migration or stricter rules. The original file remains available and the change can be reversed.

Skill for Claude Code

Written for Claude Code: disable-model-invocation in frontmatter. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Part of the vigiles plugin — 27 skills, 3 hooks, 2 plugins shipped together

Good fit Use it to adopt typed specifications gradually from an existing instruction file. It preserves the original rules, commands, files, and prose for review before anything replaces the source file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zernie/vigiles/adopt-spec
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 zernie/vigiles --skill adopt-spec
Clone the repo
git clone --depth 1 https://github.com/zernie/vigiles

Made for: Claude Code.

Or install vigiles, the plugin that ships this one along with the rest of its 27 skills, 3 hooks, 2 plugins.

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 adopt-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/zernie/vigiles/adopt-spec/github.svg)](https://agentmods.dev/skills/zernie/vigiles/adopt-spec)
Your own site
<a href="https://agentmods.dev/skills/zernie/vigiles/adopt-spec"><img src="https://agentmods.dev/badge/skills/zernie/vigiles/adopt-spec/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 adopt-spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/zernie/vigiles/adopt-spec"><img src="https://agentmods.dev/badge/skills/zernie/vigiles/adopt-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 33 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,842 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
  • Socket pass 26 Nov 2026
  • Snyk warn 26 Nov 2026
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 5 findings, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium MCP Rug Pull · line 99
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 111
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 112
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 122
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
  • medium MCP Rug Pull · line 124
    npx commands without a version suffix (e.g. @1.0.0) create a rug-pull risk if the upstream server is compromised and publishes a malicious update.
    Fix: Pin the version: npx @scope/[email protected]
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.00033 $0.01842
Opus 5.5 $0.00013 $0.00737
Sonnet 5.5 $0.00007 $0.00368
Haiku 4.5 $0.00003 $0.00184

Measured 7d ago against content hash 14bca78945ef, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

adopt-spec 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 7d 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/adopt-spec/SKILL.md · 139 lines

How it starts

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

Start a typed CLAUDE.md.spec.ts from an existing hand-written CLAUDE.md (or AGENTS.md). This is the non-destructive adoption path — you keep your existing instruction file as the starting point and get type safety going forward.

Say that this skill is running. Start your first reply with one line: Running the adopt-spec skill on <file>. The user should see that adoption started, and on which file, without opening the tool output.

Adoption rules

Adoption is the safe, faithful on-ramp — never an upgrade in disguise. These are non-negotiable:

  • Faithful. Preserve every rule, command, and prose section as-is. Invent nothing — the spec must compile back to ~the user's existing file. The one exception is a file map ("Key Files"): never emit the deprecated keyFiles field — see the guideline under Step 3.
  • Non-destructive. Never edit the original CLAUDE.md / AGENTS.md. Only write the new .spec.ts. Never auto-compile over the file — switching it to spec-managed is a separate, explicit step the user runs with a diff to review.
  • Don't escalate enforcement. Keep guidance() as guidance(). Upgrading to enforce() has a cost (config/plugins, possible false positives) and is a separate opt-in step — the strengthen skill. Adoption is not turning on strict / workflow gating.
  • Reversible. vigiles eject <file> hands the file back as plain hand-owned markdown anytime — it's never a one-way door. Tell the user this.
  • Ask before writing. Present the generated spec and a conversion summary first; write only on the user's yes.
  • A lighter touch exists. For no spec at all, inline marks in the markdown are verified by vigiles lint with the same engine: <!-- vigiles:enforce ... --> for a linter rule, <!-- vigiles:file <path> --> for a file, <!-- vigiles:cmd "<command>" --> for a script (every mark: docs/verifying-instruction-files.md#inline-marks in the vigiles repository).

Instructions

Step 1: Read the Existing File

Read the full file on GitHub · 139 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. 7d ago Changed · +3 lines 14bca78945ef
  2. 11d ago Changed 36e025708122
  3. 1mo ago Changed · -4 lines 351c08b91207
  4. 2mo ago Changed · +6 lines e2308e01e6d7
  5. 3mo ago First seen · 134 lines · 33 tokens per session scan A f119a2d849de

Subscribe to this mod's changes

adopt-spec is a skill published in the GitHub repository zernie/vigiles (18 stars, last pushed today), licensed MIT. It adds 33 tokens to every session and 1,842 once invoked, about $0.0001 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

adopt-spec compared with skills from other repositories

adopt-spec next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
adopt-speczernie/vigilesSkill18todayMITA33Claude Code
review-checklistwesammustafa/Claude-Code-Everything-You-Need-to-KnowSkill3.8ktodaynoneA25Claude Code, Codex
web-accessopen-octo/octo-agentSkill163yesterdayMITA139Claude Code, Codex
skill-creatoropen-octo/octo-agentSkill163yesterdayMITA123Claude Code, Codex
methodology-advisorFlorianBruniaux/claude-code-ultimate-guideSkill7.6k3d agoCC-BY-SA-4.0A61Claude Code
release-notesFlorianBruniaux/claude-code-ultimate-guideSkill7.6k3d agoCC-BY-SA-4.0A13Claude Code
talk-stage5-scriptFlorianBruniaux/claude-code-ultimate-guideSkill7.6k3d agoCC-BY-SA-4.0A69Claude Code