xhs-mcp: Skill for Claude Code

.claude/skills/release/SKILL.md

release is a skill for Claude Code from ShunL12324/xhs-mcp. It costs 30 tokens per session (1,074 once invoked), scanned A, original, MIT.

A release workflow for the xhs-mcp package, which is software distributed through npm. It detects a version increase from changes, updates package files, creates a Git tag and commit, pushes them, and creates a GitHub Release.

In plain words
What is it for?
Use it to publish a new package version after reviewing changes since the last tag.
Why use it?
It removes the manual work of deciding whether a change is major, minor, or a patch release and preparing the related package and repository updates.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

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

Reuse

Borrowing it

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

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/shunl12324/xhs-mcp/release/github.svg)](https://agentmods.dev/skills/shunl12324/xhs-mcp/release)
Your own site
<a href="https://agentmods.dev/skills/shunl12324/xhs-mcp/release"><img src="https://agentmods.dev/badge/skills/shunl12324/xhs-mcp/release/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

Your own site · 80×15
<a href="https://agentmods.dev/skills/shunl12324/xhs-mcp/release"><img src="https://agentmods.dev/badge/skills/shunl12324/xhs-mcp/release.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 30 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,074 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.00030 $0.01074
Opus 5 $0.00015 $0.00537
Sonnet 5 $0.00006 $0.00215
Haiku 4.5 $0.00003 $0.00107

Measured 10d ago against content hash cc64a9726761, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, 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 10d 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 · 148 lines

How it starts

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

Release Skill

Automates the release process for the xhs-mcp package with intelligent version detection.

Version Detection Rules

Analyze changes since the last tag to determine version bump:

Major (x.0.0) - Breaking changes

  • Removing or renaming MCP tools
  • Changing tool parameter names or types
  • Removing features or changing behavior incompatibly
  • Keywords in commits: "BREAKING", "breaking change", "major"

Minor (0.x.0) - New features

  • Adding new MCP tools
  • Adding new optional parameters to existing tools
  • New functionality that's backward compatible
  • Keywords in commits: "feat:", "feature", "add"
  • New files in src/tools/

Patch (0.0.x) - Bug fixes and small changes

  • Bug fixes
  • Documentation updates
  • Refactoring without API changes
  • Keywords in commits: "fix:", "chore:", "docs:", "refactor:", "style:"

Workflow

  1. Get last tag and current version
  2. Analyze changes since last tag using git log and diff
  3. Auto-detect version bump based on commit messages and file changes
  4. Bump version in package.json
  5. Update package-lock.json with npm install
  6. Commit with release message (include both package.json and package-lock.json)
  7. Create git tag with v prefix
  8. Push commits and tags
  9. Create GitHub Release to trigger npm publish workflow

Instructions

When the user invokes /release:

  1. Get current version and last tag:

    node -p "require('./package.json').version"
    git describe --tags --abbrev=0 2>/dev/null || echo "none"
    
  2. Get commit messages since last tag:

    git log $(git describe --tags --abbrev=0 2>/dev/null || echo "HEAD~10")..HEAD --oneline
    
  3. Analyze the commits and determine version bump:

    • If any commit contains "BREAKING" or major API changes → major
    • If commits contain "feat:" or new tools/features → minor
    • Otherwise → patch
  4. Calculate new version:

    • Parse current version (e.g., "1.0.1")
    • Apply bump type to get new version

Read the full file on GitHub · 148 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. 10d ago First seen · 148 lines · 30 tokens per session scan A cc64a9726761

Subscribe to this mod's changes

release is a skill published in the GitHub repository ShunL12324/xhs-mcp (46 stars, last pushed 6mo ago), licensed MIT. It adds 30 tokens to every session and 1,074 once invoked, about $0.0002 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.