# Ci config guard claudesec

> Ci config guard claudesec is an open-source agent skill for developer tools. Guides writing CI config regression tests for the ClaudeSec repo's workflows. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/Twodragon0/claudesec/tree/main/.claude/skills/ci-config-guard-claudesec
- **Repository:** https://github.com/twodragon0/claudesec
- **GitHub stars:** 14
- **License:** MIT
- **Skill name:** ci-config-guard-claudesec
- **Collection:** https://github.com/Twodragon0/claudesec
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-03

## About

This skill is a authoring playbook for guard tests that stop CI gates from being weakened without notice, such as lowered coverage floors, dropped aggregator jobs, unpinned actions or removed exit codes. It walks the agent through choosing an invariant worth guarding, placing the test under the repo's scanner tests folder, and extracting the relevant workflow slice with line or regex scanning.

The workflow centres on verification: the agent is asked to prove each guard passes on the real file and fails on a mutated temporary copy, and to run adversarial reviews for text-parsing guards. It also includes a catalogue of existing guards, a mutation harness pattern and notes on comment-stripping and YAML pitfalls.

The skill expects a Python codebase using the standard library test runners and a CI configuration to inspect. It is written specifically for the ClaudeSec repository's conventions, so porting it elsewhere requires reassessing the target repo's own practices.

## When your agent uses it

> ClaudeSec-specific CI config regression guard authoring — exact conventions (scanner/tests, stdlib-only/no-PyYAML, 99% pytest + 90% kcov floors, scanner/lib) and the existing test_ci_*.py catalog. Use in THIS repo. For the repo-agnostic pattern, use the global ci-config-guard skill.

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Instructions only, no scripts](https://github.com/Twodragon0/claudesec/tree/HEAD/.claude/skills/ci-config-guard-claudesec)
- [License: MIT](https://github.com/Twodragon0/claudesec/tree/HEAD/.claude/skills/ci-config-guard-claudesec)

## Features

- **Invariant selection rules:** Guidance on when a CI guard is justified, tied to a concrete weakening scenario.
- **Guard test template:** A starter unittest module that checks a workflow file exists and that a coverage floor holds.
- **Non-vacuous mutation harness:** A pattern for mutating a temporary copy of a workflow to confirm the guard actually fails.
- **Comment-aware parsing notes:** Explains how comments and quoting can hide tokens from line-based matchers and how to avoid false assurance.
- **Adversarial review process:** Describes a two-pass review for substring and parser guards before merge.

## Good for

- Add a test that fails if the coverage threshold in lint workflow is lowered
- Write a guard checking that a required aggregator job still lists all its dependencies
- Verify a CI guard fails when a severity exit code is deleted
- Port a CI regression guard pattern to a different repository

## Install

### Claude Code

Copy the skill folder to `~/.claude/skills/ci-config-guard-claudesec` to use it in all your projects:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Twodragon0/claudesec.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ci-config-guard-claudesec &&
cp -R "$tmp/.claude/skills/ci-config-guard-claudesec" ~/.claude/skills/ci-config-guard-claudesec &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ci-config-guard-claudesec` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ci-config-guard-claudesec` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Twodragon0/claudesec.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ci-config-guard-claudesec &&
cp -R "$tmp/.claude/skills/ci-config-guard-claudesec" ~/.agents/skills/ci-config-guard-claudesec &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ci-config-guard-claudesec` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ci-config-guard-claudesec` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Twodragon0/claudesec.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ci-config-guard-claudesec &&
cp -R "$tmp/.claude/skills/ci-config-guard-claudesec" ~/.cursor/skills/ci-config-guard-claudesec &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ci-config-guard-claudesec` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/Twodragon0/claudesec.git --path .claude/skills/ci-config-guard-claudesec
```

Or copy the folder to `~/.gemini/skills/ci-config-guard-claudesec` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ci-config-guard-claudesec`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Twodragon0/claudesec.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ci-config-guard-claudesec &&
cp -R "$tmp/.claude/skills/ci-config-guard-claudesec" ~/.copilot/skills/ci-config-guard-claudesec &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ci-config-guard-claudesec` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Twodragon0/claudesec.git
```

Then copy `claudesec/.claude/skills/ci-config-guard-claudesec` into your agent's skills folder as `ci-config-guard-claudesec`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Ci config guard claudesec need to run?

It targets a Python repository using pytest or unittest with the standard library only, with CI workflow files under the repo's scanner tests and .github folders. It relies on the repo's own helper module for comment stripping.

### Can Ci config guard claudesec be used outside the ClaudeSec repository?

The pattern is portable, but the invariants are repo-specific. The skill says to assess the target repo's practices first and rewrite the template to match its test stack.

### Does the skill use PyYAML?

No. Its guards are written with regex and line scanning, and PyYAML is only used locally as ground truth for checking mutants.

### How do I install Ci config guard claudesec in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ci-config-guard-claudesec to use it in all your projects, or to .claude/skills/ci-config-guard-claudesec in one project.

### Does Ci config guard claudesec run scripts?

No. It is instructions only, with no scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Ci config guard claudesec?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Ci config guard claudesec?

The closest alternatives to Ci config guard claudesec are Session hardening, GitHub ci, Ci, Fix ci and Constraint driven development.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Session hardening](https://ai-powered.com/skills/session-hardening): Session hardening is an open-source agent skill for developer tools.
- [GitHub ci](https://ai-powered.com/skills/github-ci): GitHub ci is an open-source agent skill for developer tools.
- [Ci](https://ai-powered.com/skills/ci-maxwell2732): Ci is an open-source agent skill for developer tools.
- [Fix ci](https://ai-powered.com/skills/fix-ci): Fix ci is an open-source agent skill for developer tools.
- [Constraint driven development](https://ai-powered.com/skills/constraint-driven-development): Constraint driven development is an open-source agent skill for developer tools.
- [Safe execution edho ferdian](https://ai-powered.com/skills/safe-execution-edho-ferdian): Safe execution edho ferdian is an open-source agent skill for developer tools.
- [Gha security review](https://ai-powered.com/skills/gha-security-review): Gha security review is an open-source agent skill for security.
- [Ci](https://ai-powered.com/skills/ci-chachamaru127): Ci is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/ci-config-guard-claudesec
