twd: Agent for Claude Code

.claude/agents/release-prep.md

release-prep is an agent for Claude Code from BRIKEV/twd. It costs 269 tokens per session (1,335 once invoked), scanned A, original, MIT.

A release-preparation agent for the twd-js JavaScript library. It updates version references, refreshes the lock file, writes a changelog entry, and prepares a release summary.

In plain words
What is it for?
Preparing a twd-js release after the user supplies a new version number. It checks the old version and updates the specified package and source files.
Why use it?
It provides a fixed checklist for preparing a release and avoids missed version or documentation updates. It also keeps committing, pushing, and tagging under the user's control.

Agent for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: model in frontmatter; names the NotebookEdit tool.

This is BRIKEV/twd's own configuration. It tells Claude Code how to work on twd itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything twd configures →

Reuse

Borrowing it

Nothing to install: this file belongs to BRIKEV/twd. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/BRIKEV/twd/main/.claude/agents/release-prep.md
Clone the repo
git clone --depth 1 https://github.com/BRIKEV/twd

Made for: Claude Code.

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 release-prep

README.md
[![agentmods](https://agentmods.dev/badge/agents/brikev/twd/release-prep/github.svg)](https://agentmods.dev/agents/brikev/twd/release-prep)
Your own site
<a href="https://agentmods.dev/agents/brikev/twd/release-prep"><img src="https://agentmods.dev/badge/agents/brikev/twd/release-prep/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 release-prep

Your own site · 80×15
<a href="https://agentmods.dev/agents/brikev/twd/release-prep"><img src="https://agentmods.dev/badge/agents/brikev/twd/release-prep.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 269 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,335 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.00269 $0.01335
Opus 5.5 $0.00108 $0.00534
Sonnet 5.5 $0.00054 $0.00267
Haiku 4.5 $0.00027 $0.00134

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

Security

Grade A, and why

release-prep 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 2mo 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.

.claude/agents/release-prep.md · 105 lines

How it starts

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

You are a release automation agent for the twd-js library. You execute a precise, deterministic release preparation workflow. You do NOT make creative decisions — you follow the steps below exactly as written. The user provides the new version number as an argument: $ARGUMENTS

CRITICAL RULES:

  • NEVER commit changes. The user will decide when to commit.
  • NEVER push to any remote.
  • NEVER create git tags — releases are done via GitHub Releases which create tags automatically.
  • If $ARGUMENTS is empty or missing, STOP immediately and ask the user for the version number.
  • Always ask before creating commits, never auto-commit.

Step 1: Determine the previous version

Read package.json and extract the current "version" field. This is the OLD version. The NEW version is: $ARGUMENTS

If $ARGUMENTS is empty or missing, STOP and ask the user for the version number.

Step 2: Update version in source files

Update these 3 files, replacing the OLD version with the NEW version:

  1. package.json — the "version" field
  2. src/constants/version.ts — the TWD_VERSION string
  3. src/constants/version_cli.js — the TWD_VERSION string

Be surgical — only change the version string, nothing else in these files.

Step 3: Save @emnapi entries from package-lock.json BEFORE npm install

npm install on macOS removes @emnapi/core and @emnapi/runtime top-level entries from package-lock.json. These are needed for Linux CI.

Before running npm install:

  1. Read package-lock.json and search for "node_modules/@emnapi/core" and "node_modules/@emnapi/runtime" entries
  2. Save the FULL JSON blocks for both entries (including version, resolved, integrity, dev, license, optional, dependencies)
  3. If the entries don't exist, note that and skip the restoration in Step 5

Step 4: Run npm install

Run npm install to update package-lock.json with the new version.

Step 5: Restore @emnapi entries in package-lock.json

After npm install, check if @emnapi/core and @emnapi/runtime top-level entries were removed from package-lock.json. If they were removed and you saved them in Step 3, re-insert them in alphabetical order BEFORE the @emnapi/wasi-threads entry using the exact content you saved.

Read the full file on GitHub · 105 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. 2mo ago First seen · 105 lines · 269 tokens per session scan A f07fa8a116e8

Subscribe to this mod's changes

release-prep is an agent published in the GitHub repository BRIKEV/twd (68 stars, last pushed today), licensed MIT. It adds 269 tokens to every session and 1,335 once invoked, about $0.0011 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-30.

Related

Other agents, from other repositories

release-prep

Use this agent to autonomously prepare a project release by running pre-release checks, validating CI, checking test coverage, and verifying changelog. Triggers on "prepare release", "pre-release check", "ready to release", or when validating release readiness.

neuromechanist/research-skills · 55 tokens

dev

VBW Dev. Executes one plan's tasks (or a group of fixes) within its files, one atomic commit per task, proving its checks red then green.

swt-labs/vibe-better-with-claude-code-vbw · 35 tokens

tl-test-writer

Team-loop test writer for a regulated work package. Works in its own git worktree and writes the package's tests from the spec and brief, independently of the builder, commits them alone and stops. Use at step 5 of the team loop for regulated packages only. Never writes implementation.

randommonicle/claude-skills · 63 tokens

sealer

The final, independent guarantor. Spawn once per work item, before the pull request opens: after the review rounds settle, the pull request body is written to a file, the changelog fragment is written, and the orchestrator has run the broad gate. It reads the gate's record, re-runs a sample of the smith's claims…

MichaelYcJo/SpecSeal · 100 tokens

formatter

Use when the parity-test-e pipeline needs to render a concise markdown release summary from extracted changelog entries produced by the extractor step.

gustavo-meilus/superpipelines · 28 tokens

qa-lead

The QA Lead owns test strategy, bug triage, release quality gates, and testing process design. Use this agent for test plan creation, bug severity assessment, regression test planning, or release readiness evaluation.

TraftG/opencode-game-studio · 41 tokens