Skip to content

Instantly share code, notes, and snippets.

@edgabaldi
Last active June 22, 2026 22:21
Show Gist options
  • Select an option

  • Save edgabaldi/1e43927fd5ce8f448d7e3dfe297a52c2 to your computer and use it in GitHub Desktop.

Select an option

Save edgabaldi/1e43927fd5ce8f448d7e3dfe297a52c2 to your computer and use it in GitHub Desktop.
review-and-fix-my-pr workflow diagram

review-and-fix-my-pr — workflow diagram

flowchart TD
    A([start]) --> B

    B[checkout-pr-branch] --> C & D & RC

    subgraph ctx["Phase 1 — Context  (haiku · parallel)"]
        C[discovery-codebase\nwrite codebase-context.md]
        D[read-jira] --> E[embed-context\nwrite jira-card.md]
    end

    RC[review-classifier\nsonnet · COMPLEX or SIMPLE + confiança]

    RC --> F1 & F2 & F3
    E & C & RC --> F4
    E & C --> F5
    RC -->|if COMPLEX| F5

    subgraph rev["Phase 2 — Review  (sonnet · 5 parallel · fresh sessions)"]
        F1[review-skills-guidelines\nclojure-guidelines]
        F2[review-skills-testing\nclojure-testing]
        F3[review-skills-diplomat\ndiplomat-architecture]
        F4[review-ac\nAC coverage]
        F5[review-senior\ncondicional: COMPLEX only]
    end

    F1 & F2 & F3 & F4 & F5 --> CR[concat-reviews\nbash · all-reviews.md]
    F1 & F2 & F3 & F4 --> CR

    CR --> F[review\nsynthesize → review-findings.md\nhaiku · max 8 turns]

    F -->|APPROVED| P
    F -->|REQUEST_CHANGES| G

    subgraph fix["Phase 3 — Fix  (sonnet · context:continue)"]
        G[review-task-manager] --> H[review-fix\n1 commit per task]
        H --> I{test-gate\nBUILD_TEST}
        I -->|FAIL\nsteering| H
    end

    I -->|PASS| J[review-verify\nhaiku]
    J --> L

    subgraph lint["Phase 4 — Lint  (bash + sonnet)"]
        L{lint-gate} -->|FAIL| M[fix-lint AI]
        M --> L
    end

    L -->|PASS| P[push-fixes] --> Q[summary] --> Z([done])

    style I fill:#f5a623,color:#000
    style L fill:#f5a623,color:#000
    style H fill:#4a90d9,color:#fff
    style M fill:#4a90d9,color:#fff
    style F1 fill:#7ed321,color:#000
    style F2 fill:#7ed321,color:#000
    style F3 fill:#7ed321,color:#000
    style F4 fill:#7ed321,color:#000
    style F5 fill:#7ed321,color:#000,stroke-dasharray:5
    style J fill:#7ed321,color:#000
    style F fill:#7ed321,color:#000
    style RC fill:#9b59b6,color:#fff
    style CR fill:#555,color:#fff
Loading

depends_on

Aguarda
review-skills-* review-classifier
review-ac review-classifier + embed-context + discovery-codebase
review-senior idem + condicional COMPLEX

Goal gates

Gate Retry target Max retries
test-gate review-fix 2
lint-gate fix-lint 3
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment