diff options
| author | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-15 21:22:56 +0300 |
|---|---|---|
| committer | Ogulcan Celik <ogulcancelik@gmail.com> | 2026-05-15 21:24:05 +0300 |
| commit | 16e10aa921711f1343d2af77978b71cbb4e7c461 (patch) | |
| tree | dc166d8440529947a6877ee7ffde804892f66c63 /.pi/prompts | |
| parent | e1a84a8e340f09b9479ca2df333ba135a45d2048 (diff) | |
docs: move changelog into next-release docs flow
Diffstat (limited to '.pi/prompts')
| -rw-r--r-- | .pi/prompts/pre-release-audit.md (renamed from .pi/prompts/draft-changelog.md) | 65 |
1 files changed, 35 insertions, 30 deletions
diff --git a/.pi/prompts/draft-changelog.md b/.pi/prompts/pre-release-audit.md index de9f3c78..40ab4309 100644 --- a/.pi/prompts/draft-changelog.md +++ b/.pi/prompts/pre-release-audit.md @@ -1,7 +1,7 @@ --- -description: Draft changelog entry from commits and PRs since last tag +description: Audit next-release docs and changelog before release --- -Draft a changelog entry for this repo. +Audit release readiness for this repo. Optional starting ref override: `$1` Extra user intent/context: `${@:2}` @@ -10,7 +10,7 @@ Process: 1. Determine the base ref. - If `$1` is non-empty and looks like a ref/tag, use it. - - Otherwise use the latest release tag, preferring the repo's semver tag style (for example `v0.1.2`): + - Otherwise use the latest release tag, preferring the repo's semver tag style: ```bash git describe --tags --abbrev=0 ``` @@ -29,7 +29,7 @@ Process: - Look for first-parent subjects that indicate PR merges, including squash merges like `title (#123)`. - If GitHub CLI is available and the PR number is known, use it to fetch PR title/body for context. - Treat a merged PR as the primary release unit. - - Do **not** also list the individual commits that belong to that PR. + - Do **not** also list individual commits that belong to that PR. 4. Handle direct commits separately. - Any commit in the range not represented by a merged PR should be considered on its own. @@ -44,34 +44,36 @@ Process: - formatting-only changes - comment-only/doc-only changes unless they materially affect users -6. Audit public docs for release readiness. - - Treat `HEAD` as the release candidate that will be released after the changelog is drafted. +6. Audit `.pi/docs/CHANGELOG.md`. + - Treat root `CHANGELOG.md` as the latest released changelog. + - Treat `.pi/docs/CHANGELOG.md` as the next-release changelog. + - Compare meaningful user-facing changes in the commit range against `.pi/docs/CHANGELOG.md`. + - Flag missing entries for new features, bug fixes, removals, breaking changes, defaults, compatibility changes, user-visible command/config/API behavior, and security-relevant changes. + - Flag stale entries that do not appear to correspond to shipped changes in the range. + - Flag entries that are too implementation-focused or unclear for end users. + - Preserve the existing changelog style and sections: `Added`, `Changed`, `Fixed`, `Removed`, and `Breaking Changes` when applicable. + +7. Audit next-release public docs. - Treat root `README.md`, `CONFIGURATION.md`, `INTEGRATIONS.md`, and `SOCKET_API.md` as the latest released public docs. - - Treat `.pi/docs/README.md`, `.pi/docs/CONFIGURATION.md`, `.pi/docs/INTEGRATIONS.md`, and `.pi/docs/SOCKET_API.md` as the next-release versions of those public docs. - - Compare meaningful user-facing changes in the range against `.pi/docs/` first. Flag missing next-release docs for new or changed features, commands, config keys, protocol behavior, integrations, defaults, and compatibility notes that should be documented for this release. - - Compare `.pi/docs/` against the root docs. Flag each difference as either intended to ship in this release, stale, or needing user decision. + - Treat `.pi/docs/README.md`, `.pi/docs/CONFIGURATION.md`, `.pi/docs/INTEGRATIONS.md`, and `.pi/docs/SOCKET_API.md` as the next-release versions. + - Compare meaningful user-facing changes in the range against `.pi/docs/` first. + - Flag missing next-release docs for new or changed features, commands, config keys, protocol behavior, integrations, defaults, and compatibility notes. + - Compare `.pi/docs/` against the root docs. Flag each difference as intended to ship in this release, stale, or needing user decision. - Also audit `website/` and example config snippets for release readiness, but keep them aligned with the latest published release unless the user explicitly asks for prerelease docs. - - Do not edit docs unless the user explicitly asks; report the docs audit alongside the changelog draft. - - When the user asks to apply the release draft, update `CHANGELOG.md`, apply approved documentation changes to `.pi/docs/`, then copy the approved `.pi/docs/` files into the matching root public docs so `just release-docs-check` passes. -7. Draft the changelog entry. - - Group items under these sections when applicable: - - `### Added` - - `### Changed` - - `### Fixed` - - `### Removed` - - `### Breaking Changes` - - Write for end users, not for commit archaeology. - - Merge related low-level commits into one human-readable bullet when appropriate. - - Keep bullets concrete and outcome-focused. - - Prefer one bullet per meaningful shipped change. - - If there are both PRs and direct commits, include both, but exclude direct commits already covered by PRs. - - For merged PR items, append the PR reference and contributor thanks inline when appropriate, in the form `(#123, thanks @author)`. Do this for merged PRs, not for direct commits. +8. Verify finalization state. + - Before `just release`, approved `.pi/docs/*` files must be copied to their root counterparts. + - Run or recommend: + ```bash + just release-docs-check + ``` + - This check must include `README.md`, `CONFIGURATION.md`, `INTEGRATIONS.md`, `SOCKET_API.md`, and `CHANGELOG.md`. + - Do not run `just release` unless the working tree is clean and the docs check passes. -8. Respect repo reality. - - If `CHANGELOG.md` exists, read it before proposing edits and follow its existing style. - - If no changelog file exists, say so explicitly and produce a draft entry only. - - Do not edit files yet unless the user explicitly asks you to apply the draft. +9. Apply changes only when asked. + - Do not edit files during the audit unless the user explicitly asks you to apply fixes. + - When asked to apply audit fixes, update `.pi/docs/CHANGELOG.md` and any relevant `.pi/docs/` files first. + - When asked to finalize release docs, copy approved `.pi/docs/` files into the matching root files and run `just release-docs-check`. Output format: @@ -79,8 +81,11 @@ Output format: - `PRs included:` - `Direct commits included:` - `Excluded as housekeeping:` +- `Next-release changelog audit:` - `Next-release docs audit:` -- `Public docs finalization plan:` -- `Proposed changelog entry:` +- `Root finalization status:` +- `Required changes before release:` +- `Proposed changelog edits:` +- `Proposed docs edits:` If the range has no meaningful user-facing changes, say that plainly instead of forcing entries. |
