import-natural-spec

import-natural-spec is a skill for Claude Code from kotaroyamame/formal-agent-contracts. It costs 189 tokens per session (2,496 once invoked), scanned A, original, MIT.

A workflow for turning a Markdown requirements document into a VDM-SL specification. VDM-SL is a formal language used to describe software rules and behavior precisely.

In plain words
What is it for?
Use it to read requirements, identify rules and unclear points, discuss missing details, and produce a complete .vdmsl specification file.
Why use it?
Natural-language requirements can be ambiguous or incomplete; this workflow finds those gaps and resolves them through questions instead of silently guessing.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: names the AskUserQuestion tool.

Part of the formal-agent-contracts plugin — 15 skills shipped together

Good fit Use it to read requirements, identify rules and unclear points, discuss missing details, and produce a complete .vdmsl specification file.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/kotaroyamame/formal-agent-contracts/import-natural-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 kotaroyamame/formal-agent-contracts --skill import-natural-spec
Clone the repo
git clone --depth 1 https://github.com/kotaroyamame/formal-agent-contracts

Made for: Claude Code.

Or install formal-agent-contracts, the plugin that ships this one along with the rest of its 15 skills.

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 import-natural-spec

README.md
[![agentmods](https://agentmods.dev/badge/skills/kotaroyamame/formal-agent-contracts/import-natural-spec/github.svg)](https://agentmods.dev/skills/kotaroyamame/formal-agent-contracts/import-natural-spec)
Your own site
<a href="https://agentmods.dev/skills/kotaroyamame/formal-agent-contracts/import-natural-spec"><img src="https://agentmods.dev/badge/skills/kotaroyamame/formal-agent-contracts/import-natural-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 import-natural-spec

Your own site · 80×15
<a href="https://agentmods.dev/skills/kotaroyamame/formal-agent-contracts/import-natural-spec"><img src="https://agentmods.dev/badge/skills/kotaroyamame/formal-agent-contracts/import-natural-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 189 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,496 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.
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.00189 $0.02496
Opus 5 $0.00095 $0.01248
Sonnet 5 $0.00038 $0.00499
Haiku 4.5 $0.00019 $0.00250

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

Security

Grade A, and why

import-natural-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 11d 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/import-natural-spec/SKILL.md · 256 lines

How it starts

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

Importing Natural Language Specifications into VDM-SL

Read a Markdown requirements document and convert it to a VDM-SL formal specification through interactive dialogue. The key challenge is that natural language is inherently ambiguous — this skill systematically identifies and resolves those ambiguities rather than silently guessing.

MD形式の自然言語仕様をVDM-SL形式仕様に変換する。自然言語の曖昧さを対話的に解消しながら、 漏れのない形式仕様を構築する。

Why This Skill Exists

The define-contract skill builds VDM-SL from scratch through Q&A. The extract-spec skill extracts VDM-SL from existing source code.

This skill fills the gap between them: the user already has a written specification (requirements document, design doc, API spec, etc.) but it's in natural language, not code. Rather than starting from zero or from code, we start from the document and systematically formalize it.

Dialogue Flow

Step 1: Read and Parse the Document

Ask the user for the MD file path (or accept it from the conversation context).

Read the file and identify its structure:

  • Headings → potential module/agent boundaries
  • Bullet lists → requirements, constraints, rules
  • Numbered lists → sequential operations, workflows
  • Tables → data models, field definitions
  • Code blocks → existing type definitions, API schemas, examples
  • Bold/italic text → emphasis on important constraints

Produce a structural summary for the user:

📄 Document Analysis: requirements.md

Found:
  Sections:        5 (potential modules/agents)
  Requirements:    23 bullet points
  Data models:     2 tables
  Constraints:     7 explicitly stated
  Examples:        3 code blocks

Identified agents/modules:
  1. "User Management" (lines 5-45)
  2. "Order Processing" (lines 47-120)
  3. "Payment Gateway" (lines 122-180)

Present this to the user and confirm the scope before proceeding.

Step 2: Requirement Classification

For each requirement found in the document, classify it:

Category VDM-SL Mapping Example from document
Data definition types "A user has name, email, and role"
Constraint inv "Email must be unique"
Operation operations / functions "The system shall allow users to register"
Pre-condition pre "Only active users can place orders"
Post-condition post "After payment, order status becomes confirmed"
State state "The system maintains a list of all orders"
Business rule Combination of inv + pre + post "Users cannot order more than their credit limit"

Read the full file on GitHub · 256 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. 11d ago First seen · 256 lines · 189 tokens per session scan A 90006ccae042

Subscribe to this mod's changes

import-natural-spec is a skill published in the GitHub repository kotaroyamame/formal-agent-contracts (1 stars, last pushed 2mo ago), licensed MIT. It adds 189 tokens to every session and 2,496 once invoked, about $0.0009 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-31.