Skip to content

docs: consolidate changeset guidance into .changeset/README - #291

Merged
adlerhurst merged 7 commits into
mainfrom
cursor/agents-changeset-guidance-3d00
Jun 16, 2026
Merged

docs: consolidate changeset guidance into .changeset/README#291
adlerhurst merged 7 commits into
mainfrom
cursor/agents-changeset-guidance-3d00

Conversation

@adlerhurst

@adlerhurst adlerhurst commented Jun 15, 2026

Copy link
Copy Markdown
Member

Summary

Consolidates changeset PR workflow into .changeset/README.md as the single source of truth. Root AGENTS.md now links to README anchors (#publishable-npm-packages, #decision-table) instead of duplicating ~70 lines.

The README now includes the full agent/PR workflow: CI gate, publishable paths, user-visible definition, decision table, how-to (interactive for humans, direct write for agents), empty-changeset rules, anti-patterns, and local verify command. Existing alpha/publishing/maintainer content is preserved below.

Cross-references updated in PR template, copilot instructions, release-docs instructions, typescript instructions, and scripts/check-changeset-required.mjs error messages.

Validation

  • rg "decision table below|See AGENTS\.md|AGENTS\.md changeset" — no stale references
  • node scripts/check-changeset-required.mjs --base origin/main (exit 0)

Release notes / changeset

No changeset required — no public npm package files changed.

Notes

None.

Open in Web Open in Cursor 

Replace the misleading empty-changeset-for-all-chores rule with a decision
table aligned to check-changeset-required.mjs. Agents should skip .changeset
files on non-publishable PRs and add real changesets only for user-visible
npm package changes under publishable paths.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
@vercel

vercel Bot commented Jun 15, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
nextgen Error Error Jun 16, 2026 5:05am

Request Review

@adlerhurst
adlerhurst requested a review from mridang June 15, 2026 12:48
@adlerhurst
adlerhurst marked this pull request as ready for review June 15, 2026 12:48
Copilot AI review requested due to automatic review settings June 15, 2026 12:48

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Clarifies the repository’s Changesets policy so agents only add .changeset/*.md files when a PR actually touches publishable npm package paths, reducing unnecessary empty changesets on Go-only/internal/docs-only work.

Changes:

  • Updates the changeset gate script messaging to reflect “publishable path” rules and the (rare) empty-changeset case.
  • Adds a Changesets subsection to AGENTS.md with the publishable path list (matching the script), a decision table, and a local verification command.
  • Aligns the PR template and GitHub Copilot/TypeScript review instructions to reference the new decision table.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated no comments.

Show a summary per file
File Description
scripts/check-changeset-required.mjs Clarifies gating comments/errors to be path-based and documents the rare empty-changeset scenario.
AGENTS.md Documents publishable paths + decision table for when to add no/real/empty changeset.
.github/PULL_REQUEST_TEMPLATE.md Prompts authors to state one of the decision-table outcomes in PR descriptions.
.github/instructions/typescript.instructions.md Points TypeScript reviewers/agents to the decision table for changeset decisions.
.github/copilot-instructions.md Aligns Copilot guidance with the decision-table-based changeset rules.

Copy link
Copy Markdown
Member

Thanks, this is a useful correction to the previous guidance. I think the direction is right: agents should stop creating empty changesets for docs/CI/internal-only PRs.

A couple of things I would adjust before merging:

  1. The local verification wording in AGENTS.md is a bit too strong:

    Exit 0 → no changeset file needed. Exit 1 → add a changeset...

    scripts/check-changeset-required.mjs also exits 0 when publishable package paths changed and a .changeset/*.md file is already present. So I’d phrase this as something like: Exit 0 -> the changeset gate is satisfied; use the decision table above to state the correct PR outcome. Otherwise an agent could incorrectly write “No changeset required” on a PR that did require and include one.

  2. AGENTS.md is getting pretty long, and this change makes that more visible. I wonder if it should become more of an index plus hard constraints, with detailed policy living in focused docs. For example, AGENTS.md could keep:

    • the publishable path list or a short pointer to the source of truth,
    • the three-outcome decision table,
    • the command to verify the gate,

    and then link to .changeset/README.md or a dedicated contributor doc for the longer explanation, examples, alpha train details, and anti-patterns. That would make the agent-facing contract easier to scan while still preserving the detailed context somewhere stable.

Related small structure note: after adding ### Changesets, the licensing/secrets bullets now appear under the Changesets subsection in the Markdown outline. A sibling heading like ### Licensing And Secrets before those bullets would keep the document shape cleaner.

@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@mridang must be a member of the zitadel team on Vercel to deploy.
- Click here to add @mridang to the team.
- If you initiated this build, request access.

Learn more about collaboration on Vercel and other options here.

cursoragent and others added 2 commits June 16, 2026 04:55
Move the full PR workflow (decision table, publishable paths, CI gate,
how-to, anti-patterns, verify command) from root AGENTS.md into
.changeset/README.md. Replace the long AGENTS.md Changesets section with
a short link to the README anchors. Update PR template, copilot
instructions, release-docs instructions, and check-changeset-required
error messages to point at the README.

Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
Co-authored-by: Silvan <adlerhurst@users.noreply.github.com>
@cursor cursor Bot changed the title docs: clarify when agents should add changesets docs: consolidate changeset guidance into .changeset/README Jun 16, 2026
@vercel

vercel Bot commented Jun 16, 2026

Copy link
Copy Markdown

@adlerhurst must be a member of the zitadel team on Vercel to deploy.
- Click here to add @adlerhurst to the team.
- If you initiated this build, request access.

Learn more about collaboration on Vercel and other options here.

@adlerhurst
adlerhurst enabled auto-merge (squash) June 16, 2026 05:05
@adlerhurst
adlerhurst merged commit 172e763 into main Jun 16, 2026
12 of 13 checks passed
@adlerhurst
adlerhurst deleted the cursor/agents-changeset-guidance-3d00 branch June 16, 2026 05:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants