reference.spec

reference.spec is a command for coding agents from martineserios/thebrana. It costs 0 tokens per session (256 once invoked), scanned A, original, MIT.

A reference command updates generated skill documentation with the allowed values for selected metadata fields. Skill metadata is information written at the top of a skill file.

In plain words
What is it for?
Use it to add reference tables for the group, growth_stage, and status fields in generated skill documentation.
Why use it?
It makes valid values easier to find instead of requiring users to search the testing and validation documentation.

Command

Part of the brana plugin — 18 skills, 4 commands, 14 agents, 13 hooks 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 commands/martineserios/thebrana/reference.spec
Clone the repo
git clone --depth 1 https://github.com/martineserios/thebrana

Or install brana, the plugin that ships this one along with the rest of its 18 skills, 4 commands, 14 agents, 13 hooks.

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 reference.spec

README.md
[![agentmods](https://agentmods.dev/badge/commands/martineserios/thebrana/reference.spec.svg)](https://agentmods.dev/commands/martineserios/thebrana/reference.spec)
Your own site
<a href="https://agentmods.dev/commands/martineserios/thebrana/reference.spec"><img src="https://agentmods.dev/badge/commands/martineserios/thebrana/reference.spec.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 256 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 $0.00000 $0.00256
Opus 5 $0.00000 $0.00128
Sonnet 5 $0.00000 $0.00051
Haiku 4.5 $0.00000 $0.00026

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

Security

Grade A, and why

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

system/cli/rust/crates/brana-cli/src/commands/reference.spec.md · 30 lines

What it actually says

reference.rs — generator spec (skill frontmatter reference)

Task: t-1341 Related: docs/architecture/testing-validation.md (canonical enum source)

Scope

The generated docs/reference/skills.md must surface the legal values for the group, growth_stage, and status keys in skill SKILL.md frontmatter. Today those enums live only in docs/architecture/testing-validation.md, which users discovering "what's a valid group?" rarely think to check.

Contract

generate_skills emits a "Skill Frontmatter Reference" section between the top-level summary and the per-skill Index. The section is a static block keyed off SKILL_FRONTMATTER_REFERENCE so the canonical enum list lives in one place; if testing-validation.md adds a new value, this constant must be updated in the same change.

The section must include:

  • A group enum table mirroring testing-validation.md Check D
  • A growth_stage enum table
  • A status enum table

Out of scope

  • Validating frontmatter values at generation time (that's validate.sh's job)
  • Generating the constant from testing-validation.md at runtime
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. 3d ago First seen · 30 lines · 0 tokens per session scan A 2360936b5557

Subscribe to this mod's changes

reference.spec is a command published in the GitHub repository martineserios/thebrana (3 stars, last pushed 3d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 256 tokens. 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.