mcp-ts-morph: Skill for Claude Code

.claude/skills/release/SKILL.md

release is a skill for Claude Code from SiroSuzume/mcp-ts-morph. It costs 69 tokens per session (898 once invoked), scanned A, original, MIT.

A release procedure for publishing the @sirosuzume/mcp-tsmorph-refactor package to npm, a service for sharing JavaScript and TypeScript packages.

In plain words
What is it for?
Use it to check the repository, choose a version number, create a Git tag, and trigger the automated npm publishing workflow.
Why use it?
It reduces the risk of publishing from the wrong branch, using an invalid version, or releasing code before checks pass.

Skill for Claude Code

Written for Claude Code: installed under .claude/.

This is SiroSuzume/mcp-ts-morph's own configuration. It tells Claude Code how to work on mcp-ts-morph 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 mcp-ts-morph configures →

Reuse

Borrowing it

Nothing to install: this file belongs to SiroSuzume/mcp-ts-morph. 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/SiroSuzume/mcp-ts-morph/main/.claude/skills/release/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/SiroSuzume/mcp-ts-morph

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/sirosuzume/mcp-ts-morph/release.svg)](https://agentmods.dev/skills/sirosuzume/mcp-ts-morph/release)
Your own site
<a href="https://agentmods.dev/skills/sirosuzume/mcp-ts-morph/release"><img src="https://agentmods.dev/badge/skills/sirosuzume/mcp-ts-morph/release.svg" alt="Measured on agentmods" height="20"></a>
Per session 69 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 898 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.00069 $0.00898
Opus 5 $0.00034 $0.00449
Sonnet 5 $0.00014 $0.00180
Haiku 4.5 $0.00007 $0.00090

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

Security

Grade A, and why

release 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 8d 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/skills/release/SKILL.md · 85 lines

How it starts

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

Release a new version

This package publishes to npm via tag-triggered GitHub Actions. Git tag is the single source of truth for the version — there is no package.json bump step. release.yml reads the tag, bakes the value into src/version.ts and package.json, then pnpm publishs with provenance.

Pre-flight checks

  1. Confirm we are on main and clean:
    git checkout main && git pull --ff-only
    git status --short    # must be empty
    
  2. Confirm the last CI run on main is green (recent merge passed checks).
  3. Decide the new version. Default rule:
    • feat: commit since last tag → minor bump (1.X.0)
    • fix: only → patch bump (1.0.X)
    • Breaking change → major bump (X.0.0)
    • When in doubt, ask the user.
    • Stable SemVer only. Prerelease tags (v1.2.0-rc.1), build metadata (v1.2.0+build.5), and leading zeros (v01.02.03) are rejected by both the workflow trigger and scripts/release-version.mjs. If a prerelease channel is needed, update the workflow glob, the script's STRICT_SEMVER, and this skill together.
  4. Verify the planned tag does not already exist:
    git tag --list 'v*' | sort -V | tail -5
    

Steps

  1. Confirm the target version with the user if they did not specify it explicitly.

  2. Create and push the tag:

    git tag vX.Y.Z
    git push origin vX.Y.Z
    
  3. Watch the release workflow until it finishes:

    gh run list -R SiroSuzume/mcp-ts-morph --workflow=release.yml --limit 1
    gh run watch <id> --exit-status
    

    The workflow performs in order:

    • Install dependencies
    • Resolve version from tag ref (strict SemVer, no prerelease)
    • pnpm test (run against the placeholder 0.0.0-development)
    • Bake VERSION into src/version.ts and package.json via node scripts/release-version.mjs --bake <version>
    • pnpm build
    • Verify dist/version.js contains the exact baked line
    • Strip internal _version_note from package.json
    • pnpm publish --provenance via npm Trusted Publishing (OIDC)

Read the full file on GitHub · 85 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. 8d ago First seen · 85 lines · 69 tokens per session scan A 3c33ac66967a

Subscribe to this mod's changes

release is a skill published in the GitHub repository SiroSuzume/mcp-ts-morph (16 stars, last pushed 2mo ago), licensed MIT. It adds 69 tokens to every session and 898 once invoked, about $0.0003 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.