Skip to content
Skill

Ci config guard claudesec

Guides writing CI config regression tests for the ClaudeSec repo's workflows

Ci config guard claudesec is an open-source agent skill for developer tools. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

Scripts
None
Platforms
Claude Code, Codex, Cursor
GitHub stars
14
Last commit
License
MIT
Listing updated

Similar skills

About Ci config guard claudesec

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.

From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.

What it can access

From a static check of its 1 file (30 KB) on GitHub on 4 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.

Check another skill before you install it.

Install

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

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.

Claude Code docs on skills

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

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.

Codex docs on skills

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

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.

Cursor docs on skills

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

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.

Gemini CLI docs on skills

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

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.

VS Code docs on skills

Get the folder:

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.

The SKILL.md format

What it does

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

Ci config guard claudesec 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.

More from Twodragon0/claudesec

  1. Diagnoses and fixes kcov bash and pytest coverage failures in ClaudeSec CI

    • Open source
    • 14 GitHub stars
    • Developer tools
  2. Triages lychee link-rot and redirect findings in ClaudeSec docs and CI

    • Open source
    • 14 GitHub stars
    • Developer tools
  3. Reference catalog for OMC agents, tools, team pipelines, skills and commit trailers

    • Open source
    • 14 GitHub stars
    • Developer tools