ci-setup

ci-setup is a command for coding agents from dykyi-roman/awesome-claude-code. It costs 26 tokens per session (927 once invoked), scanned A, original, MIT.

A setup command for creating a continuous integration and delivery pipeline for PHP projects. The pipeline can run checks such as linting, tests, builds, and deployment through GitHub Actions or GitLab CI.

In plain words
What is it for?
Use it to create CI configuration from scratch on GitHub or GitLab, with optional Docker support and deployment choices.
Why use it?
It gives a project an automated process for checking and delivering changes instead of requiring every step to be run manually.

Command

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 commands/dykyi-roman/awesome-claude-code/ci-setup
Clone the repo
git clone --depth 1 https://github.com/dykyi-roman/awesome-claude-code

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 ci-setup

README.md
[![agentmods](https://agentmods.dev/badge/commands/dykyi-roman/awesome-claude-code/ci-setup.svg)](https://agentmods.dev/commands/dykyi-roman/awesome-claude-code/ci-setup)
Your own site
<a href="https://agentmods.dev/commands/dykyi-roman/awesome-claude-code/ci-setup"><img src="https://agentmods.dev/badge/commands/dykyi-roman/awesome-claude-code/ci-setup.svg" alt="Measured on agentmods" height="20"></a>
Per session 26 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 927 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin unknown 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.00026 $0.00927
Opus 5 $0.00013 $0.00464
Sonnet 5 $0.00005 $0.00185
Haiku 4.5 $0.00003 $0.00093

Measured today against content hash 0728ab9fbf89, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ci-setup 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 today.

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.

commands/ci-setup.md · 135 lines

How it starts

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

Setup CI Pipeline

Create a complete CI/CD pipeline for a PHP project from scratch.

Input Parsing

Parse $ARGUMENTS to extract platform, path, and optional meta-instructions:

Format: <platform> [path] [-- <meta-instructions>]

Examples:
- /acc:ci-setup github
- /acc:ci-setup gitlab ./
- /acc:ci-setup github ./src -- include Docker, blue-green deploy
- /acc:ci-setup gitlab -- skip deploy, focus on testing

Parsing rules:

  1. First argument = platform (github or gitlab)
  2. Second argument = path (optional, defaults to ./)
  3. After -- = meta-instructions (optional customization)

Pre-flight Check

  1. Verify platform specified:

    • If empty, ask user: "Which CI platform? (github/gitlab)"
  2. Check existing CI:

    ls -la .github/workflows/ 2>/dev/null
    ls -la .gitlab-ci.yml 2>/dev/null
    
    • Warn if CI already exists
    • Ask to overwrite or extend
  3. Analyze project:

    cat composer.json | jq '.require.php, ."require-dev"'
    ls phpstan.neon* psalm.xml* .php-cs-fixer* 2>/dev/null
    ls phpunit.xml* 2>/dev/null
    ls Dockerfile* 2>/dev/null
    

Instructions

Use the acc:ci-coordinator agent to set up the CI pipeline:

Task tool with subagent_type="acc:ci-coordinator"
prompt: "Set up CI pipeline for [PATH].

Platform: [PLATFORM]
[META-INSTRUCTIONS if provided]

Operation: SETUP

Required components:
1. Pipeline workflow (lint, test, build)
2. Static analysis configs (PHPStan, Psalm, CS-Fixer)
3. Test configuration (PHPUnit)
4. Docker configuration (if needed)
5. Deployment configuration (if requested)

Analyze the project and generate all necessary files."

Expected Output

The coordinator will:

  1. Analyze the project:

    • PHP version
    • Dependencies and dev tools
    • Test framework
    • Existing configurations
  2. Generate CI workflow:

    • .github/workflows/ci.yml or .gitlab-ci.yml
    • Stages: install, lint, test, build, deploy
  3. Generate tool configs (if missing):

    • phpstan.neon
    • psalm.xml
    • .php-cs-fixer.dist.php
    • deptrac.yaml

Read the full file on GitHub · 135 lines

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. today First seen · 135 lines · 26 tokens per session scan A 0728ab9fbf89

Subscribe to this mod's changes

ci-setup is a command published in the GitHub repository dykyi-roman/awesome-claude-code (96 stars, last pushed 19d ago), licensed MIT. It adds 26 tokens to every session and 927 once invoked, about $0.0001 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-09-03.