New advertisers: 50% off your first month with code FIRSTMONTHSee slots

Complete pull request workflow for shipping changes from commit through to production.

GitHub stars
2K
View on GitHub

What it does

  • Adds 4 commands (ship, ship-ci-review-loop, ship-deployment, ship-error-handling) covering the PR cycle
  • Covers the path from commit to production, including CI review iteration, deployment, and error handling
  • Designed for developers who want validation built into each step of the shipping process

Add marketplace

/plugin marketplace add ComposioHQ/awesome-claude-plugins

Run it inside Claude Code once, then install the plugin below.

Install

/plugin install ship@awesome-claude-plugins

Run it inside Claude Code after adding the marketplace.

Files

Discovered from source
# Phase 4: CI & Review Monitor Loop - Reference

This file contains detailed implementation for the CI & Review Monitor Loop phase of /ship.

Parent document: ship.md


## This Phase Is Mandatory

This is not optional. You must:

  1. Wait the full 3 minutes for auto-reviewers
  2. Run the monitor loop (not just check once)
  3. Address all comments before merge

## PR Auto-Review Process

PRs receive automatic reviews from configured auto-reviewers (Copilot, Gemini, CodeRabbit, etc.).

Mandatory workflow:

  1. After PR creation, wait at least 3 minutes for first review round
  2. Read all comments from all reviewers
  3. Address every comment - no exceptions
  4. Iterate until zero unresolved threads (typically 2-4 rounds)

Rules:

  • Always address all comments, including "minor" or "nit" suggestions
  • Do not skip a comment unless factually wrong or user-approved
  • Treat all feedback as required changes, not suggestions

## Overview

The monitor loop must wait for:

  1. CI to pass
  2. All comments resolved (addressed or replied to)
  3. No "changes requested" reviews remain

Why All Comments Matter

Every comment must be addressed:

  • Critical/High issues: Fix immediately
  • Medium issues: Fix (don't defer)
  • Minor/Nit issues: Fix (shows attention to quality)
  • Style suggestions: Fix (maintains codebase consistency)
  • Questions: Answer with explanation
  • False positives: Reply explaining why, then resolve
  • Not relevant: Reply explaining why, then resolve

Do not ignore comments. Do not leave comments unresolved. A clean PR has zero unresolved conversations.

The Monitor Loop Algorithm

Note: The JavaScript below is conceptual pseudocode showing the algorithm flow. Implement using bash functions defined in this file.

const MAX_ITERATIONS = 10;  // Safety limit
const INITIAL_WAIT_MS = 180000;  // 3 minutes - wait for auto-reviews
const ITERATION_WAIT_MS = 30000;  // 30 seconds between iterations
let iteration = 0;

while (iteration < MAX_ITERATIONS) {
  iteration++;
  console.log(`\n## CI & Review Monitor - Iteration ${iteration}`);

  // Step 1: Wait for CI to complete
  const ciStatus = await waitForCI();
  if (ciStatus === 'failed') {
    await fixCIFailures();
    continue;  // Push fix, re-run CI
  }

  // Step 1.5: First iteration only - wait for auto-reviews
  if (iteration === 1) {
    console.log("Waiting 3 minutes for auto-reviews...");
    await sleep(INITIAL_WAIT_MS);
  }

  // Step 2: Check for PR comments and reviews
  const feedback = await checkPRFeedback();

  if (feedback.unresolvedCount === 0 && !feedback.changesRequested) {
    console.log("[OK] CI passed, all comments resolved");
    break;  // Ready to merge!
  }

  // Step 3: Address ALL feedback
  await addressAllFeedback(PR_NUMBER);

  // Step 4: Push fixes
  if (feedback.hasCodeChanges) {
    await commitAndPush(`fix: address review feedback (iteration ${iteration})`);
  }

  // Step 5: Sleep before next check
  await sleep(ITERATION_WAIT_MS);
}

Step 1: Wait for CI

wait_for_ci() {
  echo "Waiting for CI checks..."

  while true; do
    CHECKS=$(gh pr checks $PR_NUMBER --json name,state 2>/dev/null || echo "[]")

    PENDING=$(echo "$CHECKS" | jq '[.[] | select(.state | IN("PENDING", "QUEUED", "IN_PROGRESS"))] | length')
    FAILED=$(echo "$CHECKS" | jq '[.[] | select(.state | IN("FAILURE", "CANCELLED"))] | length')
    PASSED=$(echo "$CHECKS" | jq '[.[] | select(.state=="SUCCESS")] | length')

    if [ "$FAILED" -gt 0 ]; then
      echo "[ERROR] CI failed ($FAILED checks)"
      gh pr checks $PR_NUMBER
      return 1
    elif [ "$PENDING" -eq 0 ] && [ "$PASSED" -gt 0 ]; then
      echo "[OK] CI passed ($PASSED checks)"
      return 0
    elif [ "$PENDING" -eq 0 ] && [ "$PASSED" -eq 0 ]; then
      echo "[WARN] No CI checks found, proceeding..."
      return 0
    fi

    echo "  Waiting... ($PENDING pending, $PASSED passed)"
    sleep 15
  done
}

Step 2: Check PR Feedback

check_pr_feedback() {
  local pr_number=$1

  echo "Checking PR feedback..."

  # Extract owner and repo from git remote
  REPO_INFO=$(gh repo view --json owner,name --jq '"\(.owner.login)/\(.name)"')
  OWNER=$(echo "$REPO_INFO" | cut -d'/' -f1)
  REPO=$(echo "$REPO_INFO" | cut -d'/' -f2)

  # Get review state
  REVIEWS=$(gh pr view $pr_number --json reviews --jq '.reviews')
  CHANGES_REQUESTED=$(echo "$REVIEWS" | jq '[.[] | select(.state=="CHANGES_REQUESTED")] | length')

  # Get unresolved review threads
  # NOTE: Fetches first 100 threads. For PRs with >100 threads, implement pagination.
  UNRESOLVED_THREADS=$(gh api graphql -f query='
    query($owner: String!, $repo: String!, $pr: Int!) {
      repository(owner: $owner, name: $repo) {
        pullRequest(number: $pr) {
          reviewThreads(first: 100) {
            nodes {
              isResolved
            }
          }
        }
      }
    }
  ' -f owner="$OWNER" -f repo="$REPO" -F pr=$pr_number \
    --jq '[.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)] | length')

  echo "  Unresolved threads: $UNRESOLVED_THREADS"
  echo "  Changes requested: $CHANGES_REQUESTED"

  echo "{\"unresolvedThreads\": $UNRESOLVED_THREADS, \"changesRequested\": $CHANGES_REQUESTED}"
}

Get Full Thread Details

get_unresolved_threads() {
  local pr_number=$1

  REPO_INFO=$(gh repo view --json owner,name --jq '"\(.owner.login)/\(.name)"')
  OWNER=$(echo "$REPO_INFO" | cut -d'/' -f1)
  REPO=$(echo "$REPO_INFO" | cut -d'/' -f2)

  # NOTE: Fetches first 100 threads. For PRs with >100, implement pagination.
  gh api graphql -f query='
    query($owner: String!, $repo: String!, $pr: Int!) {
      repository(owner: $owner, name: $repo) {
        pullRequest(number: $pr) {
          reviewThreads(first: 100) {
            nodes {
              id
              isResolved
              path
              line
              diffHunk
              comments(first: 1) {
                nodes {
                  id
                  body
                }
              }
            }
          }
        }
      }
    }
  ' -f owner="$OWNER" -f repo="$REPO" -F pr=$pr_number \
    --jq '.data.repository.pullRequest.reviewThreads.nodes[] | select(.isResolved == false)'
}

Step 3: Address ALL Feedback

Note: This is conceptual pseudocode showing the algorithm flow. Implement using: gh api, Read, Edit, Task (ci-fixer), etc.

async function addressAllFeedback(prNumber) {
  const threads = await getUnresolvedThreads(prNumber);

  console.log(`\nAddressing ${threads.length} unresolved threads...`);

  for (const thread of threads) {
    console.log(`\n--- Thread: ${thread.path}:${thread.line} ---`);
    const analysis = analyzeComment(thread);

    switch (analysis.type) {
      case 'code_fix_required':
        console.log(`Action: Fixing code issue`);
        await implementFix(thread);  // Use Task(ci-fixer) or Edit tool
        break;

      case 'style_suggestion':
        console.log(`Action: Applying style fix`);
        await implementFix(thread);
        break;

      case 'question':
        console.log(`Action: Answering question`);
        await replyToComment(prNumber, thread.commentId, generateAnswer(thread));
        await resolveThread(thread.id);
        break;

      case 'false_positive':
        console.log(`Action: Explaining false positive`);
        await replyToComment(prNumber, thread.commentId,
          `This is a false positive because: ${analysis.reason}\n\n` +
          `Resolving. Please reopen if you disagree.`
        );
        await resolveThread(thread.id);
        break;

      case 'not_relevant':
        console.log(`Action: Explaining out of scope`);
        await replyToComment(prNumber, thread.commentId,
          `Outside scope of this PR: ${analysis.reason}\n\n` +
          `Resolving. Please reopen if needed.`
        );
        await resolveThread(thread.id);
        break;

      case 'already_addressed':
        console.log(`Action: Confirming addressed`);
        await replyToComment(prNumber, thread.commentId,
          `Addressed in commit ${gitRevParseHead}.`
        );
        await resolveThread(thread.id);
        break;
    }
  }

  // Request re-review from those who requested changes
  const changesRequestedReviews = await getChangesRequestedReviews(prNumber);
  for (const review of changesRequestedReviews) {
    await requestReReview(prNumber, review.author);
  }
}

Comment Analysis Heuristics

Note: Classification heuristics for comment handling.

function analyzeComment(thread) {
  const body = thread.body.toLowerCase();

  // Question patterns
  if (body.includes('?') || body.startsWith('why') || body.startsWith('how') ||
      body.startsWith('what') || body.startsWith('could you explain')) {
    return { type: 'question', reason: 'Comment is a question' };
  }

  // Style/nit patterns
  if (body.includes('nit:') || body.includes('nitpick') || body.includes('minor:') ||
      body.includes('style:') || body.includes('consider') || body.includes('optional')) {
    return { type: 'style_suggestion', reason: 'Style or minor suggestion' };
  }

  // Out of scope patterns
  if (!thread.diffHunk || commentRefersToUnchangedCode(thread)) {
    return { type: 'not_relevant', reason: 'Comment refers to unchanged code' };
  }

  // Default: treat as code fix required
  return { type: 'code_fix_required', reason: 'Valid code feedback' };
}

Implementing Fixes

Use the ci-fixer agent for code changes:

Task({
  subagent_type: "next-task:ci-fixer",
  prompt: `Fix the following review comment:

**File**: ${thread.path}
**Line**: ${thread.line}
**Comment**: ${thread.body}
**Code Context**:
\`\`\`
${thread.diffHunk}
\`\`\`

Requirements:
1. Make the minimal change to address the feedback
2. Do NOT over-engineer or add unrelated changes
3. Ensure tests still pass after the fix`
});

Resolving Threads

resolve_thread() {
  local thread_id=$1

  gh api graphql -f query='
    mutation($threadId: ID!) {
      resolveReviewThread(input: {threadId: $threadId}) {
        thread {
          isResolved
        }
      }
    }
  ' -f threadId="$thread_id"
}

reply_to_comment() {
  local pr_number=$1
  local comment_id=$2
  local body=$3

  REPO_INFO=$(gh repo view --json owner,name --jq '"\(.owner.login)/\(.name)"')
  OWNER=$(echo "$REPO_INFO" | cut -d'/' -f1)
  REPO=$(echo "$REPO_INFO" | cut -d'/' -f2)

  gh api -X POST "repos/$OWNER/$REPO/pulls/$pr_number/comments" \
    -f body="$body" \
    -F in_reply_to="$comment_id"
}

Step 4: Commit and Push

commit_and_push_fixes() {
  local message=$1
  local branch=${2:-$(git branch --show-current)}

  if [ -n "$(git status --porcelain)" ]; then
    git add -A
    git commit -m "$message"
    git push origin "$branch"
    echo "[OK] Pushed fixes"
    return 0
  else
    echo "No code changes to commit (only comment replies)"
    return 1
  fi
}

Complete Loop Script

#!/bin/bash
# Phase 4: CI & Review Monitor Loop

MAX_ITERATIONS=10
INITIAL_WAIT=${SHIP_INITIAL_WAIT:-180}  # Configurable via env var
ITERATION_WAIT=30
iteration=0

while [ $iteration -lt $MAX_ITERATIONS ]; do
  iteration=$((iteration + 1))
  echo "[CI Monitor] Iteration $iteration"

  # Step 1: Wait for CI
  if ! wait_for_ci; then
    echo "CI failed - launching ci-fixer agent..."
    continue
  fi

  # Step 1.5: First iteration - wait for auto-reviews
  if [ $iteration -eq 1 ] && [ "$INITIAL_WAIT" -gt 0 ]; then
    echo "First iteration - waiting ${INITIAL_WAIT}s for auto-reviews..."
    sleep $INITIAL_WAIT
  fi

  # Step 2: Check feedback
  FEEDBACK=$(check_pr_feedback $PR_NUMBER)
  UNRESOLVED=$(echo "$FEEDBACK" | jq -r '.unresolvedThreads')
  CHANGES_REQ=$(echo "$FEEDBACK" | jq -r '.changesRequested')

  if [ "$UNRESOLVED" -eq 0 ] && [ "$CHANGES_REQ" -eq 0 ]; then
    echo "[OK] ALL CHECKS PASSED"
    echo "[OK] ALL COMMENTS RESOLVED"
    echo "Ready to merge!"
    break
  fi

  # Step 3: Address all feedback
  echo "Addressing $UNRESOLVED unresolved threads..."

  # Step 4: Commit and push
  commit_and_push_fixes "fix: address review feedback (iteration $iteration)"

  # Step 5: Wait before next iteration
  echo "Waiting ${ITERATION_WAIT}s..."
  sleep $ITERATION_WAIT
done

if [ $iteration -ge $MAX_ITERATIONS ]; then
  echo "[ERROR] Max iterations reached - manual intervention required"
  exit 1
fi
## Iteration Summary Output
## Iteration ${iteration} Summary

**CI Status**: [OK] Passed
**Comments Addressed**: ${addressedCount}
  - Code fixes: ${codeFixCount}
  - Answered questions: ${questionCount}
  - Resolved as not applicable: ${notApplicableCount}
**Remaining Unresolved**: ${remainingCount}

${remainingCount > 0 ? 'Continuing...' : 'Ready to merge!'}

From the ComposioHQ/awesome-claude-plugins README

Awesome Claude Code Plugins

Awesome Claude Plugins

Awesome PRs Welcome License: MIT

A curated list of production-ready plugins for Claude Code to supercharge your development workflow.

Want plugins that do more than generate text? The connect-apps plugin lets Claude send emails, create issues, post to Slack, and take actions across 1000+ apps.


Give your skills real-world actions

Skills tell your agent how to work. An MCP Gateway gives it secure access to the tools it needs.

Composio MCP Gateway provides a single MCP endpoint for 1,000+ integrations with built-in authentication, team-based access controls, audit logs, and production-ready reliability.

1. Clone & Run

git clone https://github.com/composiohq/awesome-claude-plugins.git
cd awesome-claude-plugins
claude --plugin-dir ./connect-apps

2. Run Setup

/connect-apps:setup

Paste your API key when asked. (Get a free key at dashboard.composio.dev

3. Try It

Ask Claude to send you a test email. If you receive it, Claude is now connected to 1000+ apps.

See all supported apps →


Contents

What Are Claude Plugins?

Claude Plugins are extensions that enhance Claude Code with custom slash commands, specialized agents, hooks, and skills. Plugins can be shared across projects and teams, providing consistent tooling and workflows.

Plugins

Integrations

  • connect-apps - Connect Claude to any app. Send emails, create issues, post messages, update databases - take real actions across Gmail, Slack, GitHub, Notion, and 1000+ services.
  • kaggle-skill - Complete Kaggle integration — account setup, competition reports, dataset/model downloads, notebook execution, submissions, and badge collection.

Frontend & Design

  • frontend-design - Create distinctive, production-grade interfaces. Avoids generic "AI slop" with bold typography, unique color palettes, and creative layouts.
  • artifacts-builder - Suite of tools for creating elaborate, multi-component HTML artifacts using React, Tailwind CSS, and shadcn/ui.
  • theme-factory - Applies professional font and color themes to artifacts including slides, docs, reports, and HTML landing pages with 10 pre-set themes.
  • canvas-design - Creates beautiful visual art in PNG and PDF documents using design philosophy and aesthetic principles for posters and static pieces.
  • senior-frontend - React/Next.js/TypeScript development patterns with bundle analysis, component generation, and accessibility best practices.
  • frontend-developer - Frontend development specialist agent for building modern web interfaces.

Git & Version Control

  • commit - Creates smart git commits using conventional commit format with meaningful messages and emojis.
  • create-pr - Automates pull request creation with proper templates, descriptions, and labels.
  • pr-review - Comprehensive PR reviews with detailed feedback on code quality, security, and best practices.
  • changelog-generator - Automatically creates user-facing changelogs from git commits by analyzing history and transforming technical commits into customer-friendly release notes.
  • ship - Complete PR workflow from commit to production. Lint, test, review, and deploy.

Code Quality & Testing

  • AgentLint - Lint your repo for AI agent compatibility. 33 evidence-backed checks across 5 dimensions. Claude Code plugin.
  • code-review - Comprehensive code review with best practices, patterns, and improvement suggestions.
  • test-writer-fixer - Automatically write and fix unit tests. Supports Jest, Vitest, Pytest, and more.
  • debugger - Advanced debugging assistant for tracking down and fixing complex bugs.
  • bug-fix - Analyzes stack traces and code to identify and fix bugs in your codebase.

Agent Memory

  • glen - Shared team memory for coding agents. Recalls past decisions on every turn and records what you build, so your whole team's agents work from one history. (Website)

Backend & Architecture

  • backend-architect - Backend architecture patterns, API design, database schemas, and system design.
  • mcp-builder - Guides creation of high-quality MCP (Model Context Protocol) servers for integrating external APIs and services with LLMs.
  • agent-sdk-dev - Claude Agent SDK development helper for building custom AI agents.
  • maestro-orchestrate - Multi-agent development orchestration coordinating 22 specialized subagents through 4-phase workflows with native parallel execution, persistent sessions, and standalone commands for code review, debugging, security audit, and more.

DevOps & Performance

  • perf - Performance analysis and optimization. Identify bottlenecks and improve speed.
  • audit-project - Full project audit for code quality, dependencies, security, and best practices.
  • MyVibe - Instant deployment to live URLs with /myvibe:publish.
  • aws-cost-saver - Automated AWS cost optimization with 173 checks across EC2, RDS, S3, Lambda, and more. ML-powered recommendations and real pricing from AWS API.
  • Manifest - Real-time cost observability for OpenClaw agents — track tokens, costs, messages, and model usage. Includes Claude Code skill for guided setup. Self-hosted, OTLP ingestion, 28+ LLM models. (Website)

Documentation & Security

  • documentation-generator - Generate comprehensive documentation from code. READMEs, API docs, and guides.
  • security-guidance - Security best practices and vulnerability detection. OWASP guidelines and secure coding.
  • security-sweep - Comprehensive security scanner covering OWASP Top 10 (2025), Mobile Top 10 (2024), and LLM Top 10 (2025). Scans for hardcoded secrets, injection flaws, auth issues, misconfigurations, and AI-specific vulnerabilities.
  • asqav-claude-code - Signs a tamper-evident Asqav receipt at the end of each Claude Code session: files edited (content hashes before/after), commands run (hashed), and git context. Verifiable by anyone at asqav.com/verify.

Developer Productivity

  • CCHub - Desktop app for managing the Claude Code ecosystem — MCP marketplace, config profiles, skills & plugins browser, workflow templates, security audit. Built with Tauri v2 + React + Rust.

  • developer-growth-analysis - Analyzes your recent Claude Code chat history to identify coding patterns, development gaps, and curates personalized learning resources.

  • skill-bus - The skill for connecting skills. Wire context, conditions, and other skills into any skill invocation — declaratively, without modification. Zero dependencies.

  • context-mode - Process large outputs in sandboxed subprocesses, keeping only summaries in the context window. 98% context savings across 21 benchmarked scenarios.

  • codebase-graph - Code intelligence MCP server that builds knowledge graphs from source code with 42-language tree-sitter AST parsing and FalkorDB.

  • agntk - Zero-config AI agent CLI with persistent named agents, 20+ built-in tools, and hardware-aware local model selection.

  • backlog - Persistent, cross-session task management. 24 MCP tools for tasks, projects, tags, dependencies, and docs. 7 skills for planning, standups, and handoffs. Event-sourced storage, agent coordination, pure TypeScript. (Website)

Companion & Personality

  • claude-familiar - Enhance Claude Code's /buddy companion with personality, mood, lore, and interactive commands (fortune, roast, haiku, focus timer). Mood shifts automatically on tool success/failure. Extensible — other plugins can layer traits and lore via "x-familiarExtensions" in their plugin.json.

Image and Video Generation

  • nano-banana - Google Gemini image generation plugin. Text-to-image, text-guided image editing, style transfer, 4K output, search grounding, and multi-reference composition — all from a single /genimage command. Powered by gemini-2.5-flash-image and gemini-3-pro-image-preview.
  • taisly-agent-kit - Claude Code plugin, skill, SDK, CLI, and MCP server for publishing short-form videos to TikTok, Instagram Reels, YouTube Shorts, X, and Facebook through Taisly.

Getting Started

Using Plugins

Clone the repo and run Claude with any plugin:

git clone https://github.com/composiohq/awesome-claude-plugins.git
cd awesome-claude-plugins
claude --plugin-dir ./commit

Load multiple plugins at once:

claude --plugin-dir ./commit --plugin-dir ./code-review --plugin-dir ./connect-apps

Plugin Structure

Each plugin follows the standard Claude Code plugin format:

plugin-name/
├── .claude-plugin/
│   └── plugin.json       # Plugin metadata
├── skills/               # Skill definitions (optional)
│   └── skill-name/
│       └── SKILL.md
├── commands/             # Slash commands (optional)
│   └── command.md
├── agents/               # Agent definitions (optional)
│   └── agent.md
└── hooks/                # Event hooks (optional)
    └── hooks.json

Contributing

Want to add your plugin?

  1. Fork this repository
  2. Add your plugin folder with the standard structure
  3. Update this README with your plugin details
  4. Submit a pull request

Please ensure your plugin:

  • Addresses a real use case
  • Doesn't duplicate existing functionality
  • Follows the template structure
  • Has been tested

Resources

License

MIT - See individual plugins for their specific licenses.

Details

Marketplace
ComposioHQ/awesome-claude-plugins
Source
ship
Author
Community
Category
Git
Listed since
Apr 7, 2026

More from ComposioHQ/awesome-claude-plugins

All 24

Similar to ship

More Git & Releases