feat: add reusable GitHub Actions workflows as plugin#2
Merged
Conversation
- Add 4 reusable workflows callable from other repos: - reusable-pr-review.yml: Automatic PR review - reusable-docs-sync.yml: Keep docs in sync with code - reusable-code-quality.yml: Periodic code quality audits - reusable-dependency-audit.yml: Dependency updates & security - Add github-actions skill with full documentation - Add /setup-github-actions command for interactive setup - Add github-actions plugin to marketplace with symlinks - Update README with reusable workflows section Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
There was a problem hiding this comment.
Pull request overview
This PR adds reusable GitHub Actions workflows as a new plugin to enable Claude Code CI/CD automation in any repository. The workflows provide PR review, documentation sync, code quality audits, and dependency management capabilities that can be called directly without copying workflow files.
Changes:
- Added 4 reusable GitHub Actions workflows for Claude Code automation
- Created
github-actionsplugin with comprehensive skill documentation and setup command - Updated README with documentation and usage examples for the reusable workflows
Reviewed changes
Copilot reviewed 11 out of 11 changed files in this pull request and generated no comments.
Show a summary per file
| File | Description |
|---|---|
.github/workflows/reusable-pr-review.yml |
Reusable workflow for automatic PR reviews using Claude |
.github/workflows/reusable-docs-sync.yml |
Reusable workflow to keep documentation synchronized with code changes |
.github/workflows/reusable-code-quality.yml |
Reusable workflow for periodic code quality audits on random directories |
.github/workflows/reusable-dependency-audit.yml |
Reusable workflow for dependency updates and security audits |
.claude/skills/github-actions/SKILL.md |
Complete documentation for all reusable workflows with usage examples |
.claude/commands/setup-github-actions.md |
Interactive setup wizard command for configuring workflows |
plugins/github-actions/.claude-plugin/plugin.json |
Plugin manifest for the github-actions bundle |
plugins/github-actions/skills/github-actions |
Symlink to the skill documentation |
plugins/github-actions/commands/setup-github-actions.md |
Symlink to the setup command |
.claude-plugin/marketplace.json |
Registry entry for the new github-actions plugin |
README.md |
Documentation for reusable workflows and local workflows distinction |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Changed from pinned 'claude-opus-4-5-20251101' to 'opus' alias which automatically updates to the latest Claude Opus version. Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
1. reusable-code-quality.yml: Fixed shell script to properly iterate
over space-separated file extensions. Previously ".ts .tsx" was
incorrectly expanded as "*.ts .tsx" instead of checking each
extension separately.
2. reusable-docs-sync.yml: Replaced format() with environment variables
to avoid potential issues with file paths containing braces like
"utils/{helpers}.ts" being misinterpreted as template placeholders.
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add compatibility table showing which workflows work with any stack vs Node.js specific - PR Review and Docs Sync: Generic (git only, any language) - Code Quality and Dependency Audit: Node.js (requires npm) - Add "Adapting for Other Stacks" section with Python/Go/Rust examples - Update README workflow table with Stack column Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rename reusable-code-quality.yml → reusable-nodejs-code-quality.yml - Rename reusable-dependency-audit.yml → reusable-nodejs-dependency-audit.yml - Update internal workflow names to include "Node.js" - Update all documentation references in SKILL.md, README.md, and setup command Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Update workflow display names from "Reusable - X" to "Showcase - X" - Update descriptions in SKILL.md, README.md, plugin.json, marketplace.json Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Update setup-github-actions.md to reference the correct Node.js workflow names: - reusable-code-quality.yml → reusable-nodejs-code-quality.yml - reusable-dependency-audit.yml → reusable-nodejs-dependency-audit.yml Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Rename all workflow files to use 'showcase-' prefix - Update all documentation references (README.md, SKILL.md, setup command) Files renamed: - reusable-pr-review.yml → showcase-pr-review.yml - reusable-docs-sync.yml → showcase-docs-sync.yml - reusable-nodejs-code-quality.yml → showcase-nodejs-code-quality.yml - reusable-nodejs-dependency-audit.yml → showcase-nodejs-dependency-audit.yml Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add "How It Works" section to SKILL.md explaining workflow_call concept - Clarify README sections: "Showcase Workflows (Reusable)" vs "Local Workflows (Examples)" - Explain that local workflows are caller examples showing how to use the reusable ones Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add `id-token: write` permission for OIDC authentication - Replace deprecated `prompt` with `direct_prompt` - Replace deprecated `claude_args` with `max_turns` and `allowed_tools` - Remove deprecated `track_progress` input Fixes CI/CD errors from updated anthropics/claude-code-action@beta Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
- Add missing `id-token: write` permission required for OIDC auth - Replace invalid inputs with correct ones: - `track_progress` → removed (not supported) - `prompt` → `direct_prompt` - `claude_args` → `max_turns` and `allowed_tools` Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
github-actionsplugin to the marketplace with skill and commandReusable Workflows
reusable-pr-review.ymlmodel,timeout_minutes,review_promptreusable-docs-sync.ymldays_back,docs_paths,code_patternsreusable-code-quality.ymlnum_dirs,source_dir,lint_commandreusable-dependency-audit.ymlnode_version,lint_command,test_commandUsage Example
New Plugin Components
.claude/skills/github-actions/SKILL.md- Full documentation for all workflows/setup-github-actions- Interactive setup wizardTest Plan
/setup-github-actionscommand creates correct workflow files./scripts/validate-symlinks.sh)🤖 Generated with Claude Code