create-release

A set of steps for releasing and publishing a new version of a JavaScript package. A package is reusable code distributed through a package registry.

In plain words
What is it for?
Use it to plan and carry out a package release, including checking Git branches and changes, finding package metadata, reviewing automated workflows, inspecting release tools, and running the project's release process.
Why use it?
It reduces release mistakes by checking the repository, version settings, publishing configuration, workflows, hooks, and pull requests before publishing.

Cursor rule for Cursor

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 rules/zackiles/deno-kit/create-release
Clone the repo
git clone --depth 1 https://github.com/zackiles/deno-kit

Made for: Cursor.

Per session 9 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 775 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.00009 $0.00775
Opus 5 $0.00005 $0.00387
Sonnet 5 $0.00002 $0.00155
Haiku 4.5 $0.00001 $0.00077

Measured yesterday against content hash 1de7b1537ba6, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

create-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 yesterday.

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.

.cursor/rules/create-release.mdc · 43 lines

How it starts

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

Task

You will analyze the codebase and plan how to release or publish a new version of this package or module, and then execute that plan. To do so, you will follow all of the steps bellow.


Steps

Analyze Codebase

  1. Run git commands to understand which branch is checked out, whether the main branch is named main or master, if the working directory is clean or has uncommitted changes, how far ahead or behind we are from main, and what the local git config/custom git options are.
  2. If GitHub info is accessible (via CLI or other tools), check whether there is an open pull request for this branch and how local commits diverge from the remote repository.
  3. Look in .github/workflows to see which release steps occur locally vs remotely (e.g., GitHub Actions).
  4. Grep for package files (deno.json, deno.jsonc, package.json, package.jsonc, jsr.json, jsr.jsonc) to identify package name, version, publish registries, and any release tools (semantic-release, changesets, husky).
  5. Inspect .git/ hooks to find any configured release processes or commit checks.
  6. Grep for markdown documents (README.md, AI-README.md, CONTRIBUTING.md, AI-CONTRIBUTING.md, CONTRIBUTORS.md, AI-CONTRIBUTORS.md, CHANGELOG.md, AI-CHANGELOG.md) that may contain instructions for releasing/publishing.
  7. Compare the local version to the latest published version on any registry this package uses.
  8. Check the latest GitHub tag/release to see if it’s ahead or behind the local version.

Plan the Steps Needed to Release

  1. Determine if you’re on main or a feature branch; if on a feature branch, confirm whether it already exists on the remote.
  2. Check for unstaged changes and stage them if necessary.
  3. If behind main, decide whether to fetch and rebase or merge.
  4. Commit any uncommitted changes using a format consistent with the codebase’s commit-message rules (fallback is @create-commit-message.mdc if unknown).
  5. If a version bump is required, confirm where (e.g., package file) and when (before or after any new commit).
  6. On the main branch, you may need to push tags to trigger a release or push the feature branch for a pull request if you’re not on main.
  7. Distinguish which tasks should happen locally vs which are automated by CI/CD or GitHub Actions.
  8. If conflicting info or uncertainty arises, stop to ask the user for direction.

Read the full file on GitHub · 43 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. yesterday First seen · 43 lines · 9 tokens per session scan A 1de7b1537ba6

Subscribe to this mod's changes

create-release is a cursor rule published in the GitHub repository zackiles/deno-kit (3 stars, last pushed 5mo ago), licensed MIT. It adds 9 tokens to every session and 775 once invoked, about $0.0000 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-31.