Write, audit, and release zero-conflict per-change changelog entries managed by ArtificialSpectrum (artspec). Use when adding an entry to changelog/unreleased/ inside a feature/fix/refactor/process PR, checking metadata/PR/Issue links, auditing bilingual pairs, or cutting changelog/<version>/RELEASE.md at release time.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Artspec Changelog?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/prism-shadow-artspec-changelog)
---
name: artspec-changelog
description: Write, audit, and release zero-conflict per-change changelog entries managed by ArtificialSpectrum (artspec). Use when adding an entry to changelog/unreleased/ inside a feature/fix/refactor/process PR, checking metadata/PR/Issue links, auditing bilingual pairs, or cutting changelog/<version>/RELEASE.md at release time.
---
# Zero-Conflict Agentic Changelog Contract (`artspec-changelog`)
Read `artspec.config.json` at the repository root first to learn this repository's `repo`, `languages`, `changelog.dir` (default `changelog`), `changelog.unreleasedDir` (default `unreleased`), and allowed `changelog.types` (default `["feature", "fix", "refactor", "process"]`).
## Architecture
1. **Two levels, zero index files**:
- Root `CHANGELOG.md` (and localized counterparts when configured): one summary line per release linking its folder.
- `<dir>/<version>/YYYY-MM-DD-<slug>.md`: one file per change inside the PR that makes the change.
- **Never add a per-release index file.** Every PR touching one shared index file creates merge conflicts; folder listings + `grep` answer every query cleanly.
2. **`unreleased/` until tag time**:
- All unshipped work lands in `<dir>/unreleased/`. Never invent the next version number early.
- At release preparation, `git mv <dir>/unreleased <dir>/<version>`, commit `<dir>/<version>/RELEASE.md` **before** creating the git tag, and add the one-line link to `CHANGELOG.md`.
- **Released version directories are frozen** and never modified by later PRs.
## Entry Format
Read `references/entry-template.md` for the exact template. Place the metadata block **directly under the `# H1`**, one bullet per field, in this strict order:
| Field | Required | Format |
| --- | --- | --- |
| `Date` | always | `YYYY-MM-DD`, matching the filename prefix |
| `Type` | always | One of `changelog.types` (`feature`, `fix`, `refactor`, `process`) |
| `Scope` | always | 1–5 backticked code areas matching repo directories/modules |
| `PR` | when a PR exists | Full URL link(s): `[#N](https://github.com/<owner>/<repo>/pull/N)` |
| `Issue` | when closing/answering issues | Full URL link(s): `[#N](https://github.com/<owner>/<repo>/issues/N)` |
| `Breaking` | only when breaking | `yes — <one line>`; **omit entirely otherwise** so `grep -rl 'Breaking:' changelog/` is exact |
Omit inapplicable optional fields rather than writing placeholders (`none`, `N/A`, `—`).
## Rules That Catch Real Bugs
1. **Classify Issue vs PR before writing**: GitHub issues and PRs share one numbering space. Verify with `gh api repos/<owner>/<repo>/issues/N --jq 'if .pull_request then "PR" else "ISSUE" end'`.
2. **Never write bare `#N` in Markdown**: Bare `#123` does not render as a link in static files or sites. Always write the full URL, and name cross-repo references explicitly (`OtherRepo [#12](https://github.com/...)`).
3. **Add the `PR` link once the PR is open**: Open the PR, then add the `PR:` bullet in a follow-up commit on the same branch before merging.
4. **No reasoning on disk**: Record **what was done** in past tense. Do **not** add `## Why`, `## Problem`, `## Decision`, `## Alternatives considered`, `## Verification`, or `## Risks`. Reasoning belongs in the PR description tied to the diff.
5. **Do not describe the current state of the codebase**: Avoid statements like "`X` is not exported from `Y`" that drift silently as code evolves. State what the change did at the time.
6. **Breaking changes require a compatibility section**: Any entry with `Breaking:` must include `## Compatibility` (and `## 兼容性` in Chinese) stating what breaks and the exact migration step.
## Multi-Language Pairs
When `languages` includes additional locales (e.g. `["en", "zh"]`):
- Every entry ships as `<name>.md` + `<name>.zh.md` mirroring section count and order.
- Keep metadata field names and values (`Date`, `Type`, `Scope`, `PR`, `Issue`) **in English verbatim** in every language file so one `grep` queries the whole tree. Translate only the `Breaking` prose reason, body prose, and headings (`## Details` → `## 细节`, `## Compatibility` → `## 兼容性`).
- Link the counterpart directly beneath the metadata block (`[中文版](<name>.zh.md)` / `[English](<name>.md)`).
## Cutting a Release
See `references/release-template.md` for `RELEASE.md` structure. Always sweep `changelog/unreleased/` with `npx artspec check-changelog --base origin/main --release` before renaming the folder, because released folders freeze permanently.
## Verification
```sh
npx artspec check-changelog --base origin/main
```