rea-ci-tests-audit
MOmorluto/rea485k近 7 天新增 7,690 个 star
Release a completed implementation - version, code review promotion, changelogs, docs, commit, tag, ff-merge, push
You are now in release mode for [PROJECT_NAME].
Release: $ARGUMENTS
This skill runs after TRIP-2-implement has converged (implementation done, testing gate green, Codex code review APPROVED or explicitly skipped). It is normally chained from TRIP-2 in the same session, but can be invoked standalone in a fresh session.
APPROVED), or explicitly skipped by the user.If this skill was NOT chained from a TRIP-2 session in the current conversation, verify before any release step:
# [ADAPT_TO_PROJECT: Replace with actual lint/type-check/test commands during Init]
[LINT_COMMAND]
[TYPECHECK_COMMAND]
[TEST_COMMAND] <pattern-from-the-plan's-Test-Impact-section>
All must be green. Also verify the Codex state file exists for the given plan path/label (see Step 2 below); if absent, treat as the skipped-Codex fallback (manual CR) and say so explicitly in the CR.
Any failure blocks the release — fix or return to TRIP-2-implement first.
date '+%d-%m-%Y %H:%M'
[VERSION_FILE]. Do not modify anything else in that file.Now that the version (x.y.z) is known:
Compute state file path (derive the key via key.sh so it matches what the review scripts actually wrote — never re-derive it inline):
STATE_KEY="$(bash .claude/skills/codex-plan-review/scripts/key.sh <plan-path>)"
STATE_FILE=".claude/skills/codex-code-review/state/${STATE_KEY}.review.txt"
Content source:
PROMOTION_READY. Strip sentinel..claude/skills/codex-code-review/cr-template.md with body "Code review skipped — trivial change." Verdict: APPROVED with observations.Replace <x.y.z> with actual version. Fill any remaining <...> placeholders.
Save to docs/3-code-review/CR_vx.y.z.md.
Verify: no <...> placeholders, no PROMOTION_READY, version matches version file.
Create docs/2-changelog/vx.y.z.md:
# Changelog vx.y.z (DD-MM-YYYY)
**Release Date**: DD-MM-YYYY at HH:MM
**Version**: x.y.z (previously x0.y0.z0)
**Object**: the commit message
**Code review**: `docs/3-code-review/CR_vx.y.z.md` (Codex loop, N rounds -> verdict)
## Changes
[Describe what changed]
Add a row at the top of the table in docs/2-changelog/changelog_table.md:
| `x.y.z` | the commit message |
bash .claude/skills/TRIP-compact/count-tokens.sh docs/ARCHI.md to check token countWarning: If ARCHI.md exceeds ~20,000 tokens, warn the user:
"ARCHI.md is at ~X tokens. Consider running
TRIP-compactto reduce it before committing."
Keep the pre-existing (non-TRIP) documentation aligned with the code:
README.md shows the project version, bump it to x.y.z.git diff [MAIN_BRANCH]...HEAD or equivalent) — the plan may have fallen short; a doc affected by the real changes must be synced even if the plan didn't list it.If the plan says "None" and the diff confirms it, skip with a one-line note.
Then continue straight to the commit — no confirmation. Everything up to the merge stays local and reversible; the push (Step 9) is the release's only question.
git add -A && git commit -m "<commit message from Step 1>"
Important: Only use the commit message. Do NOT add Co-Authored-By or any other trailer.
git tag vx.y.z
Merge the feature branch back into the main branch, keeping a single clean linear history:
git checkout [MAIN_BRANCH]
git merge --ff-only <feature-branch>
git branch -d <feature-branch>
If --ff-only fails, the main branch moved during implementation — rebase the feature branch onto it, then retry. Never create a merge commit.
Use the AskUserQuestion tool to ask:
If "Yes":
git push && git push --tags
MOmorluto/rea485k近 7 天新增 7,690 个 star
MOmorluto/rea485k近 7 天新增 7,690 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star
MAmattpocock/skills336k近 7 天新增 4,217 个 star