agentleFS
Alexander-TyagunovAlexander-Tyagunov/magician/skills/deploy/SKILL.md

deploy

Skill14 starsChanged 2 months agoMITView on GitHub

CI/CD pipeline management — creates, updates, and monitors GitHub Actions, GitLab CI, and CircleCI pipelines. Use to set up or fix CI/CD.

  • Commits and pushes

100 other projects use a version of this.

Adopted by

Most recently taken up by

Used with

Projects with it also use azure-kusto-graph, azure-kusto-irql and 10 more.

Other files people use alongside this one.

Files found in the same public projects as a version of this one, more often than they turn up anywhere else. Each project counts once, large collections count for less, and this file's own repository is left out.
  • MicrosoftSkill

    azure-kusto-graph

    Build and query Kusto graphs from natural language. Covers transient graphs (make-graph), persistent graph models/snapshots, pattern matching (graph-match), shortest paths, connected components, and graph-to-table export. Generates the edges-first thinking: define edges, define node lookups, union, make-graph. WHEN: make-graph, graph-match, graph-shortest-paths, graph-to-table, graph-mark-components, persistent graph, graph model, graph snapshot, build a graph from data, find paths between nodes, pattern matching in graph, connected components, transient graph, Kusto graph, KQL graph.

    Also in 3 projects that use this

  • MicrosoftSkill

    azure-kusto-irql

    Compose IRQL (Incident Response Query Language) queries for Kusto cybersecurity investigations. Translates natural language hunting questions into composable IRQL pipelines using Get_*, Extract_*, and Enrich_* functions. WHEN: IRQL query, security hunt, threat hunting KQL, incident response query, compose hunting pipeline, failed logins, phishing investigation, lateral movement, process execution, file creation events.

    Also in 3 projects that use this

  • pvnarpSkill

    incident

    Guides incident response and post-mortem analysis. Covers triage, mitigation, root cause analysis, and prevention. Use when responding to active incidents, writing post-mortems, or improving incident processes.

    Also in 7 projects that use this

  • ww-w-aiSkill

    starter

    Static web development guide for beginners. Covers HTML/CSS/JavaScript and Next.js App Router basics. Project initialization with "init starter". Triggers: static website, portfolio, landing page, HTML CSS, beginner, 정적 웹, 포트폴리오, 초보자, 静的サイト, 初心者, 静态网站, 初学者, sitio web estático, site statique, statische Website, sito web statico Do NOT use for: fullstack apps (use $dynamic), enterprise (use $enterprise).

    Also in 3 projects that use this

  • +8 more from microsoft

The file

We split this skill into the rules it gives an agent

6 rules. 0 are common, 4 are distinctive, and 2 are very specific to this project.

  • 0

    Common

    Most of the 85 edited versions we read keep these.

  • 4

    Distinctive

    This author's own choices. Worth a look.

  • 2

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Create and manage CI/CD pipelines.

    line 13
  2. Distinctive:

    End your turn at the AskUserQuestion call: Wait for the answers before generating any pipeline template.

    line 32
  3. Very specific:

    Run gh run watch with the Bash tool's background option so it does not hold the turn.

    line 112
  4. Very specific:

    Read the failure: gh run view <id> --log-failed

    line 125
  5. Distinctive:

    After the requirements answers (the three questions — provider, stages, environments — plus the one-shot create plan), execute the …

    line 132
  6. Distinctive:

    When invoked interactively by a human, surface the same obstacle in prose instead.

    line 151

“Common” is measured: kept by at least 6 in 10 of the 85 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

/deploy — CI/CD Management

Bundled command: if kg is not found, run it as ${CLAUDE_PLUGIN_ROOT}/tools/kg and give subagents that full path. If that is missing too (Claude chat ships no plugin tools), skip the kg steps and search the code directly.

Create and manage CI/CD pipelines.

Detect Existing Pipeline

ls .github/workflows/ 2>/dev/null
ls .gitlab-ci.yml 2>/dev/null
ls .circleci/config.yml 2>/dev/null

Process

Creating a New Pipeline

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:

  • CI provider — GitHub Actions · GitLab CI · CircleCI · Other
  • Stages (multi-select) — lint · test · build · deploy · security scan
  • Environments — staging · production · both

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:

  • Approve — write the workflow file(s) as planned
  • Revise — adjust stages / environments (they describe the change)
  • Change scope — different provider or file layout

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 Actions Template

# .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 Template

# .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"

Monitoring a Pipeline

Run gh run watch with the Bash tool's background option so it does not hold the turn; you are notified when it exits, and its exit status tells you whether the run passed.

# GitHub Actions
gh run list --limit 5
gh run view <run-id>
gh run watch <run-id> --exit-status   # Bash background option; non-zero exit = the run failed

For an unattended "until green" wait, pair with /goal, or schedule with /loop (self-paces when the interval is omitted).

Background CI watcher. Running /deploy also starts magician's ci-watch monitor for the session. Every 90 s it asks gh for the newest failed GitHub Actions run on the current branch; the first check only records a baseline, and each later new failure is reported as a single line with the run ID only (the number in the run's Actions URL). It prints nothing without gh, a git repository, an origin remote or a branch, and stops after about 3 hours or when the session ends.

Fixing a Failed Pipeline (loop until green)

  1. Read the failure: gh run view <id> --log-failed
  2. Fix the underlying issue
  3. Push the fix
  4. Watch the new run: gh run watch <id> --exit-status with the Bash tool's background option — on failure, repeat from step 1 until the run is green.

Autonomy — approve the plan, then run

After the requirements answers (the three questions — provider, stages, environments — plus the one-shot create plan), execute the remaining phases autonomously: detecting existing pipelines, generating the template, and monitoring (gh run list/view/watch, --log-failed), plus kg query and read-only git need no confirmation question. Re-gate only on this skill's real side effects: edits to the workflow file, git add/commit/push, and PR create. Do not weaken the write gate above. Commands outside the pre-approved list above (git writes, gh pr create) still show Claude Code's normal permission prompt. Doctrine: lore/autonomy.md.

Obstacles

If this skill runs as a dispatched unit (under /orchestrate, /weave, /manifest, /transmute, or another skill) and hits something that blocks or degrades the work, do not wait for a human who is not there and do not silently ship a degraded result — return an Obstacles block to the caller, alongside whatever you did complete:

STATUS: BLOCKED | DEGRADED | NEEDS_CONTEXT
OBSTACLE: <one-line label of what blocked or degraded the task — the claim alone>
BLOCKER: <the specific, actionable cause — distilled, never a raw traceback or dumped log>
SEVERITY: Critical | High | Medium | Low
WORKAROUND: <what you did to proceed and what it leaves unverified; empty if still fully blocked>
RECURRENCE: First-seen | Recurring | Systemic
SCOPE: <this task only | likely hits sibling/downstream work too>
NEXT: <the action or decision the caller must make to clear it — retry with X, supply input Y, accept degraded, or escalate>

When invoked interactively by a human, surface the same obstacle in prose instead. Omit the block entirely on a clean run. See lore/obstacles.md.

Completion Signal

"Deploy pipeline configured. Monitor at: <CI URL>."

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.