tp-spec

tp-spec is a skill for Claude Code from CurtisThe/three-pillars-plugin. It costs 25 tokens per session (859 once invoked), scanned A, original, Apache-2.0.

A command for managing living specification changes for a design. It can create, validate, and merge a `spec-delta.md` file—a document containing changes to the design’s base specification.

In plain words
What is it for?
Use it to add a specification-delta file, validate its structure, scan for drift, and merge approved changes into the matching base specification.
Why use it?
It keeps temporary specification changes structured and checks them against the relevant domain specification. This helps detect drift between a design and its underlying standards.

Skill for Claude Code

Written for Claude Code: argument-hint in frontmatter.

Part of the three-pillars plugin — 40 skills, 58 agents shipped together

Good fit Use it to add a specification-delta file, validate its structure, scan for drift, and merge approved changes into the matching base specification.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/curtisthe/three-pillars-plugin/tp-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 CurtisThe/three-pillars-plugin --skill tp-spec
Clone the repo
git clone --depth 1 https://github.com/CurtisThe/three-pillars-plugin

Made for: Claude Code.

Or install three-pillars, the plugin that ships this one along with the rest of its 40 skills, 58 agents.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/curtisthe/three-pillars-plugin/tp-spec"><img src="https://agentmods.dev/badge/skills/curtisthe/three-pillars-plugin/tp-spec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 25 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 859 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.00025 $0.00859
Opus 5.5 $0.00010 $0.00344
Sonnet 5.5 $0.00005 $0.00172
Haiku 4.5 $0.00003 $0.00086

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

Security

Grade A, and why

tp-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 3mo ago.

The scan reads SKILL.md. This mod also ships 4 executable files (__init__.py, conftest.py, test_tp_spec.py, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

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/tp-spec/SKILL.md · 104 lines

How it starts

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

/tp-spec

Manage living spec deltas for a design: scaffold, validate, and merge spec-delta.md files into their domain base spec.

Argument: <design-name> (required) — must match an existing directory under three-pillars-docs/tp-designs/. Design names use only [a-z0-9-] characters; reject anything else before proceeding (see skills/_shared/validate-name.md).

Steps

  1. Run first-run preflight per skills/_shared/first-run.md.

  2. Dispatch to the subcommand — see §Subcommands below.

Subcommands

add <design>

Scaffold a spec-delta.md in the design directory from the template.

Refuse-to-clobber: if spec-delta.md already exists it is left untouched and the command exits 0 with a notice. In --auto mode this is a silent no-op.

/tp-spec add <design-name>

Creates: three-pillars-docs/tp-designs/<design>/spec-delta.md Template: skills/tp-spec/templates/spec-delta.template.md

validate <design>

Validate the design's spec-delta.md structurally, then run the drift scan over the matching domain spec tree.

/tp-spec validate <design-name> [--domain <domain>]

Validator API (exact signature):

import sys
sys.path.insert(0, "$TP_ROOT/skills/_shared")  # $TP_ROOT resolved per skills/_shared/first-run.md
from validate_artifact import validate_artifact
from pathlib import Path

verdict = validate_artifact("spec", Path(delta_path))   # type-first, Path arg

On BLOCKED: JSON verdict is printed to stderr and the command exits 1. On PASS: runs spec_drift.py scan over three-pillars-docs/specs/ and exits with its exit code (0 clean / 1 DRIFT).

The nonexistent .validate(text, type) signature is never used.

merge <design>

Merge the design's spec-delta.md into the domain base spec via the engine.

/tp-spec merge <design-name> [--domain <domain>]

Engine call (exact signature):

from spec_delta import merge, MergeConflict, SpecParseError

merged_text = merge(base_text, [delta_text])   # base_text: str, list of delta str

Read the full file on GitHub · 104 lines

Files

What ships with it

5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 3mo ago First seen · 104 lines · 25 tokens per session scan A 3f0b91bc7427

Subscribe to this mod's changes

tp-spec is a skill published in the GitHub repository CurtisThe/three-pillars-plugin (5 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 25 tokens to every session and 859 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-31.

Related

tp-spec compared with skills from other repositories

tp-spec next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
tp-specCurtisThe/three-pillars-pluginSkill51mo agoApache-2.0A25Claude Code
engram-testing-coverageGentleman-Programming/engramSkill8.4k8d agoMITA25Claude Code, Codex
iterative-developmentalinaqi/maggySkill7135d agoMITA24Claude Code
tddglebis/claude-skillsSkill417todayMITA92Claude Code
mobiai-mobile-tddArisGuimera/MobiAI-CoreSkill4962d agoMITA38Claude Code
nw-ddd-eventsourcingnWave-ai/nWaveSkill63713d agoMITA38Claude Code
nw-leanux-methodologynWave-ai/nWaveSkill63713d agoMITA37Claude Code