with one click
ci-workflow
// Run comprehensive CI checks before committing changes. Use when the user asks to run CI, run quality checks, validate code quality, or before finishing any task that involves code changes.
// Run comprehensive CI checks before committing changes. Use when the user asks to run CI, run quality checks, validate code quality, or before finishing any task that involves code changes.
[HINT] Download the complete skill directory including SKILL.md and all related files
| name | ci-workflow |
| description | Run comprehensive CI checks before committing changes. Use when the user asks to run CI, run quality checks, validate code quality, or before finishing any task that involves code changes. |
Execute make ci and ensure ALL quality checks pass with success message.
Success Criteria: Output ends with "ā CI checks successfully passed!"
The CI command uses Make's built-in parallelism (make -j4 --output-sync=target) for concurrent execution. No external tools are required beyond GNU Make.
Checks run in two stages:
phpcsfixer ā phpmd ā phpinsightsParallel stage groups:
| Group | Tasks | Dependency |
|---|---|---|
| Static Analysis | composer-validate, check-requirements, check-security, psalm, psalm-security | None (fully parallel) |
| Architecture | deptrac | None |
| Tests + OpenAPI | unit-tests, integration-tests, behat, openapi-diff, spectral, schemathesis | setup-test-db first |
| Mutation | infection | None |
Make's --output-sync=target flag groups each target's output together after completion, preventing interleaved output from parallel tasks.
make ci
Identify failing check from output and apply fix:
| Check | Command | Fix | Companion Skill |
|---|---|---|---|
| Code style | make phpcsfixer | Apply auto-fixes | - |
| Static analysis | make psalm | Fix type errors | - |
| Quality metrics | make phpinsights | Reduce complexity, fix architecture | complexity-management |
| Architecture | make deptrac | Fix layer boundary violations | deptrac-fixer |
| Organization | make psalm | Fix naming, directory placement | code-organization |
| Tests | make unit-tests | Debug failing tests | testing-workflow |
| Mutations | make infection | Add missing test cases | testing-workflow |
Refactoring during fixes: If CI failures reveal structural issues (wrong directory, vague names, hardcoded config), consult the code-organization skill before applying fixes.
make ci
Repeat Steps 2-4 until success message appears.
| Command | Description |
|---|---|
make ci | Run parallel CI (default, faster) |
make ci-sequential | Run sequential CI (fallback) |
make ci-preflight | Run mutating preflight checks only |
NEVER decrease these thresholds:
DO NOT:
make or docker compose exec php)Required final output:
ā
CI checks successfully passed!
make ci executedIf parallel execution causes issues:
make ci-sequential for the original sequential behavior