release-create

Um comando que cria uma versão publicada no GitHub a partir de uma tag Git existente, que é um marcador de uma versão específica do código.

In plain words
What is it for?
Serve para comparar a versão com a anterior, analisar commits e pull requests e preparar as informações da release.
Why use it?
Verifica se a tag existe e está baseada na branch principal antes de montar o lançamento, reduzindo o risco de publicar a versão errada.

Command for Claude Code

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.

agentmods
npx agentmods add commands/boykush/scraps/release-create
Clone the repo
git clone --depth 1 https://github.com/boykush/scraps

Made for: Claude Code.

Per session 10 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,213 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00010 $0.01213
Opus 5 $0.00005 $0.00607
Sonnet 5 $0.00002 $0.00243
Haiku 4.5 $0.00001 $0.00121

Measured 2d ago against content hash 8789e5292c67, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

release-create 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 2d 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-create.md · 94 lines

How it starts

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

Create a GitHub Release for the Scraps project using the following workflow:

Arguments:

  • $ARGUMENTS: Version number (e.g., "0.27.0")

Workflow:

  1. Verify tag exists and points at main:

    • Check if tag v$ARGUMENTS exists with git tag --list v$ARGUMENTS
    • If tag doesn't exist, inform user to run /release-tag-create first
    • Check the tag is an ancestor of main: git fetch origin main then git merge-base --is-ancestor v$ARGUMENTS origin/main
    • If it isn't, stop: the tag must be deleted (git push origin :refs/tags/v$ARGUMENTS) and recreated on main via /release-tag-create
  2. Find previous version tag:

    • Get sorted list of tags: git tag --sort=-v:refname
    • Identify the previous version tag (the one before v$ARGUMENTS)
  3. Analyze commit history and PRs:

    • Get commits between previous tag and current tag: git log <previous_tag>..v$ARGUMENTS --oneline
    • For each merge commit, extract PR number (e.g., from "Merge pull request #123")
    • Fetch PR details using gh pr view <PR_number> or gh api repos/boykush/scraps/pulls/<PR_number>
    • Extract PR title, labels, and categorize by:
      • Labels or PR title prefix analysis:
        • bug, fix: → 🐛 Bug Fixes
        • enhancement, feat:, feature → ✨ Features
        • documentation, docs: → 📚 Documentation
        • refactoring, refactor: → 🔧 Refactoring
        • test, tests → ✅ Tests
        • maintenance, chore: → 🔧 Maintenance
      • Default → 🔧 Other Changes
  4. Generate release notes:

    • Create markdown format with categorized changes
    • Include PR numbers and titles from PR data
    • For Features section: Add a brief description (2-3 lines) explaining what the feature does and its benefits
    • Add "Full Changelog" link: https://github.com/boykush/scraps/compare/<previous_tag>...v$ARGUMENTS
    • Format example:
      ## What's Changed
      
      ### ✨ Features
      - feat: add configurable scraps directory support (#123)
      
        Users can now customize the scraps directory location via .scraps.toml.
        This allows for better project organization and flexibility in documentation structure.
      
      ### 🐛 Bug Fixes
      - fix: update E2E test to match new project description (#182)
      
      ### 🔧 Maintenance
      - chore: update rmcp dependency to v0.6.3 (#181)
      
      **Full Changelog**: https://github.com/boykush/scraps/compare/v0.26.1...v0.27.0
      
  5. Request user input for feature descriptions:

    • For each feature item, present the PR title and ask user to provide a brief description
    • User can provide description or skip if not needed
  6. Request confirmation:

    • Show generated release notes to user
    • Ask for confirmation before creating the release
  7. Create GitHub Release (requires user approval):

    • Use gh release create v$ARGUMENTS --title "v$ARGUMENTS" --notes "<generated_notes>"
    • Mark as latest release
  8. Verify:

    • Confirm release creation with gh release view v$ARGUMENTS
    • Display release URL
    • Follow the triggered workflow: gh run list --workflow=release.yml --limit 1, then gh run watch <run_id> --exit-status
    • Report each job: publish-crate, update-homebrew, and update-floating-tags run after build and can fail independently, leaving the release half-published

Usage: /release-create 0.27.0

Example:

# For version 0.27.0 (after running /release-tag-create 0.27.0)
/release-create 0.27.0

Notes:

  • This command requires that the git tag already exists (created by /release-tag-create) and is an ancestor of main
  • Creating the Release triggers the crates.io publish, the homebrew-tap update, and the floating v{major}/v{major}.{minor} tag moves (see .github/workflows/release.yml); a tag off main would ship a build that is not on main
  • The version format should be semver without 'v' prefix in arguments
  • Release notes are automatically generated from PR information
  • User confirmation is required before creating the GitHub Release
  • Categorization is based on PR labels and titles

Read the full file on GitHub · 94 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. 2d ago First seen · 94 lines · 10 tokens per session scan A 8789e5292c67

Subscribe to this mod's changes

release-create is a command published in the GitHub repository boykush/scraps (47 stars, last pushed 2d ago), licensed MIT. It adds 10 tokens to every session and 1,213 once invoked, about $0.0001 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.