Skip to content

chore(workflow): add /finalize-pr skill + 3-phase PR workflow - #517

Merged
Ardnived merged 1 commit into
mainfrom
chore/finalize-pr-workflow
Jun 30, 2026
Merged

Ardnived merged 1 commit into
mainfrom
chore/finalize-pr-workflow

Conversation

@Ardnived

Copy link
Copy Markdown
Contributor

Summary

  • Extracts the post-implementation "ship pipeline" out of /implement-issue into a reusable /finalize-pr skill.
  • Splits the PR workflow into three phases (Implement → Adjust → Finalize) so follow-up tweaks are committed locally and CI re-runs only once, at finalize — instead of on every push.
  • Adds a conditional /security-review (risky paths only), a capped CI fix-loop, and retires a duplicate validation script.

Changes

  • .claude/skills/finalize-pr/SKILL.md — new ship-pipeline skill (disable-model-invocation): pre-flight → /simplify → single /code-review → conditional /security-review → pr-prep lean gate → push → create/refresh PR → watch CI (3-iteration fix cap) → report.
  • .claude/skills/implement-issue/SKILL.md — delegates its finalize steps to /finalize-pr; uses pr-prep/check.sh for the lean gate; runs a single review; hands off to the Adjust phase.
  • .claude/skills/finalize-pr/pr-template.md — moved from implement-issue/.
  • .claude/skills/implement-issue/scripts/validate.sh — removed (duplicate of pr-prep/check.sh).
  • AGENTS.md — new "PR workflow (3 phases)" section, including the Adjust-phase "commit locally, never push" rule.

Test Results

  • Docs / skills only — no application code changed.
  • Lint: ✓ — Unit + integration: ✓ (full suite runs in CI on this PR)

Notes for reviewer

  • Single source of truth: /implement-issue reads + executes finalize-pr/SKILL.md rather than duplicating the pipeline, so both paths run the same steps.
  • /security-review is gated on a risky-path grep (access / clients-managers / endpoints / api / storage / webhooks / payload.config.ts) — verified it matches an access-touching branch and skips a docs-only one.
  • Follow-up: port this workflow to sydevs/SahajAtlasWeb and sydevs/WeMeditateWeb (tickets to be raised).

🤖 Generated with Claude Code

Extract the post-implementation ship pipeline out of /implement-issue into a
reusable /finalize-pr skill, and split the workflow into three phases
(Implement -> Adjust -> Finalize) so follow-up tweaks are committed locally and
CI only re-runs once, at finalize.

- New .claude/skills/finalize-pr/SKILL.md: simplify -> single /code-review ->
  conditional /security-review (risky paths only) -> pr-prep lean gate -> push
  -> create/refresh PR -> watch CI with a capped fix-loop -> report.
  pr-template.md moves here.
- /implement-issue now delegates its finalize steps to it, uses
  pr-prep/check.sh for the lean gate, and drops the duplicate
  scripts/validate.sh and the redundant second /review pass.
- AGENTS.md documents the 3 phases + the Adjust-phase "commit locally, never
  push" rule.

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>

This branch was successfully deployed

No deployments
sahajcloud / SahajCloud-pr-517 — e60a4bb7 Deployed Jun 30, 2026 by railway-app[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant