stock-scanner-mcp: Command for Claude Code

.claude/commands/release-npm.md

release-npm is a command for Claude Code from yyordanov-tradu/stock-scanner-mcp. It costs 0 tokens per session (511 once invoked), scanned A, original, MIT.

A release command for publishing a new version of a software package to npm, the package registry commonly used by JavaScript projects. It checks the code, updates the version, and keeps version references aligned across project files.

In plain words
What is it for?
Use it to release patch, minor, or major npm versions after checking the branch, repository state, tests, linting, and build.
Why use it?
It organizes the checks and version updates needed before a release, reducing the chance of publishing untested code or mismatched version numbers.

Command for Claude Code

Written for Claude Code: $ARGUMENTS substitution. Also seen: mentions CLAUDE.md; mentions Claude Code.

This is yyordanov-tradu/stock-scanner-mcp's own configuration. It tells Claude Code how to work on stock-scanner-mcp 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 stock-scanner-mcp configures →

Part of the stock-scanner plugin — 19 skills, 3 commands, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to yyordanov-tradu/stock-scanner-mcp. 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/yyordanov-tradu/stock-scanner-mcp/main/.claude/commands/release-npm.md
Clone the repo
git clone --depth 1 https://github.com/yyordanov-tradu/stock-scanner-mcp

Made for: Claude Code.

Or install stock-scanner, the plugin that ships this one along with the rest of its 19 skills, 3 commands, 2 MCP servers.

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-npm

README.md
[![agentmods](https://agentmods.dev/badge/commands/yyordanov-tradu/stock-scanner-mcp/release-npm/github.svg)](https://agentmods.dev/commands/yyordanov-tradu/stock-scanner-mcp/release-npm)
Your own site
<a href="https://agentmods.dev/commands/yyordanov-tradu/stock-scanner-mcp/release-npm"><img src="https://agentmods.dev/badge/commands/yyordanov-tradu/stock-scanner-mcp/release-npm/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-npm

Your own site · 80×15
<a href="https://agentmods.dev/commands/yyordanov-tradu/stock-scanner-mcp/release-npm"><img src="https://agentmods.dev/badge/commands/yyordanov-tradu/stock-scanner-mcp/release-npm.svg" alt="Reviewed on agentmods" width="80" 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 511 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.00000 $0.00511
Opus 5 $0.00000 $0.00255
Sonnet 5 $0.00000 $0.00102
Haiku 4.5 $0.00000 $0.00051

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

Security

Grade A, and why

release-npm 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 11d 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/commands/release-npm.md · 36 lines

What it actually says

Release a new version to npm. Argument: version bump type ($ARGUMENTS — one of: patch, minor, major). Defaults to "patch" if not specified.

Steps

  1. Pre-flight checks

    • Check current branch — if NOT on main, automatically switch: git checkout main
    • Ensure working tree is clean (no uncommitted changes). Untracked files are OK.
    • Sync with remote: git pull to get latest
    • Verify local main matches origin/main (no unpushed commits)
    • Run quality gates: npm run lint && npm test && npm run build
    • Stop and report if anything fails
  2. Bump version

    • Run npm version $ARGUMENTS --no-git-tag-version (default: patch)
    • Read the new version from package.json
  3. Update version references across the project

    • Update CLAUDE.md version string (e.g. **Version:** X.Y.Z)
    • Update README.md if it contains a hardcoded version reference
    • Update .claude-plugin/plugin.json version to match package.json — the Claude Code plugin manifest carries its own copy. npm version does not touch it, so it must be bumped here in lockstep. src/__tests__/plugin-manifests.test.ts fails CI if they drift, but updating both in the same commit avoids a red test mid-release.
    • Verify module/tool counts in README.md and CLAUDE.md still match reality
  4. Create release branch, commit, tag

    • git checkout -b release/v<version>
    • git add package.json CLAUDE.md README.md .claude-plugin/plugin.json && git commit -m "chore: release v<version>"
    • git tag -a v<version> -m "v<version>"
  5. Push and create PR

    • git push -u origin release/v<version> && git push origin v<version>
    • Create PR to main: gh pr create --title "chore: release v<version>"
  6. Merge

    • Merge: gh pr merge --squash --auto
    • git checkout main && git pull
    • CI/CD will automatically publish to npm when the tag is pushed
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. 11d ago First seen · 36 lines · 0 tokens per session scan A b28ac7b4dd6e

Subscribe to this mod's changes

release-npm is a command published in the GitHub repository yyordanov-tradu/stock-scanner-mcp (6 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 511 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.