withastro/astro

changeset

Create a changeset for the Astro monorepo.

Voir la source

Mode d’emploi

  1. Copiez la commande et examinez le paquet avant de l’installer dans votre environnement agent.
  2. Consultez le document original pour les outils, identifiants et environnements requis.
  3. Décrivez les entrées et le livrable souhaité ; comparez la sortie aux sources.
npx skills add https://github.com/withastro/astro --skill changeset

Avant de commencer

  • L’installation n’inclut ni abonnement au modèle, ni quota API, ni accès aux fichiers.
  • Étoiles et installations reflètent l’activité, pas un test indépendant de qualité ou de sécurité.
Document Skill original

Rendu depuis le dépôt source en conservant titres, exemples, code, tableaux, liens et images.

Changeset

Create changeset files for the Astro monorepo. Changesets declare which packages changed, the semver bump type, and a user-facing message that becomes the CHANGELOG entry.

Every PR that modifies a package requires a changeset. Only examples/* changes are exempt.

Creating the File

Run pnpm changeset --empty from the repo root. This creates a randomly-named .md file in .changeset/ with empty front matter — no need to invent a filename or inspect the directory. Then edit the generated file to add the package bump and message.

Format

md
---
'<package-name>': patch
---

<changeset message>
  • Package names must match the name field in the package's package.json exactly (e.g., 'astro', '@astrojs/node')
  • Bump types: patch, minor, or major
  • A single changeset file can cover multiple packages
  • major and minor bumps to the core astro package are blocked by CI and require maintainer review

Writing the Message

The changeset message is a public CHANGELOG entry. Write it for Astro users, not for code reviewers.

Begin with a present tense verb that completes the sentence "This PR ...":

  • Adds, Removes, Fixes, Updates, Refactors, Improves, Deprecates

Describe the change as someone building an Astro site will experience it, not how it was implemented internally:

md
// Too implementation-focused
Logs helpful errors if content is invalid

// Better -- user-facing impact
Adds logging for content collections configuration errors.

Patch updates

One line is usually enough. No end punctuation required unless writing multiple sentences.

md
---
'astro': patch
---

Fixes a bug where the toolbar audit would incorrectly flag images as above the fold
md
---
'astro': patch
---

Refactors internal handling of styles and scripts for content collections to improve build performance

Help the reader figure out if the change matters to them. Include the specific API name (with backtick formatting) when the change is tied to a recognizable option or function. When the API is not user-facing, describe the use case or end result instead:

md
// Vague
Improves automatic fallbacks generation

// Clear -- reader can tell if it affects them
Improves automatic `fallbacks` generation for the experimental Fonts API

New features (minor)

Start with "Adds", name the new API, and describe what users can now do. Include a code example when helpful:

`md
---
'astro': minor
---

Adds a new, optional property `timeout` for the `client:idle` directive

This value allows you to specify a maximum time to wait, in milliseconds, before hydrating a UI framework component.

<Button client:idle={{ timeout: 500 }} />

New features are an opportunity to write a richer description that can feed into blog posts. See the Astro changeset docs for guidance on longer entries.

Breaking changes (major)

Use verbs like "Removes", "Changes", or "Deprecates". Must include migration guidance. Use diff code samples when appropriate:

`md
---
'astro': major
---

Removes support for Shiki custom language's `path` property. The language JSON file must now be imported and passed to the option instead.

// astro.config.js

  • import customLang from './custom.tmLanguage.json'

export default defineConfig({ markdown: { shikiConfig: { langs: [

  • { path: './custom.tmLanguage.json' },
  • customLang,

], }, }, })

Changes to default values must mention the old default, the new default, and how to restore previous behavior.

Longer changesets

For longer descriptions, use #### and deeper headings (never ## or ###) to divide sections. This keeps the CHANGELOG readable when your entry is incorporated:

md
---
'astro': minor
---

Adds a new Sessions API to store user state between requests for on-demand rendered pages.

#### Configuring session storage

<!-- ... -->

#### Using sessions

<!-- ... -->
du même dépôt

Autres Skills

Tous les Skills
withastro
Communauté

analyze-github-action-logs

Analyze recent GitHub Actions workflow runs to identify patterns, mistakes, and improvements. Use when asked to "analyze workflow logs", "review action runs", or "analyze GitHub Actions".

installations
4
GitHub Stars
63,4 k
Mis à jour
23 oct.
withastro
Communauté

astro-adversary-blue

Independently implement and validate an alternative solution for an Astro pull request. Use only for Factory's adversary blue team.

installations
4
GitHub Stars
63,4 k
Mis à jour
23 oct.
withastro
Communauté

astro-adversary-purple

Qualify and compare red and blue solutions for an Astro pull request using Astro-specific merge and tie-break criteria. Use only for Factory's adversary purple team.

installations
4
GitHub Stars
63,4 k
Mis à jour
23 oct.
withastro
Communauté

astro-code-review

Perform a static, read-only code review of an Astro pull request or of a local branch, commit range, diff, patch, or working tree being prepared as a pull request. Determine whether the change satisfies its stated business requirements and is good enough to merge, using the PR description, linked requirement issues and roadmap items, and PR or issue discussions when available. Use this skill only for PR review or self-review, not issue triage or bug investigation. It reports only merge-relevant

installations
4
GitHub Stars
63,4 k
Mis à jour
23 oct.