deployment-cicd

deployment-cicd is a skill for Claude Code, Codex from kouroshez/coding-os. It costs 101 tokens per session (3,027 once invoked), scanned C, original, Apache-2.0.

A guide to reliably building, testing, packaging, and releasing software. CI/CD means automated checks and delivery after code changes; containers package an application with what it needs to run.

In plain words
What is it for?
Use it to create CI pipelines, write Dockerfiles, choose rolling, blue-green, or canary releases, set versioning and changelogs, or move deployments to GitOps.
Why use it?
It helps replace risky manual releases with repeatable deployments, safer rollout choices, secret handling, and prepared rollback steps.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/kouroshez/coding-os/deployment-cicd
Any agent
npx skills add kouroshez/coding-os --skill deployment-cicd
Clone the repo
git clone --depth 1 https://github.com/kouroshez/coding-os

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for deployment-cicd

README.md
[![agentmods](https://agentmods.dev/badge/skills/kouroshez/coding-os/deployment-cicd.svg)](https://agentmods.dev/skills/kouroshez/coding-os/deployment-cicd)
Your own site
<a href="https://agentmods.dev/skills/kouroshez/coding-os/deployment-cicd"><img src="https://agentmods.dev/badge/skills/kouroshez/coding-os/deployment-cicd.svg" alt="Measured on agentmods" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,027 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 2 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00101 $0.03027
Opus 5 $0.00051 $0.01514
Sonnet 5 $0.00020 $0.00605
Haiku 4.5 $0.00010 $0.00303

Measured 4d ago against content hash 6d47da2e9682, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade C, and why

deployment-cicd scanned grade C with 2 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

The scan reads SKILL.md. This mod also ships 1 executable file (scripts/lint_workflow.py), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Recursive force deletehighDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

&& rm -rf /var/lib/apt/lists/*

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

- **No secrets in image layers.** `RUN curl -H "Bearer $TOKEN"` leaks the token in image history. Use BuildKit secrets or runtime env vars.
src/core/skills/deployment-cicd/SKILL.md · 261 lines

How it starts

The opening of the file, as written. The whole thing — 261 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Deployment + CI/CD — Ship Safely, Roll Back Fast

A practical playbook for the deploy pipeline that gets a feature from "merged" to "in production" reliably. Stack-agnostic core; recipes assume Docker + GitHub Actions + Kubernetes (the 2026 industry default) with callouts for AWS / GCP / Fly.io specifics.

When to Use This Skill

  • Designing CI for a new service — the shape now sets the team's culture.
  • Writing or auditing a Dockerfile — bad layers cost minutes per build.
  • Choosing between rolling, blue-green, canary, or feature-flag deploys.
  • Defining the release process — who clicks deploy, when, and what's reversible.
  • Adding semantic versioning + automated changelogs.
  • Setting up secrets in CI without leaking them.
  • Writing a rollback playbook (preferably before you need it).
  • Migrating manual deploys → GitOps (Argo CD / Flux).

Skip when: prototyping a script. Real services, real pipelines.

The Deployment Pipeline — Six Stages

commit → build → test → image → deploy(staging) → deploy(prod)
   │       │      │       │           │                │
   <1s    1-3m   1-5m    1-2m        1-5m         1-5m + verify

Every stage must be:

  • Idempotent — re-running produces the same result.
  • Fast-failing — break early, don't ship to staging if unit tests failed.
  • Observable — emit deploy markers to metrics so dashboards correlate "the spike" with "the deploy".
  • Reversible — every forward step has a documented backward step.

Hard target: commit → prod within 30 minutes for non-DB-migration changes. Slower than that, the team batches and the per-batch risk skyrockets.

Dockerfile — the Five-Layer Rule

A good Dockerfile produces a small, secure, cache-friendly image. Five layers, in this order:

# 1. Base image — minimal, pinned, scanned
FROM python:3.12-slim AS base

# 2. System dependencies — change rarely
RUN apt-get update && apt-get install -y --no-install-recommends \
    libpq-dev \
    && rm -rf /var/lib/apt/lists/*

# 3. Language dependencies — change with lock file only
WORKDIR /app
COPY pyproject.toml uv.lock ./
RUN pip install --no-cache-dir uv && uv sync --frozen --no-dev

# 4. Application code — change every commit
COPY src/ src/

# 5. Runtime configuration — labels, user, entrypoint
LABEL org.opencontainers.image.source="https://github.com/org/repo"
RUN useradd --uid 1000 --no-create-home app
USER 1000
EXPOSE 8000
CMD ["uv", "run", "uvicorn", "src.main:app", "--host", "0.0.0.0", "--port", "8000"]

Read the full file on GitHub · 261 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 261 lines · 101 tokens per session scan C 6d47da2e9682

Subscribe to this mod's changes

deployment-cicd is a skill published in the GitHub repository kouroshez/coding-os (6 stars, last pushed 4d ago), licensed Apache-2.0. It adds 101 tokens to every session and 3,027 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 2 findings (recursive force delete, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories