prepare-rslint-npm-release
Skill462 starsChanged 12 days agoMITView on GitHub
Prepare a stable release PR for the unified rslint npm packages by updating package versions and rule/TypeScript release metadata. Use for release preparation or version bump PRs, not for publishing npm packages, canary releases, or the independent tsgo/Rust release line.
In this repository6 other files it gives its agents.
- AGENTS.mdAGENTS.md
- create-draft-release-notesSkill
- debug-ciSkill
- port-ruleSkill
- rstack-cli-docsSkill
- rstack-docs-writerSkill
The file
We split this skill into the rules it gives an agent
6 rules. About 0 are common, 3 are distinctive, and 3 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈3
Distinctive · estimate
This author's own choices. Worth a look.
3
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 15
Follow the repository's AGENTS.md for branches and local verification.
- Distinctive: line 39
Run commands from the repository root.
- Very specific: line 46
Use the requested bump type in place of patch.
- Distinctive: line 73
Check these invariants before committing:
- Very specific: line 75
Every selected manifest has the intended version.
- Very specific: line 100
Commit the version manifests and release metadata together, with a message and PR title such as chore: release npm <version>.
≈ “Common” is an estimate: at least 1 in 5 of the 350,495 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Prepare an Rslint npm Release PR
Prepare a reviewable version and metadata PR, following the shape of
PR #2080. Use the current
pnpm sync:version-info command introduced in #2078; #2080 used the older
sync:rule-releases command and data filename.
Establish the release state
Follow the repository's AGENTS.md for branches and local verification. Read these current sources before choosing commands or file scope:
- scripts/version.mjs and the root package.json: version calculation and package selection.
- scripts/sync-version-info/: rule history and the pinned TypeScript commit/release mapping.
- Sync release information: the manual preparation sequence.
Resolve the intended stable version or major, minor, or patch bump from the
request. Ask for the target if it cannot be inferred. The version script bumps
from the highest base version in its selected manifests, so inspect those
versions before predicting the result.
Fetch the main branch and release tags. Determine the previous stable vX.Y.Z
tag, excluding prerelease tags, and check for an existing branch or PR for the
requested release. Start new preparation from current origin/main on a branch
such as chore/release-<version>; resume an existing release branch instead of
bumping again. If the target is already released, report that state rather than
silently choosing another version.
Update versions and metadata
Run commands from the repository root. For an agreed patch release:
pnpm run version patch
pnpm sync:version-infoUse the requested bump type in place of patch. If the intended version bump is
already present, skip the first command and review or refresh the metadata.
version is not idempotent: running it again advances the version again. A failed
metadata lookup is a reason to retry the sync after resolving the failure, not
to repeat the bump.
The version script owns the unified package selection: the root manifest,
packages/*/package.json except packages/tsgo/package.json, and
npm/rslint/*/package.json. This includes private workspace packages. Derive
the current selection from the script rather than hardcoding #2080's package
count. Preserve workspace: dependency ranges. The independent tsgo packages
and Rust crate versions are outside this workflow.
The sync writes website/releases.json for the new stable version. It reads the
indexed typescript-go gitlink and queries upstream TypeScript tags. Record the
compiler already pinned for this release; preparing a release does not imply a
compiler upgrade. Stage any separately authorized submodule revision change
before syncing. The sync can read the pin without initializing the submodule.
The default sync skips when the package version equals the latest stable tag.
An unexpected skip during new release preparation is not successful generation:
check the package version and fetched tags. Use incremental sync for normal
preparation; full rebuilds historical rule records and belongs to a separate
history repair request.
Review the generated diff
Check these invariants before committing:
- Every selected manifest has the intended version. Ordinary version changes
affect only its
versionfield; investigate unrelated dependency, script, formatting, or lockfile changes. - The new release appears once in
website/releases.json. Earlier records and compiler bindings are unchanged, and nomainentry or compiler backfill is introduced. - New rule IDs are unique and sorted. The list equals the registered rules added
since the previous stable release, excluding IDs recorded in earlier releases.
Cross-check implementations and the relevant core/plugin
all.goaggregators for both missing and spurious entries; a helper or fixture directory is not a rule. A release with no new rules is valid. typescript.commitequals the indexed gitlink.typescript.releaseVersionis an exact upstream tag match, including peeled annotated tags, ornullwhen no tag matches. Do not substitute the latest TypeScript release or a version reported by upstream source files.- A second
pnpm sync:version-inforun leaves the generated file unchanged.
For version and metadata-only changes, follow #2080's focused verification:
run pnpm run check-spell with every changed text path explicitly, run
pnpm run format:check, and run git diff --check. Apply AGENTS.md's affected
package rules if source or build behavior also changes. The generic build/test
suggestions printed by version.mjs are not a request for full local suites.
Deliver the preparation PR
Commit the version manifests and release metadata together, with a message and
PR title such as chore: release npm <version>. Push the release branch and open
a PR targeting main, or update the existing release PR. Include the version
transition, actual manifest count, new rule count, TypeScript binding, and the
verification commands/results. Keep temporary verification artifacts outside
the commit.
This workflow ends at the preparation PR. Actual publication is a separate
manual release.yml workflow; merging a
version PR does not publish npm packages. Its npm-only selection is
to_release=npm. Draft release notes, when requested, use the separate
create-draft-release-notes skill.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

