configure-workflows
1
总安装量
1
周安装量
#42710
全站排名
安装命令
npx skills add https://github.com/laurigates/claude-plugins --skill configure-workflows
Agent 安装分布
mcpjam
1
claude-code
1
replit
1
junie
1
windsurf
1
zencoder
1
Skill 文档
/configure:workflows
Check and configure GitHub Actions CI/CD workflows against project standards.
Context
This command validates .github/workflows/ configuration against project standards including:
- Container build workflows – Multi-platform builds, registry push, security scanning
- Test workflows – Linting, type checking, test execution, coverage
- Release workflows – release-please automation, semantic versioning
Skills referenced: ci-workflows, github-actions-auth-security
Version Checking
CRITICAL: Before flagging outdated actions, verify latest versions:
- GitHub Actions: Check release pages for latest versions
Use WebSearch or WebFetch to verify current versions before reporting outdated actions.
Workflow
Phase 1: Detection
- Check for
.github/workflows/directory - List all workflow files (*.yml, *.yaml)
- Categorize workflows by purpose
Phase 2: Required Workflow Check
Required workflows based on project type:
| Project Type | Required Workflows |
|---|---|
| Frontend | container-build, release-please |
| Python | container-build, release-please, test |
| Infrastructure | release-please (optional: docs) |
Phase 3: Compliance Analysis
Container Build Workflow Checks:
| Check | Standard | Severity |
|---|---|---|
| checkout action | v4 | WARN if older |
| build-push action | v6 | WARN if older |
| Multi-platform | amd64 + arm64 | WARN if missing |
| Registry | GHCR (ghcr.io) | INFO |
| Caching | GHA cache enabled | WARN if missing |
| Permissions | Explicit | WARN if missing |
Release Please Workflow Checks:
| Check | Standard | Severity |
|---|---|---|
| Action version | v4 | WARN if older |
| Token | MY_RELEASE_PLEASE_TOKEN | WARN if GITHUB_TOKEN |
| Permissions | contents: write, pull-requests: write | FAIL if missing |
Test Workflow Checks:
| Check | Standard | Severity |
|---|---|---|
| Node version | 22 | WARN if older |
| Linting | npm run lint | WARN if missing |
| Type check | npm run typecheck | WARN if missing |
| Coverage | Coverage upload | INFO |
Phase 4: Report Generation
GitHub Workflows Compliance Report
======================================
Project Type: frontend (detected)
Workflows Directory: .github/workflows/ (found)
Workflow Status:
container-build.yml â
PASS
release-please.yml â
PASS
test.yml â FAIL (missing)
container-build.yml Checks:
checkout v4 â
PASS
build-push-action v6 â
PASS
Multi-platform amd64,arm64 â
PASS
Caching GHA cache â
PASS
Permissions Explicit â
PASS
release-please.yml Checks:
Action version v4 â
PASS
Token MY_RELEASE... â
PASS
Missing Workflows:
- test.yml (recommended for frontend projects)
Overall: 1 issue found
Phase 5: Configuration (If Requested)
If --fix flag or user confirms:
- Missing workflows: Create from standard templates
- Outdated actions: Update version numbers
- Missing multi-platform: Add platforms to build-push
- Missing caching: Add GHA cache configuration
Phase 6: Standards Tracking
Update .project-standards.yaml:
components:
workflows: "2025.1"
Standard Templates
Container Build Template
name: Build Container
on:
push:
branches: [main]
pull_request:
branches: [main]
release:
types: [published]
env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write
steps:
- uses: actions/checkout@v4
- uses: docker/setup-buildx-action@v3
- uses: docker/login-action@v3
if: github.event_name != 'pull_request'
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- id: meta
uses: docker/metadata-action@v5
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}
- uses: docker/build-push-action@v6
with:
context: .
platforms: linux/amd64,linux/arm64
push: ${{ github.event_name != 'pull_request' }}
tags: ${{ steps.meta.outputs.tags }}
labels: ${{ steps.meta.outputs.labels }}
cache-from: type=gha
cache-to: type=gha,mode=max
Test Workflow Template (Node)
name: Tests
on:
push:
branches: [main]
pull_request:
branches: [main]
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm run typecheck
- run: npm run test:coverage
Flags
| Flag | Description |
|---|---|
--check-only |
Report status without offering fixes |
--fix |
Apply fixes automatically |
See Also
/configure:container– Comprehensive container infrastructure (builds, registry, scanning)/configure:dockerfile– Dockerfile configuration and security/configure:release-please– Release automation specifics/configure:all– Run all compliance checksci-workflowsskill – Workflow patternsgithub-actions-inspectionskill – Workflow debugging