From 5fa19ca9db479cdb356fe0445441d23ff9849e2a Mon Sep 17 00:00:00 2001 From: Michael Graham Date: Mon, 2 Mar 2026 14:21:33 -0800 Subject: [PATCH] =?UTF-8?q?feat:=20add=20CodeRocket=20Deploy=20partner=20p?= =?UTF-8?q?lugin=20=E2=80=94=20CI/CD=20workflow=20generation?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Add CodeRocket Deploy as a partner-built plugin providing AI-powered CI/CD workflow generation for Claude Code and Cowork. - Plugin with 3 slash commands: deploy, review, status - Auto-invoked CI/CD generation skill - MCP server via npm (@mlgraham/coderocket-mcp) - 9 tools: deploy workflows, code review, PR creation, repo management - Supports 9 languages, 12+ frameworks, 9+ deploy targets Co-Authored-By: Claude Opus 4.6 --- .../.claude-plugin/marketplace.json | 20 +++ .../coderocket/.claude-plugin/plugin.json | 13 ++ partner-built/coderocket/.mcp.json | 12 ++ partner-built/coderocket/LICENSE | 21 +++ partner-built/coderocket/README.md | 124 ++++++++++++++++++ partner-built/coderocket/commands/deploy.md | 53 ++++++++ partner-built/coderocket/commands/review.md | 49 +++++++ partner-built/coderocket/commands/status.md | 45 +++++++ .../skills/cicd-generation/SKILL.md | 60 +++++++++ 9 files changed, 397 insertions(+) create mode 100644 partner-built/coderocket/.claude-plugin/marketplace.json create mode 100644 partner-built/coderocket/.claude-plugin/plugin.json create mode 100644 partner-built/coderocket/.mcp.json create mode 100644 partner-built/coderocket/LICENSE create mode 100644 partner-built/coderocket/README.md create mode 100644 partner-built/coderocket/commands/deploy.md create mode 100644 partner-built/coderocket/commands/review.md create mode 100644 partner-built/coderocket/commands/status.md create mode 100644 partner-built/coderocket/skills/cicd-generation/SKILL.md diff --git a/partner-built/coderocket/.claude-plugin/marketplace.json b/partner-built/coderocket/.claude-plugin/marketplace.json new file mode 100644 index 00000000..f6a9436a --- /dev/null +++ b/partner-built/coderocket/.claude-plugin/marketplace.json @@ -0,0 +1,20 @@ +{ + "name": "coderocket-marketplace", + "owner": { + "name": "CodeRocket" + }, + "metadata": { + "description": "AI-powered CI/CD workflow generation, code review, and deployment automation for Claude Code and Cowork", + "version": "1.0.0", + "pluginRoot": "." + }, + "plugins": [ + { + "name": "coderocket", + "source": ".", + "description": "AI-powered deployment automation. Generate CI/CD workflows, create PRs, and review code — all from Claude Code.", + "version": "1.0.0", + "keywords": ["deploy", "ci/cd", "github-actions", "devops", "workflow", "coderocket"] + } + ] +} diff --git a/partner-built/coderocket/.claude-plugin/plugin.json b/partner-built/coderocket/.claude-plugin/plugin.json new file mode 100644 index 00000000..120a8891 --- /dev/null +++ b/partner-built/coderocket/.claude-plugin/plugin.json @@ -0,0 +1,13 @@ +{ + "name": "coderocket", + "version": "1.0.0", + "description": "AI-powered deployment automation. Generate CI/CD workflows, create PRs, and review code — all from Claude Code.", + "author": { + "name": "CodeRocket", + "url": "https://deploy.coderocket.com" + }, + "repository": "https://github.com/mlgraham/coderocket-plugin", + "homepage": "https://deploy.coderocket.com", + "license": "MIT", + "keywords": ["deploy", "ci/cd", "github-actions", "devops", "workflow", "coderocket"] +} diff --git a/partner-built/coderocket/.mcp.json b/partner-built/coderocket/.mcp.json new file mode 100644 index 00000000..5fb790f6 --- /dev/null +++ b/partner-built/coderocket/.mcp.json @@ -0,0 +1,12 @@ +{ + "mcpServers": { + "coderocket": { + "command": "npx", + "args": ["-y", "@mlgraham/coderocket-mcp@latest"], + "env": { + "CODEROCKET_API_KEY": "", + "CODEROCKET_API_URL": "https://deploy.coderocket.com/api/v1" + } + } + } +} diff --git a/partner-built/coderocket/LICENSE b/partner-built/coderocket/LICENSE new file mode 100644 index 00000000..30c2d7b2 --- /dev/null +++ b/partner-built/coderocket/LICENSE @@ -0,0 +1,21 @@ +MIT License + +Copyright (c) 2026 CodeRocket + +Permission is hereby granted, free of charge, to any person obtaining a copy +of this software and associated documentation files (the "Software"), to deal +in the Software without restriction, including without limitation the rights +to use, copy, modify, merge, publish, distribute, sublicense, and/or sell +copies of the Software, and to permit persons to whom the Software is +furnished to do so, subject to the following conditions: + +The above copyright notice and this permission notice shall be included in all +copies or substantial portions of the Software. + +THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR +IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, +FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE +AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER +LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, +OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE +SOFTWARE. diff --git a/partner-built/coderocket/README.md b/partner-built/coderocket/README.md new file mode 100644 index 00000000..570b8366 --- /dev/null +++ b/partner-built/coderocket/README.md @@ -0,0 +1,124 @@ +# CodeRocket Deploy Plugin for Claude Code and Cowork + +Generate production-ready CI/CD workflows, review code, and create deploy PRs with [CodeRocket Deploy](https://deploy.coderocket.com) — powered by the CodeRocket MCP Server. + +--- + +## What It Does + +CodeRocket analyzes your repository, detects your stack, and generates a GitHub Actions workflow tailored to your language, framework, and deploy target. One command to go from zero to production. + +| Skill / Command | What it does | +|---|---| +| `/coderocket:deploy` | Analyze your repo, generate a CI/CD workflow, and create a PR | +| `/coderocket:review` | View AI-powered code reviews for your pull requests | +| `/coderocket:status` | Check account status, usage, and connected repositories | + +--- + +## Supported Stacks + +- **Languages:** JavaScript/TypeScript, Python, Go, Rust, Java, Ruby, PHP, C#/.NET +- **Frameworks:** React, Next.js, Vue, Angular, Django, Flask, FastAPI, Express, Rails, Laravel, Spring Boot +- **Deploy targets:** AWS (ECS, Lambda, S3+CloudFront), Google Cloud (Cloud Run, App Engine), Azure, Vercel, Netlify, Fly.io, Railway, Render, Docker/Kubernetes + +--- + +## Installation + +### Cowork + +Click the link below to install in one step: + +[Install in Cowork](https://claude.ai/desktop/customize/plugins/new?marketplace=mlgraham/coderocket-plugin&plugin=coderocket) + +Then restart Cowork to ensure the MCP server starts correctly. + +### Claude Code + +#### 1. Add this plugin's marketplace + +In Claude Code, run: + +``` +/plugin marketplace add mlgraham/coderocket-plugin +``` + +#### 2. Install the plugin + +``` +/plugin install coderocket@coderocket-marketplace +``` + +#### 3. Restart Claude Code + +This ensures the MCP server starts correctly. + +--- + +## Authentication + +The CodeRocket MCP server uses API key authentication: + +1. Sign up at [deploy.coderocket.com](https://deploy.coderocket.com) and sign in with GitHub +2. Install the [CodeRocket Deploy GitHub App](https://github.com/apps/coderocket-deploy) on your repositories +3. Go to **Settings > API Keys** and create a new key +4. Set your API key: + +```bash +export CODEROCKET_API_KEY=crk_your_key_here +``` + +Or add it to your `.claude/settings.json`: + +```json +{ + "env": { + "CODEROCKET_API_KEY": "crk_your_key_here" + } +} +``` + +--- + +## MCP Tools + +The CodeRocket MCP server exposes 9 tools: + +| Tool | Purpose | +|---|---| +| `health_check` | Verify API connectivity and API key | +| `list_repos` | List connected repositories | +| `deploy_repo` | Analyze repo and generate CI/CD workflow | +| `create_pr` | Create a PR with the generated workflow | +| `generation_feedback` | Submit feedback on generated workflows | +| `list_reviews` | List code reviews | +| `get_review` | Get detailed review with comments | +| `account_status` | Check account tier and usage | +| `repo_details` | Get full repo analysis and history | + +--- + +## Pricing + +| Plan | Generations/mo | Repos | Price | +|---|---|---|---| +| Free | 100 | 3 | $0 | +| Pro | 1,000 | 20 | $19/mo | +| Team | 5,000 | Unlimited | $49/mo | + +Visit [coderocket.com/pricing](https://coderocket.com/pricing) for details. + +--- + +## Support + +- [Documentation](https://deploy.coderocket.com/docs) +- [GitHub Issues](https://github.com/mlgraham/coderocket-plugin/issues) +- Email: support@coderocket.com + +--- + +## License + +MIT — see [LICENSE](LICENSE) for details. diff --git a/partner-built/coderocket/commands/deploy.md b/partner-built/coderocket/commands/deploy.md new file mode 100644 index 00000000..a9a202d2 --- /dev/null +++ b/partner-built/coderocket/commands/deploy.md @@ -0,0 +1,53 @@ +--- +description: Generate a CI/CD workflow for your project and create a GitHub PR +--- + +You are helping the user deploy their project using CodeRocket Deploy. Follow this workflow: + +## Step 1 — Check Connectivity + +Call the `health_check` tool to verify the CodeRocket API is reachable and the API key is configured. + +If the health check fails due to a missing API key, tell the user: +> To use CodeRocket Deploy, you need an API key: +> 1. Sign up at https://deploy.coderocket.com +> 2. Install the GitHub App on your repositories +> 3. Go to Settings > API Keys and create a key +> 4. Set it in your environment: `export CODEROCKET_API_KEY=crk_...` + +## Step 2 — List Repositories + +Call `list_repos` to show the user their connected repositories. Present them as a numbered list showing: +- Repository name +- Analysis status +- Primary language/framework (if analyzed) + +Ask the user which repository they want to deploy. + +## Step 3 — Generate Workflow + +Call `deploy_repo` with the selected repository ID and any deploy target preference. This will: +- Analyze the repository (if not already analyzed) +- Generate a CI/CD workflow using AI +- Return the YAML and an explanation + +Show the user: +1. A brief summary of what was detected (language, framework, deploy target) +2. The generated workflow YAML in a code block +3. The AI's explanation of what the workflow does + +## Step 4 — Confirm and Create PR + +Ask the user if they want to create a PR with this workflow. If yes, call `create_pr` with the generation ID. + +Show the PR URL so they can review and merge it. + +## Step 5 — Collect Feedback + +After the user has had a chance to try the workflow, ask how it went and call `generation_feedback` with their response (worked/partial/failed). + +## Notes + +- If the user specifies a deploy target (e.g., "deploy to AWS", "deploy to Vercel"), pass it as the `deploy_target` parameter +- If analysis is already complete, the `deploy_repo` tool will skip re-analysis +- The full flow typically takes 30-60 seconds diff --git a/partner-built/coderocket/commands/review.md b/partner-built/coderocket/commands/review.md new file mode 100644 index 00000000..1d09d088 --- /dev/null +++ b/partner-built/coderocket/commands/review.md @@ -0,0 +1,49 @@ +--- +description: View AI-powered code reviews for your pull requests +--- + +You are helping the user view their CodeRocket code reviews. Follow this workflow: + +## Step 1 — List Reviews + +Call `list_reviews` to get recent code reviews. If the user mentioned a specific repository, pass the `repository_id` parameter. + +Present reviews as a list showing: +- PR title and number +- Repository name +- Status (pending/processing/completed/failed) +- Approval recommendation (if completed) +- Number of comments +- Date + +## Step 2 — Show Review Details + +If the user wants to see a specific review, call `get_review` with the review ID. + +Organize the review output by severity: + +**Critical** issues first (security vulnerabilities, bugs): +- Show file path, line number, and the comment + +**Warnings** next (performance issues, potential bugs): +- Show file path, line number, and the comment + +**Suggestions** (style, maintainability): +- Show file path, line number, and the comment + +**Praise** last (good patterns noticed): +- Briefly mention these + +## Summary + +At the top of the review, show: +- Overall recommendation (approve/request changes/comment) +- Summary from the AI reviewer +- Files reviewed count +- Total comments by severity + +## Notes + +- Reviews are created automatically when PRs are opened (if auto-review is enabled) +- Users can configure review settings at `/repos/{id}/review-config` +- If no reviews exist, suggest the user enable auto-review on their repositories diff --git a/partner-built/coderocket/commands/status.md b/partner-built/coderocket/commands/status.md new file mode 100644 index 00000000..3b873366 --- /dev/null +++ b/partner-built/coderocket/commands/status.md @@ -0,0 +1,45 @@ +--- +description: Check your CodeRocket account status, API health, and repository summary +--- + +You are helping the user check their CodeRocket Deploy status. Run all checks and present a dashboard. + +## Step 1 — Health Check + +Call `health_check` to verify API connectivity. + +## Step 2 — Account Status + +Call `account_status` to get the user's account information. + +## Step 3 — Repository Summary + +Call `list_repos` to get an overview of connected repositories. + +## Present the Dashboard + +Format the output as a status dashboard: + +``` +CodeRocket Deploy Status +======================== + +API: Connected +Account: username (Pro tier) + +Usage This Month: + Generations: 42 / 1000 + Reviews: 15 / 500 + Repos: 5 / 20 + +Repositories: + myorg/frontend - Analyzed (React, Vercel) + myorg/backend - Analyzed (Python, AWS ECS) + myorg/api - Pending analysis +``` + +## Notes + +- If the API key is not set, show setup instructions +- If the health check fails, show troubleshooting steps +- Highlight any usage approaching limits diff --git a/partner-built/coderocket/skills/cicd-generation/SKILL.md b/partner-built/coderocket/skills/cicd-generation/SKILL.md new file mode 100644 index 00000000..59570881 --- /dev/null +++ b/partner-built/coderocket/skills/cicd-generation/SKILL.md @@ -0,0 +1,60 @@ +--- +name: cicd-generation +description: "AI-powered CI/CD workflow generation. Detects your stack and generates production-ready GitHub Actions workflows for any language, framework, and deploy target." +--- + +# CI/CD Generation + +This skill activates when the user discusses deployment, CI/CD pipelines, GitHub Actions workflows, or DevOps topics in the context of their project. + +## When to Activate + +Activate when the user mentions: +- Deploying their application +- Setting up CI/CD +- GitHub Actions workflows +- Continuous integration or deployment +- DevOps automation +- Production deployment pipelines + +## Available Tools + +You have access to CodeRocket Deploy via MCP tools: + +| Tool | Purpose | +|---|---| +| `list_repos` | List connected repositories | +| `deploy_repo` | Analyze repo and generate CI/CD workflow | +| `create_pr` | Create a PR with the generated workflow | +| `generation_feedback` | Submit feedback on generated workflows | +| `list_reviews` | List code reviews | +| `get_review` | Get detailed review with comments | +| `account_status` | Check account tier and usage | +| `repo_details` | Get full repo analysis and history | +| `health_check` | Verify API connectivity | + +## Supported Stacks + +CodeRocket Deploy supports these languages and frameworks: + +**Languages:** JavaScript/TypeScript, Python, Go, Rust, Java, Ruby, PHP, C#/.NET + +**Frameworks:** React, Next.js, Vue, Angular, Django, Flask, FastAPI, Express, Rails, Laravel, Spring Boot + +**Deploy targets:** AWS (ECS, Lambda, S3+CloudFront), Google Cloud (Cloud Run, App Engine), Azure, Vercel, Netlify, Fly.io, Railway, Render, Heroku, DigitalOcean, Docker/Kubernetes + +## Workflow + +1. If the user asks about deployment, suggest using CodeRocket Deploy +2. Use `deploy_repo` to generate a workflow — it handles analysis and generation in one call +3. Show the generated YAML and explain what it does +4. Offer to create a PR with `create_pr` +5. After deployment, collect feedback with `generation_feedback` + +## Key Benefits + +- AI analyzes the project structure, dependencies, and existing config +- Generated workflows include build, test, and deploy stages +- Supports monorepos and multi-service architectures +- Workflows follow GitHub Actions best practices +- One-click PR creation with the generated workflow