Repository navigation
chore(workflow): adopt the /finalize-pr 3-phase PR workflow - #21
Merged
Merged
Conversation
The reusable finalize pipeline (phase 3 of Implement → Adjust → Finalize): simplify → single /code-review → conditional /security-review → lean gate → push → open/refresh PR → watch CI (capped fix-loop) → report. Re-pointed at this repo's lint/typecheck/test:run gate, CI job names, and client-side risky-path globs. pr-template.md moves here since finalize-pr now owns PR creation. Refs #19 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Replace the inline simplify → review → push → PR → CI tail (and the redundant post-PR /review pass) with a delegation to /finalize-pr, the single source of truth for the ship pipeline. Repoint the lean gate at pr-prep/check.sh and add the Adjust-phase handoff. Removes scripts/validate.sh — a byte-for-byte duplicate of pr-prep/check.sh. Refs #19 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Add an "Implement → Adjust → Finalize" subsection under Git / PR workflow, including the Adjust-phase "commit locally, never push" rule that batches CI runs. List /finalize-pr in the skills line. Refs #19 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Drop the over-repeated pipeline restatements the /simplify review flagged: the inline finalize step-list in implement-issue (delegate, don't echo), the triple-stated "single pass" in finalize-pr step 2, and the duplicated CI-gate enumeration in step 4 (step 7 already owns it). Refs #19 Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Deploying atlas-legacy with
|
| Latest commit: |
0584a0b
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://e7296dde.syatlas.pages.dev |
| Branch Preview URL: | https://chore-finalize-pr-workflow.syatlas.pages.dev |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Adopts the 3-phase PR workflow (Implement → Adjust → Finalize) and the
reusable
/finalize-prship pipeline from SahajCloud (ref sydevs/SahajCloud#517),adapted to this repo's Vite/React widget tooling — so CI re-runs once per
finalize, not on every push.
(
/finalize-pr);/implement-issuenow delegates its finalize steps to it./security-reviewgated on this widget's client-siderisky paths, and consolidates to a single
/code-reviewpass.Changes
.claude/skills/finalize-pr/SKILL.md— new ship pipeline: pre-flight →/simplify→ single/code-review(subagent) → conditional/security-review→ lean gate (
pr-prep/check.sh) → push → create/refresh PR → watch CI(3-iteration fix cap) → report. Re-pointed at this repo's
pnpm lint / typecheck / test:rungate and theLint, Typecheck & Build+SmokeCI jobs..claude/skills/finalize-pr/pr-template.md— moved fromimplement-issue/(finalize-pr now owns PR creation); added a
Tests:verification line..claude/skills/implement-issue/SKILL.md— slimmed to delegate finalize to/finalize-pr; removed the redundant post-PR/reviewpass; added theAdjust-phase handoff.
.claude/skills/implement-issue/scripts/validate.sh— removed (was abyte-for-byte duplicate of
pr-prep/check.sh).CLAUDE.md— new "PR workflow (3 phases)" subsection, including theAdjust-phase "commit locally, never push" rule;
/finalize-pradded to theskills line.
Conditional
/security-review— this repo's risky paths (derived from theexisting
security-revieweragent's threat model for a public, host-embeddedbundle):
src/config/api/(API-key auth + zod data layer),src/Widget.tsx(host-prop trust boundary), the Lexical→HTML XSS sinks (
src/lib/shape/lexical*,EventPanel/,src/types/event*),package.json(supply chain), and.env*/vite.config.ts(secrets/build) — plus a content-grep for any newlyadded
dangerouslySetInnerHTML/dompurifysink.Verification
pnpm lint)pnpm typecheck)pnpm test:run)Ran via the new pipeline itself (dogfooded):
/simplify(4-agent pass, applied)→ single
/code-review(subagent). The conditional/security-reviewcorrectlyskipped — the diff touches only
.claude/+CLAUDE.md, no risky paths.Notes for reviewer
/implement-issuereads + executesfinalize-pr/SKILL.mdrather than duplicating the pipeline, so both entrypoints run the same steps. Satisfies all five acceptance criteria.
CLAUDE.md, not a newAGENTS.md— this repo uses CLAUDE.mdas its canonical agent guide.
$(mktemp -t pr-body.XXXXXX).mdidiom infinalize-pr step 6 is this repo's existing convention (identical in
draft-ticket/SKILL.md); it works because the body is written to$BODY_FILEbefore
ghreads it. Kept for consistency rather than diverging in one skill.security-reviewer.mdagent file documents auth as
Bearer …but the interceptor actually sendsclients API-Key …; and the stray-temp-file nit above could be tidied acrossboth skills.
Closes #19
🤖 Generated with Claude Code