From magician
Creates, updates, and monitors CI/CD pipelines for GitHub Actions, GitLab CI, and CircleCI. Guides setup and fix processes.
How this skill is triggered — by the user, by Claude, or both
Slash command
/magician:deployThe summary Claude sees in its skill listing — used to decide when to auto-load this skill
Create and manage CI/CD pipelines.
Create and manage CI/CD pipelines.
ls .github/workflows/ 2>/dev/null
ls .gitlab-ci.yml 2>/dev/null
ls .circleci/config.yml 2>/dev/null
Gather requirements via a single AskUserQuestion call (three questions in one questions array — not plain prose) so the user picks structured options instead of free-typing:
End your turn at the AskUserQuestion call. Wait for the answers before generating any pipeline template. If provider is "Other", follow up for the specific tool.
Once answered, present the one-shot plan — provider, stages, environments, and the exact file(s) to be written (e.g. .github/workflows/ci.yml) — and gate it with AskUserQuestion (not a bare sentence). Frame it "Pipeline plan ready — write it?" with options:
End your turn at the AskUserQuestion call. Act on the selection; treat any free-form "looks good / approved / yes" as Approve. Write the workflow file only on Approve — this is the write gate; do not weaken it.
# .github/workflows/ci.yml
name: CI
on:
push:
branches: [main, develop]
pull_request:
branches: [main]
permissions:
contents: read
jobs:
test:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup runtime
uses: actions/setup-node@v4
with:
node-version: '20'
cache: 'npm'
- run: npm ci
- run: npm run lint
- run: npm test
- run: npm run build
security:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Security scan
# magician-scan is provided by the magician plugin (on PATH when the
# plugin is enabled). Make it optional so the job degrades gracefully
# in repos where the binary is not installed.
run: command -v magician-scan >/dev/null 2>&1 && magician-scan . || echo "magician-scan not present, skipping"
# .gitlab-ci.yml
stages: [lint, test, build, security]
lint:
stage: lint
script: [npm run lint]
test:
stage: test
script: [npm test]
build:
stage: build
script: [npm run build]
artifacts:
paths: [dist/]
security:
stage: security
# magician-scan is provided by the magician plugin (on PATH when the plugin
# is enabled). Optional — degrades gracefully if the binary is not present.
script:
- command -v magician-scan >/dev/null 2>&1 && magician-scan . || echo "magician-scan not present, skipping"
Prefer the Monitor tool — run the pipeline watcher in the background so each status change streams back as an event and you react the moment a job fails, without a blocking --watch holding the turn.
# GitHub Actions
gh run list --limit 5
gh run view <run-id>
gh run watch <run-id> # run via the Monitor tool; falls back to a blocking watch pre-v2.1.98
For an unattended "until green" wait, pair with /goal, or schedule with /loop (self-paces when the interval is omitted; fixed-interval on Bedrock/Vertex).
gh run view <id> --log-failedgh run watch — on failure, repeat from step 1 until the run is green.After the requirements answers (the three questions — provider, stages, environments — plus the one-shot create plan), execute the remaining phases autonomously: detecting existing pipelines (ls), generating the template, and monitoring (gh run list/view/watch, --log-failed), plus kg query/blast and read-only git NEVER pause for permission.
Re-gate only on this skill's real side effects: Write/Edit of the workflow file, git add/commit/push, and PR create. Do not weaken the write gate above.
Doctrine: lore/autonomy.md.
"Deploy pipeline configured. Monitor at: ."
npx claudepluginhub alexander-tyagunov/magician --plugin magicianGenerates CI/CD pipeline configs adapted to project stack and platform, for GitHub Actions, GitLab CI, Jenkins, etc. Automates lint, tests, build, security, and deploy stages.
Generates multi-platform CI/CD pipeline configs (GitHub Actions, GitLab CI, Jenkins, CircleCI, Azure DevOps) with caching, matrix builds, secrets, and deployment gates. Trigger with 'deploy application' or 'create pipeline'.
Design and implement CI/CD pipelines with GitHub Actions, GitLab CI, Jenkins, or CircleCI for automated testing, building, and deployment.