Skip to content

chore(workflow): adopt the /finalize-pr 3-phase PR workflow #19

Closed

Description

@Ardnived

Goal

Adopt the 3-phase PR workflow + /finalize-pr skill recently added to SahajCloud (reference: sydevs/SahajCloud#517), adapted to this repo's tooling.

Background

SahajCloud now structures PR work into three phases so CI re-runs once per batch, not on every change:

  1. Implement — /implement-issue <n> (if present) takes a ticket end-to-end, then runs the finalize pipeline (opens the PR, gets CI green).
  2. Adjust — while iterating on an open PR, commit changes locally but do not push (no CI churn).
  3. Finalize — /finalize-pr ships the batch: simplify → /code-review → conditional /security-review → lean test gate → push → create/refresh the PR → watch CI (capped fix-loop) → report.

Acceptance criteria

  • .claude/skills/finalize-pr/SKILL.md exists implementing the ship pipeline, re-pointed at this repo's lint/test/CI commands.
  • AGENTS.md / CLAUDE.md documents the 3 phases + the Adjust-phase "commit locally, never push" rule.
  • If this repo has an /implement-issue skill, it delegates its finalize steps to /finalize-pr (single source of truth).
  • /security-review runs only when the diff touches this repo's risky paths (auth, API routes, access control, external integrations, secrets/config — define them for this stack).
  • A single code-review pass (no redundant second review).

Adaptation notes (do NOT copy SahajCloud verbatim)

  • Replace SahajCloud's pnpm lint / pnpm test:unit / pr-prep/check.sh / gh pr checks flow with this repo's equivalents (its package scripts, test runner, CI workflow name, build).
  • Define this repo's own risky-path globs for the conditional /security-review.
  • Match this repo's existing .claude/skills/ conventions + commit/PR style.
  • If there's no lean-gate equivalent of pr-prep, add or reference one.

Reference

sydevs/SahajCloud#517 — .claude/skills/finalize-pr/SKILL.md, .claude/skills/implement-issue/SKILL.md, and the AGENTS.md "PR workflow (3 phases)" section.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    Hold Until

    None yet

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions