devsecops-setup

A command that adds or reviews security checks in a project's CI/CD pipeline, the automated process that builds, tests, and releases code.

In plain words
What is it for?
Use it to add security scanning to GitHub Actions, GitLab CI, Jenkins, or CircleCI; improve existing checks; or set up security checks in a new project.
Why use it?
It removes the need to identify the pipeline platform and configure security stages by hand. It can also help when moving scans between supported pipeline platforms.

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/hermeticormus/libresecops-claude-code/devsecops-setup
Clone the repo
git clone --depth 1 https://github.com/HermeticOrmus/LibreSecOps-Claude-Code
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 845 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.00000 $0.00845
Opus 5 $0.00000 $0.00423
Sonnet 5 $0.00000 $0.00169
Haiku 4.5 $0.00000 $0.00085

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

Security

Grade A, and why

devsecops-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 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.

plugins/devsecops-pipelines/commands/devsecops-setup.md · 90 lines

How it starts

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

/devsecops-setup

Configure security scanning in an existing CI/CD pipeline, detecting the platform and adding appropriate security stages.

Trigger

Use when you need to add security scanning to an existing project's CI/CD pipeline, or when bootstrapping a new project with security-integrated CI/CD from day one. Appropriate for:

  • Adding security to an existing pipeline that has none
  • Auditing and improving an existing security pipeline
  • Setting up CI/CD for a new project with security built in
  • Migrating security scanning between CI/CD platforms

Input

The command operates on the current project directory. It detects:

  • CI/CD platform: .github/workflows/*.yml (GitHub Actions), .gitlab-ci.yml (GitLab CI), Jenkinsfile (Jenkins), .circleci/config.yml (CircleCI)
  • Project type: Language, framework, and package manager from manifest files
  • Existing security scanning: What is already configured
  • Optional flag: --platform [github|gitlab|jenkins] -- force a specific platform
  • Optional flag: --level [minimal|standard|comprehensive] -- security coverage level

Process

  1. Platform Detection: Identify the CI/CD platform from configuration files in the repository. If multiple are present, ask which is primary.

  2. Project Analysis: Determine the tech stack from package manifests, build files, and source code patterns. This informs which scanning tools are relevant.

  3. Current State Audit: Parse existing pipeline configuration to identify:

    • Which security scanning stages already exist
    • How they are configured (thresholds, gates)
    • What gaps remain
  4. Gap Analysis: Compare current state against the selected coverage level:

    • Minimal: Secret detection + SCA (known vulnerabilities)
    • Standard: Minimal + SAST + container scanning (if applicable)
    • Comprehensive: Standard + DAST + IaC scanning + SBOM generation + license compliance
  5. Configuration Generation: Produce pipeline configuration for the missing stages:

    • Use language-appropriate tools (e.g., Semgrep rules for the detected language, Bandit for Python-only)
    • Configure caching for scan databases
    • Set appropriate gates (block on critical/high for new projects, warn-only for existing projects with backlog)
    • Add SARIF upload where the platform supports it

Read the full file on GitHub · 90 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. 2d ago First seen · 90 lines · 0 tokens per session scan A 84748321ad04

Subscribe to this mod's changes

devsecops-setup is a command published in the GitHub repository HermeticOrmus/LibreSecOps-Claude-Code (4 stars, last pushed 3mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 845 tokens. 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-31.