# Ansible knowledge patch

> Ansible knowledge patch is an open-source agent skill for cloud and infrastructure. Gives agents current ansible-core 2.21 migration checks for playbooks and plugins. It is available on Claude Code.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code
- **Website:** https://github.com/Nevaberry/nevaberry-plugins/tree/main/plugins/knowledge-patch/patches-claude/ansible-knowledge-patch
- **Repository:** https://github.com/nevaberry/nevaberry-plugins
- **GitHub stars:** 25
- **License:** MIT
- **Skill name:** ansible-knowledge-patch
- **Collection:** https://github.com/Nevaberry/nevaberry-plugins
- **Categories:** [cloud and infrastructure](https://ai-powered.com/categories/cloud-and-infrastructure)
- **Listing updated:** 2026-11-30

## About

This skill guides an agent through changing Ansible playbooks, inventories, controller plugins, connection settings and modules against current ansible-core behavior. It asks the agent to first determine the pinned ansible-core version from dependency manifests, execution environment definitions or lockfiles, then review the affected files against a set of migration points.

The skill is organized as a router to six topic reference files covering templating, plugins and extensions, connections and privilege escalation, CLI and inventory, modules and facts, and testing and runtime support. The main file highlights the most important checks, such as treating templating as trusted and single-pass, handling native values and boolean conditionals, and handling lazy values and omit, along with quick references for SSH authentication, deprecated transports, CLI flags, and module fact access.

No scripts are bundled, and the skill is plain instructions. It expects an Ansible project to work on and access to the referenced files. It is distributed as a Claude Code plugin and is released under the MIT license.

## When your agent uses it

> Ansible Core

## What it can access

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

- [Instructions only, no scripts](https://github.com/Nevaberry/nevaberry-plugins/tree/HEAD/plugins/knowledge-patch/patches-claude/ansible-knowledge-patch)
- [License: MIT](https://github.com/Nevaberry/nevaberry-plugins/tree/HEAD/plugins/knowledge-patch/patches-claude/ansible-knowledge-patch)

## Features

- **Version-aware migration review:** Starts by identifying the pinned ansible-core version so changes match the installed behavior.
- **Templating and conditionals:** Covers trusted single-pass templating, native value types and explicit boolean conditionals.
- **Lazy values and omit:** Explains how omit is removed during templating and how to apply default(omit) in loops.
- **Plugin API migration:** Lists callback, vars, strategy and Jinja plugin changes and the required base classes.
- **SSH and privilege settings:** Describes SSH agent and askpass behavior, Paramiko removal and local become defaults.
- **Module and fact changes:** Notes fact access changes, async status booleans, UTF-8 handling and Windows execution.

## Good for

- Upgrade an existing playbook to the current ansible-core release
- Find deprecated play syntax and CLI flags in an inventory repository
- Migrate a custom callback or vars plugin to the current API
- Check a loop for omit handling before changing module arguments
- Move SSH connection settings off Paramiko

## Install

### Claude Code

This skill ships in the `knowledge-patch` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add Nevaberry/nevaberry-plugins
/plugin install knowledge-patch@nevaberry
```

Or copy only this skill to `~/.claude/skills/ansible-knowledge-patch`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/ansible-knowledge-patch &&
cp -R "$tmp/plugins/knowledge-patch/patches-claude/ansible-knowledge-patch" ~/.claude/skills/ansible-knowledge-patch &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/ansible-knowledge-patch` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/ansible-knowledge-patch` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/ansible-knowledge-patch &&
cp -R "$tmp/plugins/knowledge-patch/patches-claude/ansible-knowledge-patch" ~/.agents/skills/ansible-knowledge-patch &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/ansible-knowledge-patch` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/ansible-knowledge-patch` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/ansible-knowledge-patch &&
cp -R "$tmp/plugins/knowledge-patch/patches-claude/ansible-knowledge-patch" ~/.cursor/skills/ansible-knowledge-patch &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/ansible-knowledge-patch` 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/Nevaberry/nevaberry-plugins.git --path plugins/knowledge-patch/patches-claude/ansible-knowledge-patch
```

Or copy the folder to `~/.gemini/skills/ansible-knowledge-patch` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/ansible-knowledge-patch`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/ansible-knowledge-patch &&
cp -R "$tmp/plugins/knowledge-patch/patches-claude/ansible-knowledge-patch" ~/.copilot/skills/ansible-knowledge-patch &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/ansible-knowledge-patch` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/Nevaberry/nevaberry-plugins.git
```

Then copy `nevaberry-plugins/plugins/knowledge-patch/patches-claude/ansible-knowledge-patch` into your agent's skills folder as `ansible-knowledge-patch`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does Ansible knowledge patch need to run?

It is plain instructions with no scripts. It expects an Ansible project and the referenced reference files, and it asks the agent to find the pinned ansible-core version first.

### Does Ansible knowledge patch change files on its own?

The skill describes migration checks and points the agent to the topic references. It does not bundle any tooling that edits files by itself.

### Which Ansible version does Ansible knowledge patch cover?

The skill is versioned 2.21.2 and is written around current ansible-core behavior.

### How do I install Ansible knowledge patch in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/ansible-knowledge-patch to use it in all your projects, or to .claude/skills/ansible-knowledge-patch in one project. Or install the knowledge-patch plugin, which includes it: /plugin marketplace add Nevaberry/nevaberry-plugins, then /plugin install knowledge-patch@nevaberry.

### Does Ansible knowledge patch 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 Ansible knowledge patch?

Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.

### What are the best alternatives to Ansible knowledge patch?

The closest alternatives to Ansible knowledge patch are Gitlab ci knowledge patch, Managed airflow migrations, Deployment patterns, Discover azure skills and Azure upgrade.

## Where this comes from

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

## Alternatives

- [Gitlab ci knowledge patch](https://ai-powered.com/skills/gitlab-ci-knowledge-patch): Gitlab ci knowledge patch is an open-source agent skill for developer tools.
- [Managed airflow migrations](https://ai-powered.com/skills/managed-airflow-migrations): Managed airflow migrations is an open-source agent skill for cloud and infrastructure.
- [Deployment patterns](https://ai-powered.com/skills/deployment-patterns): Deployment patterns is an open-source agent skill for cloud and infrastructure.
- [Discover azure skills](https://ai-powered.com/skills/discover-azure-skills): Discover azure skills is an open-source agent skill for cloud and infrastructure.
- [Azure upgrade](https://ai-powered.com/skills/azure-upgrade): Azure upgrade is an open-source agent skill for cloud and infrastructure.
- [Devops rollout plan](https://ai-powered.com/skills/devops-rollout-plan): Devops rollout plan is an open-source agent skill for cloud and infrastructure.

---
Source: https://ai-powered.com/skills/ansible-knowledge-patch
