MetaSpec AGENTS.md

A guide for MetaSpec, a framework that creates toolkits from formal specifications. These toolkits can support development, design, testing, documentation, or operations.

In plain words
What is it for?
Creating speckits, defining rules for a domain, and working with MetaSpec's command-line tools, parsers, validators, templates, and agent support.
Why use it?
It explains the concepts and commands an AI agent needs when creating or using a specification-based toolkit.

Instructions file for CodexOpenCode

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 instructions/acnlabs/metaspec/agents-md
Clone the repo
git clone --depth 1 https://github.com/acnlabs/MetaSpec

Made for: Codex, OpenCode.

Per session 12,090 This file is loaded in full into every session.
When invoked 12,090 The same file โ€” it is already loaded in full.
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 $0.12090 $0.12090
Opus 5 $0.06045 $0.06045
Sonnet 5 $0.02418 $0.02418
Haiku 4.5 $0.01209 $0.01209

Measured 2d ago against content hash 81944f8fce3c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

MetaSpec AGENTS.md 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 2d 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.

AGENTS.md ยท 1,422 lines

How it starts

The opening of the file, as written. The whole thing โ€” 1,422 lines โ€” stays where its author put it; the contents beside it link to each section on GitHub.

Meta-Spec AI Agent Guide

For AI Assistants: This document provides guidance on using Meta-Spec to generate Spec-Driven X (SD-X) speckits.


๐ŸŽฏ Your Role

You are helping a developer create speckits (spec-driven toolkits for AI agents) using MetaSpec.

MetaSpec is a meta-specification framework that generates complete Spec-Driven X (SD-X) speckits:

  • SD-Development - Spec-driven development
  • SD-Design - Spec-driven design systems
  • SD-Testing - Spec-driven testing frameworks
  • SD-Documentation - Spec-driven documentation
  • SD-Operations - Spec-driven operations
  • SD-X - Spec-driven generation for any domain

Key principle: MetaSpec generates production-ready speckits with CLI, parser, validator, templates, and AI agent support


๐Ÿ’ก Core Concept: Meta-Specification Framework

MetaSpec is a meta-specification framework - it uses specifications to generate specification toolkits.

Meta-Specification (MetaSpec)
        โ†“
  Defines how to define specifications
        โ†“
Generates Speckits (Spec-driven Toolkits)
        โ†“
Speckits carry domain specifications
        โ†“
Used to develop domain projects

Key Insights

  1. Meta-level abstraction - MetaSpec defines how to create specification systems
  2. Generative framework - Generates complete speckits from meta-specifications
  3. Recursive architecture - MetaSpec uses SDD to develop itself, generates speckits that use SDD
  4. Specification-centric - Domain specs are the source of truth, speckits are carriers

Example Flow:

MetaSpec (meta-spec)
    โ†“ generates
MCP-Spec-Kit (carries MCP specification spec)
    โ†“ used by
Developer (validates MCP servers against spec)

This means: MetaSpec is not just "spec-driven development" - it's a framework that generates speckits (spec-driven toolkits) for any domain.

See Recommended Practice: SDS + SDD Separation in MetaSpec Commands section for how speckits separate domain specifications from toolkit implementation.

Read the full file on GitHub ยท 1,422 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. 2d ago First seen ยท 1,422 lines ยท 12,090 tokens per session scan A 81944f8fce3c

Subscribe to this mod's changes

MetaSpec AGENTS.md is an instructions file published in the GitHub repository acnlabs/MetaSpec (51 stars, last pushed 9mo ago), licensed MIT. It adds 12,090 tokens to every session, about $0.0605 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 instructions, from other repositories

novel-writer copilot-instructions.md

Instructions for wordflowlab/novel-writer, covering quick context for ai coding agents, high-level architecture notes, common developer workflows (how to run / build / test), project-specific conventions and gotchas (do not invent) and what to change when adding or updating an agent.

wordflowlab/novel-writer ยท 1,183 tokens

spec-kit AGENTS.md

AGENTS.md instructions for github/spec-kit, covering agents.md, about spec kit and specify, quickstart โ€” add a new integration in 5 steps, integration architecture and integrationmanifest โ€” file tracking.

github/spec-kit ยท 7,104 tokens

spec-driven-steroids AGENTS.md

Instructions for lindoelio/spec-driven-steroids, covering agents.md, project identity, technology stack, essential commands and agent constraints.

lindoelio/spec-driven-steroids ยท 1,263 tokens

leanspec AGENTS.md

Instructions for codervisor/leanspec, covering ai agent instructions, project: leanspec, skills, spec-driven development (github-issue specs) and development & tooling.

codervisor/leanspec ยท 984 tokens

AmbyKit AGENTS.md

Instructions for ambystechcom/AmbyKit, covering agents.md โ€” ambykit, what ambykit is, golden rules, project structure and build & test.

ambystechcom/AmbyKit ยท 1,216 tokens

ai-workflow-kit AGENTS.md

Instructions for silver2dream/ai-workflow-kit, covering agents.md (worker agent guide), role: senior engineer (worker), must-read (before any work), non-negotiable hard rules and 0. use existing architecture & do not reinvent.

silver2dream/ai-workflow-kit ยท 1,815 tokens