enable

enable is a command for Claude Code from punt-labs/z-spec. It costs 7 tokens per session (450 once invoked), scanned A, a copy of enable-dev, MIT.

A repository setup command for enabling z-spec, a system for doing formal Z work in a code repository. It writes an agent guide, an enablement marker, and an import line into the repository.

In plain words
What is it for?
Use it once per repository to enable z-spec, refresh its guide and marker, and add the guide reference to `CLAUDE.md`.
Why use it?
It makes z-spec’s tools and menu entries available in that repository and records the setup so it can be committed with the project.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: mentions CLAUDE.md.

Part of the z-spec-dev plugin — 42 commands, 1 hook shipped together

Good fit Use it once per repository to enable z-spec, refresh its guide and marker, and add the guide reference to CLAUDE.md.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/punt-labs/z-spec/enable
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.

Clone the repo
git clone --depth 1 https://github.com/punt-labs/z-spec

Made for: Claude Code.

Or install z-spec-dev, the plugin that ships this one along with the rest of its 42 commands, 1 hook.

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 enable

README.md
[![agentmods](https://agentmods.dev/badge/commands/punt-labs/z-spec/enable/github.svg)](https://agentmods.dev/commands/punt-labs/z-spec/enable)
Your own site
<a href="https://agentmods.dev/commands/punt-labs/z-spec/enable"><img src="https://agentmods.dev/badge/commands/punt-labs/z-spec/enable/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 enable

Your own site · 80×15
<a href="https://agentmods.dev/commands/punt-labs/z-spec/enable"><img src="https://agentmods.dev/badge/commands/punt-labs/z-spec/enable.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 7 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 450 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 91% copy Near-identical to another mod 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.00007 $0.00450
Opus 5.5 $0.00003 $0.00180
Sonnet 5.5 $0.00001 $0.00090
Haiku 4.5 $0.00001 $0.00045

Measured 1mo ago against content hash 329fa87be9ae, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

enable 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 1mo 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.

Origin

This is a copy

91% identical to enable-dev — 6 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

plugin/commands/enable.md · 50 lines

What it actually says

Enable z-spec here

z-spec is per-repo. Its MCP tools and its lux menu entries are live only where someone ran enable and committed .punt-labs/z-spec/enabled. Run this once per repository that does formal Z work.

Process

Call mcp__plugin_z-spec_zspec__enablement with action: "enable". It returns {ok, action, enabled, root, marker, guide, import_line}.

The call is idempotent, and re-running it is the upgrade path — it redeposits the shipped guide, adds the @-import line only if absent, and rewrites the marker. It never runs git.

What it writes

Path Why
.punt-labs/z-spec/CLAUDE.md The z-spec agent guide, overwritten wholesale
.punt-labs/z-spec/enabled The marker every z-spec MCP tool reads
CLAUDE.md One bare line: @.punt-labs/z-spec/CLAUDE.md

Output

Report the three paths, then the one action left for the human. This is what z-spec enable prints, and the tool returns the same values:

z-spec enabled in /repo
  marker: /repo/.punt-labs/z-spec/enabled
  guide:  /repo/.punt-labs/z-spec/CLAUDE.md
  import: @.punt-labs/z-spec/CLAUDE.md
Commit the marker so enablement travels with the repo.

If ok is false, either you are outside a git working tree or the repository refused the write. Report the error verbatim; do not create a repository.

Notes

  • The z-spec CLI is never gated. z-spec check and friends work from a terminal whether or not the marker exists.
  • To turn it off again, run /z-spec:disable.
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. 1mo ago First seen · 50 lines · 7 tokens per session scan A 329fa87be9ae

Subscribe to this mod's changes

enable is a command published in the GitHub repository punt-labs/z-spec (5 stars, last pushed yesterday), licensed MIT. It adds 7 tokens to every session and 450 once invoked, about $0.0000 per session on Opus 5.5. A static security scan graded it A with 0 findings. It is 91% identical to enable-dev, differing in 6 lines, and is treated as a copy.