agentleFS
reaatechreaatech/agents-md-kit/skills/release-prep/skill.md

release-prep

Skill2 starsChanged 6 months agoMITView on GitHub

Orchestrate changeset-based version bumps, changelog generation, and release validation

9 other projects use a version of this.

Adopted by

Most recently taken up by

The file

We split this skill into the rules it gives an agent

9 rules. 0 are common, 8 are distinctive, and 1 is very specific to this project.

  • 0

    Common

    Most of the 8 edited versions we read keep these.

  • 8

    Distinctive

    This author's own choices. Worth a look.

  • 1

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    User intent: Check if the project is ready for release

    line 28
  2. Very specific:

    All commands pass. changeset status shows one or more pending changesets ready for version bump.

    line 39
  3. Distinctive:

    Write summary: "Added heading-auto-fix rule to linter"

    line 51
  4. Distinctive:

    When changesets are merged to main:

    line 56
  5. Distinctive:

    Before each release, CI validates:

    line 75
  6. Distinctive:

    Dirty working tree: Ensure changes are committed before creating changesets

    line 102
  7. Distinctive:

    Failing CI: Check individual failure, fix, push update

    line 103
  8. Distinctive:

    Never include author email addresses in release notes (GitHub handles attribution)

    line 111
  9. Distinctive:

    Don't expose internal paths or infrastructure details

    line 112

“Common” is measured: kept by at least 6 in 10 of the 8 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
skill.md

Release Preparation

Capability

Orchestrates the complete release workflow using Changesets: version bumps, changelog generation, npm publishing, and validation of release readiness across all packages in the monorepo.

MCP Tools

ToolInput SchemaOutputRate Limit
lint_agents_mdz.object({ filePath: z.string().optional(), content: z.string().optional(), severity: z.enum(['error','warning','info','suggestion']).optional() }){ path: string, findings: Finding[], errorCount: number, warningCount: number, infoCount: number, fixableCount: number }60 RPM
validate_agents_mdz.object({ filePath: z.string().optional(), content: z.string().optional(), strict: z.boolean().optional() }){ valid: boolean, errors: Error[], warnings: Warning[] }60 RPM

The release-prep skill does not have dedicated MCP tools. Release operations are orchestrated through the Changesets CLI, GitHub Actions workflow, and the agents-md-kit CLI for validation gating.

Usage Examples

Example 1: Validate release readiness

  • User intent: Check if the project is ready for release
  • CLI commands:
    pnpm build          # Verify all packages build
    pnpm typecheck      # Verify cross-package type safety
    pnpm test           # Verify all tests pass
    pnpm lint           # Verify no lint issues
    pnpm changeset status   # View pending changes
  • Expected outcome:

    All commands pass. changeset status shows one or more pending changesets ready for version bump.

Example 2: Create a changeset for a new feature

  • User intent: Record a new feature for the next release
  • CLI command:
    pnpm changeset
  • Interactive flow:
    1. Select which packages changed (e.g., @reaatech/agents-markdown-linter)
    2. Choose bump type: minor (for a new feature)
    3. Write summary: "Added heading-auto-fix rule to linter"
    4. Creates .changeset/<random-name>.md

Example 3: Release workflow (CI-driven)

When changesets are merged to main:

  1. "Version Packages" PR auto-opens with:
    • Bumped versions in all affected package.json files
    • Generated CHANGELOG.md entries with GitHub PR/contributor links
    • Updated internal workspace:* dependency versions
  2. Review and merge the Version Packages PR
  3. Publishing happens automatically:
    # .github/workflows/release.yml
    - uses: changesets/action@v1
      with:
        publish: pnpm release          # turbo build + changeset publish
        version: pnpm version-packages # apply changesets, bump versions
  4. GitHub Packages mirror runs automatically

Release Checklist

Before each release, CI validates:

CheckCommandGate
Security auditpnpm audit --audit-level moderateCI audit job
Code formatbiome format --write . && git diff --exit-codeCI format job
Lintbiome check .CI lint job
Type checktsc --noEmit -p tsconfig.typecheck.jsonCI typecheck job
Buildturbo run buildCI build job
Teststurbo run test (Node 20 + 22)CI test job
Coverageturbo run test:coverageCI coverage job
GateAll of the above passCI all-checks job

Error Handling

Known Failure Modes

FailureCauseRecovery
Uncommitted changesWorking tree is dirtyCommit or stash changes first
Tests failingTest suite has failuresBlock release, fix tests
npm publish blockedToken missing or expiredRegenerate NPM_TOKEN, re-run workflow
Version already existsVersion bump PR merged twiceChangesets detects this, won't re-publish
GitHub Packages mirror failsToken lacks packages:writeVerify workflow permissions

Recovery Strategies

  • Dirty working tree: Ensure changes are committed before creating changesets
  • Failing CI: Check individual failure, fix, push update
  • Publish failures: Re-trigger workflow via workflow_dispatch after fixing token
  • Duplicate versions: Changesets prevents this — already-published versions are skipped

Security Considerations

PII Handling

  • Never include author email addresses in release notes (GitHub handles attribution)
  • Don't expose internal paths or infrastructure details
  • Changelogs only contain public-facing summaries from changeset files

Permissions

  • npm token with publish access required (NPM_TOKEN secret)
  • GitHub Actions contents: write for version bump commits
  • GitHub Actions pull-requests: write for Version Packages PR
  • GitHub Actions id-token: write for npm provenance (OIDC)
  • GitHub Actions packages: write for GitHub Packages mirror

Audit Logging

  • Log all release operations with version, timestamp, and user
  • Include request_id for tracing across the release workflow
  • Track which packages were published and at what versions

Download now (ZIP)

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
What did you use it for? e.g. Reviewing pull requests in a Rails app

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.