setup-ci

A setup process for turning a project's testing and quality rules into an automated CI/CD pipeline. CI/CD means that a service automatically checks code changes and can block merging when required checks fail.

In plain words
What is it for?
Creating or adjusting GitHub Actions, GitLab CI, or similar pipelines for formatting, type checks, security analysis, unit tests, integration tests, acceptance tests, coverage, and specification checks.
Why use it?
It replaces a document that people must remember with checks the repository enforces. It also keeps test coverage and static-analysis results attached to each pipeline run.

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/igoruehara/spec-driven/setup-ci
Any agent
npx skills add igoruehara/spec-driven --skill setup-ci
Clone the repo
git clone --depth 1 https://github.com/igoruehara/spec-driven

Made for: Claude Code, Codex.

Per session 112 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 627 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 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.00112 $0.00627
Opus 5 $0.00056 $0.00313
Sonnet 5 $0.00022 $0.00125
Haiku 4.5 $0.00011 $0.00063

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

Security

Grade A, and why

setup-ci scanned grade A with 0 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 2d ago.

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.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

template/.claude/skills/setup-ci/SKILL.md · 35 lines

What it actually says

Skill: Setup de CI/CD (gates SDD na pipeline)

Materializa os gates SDD na esteira automática — é onde "documento que o time tenta seguir" vira "regra que o sistema garante". Idempotente: re-rodar ajusta a pipeline existente.

Descubra o alvo

  • Detecte o provedor (GitHub Actions / GitLab CI / Bitbucket / outro) pelo repo e por integrations.md.
  • Leia docs/engineering/TESTING.md (comandos de gate) e o quality gate do CLAUDE.md (cobertura mínima).

Proponha a pipeline (confirme antes de gerar)

Estágios em ordem; falhar bloqueia o merge:

  1. Lint/format → 2. Análise estática (type-check + complexidade + SAST) → 3. Unidade → 4. Integração → 5. Aceite (um por AC-N) → 6. Cobertura (mín. do CLAUDE.md).
  2. Regra SDD: PR que altera código sem spec aprovada em specs/ → falha (job que checa a presença/status da spec correspondente à mudança).

Evidência rastreável: publique cobertura e análise estática como artefatos do run (e, se o provedor permitir, como check/comentário no PR). O resultado de qualidade fica anexado à mudança e alimenta a tendência do /metricas.

Gere

  • O arquivo da pipeline (.github/workflows/*.yml / .gitlab-ci.yml) usando os comandos de docs/engineering/TESTING.md — não invente comandos; reuse os de lá.
  • ⚠️ Sem segredos no arquivo — use os secrets do provedor. Confirme antes de escrever.
  • Registre a escolha de pipeline como ADR se for estrutural; aponte em docs/engineering/agentic-layer.md.

Próximo passo

Combine com /revisar-pr (gate humano/agente). Juntos cobrem review + automação: a CI garante os testes/cobertura/spec; o /revisar-pr garante a conformidade de processo no PR/MR.

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. 2d ago First seen · 35 lines · 112 tokens per session scan A b457d50286e9

Subscribe to this mod's changes

setup-ci is a skill published in the GitHub repository igoruehara/spec-driven (213 stars, last pushed 1mo ago), licensed MIT. It adds 112 tokens to every session and 627 once invoked, about $0.0006 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

deploy-release-test

Validate a commit-specific Next.js preview package and manually trigger the entire Next.js deployment test suite through the teste2edeployrelease.yml GitHub Actions workflow. Use only when asked to run the full deploy test suite or this workflow specifically from an internal vercel/next.js PR branch. Do not use for…

vercel/next.js · 115 tokens

ci

A specialized skill for Gemini CLI that provides high-performance, fail-fast monitoring of GitHub Actions workflows and automated local verification of CI failures. It handles run discovery automatically—simply provide the branch name.

google-gemini/gemini-cli · 42 tokens

ci-cd-and-automation

Automates CI/CD pipeline setup. Use when setting up or modifying build and deployment pipelines. Use when you need to automate quality gates, configure test runners in CI, or establish deployment strategies.

addyosmani/agent-skills · 45 tokens

agent-github-modes

Agent skill for github-modes - invoke with $agent-github-modes.

ruvnet/ruflo · 21 tokens

playwright-devops

DevOps workflows for Playwright - CI failure analysis, workflow debugging, and release operations.

microsoft/playwright · 23 tokens

agentic-actions-auditor

Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Codex, and GitHub AI Inference. Detects attack vectors where attacker-controlled input reaches. AI agents running in CI/CD pipelines.

sickn33/agentic-awesome-skills · 63 tokens