release-sync · git:20260319.9e1f6a4 · 2026-03-19 · sha256 86bed66c511f89f4

release-sync git:20260319.9e1f6a4A

Immutable. This exact content never changes and is served at /api/v1/blob/86bed66c511f89f4.

---
name: release-sync
description: PromptHub release update skill. Use for `/update-readme`, version bumps, changelog updates, website sync, GUI screenshot/doc refresh, and multilingual release/documentation alignment.
trigger: manual
---

# Release Sync Skill

This skill is for PromptHub release housekeeping.

## Use this when

- The user asks to bump the version, for example `0.4.5 -> 0.4.6`
- The user asks to update `README.md`
- The user asks to update `CHANGELOG.md`
- The user asks to sync the website or release docs
- The user asks to refresh GUI screenshots or feature descriptions
- The user asks to align multilingual docs or app locales
- The request is something like `/update-readme`, `发版`, `更新官网`, `同步文档`

## Source of truth

Always treat these as source of truth first:

- `package.json`
- newest section in `CHANGELOG.md`

## Required update surfaces

- Core
  - `package.json`
  - `CHANGELOG.md`
- Release docs
  - `README.md`
  - `docs/README.en.md`
  - `docs/README.zh-TW.md`
  - `docs/README.ja.md`
  - `docs/README.de.md`
  - `docs/README.es.md`
  - `docs/README.fr.md`
- Website
  - `website/scripts/sync-release.mjs`
  - `website/src/generated/release.ts`
  - `website/src/content/docs/changelog.md`
  - `website/src/content/docs/introduction.md`
  - `website/src/content/docs/en/introduction.md`
  - `website/src/i18n/ui.ts`
- App locales when user-facing app copy changed
  - `src/renderer/i18n/locales/zh.json`
  - `src/renderer/i18n/locales/zh-TW.json`
  - `src/renderer/i18n/locales/en.json`
  - `src/renderer/i18n/locales/ja.json`
  - `src/renderer/i18n/locales/de.json`
  - `src/renderer/i18n/locales/es.json`
  - `src/renderer/i18n/locales/fr.json`
- Screenshots/assets when GUI changed
  - `docs/imgs/`
  - `website/public/imgs/`

## Execution order

1. Identify target version and release date.
2. Update `package.json`.
3. Add the new top release section to `CHANGELOG.md`.
4. Update `README.md`.
5. Sync localized README files under `docs/`.
6. Run:

```bash
node website/scripts/sync-release.mjs
```

7. If needed, patch website copy beyond generated metadata.
8. If app copy changed, sync `src/renderer/i18n/locales/*.json`.
9. If GUI changed, verify docs/screenshots match the text.
10. Run:

```bash
pnpm exec tsc --noEmit --pretty false
```

## Rules

- Keep changelog bilingual if the current release style is bilingual.
- Keep README badge version, download links, and install text consistent with the target version.
- Do not silently skip localized docs; explicitly report what was updated and what was not.
- If the release mentions CLI, clarify whether it is desktop-available or only available via CLI/npm distribution.
- Prefer existing automation:
  - use `website/scripts/sync-release.mjs` instead of manually editing generated release metadata

## Output checklist

Final response should say:

- target version
- files updated
- whether website sync was run
- whether screenshots were updated
- which locales/docs were updated
- what was intentionally skipped