From acc
Generates GitHub Actions CI/CD workflows for PHP projects: PHPStan/Psalm analysis, PHPUnit tests with coverage, Docker builds, security scans, and staging/production deployments.
How this skill is triggered — by the user, by Claude, or both
Slash command
/acc:create-github-actionsThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Generates optimized GitHub Actions workflows for PHP projects.
Generates optimized GitHub Actions workflows for PHP projects.
.github/
└── workflows/
├── ci.yml # Main CI pipeline
├── security.yml # Security scanning
└── deploy.yml # Deployment workflow
ci.yml)4-stage pipeline with dependency caching and parallel execution:
| Stage | Jobs | Purpose |
|---|---|---|
| 1. Install | install | Composer install, upload vendor artifact |
| 2. Analysis | phpstan, psalm, cs-fixer, deptrac | Static analysis (parallel) |
| 3. Tests | test-unit, test-integration | PHPUnit with coverage upload |
| 4. Build | build | Docker image build and push (main/tags only) |
Key features:
actions/cache@v4actions/upload-artifact@v4security.yml)Triggers: push to main, PRs, weekly schedule (Monday).
| Job | Tool | Purpose |
|---|---|---|
dependency-audit | composer audit | Known vulnerability check |
psalm-security | Psalm taint analysis | Data flow security |
trivy | Trivy + SARIF | Container image scanning |
deploy.yml)Triggers: version tags (v*), manual workflow_dispatch.
| Job | Condition | Environment |
|---|---|---|
deploy-staging | Push or manual staging | staging |
deploy-production | Tags or manual production | production |
Features: environment protection rules, health checks, sequential staging-then-production.
Cross-version testing pattern for libraries:
| Dimension | Values |
|---|---|
| PHP versions | 8.2, 8.3, 8.4 |
| Dependencies | lowest, highest |
| Coverage | Only on PHP 8.4 + highest |
Uses fail-fast: false to run all combinations.
Analyze project:
composer.json for tools (phpstan, psalm, php-cs-fixer, deptrac).github/workflows/ directoryGenerate appropriate workflows:
Customize based on:
composer.json require.phpAll workflows go in .github/workflows/:
| File | When Generated |
|---|---|
ci.yml | Always |
security.yml | When security tools detected or requested |
deploy.yml | When deployment infrastructure detected |
ci.yml, security.yml)test-unit, deploy-staging)Run PHPStan, Upload coverage)PHP_VERSION, COMPOSER_ARGS)| Template | Lines | Key Actions Used |
|---|---|---|
| CI Pipeline | ~270 | checkout@v4, setup-php@v2, cache@v4, upload-artifact@v4, codecov-action@v4, build-push-action@v5 |
| Security | ~70 | checkout@v4, setup-php@v2, trivy-action, upload-sarif |
| Deploy | ~70 | checkout@v4, environments, health checks |
| Matrix | ~30 | setup-php@v2, strategy matrix |
Provide:
composer.jsonThe generator will:
references/templates.md — Full YAML workflow templates (CI, Security, Deploy, Matrix)references/examples.md — Concrete usage examples (minimal CI, multi-service, caching, artifacts, deployment)npx claudepluginhub dykyi-roman/awesome-claude-code --plugin accDesigns multi-stage CI/CD pipelines with GitHub Actions, including matrix builds, caching, artifact management, and secret handling. Useful for new projects or migrating from Jenkins/CircleCI.
Generates GitLab CI pipelines for PHP projects with stages, caching, artifacts, parallel jobs, and deployments. Analyzes composer.json, project structure, and services like MySQL or Redis.
Creates, audits, and optimizes GitHub Actions workflows for CI/CD, matrix builds, reusable workflows, composite actions, caching, and security hardening like pinning and permissions.