ansible-cop-review

ansible-cop-review is a skill for Claude Code from stoleas/ansible-skills. It costs 101 tokens per session (3,710 once invoked), scanned A, original, MIT.

A review skill for checking Ansible playbooks, roles, collections, or whole projects against Red Hat Communities of Practice guidance for automation.

In plain words
What is it for?
Use it to review YAML automation, check playbook or role design, assess ansible-lint and Molecule coverage, and identify credential or privilege-escalation problems.
Why use it?
It provides a consistent review of structure, code quality, testing, security, idempotence, and related Ansible practices.

Skill for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the ansible-skills plugin — 11 skills shipped together

Good fit Use it to review YAML automation, check playbook or role design, assess ansible-lint and Molecule coverage, and identify credential or privilege-escalation problems.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/stoleas/ansible-skills/ansible-cop-review
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.

Any agent
npx skills add stoleas/ansible-skills --skill ansible-cop-review
Clone the repo
git clone --depth 1 https://github.com/stoleas/ansible-skills

Made for: Claude Code.

Or install ansible-skills, the plugin that ships this one along with the rest of its 11 skills.

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 ansible-cop-review

README.md
[![agentmods](https://agentmods.dev/badge/skills/stoleas/ansible-skills/ansible-cop-review/github.svg)](https://agentmods.dev/skills/stoleas/ansible-skills/ansible-cop-review)
Your own site
<a href="https://agentmods.dev/skills/stoleas/ansible-skills/ansible-cop-review"><img src="https://agentmods.dev/badge/skills/stoleas/ansible-skills/ansible-cop-review/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for ansible-cop-review

Your own site · 80×15
<a href="https://agentmods.dev/skills/stoleas/ansible-skills/ansible-cop-review"><img src="https://agentmods.dev/badge/skills/stoleas/ansible-skills/ansible-cop-review.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 101 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,710 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.00101 $0.03710
Opus 5 $0.00051 $0.01855
Sonnet 5 $0.00020 $0.00742
Haiku 4.5 $0.00010 $0.00371

Measured 12d ago against content hash 7d1694528720, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-12, from the pricing page.

Security

Grade A, and why

ansible-cop-review 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 12d 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.

skills/ansible-cop-review/SKILL.md · 620 lines

How it starts

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

Ansible CoP Review Skill

Review Ansible code against all Red Hat Communities of Practice (CoP) automation good practices, providing detailed feedback and actionable recommendations.

Review Scope

This skill reviews Ansible automation against the complete Red Hat CoP framework:

  1. Structure & Organization - Project layout, directory structure, naming
  2. Role Design - Variable naming, idempotency, platform support
  3. Playbook Design - Type-Function pattern, simplicity, tagging
  4. Code Quality - YAML formatting, ansible-lint compliance, documentation
  5. Testing - Molecule tests, idempotence validation, CI/CD integration
  6. Security - Credential handling, privilege escalation, validation

Review Process

1. Identify What to Review

Determine the scope:

  • Single role - Review role structure and implementation
  • Playbook - Review playbook design and role usage
  • Collection - Review collection organization and content
  • Complete project - Review entire automation project

2. Read the Code

Use appropriate tools to read all relevant files:

# List project structure
find . -type f -name "*.yml" -o -name "*.yaml"

# Read playbooks
cat playbooks/*.yml

# Read role files
cat roles/*/tasks/main.yml
cat roles/*/defaults/main.yml
cat roles/*/meta/main.yml

3. Apply CoP Standards

Check against all Red Hat CoP criteria (detailed below).

4. Generate Review Report

Provide structured feedback:

  • Summary - Overall assessment
  • Critical Issues - Must fix (breaks standards)
  • Warnings - Should fix (best practices)
  • Recommendations - Nice to have (improvements)
  • Strengths - What's done well

Red Hat CoP Standards Checklist

Structure & Organization

Project Structure

Standard:

project/
├── ansible.cfg
├── inventory/
│   ├── production/
│   │   ├── hosts
│   │   └── group_vars/
│   └── staging/
├── playbooks/
│   ├── types/              # Type playbooks
│   │   ├── web_server.yml
│   │   └── database.yml
│   └── landscapes/         # Landscape playbooks
│       └── ecommerce.yml
├── roles/                  # Local roles
└── collections/
    └── requirements.yml

Read the full file on GitHub · 620 lines

Files

What ships with it

1 file beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

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. 12d ago First seen · 620 lines · 101 tokens per session scan A 7d1694528720

Subscribe to this mod's changes

ansible-cop-review is a skill published in the GitHub repository stoleas/ansible-skills (5 stars, last pushed 2d ago), licensed MIT. It adds 101 tokens to every session and 3,710 once invoked, about $0.0005 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-31.