en un clic
ci
// Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI). Triggers: CI setup, build pipeline, GitHub Actions config, debug CI, GitLab CI.
// Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI). Triggers: CI setup, build pipeline, GitHub Actions config, debug CI, GitLab CI.
Create new Claude Code lifecycle hook (PreToolUse/PostToolUse/Stop/SessionStart) with bash + hooks.json. Triggers: create hook, lifecycle hook, PreToolUse, PostToolUse, hook event.
CI/CD: GitHub Actions, GitLab CI, Jenkins, caching, blue-green, canary. Triggers: CI, CD, pipeline, GitHub Actions, workflow YAML, release, canary, rollout.
C#/.NET: LINQ, async/await, DI, records, nullable refs, ASP.NET Core, EF Core, MediatR. Triggers: C#, .NET, dotnet, ASP.NET, EF Core, LINQ, record type, IServiceCollection.
Docker/K8s: Dockerfile, multi-stage, compose, manifests, Helm. Triggers: Docker, Dockerfile, container, Kubernetes, k8s, compose, Helm, pod.
SEO validator: meta/OG, Schema.org, hreflang, Core Web Vitals, crawlability. Triggers: SEO, meta tags, Schema.org, hreflang, LCP, INP, CLS, Core Web Vitals, sitemap, crawlability.
Systematic debugging via logs, health checks, hypothesis-driven investigation. Triggers: debug, error, trace root cause, fix bug, reproduce symptom, investigation.
| name | ci |
| description | Detect/generate/debug CI pipeline config (GitHub Actions, GitLab CI). Triggers: CI setup, build pipeline, GitHub Actions config, debug CI, GitLab CI. |
| effort | medium |
| disable-model-invocation | true |
| argument-hint | [platform] |
| allowed-tools | Bash, Read, Write |
| agent | devops-implementer |
| context | fork |
| scripts | ["scripts/ci-detect.py"] |
$ARGUMENTS
Generate, update, or troubleshoot CI/CD pipeline configuration based on project type.
cat .github/workflows/*.yml 2>/dev/null || cat .gitlab-ci.yml 2>/dev/null || echo "no-ci"Detect CI platform and analyze configuration:
python3 scripts/ci-detect.py [directory]
Returns JSON with:
platform - detected CI platform (github-actions, gitlab-ci, jenkins, bitbucket, circleci)config_files[] - CI config file pathsproject_type - detected project type (python, node, flutter, go, rust, php, docker)jobs_found[] - job/stage names extracted from configstages_detected[] - best-practice stages found (lint, test, build, deploy)missing_stages[] - recommended stages not yet configuredsuggested_template - pointer to ci-cd-patterns skill for templates| File Found | Project Type | Pipeline |
|---|---|---|
package.json | Node.js/TypeScript | npm ci, lint, test, build |
pyproject.toml / setup.py | Python | pip install, ruff, mypy, pytest |
pubspec.yaml | Flutter/Dart | dart analyze, flutter test, build |
composer.json | PHP | composer install, phpstan, phpunit |
go.mod | Go | go vet, go test, go build |
Cargo.toml | Rust | cargo clippy, cargo test, cargo build |
Dockerfile | Docker | Build and push image |
.github/workflows/ci.yml.gitlab-ci.yml/ci # Generate CI config for detected project type
/ci github-actions # Explicitly use GitHub Actions
/ci add deploy staging # Add deployment stage for staging
/ci fix # Troubleshoot failing pipeline
/ci add matrix node 18,20,22 # Add matrix testing
Use ci-cd-patterns skill for pipeline templates and best practices.
on: as a reserved word only when unquoted. Writing "on": (quoted) produces a valid-looking file whose workflow never triggers. YAML anchors in this field also silently break.rules: and only:/except: are mutually exclusive at the job level. Mixing them fails parse on pipeline run but not at git push time — test with gitlab-ci-lint before committing.secrets.* in GitHub Actions is undefined in workflows triggered from forked PRs (security boundary). Jobs that need secrets must gate on github.event.pull_request.head.repo.full_name == github.repository or use pull_request_target carefully.actions/checkout@v6 defaults to fetch-depth: 1 (shallow). Commands that need history (git log, git describe, conventional-commit tools) fail with misleading errors — set fetch-depth: 0 for those jobs./test/ci-cd-patterns (knowledge skill)/deploy