Agent skill

Ansible Module Doc Review

by ansible-collections in ansible-collections/vmware.vmware_rest

Review and enrich Ansible module documentation to ensure completeness and quality.

GPL-3.0Auto-check passedDevOps & Cloud

Install Ansible Module Doc Review

skills CLI
$ npx skills add ansible-collections/vmware.vmware_rest --skill ansible-module-doc-review -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install ansible-collections/vmware.vmware_rest ansible-module-doc-review --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/ansible-collections/vmware.vmware_rest.git skills-src && mkdir -p .claude/skills && cp -r skills-src/.agents/skills/ansible-module-doc-review .claude/skills/ansible-module-doc-review && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ansible-module-doc-review
GitHub stars
147
Token cost
~3k tokens
SKILL.md length
1,203 words
Files
1
Skills in repo
1
Repo updated
First seen
Licence
GPL-3.0

At a glance

Review and enrich Ansible module documentation to ensure completeness and quality.

  • Works in 7 steps: Identify the Module Type → Review DOCUMENTATION Section → Review EXAMPLES Section → …
  • A module needs documentation improvements
  • SKILL.md covers When to Apply, Documentation Requirements, Step-by-Step Review Process and Common Patterns, plus 3 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Ansible Module Doc Review is an agent skill from ansible-collections/vmware.vmware_rest. Review and enrich Ansible module documentation to ensure completeness and quality. Use when a module needs documentation improvements or validation.

Its SKILL.md is about 3k tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

It sits in DevOps & Cloud, covering Infrastructure as code. It works with Ansible. The repository describes itself as: Ansible Collection for VMware (REST modules). The licence is GPL-3.0.

When your agent uses it

  • A module needs documentation improvements
  • Tasks that involve Infrastructure as code

Example prompts

  • “/ansible-module-doc-review”

Requirements

  • Python 3

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Identify the Module Type
  2. Review DOCUMENTATION Section
  3. Review EXAMPLES Section
  4. Review RETURN Section
  5. Consult API Endpoints
  6. Make Improvements
  7. Validate Documentation

What it can do on your machine

Read from SKILL.md and the folder at commit b1bd3fe. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md (its code samples are yaml and bash).

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    Links to these hosts (documentation or services it may open):

    • docs.ansible.com

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ansible Module Doc Review loads about 3k tokens when it runs. Until then it costs about 44 tokens; SKILL.md has 1,203 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~44
When it runs · the whole SKILL.md, loaded when a task matches
~3k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from ansible-collections/vmware.vmware_rest at commit b1bd3fe, republished under its GPL-3.0 licence (© ansible-collections). 1,203 words, ~2,971 tokens.

Download SKILL.mdSave it as .claude/skills/ansible-module-doc-review/SKILL.md (or your agent's skills folder).
name
ansible-module-doc-review
description
Review and enrich Ansible module documentation to ensure completeness and quality. Use when a module needs documentation improvements or validation.
category
documentation
subcategory
ansible

Ansible Module Documentation Review

Ansible modules require comprehensive documentation in specific sections (DOCUMENTATION, EXAMPLES, RETURN) to help users understand what the module does and how to use it. This skill validates completeness and helps fill in missing or placeholder content.

When to Apply

Apply this technique when:

  • A module has PLACEHOLDER text in its documentation
  • Creating a new module that needs documentation
  • Reviewing an existing module for documentation quality
  • Updating a module after API changes

Skip this technique when:

  • The module already has complete, validated documentation
  • Working on internal/utility modules not exposed to users
  • Making code-only changes that don't affect the module's behavior

Documentation Requirements

Required Sections

All modules must have these documentation sections properly filled out:

SectionPurpose
short_description1-2 sentences describing what the module does
description2-5 sentences with more detail about module functionality
EXAMPLESValid YAML showing how to use the module in Ansible tasks
RETURNYAML dictionary documenting values returned by the module
Section Details
DOCUMENTATION.short_description

A concise 1-2 sentence summary of what the module does.

Examples:

  • "Manage vCenter resource pools."
  • "Gather information about appliance monitoring."
DOCUMENTATION.description

A list of 2-5 sentences describing the module in more detail. Should cover:

  • What the module manages or queries
  • Key capabilities or operations
  • Important context about the resource type
DOCUMENTATION.options

Review all option descriptions to ensure they:

  • Explain in plain terms what the option does or means
  • Avoid technical jargon where possible
  • Clearly state the purpose and effect of the option
  • Include relevant API context where helpful
EXAMPLES Section

Must be valid YAML showing Ansible tasks that demonstrate module usage.

Requirements:

  • Use fully qualified module name: vmware.vmware_rest.<module_name>
  • Show different options and use cases
  • Comply with option requirements and types
  • Be executable examples that would actually work

For INFO modules:

  • Show a minimal example
  • Show an example with more parameters

For CRUD modules:

  • Showcase different states (present, absent)
  • Show a simple example
  • Show a more complex example with additional options

Example structure:

yaml
- name: Create a resource pool
  vmware.vmware_rest.vcenter_resourcepool:
    name: my-resource-pool
    parent: resgroup-1001
    state: present

- name: Delete a resource pool
  vmware.vmware_rest.vcenter_resourcepool:
    resource_pool: resgroup-1009
    state: absent

Note: Do not include connection parameters (vcenter_hostname, vcenter_username, vcenter_password) in examples - they are implied through the connection_params documentation fragment.

RETURN Section

Must be a valid YAML dictionary documenting return values.

Do NOT document:

  • The changed key (standard Ansible return value)
  • The diff key (standard Ansible return value)

Each return value must have:

  • description: A sentence about what the return value represents
  • returned: When the value is returned (e.g., "On success", "When state is present")
  • type: Python type (str, dict, list, int, bool)
  • sample: Example output (consult API spec for realistic samples)

For INFO modules:

(Hint: is the module name states with appliance_, the id value will never be returned)

The return structure for info modules always includes:

yaml
id:
  description: MOID of the queried resource
  returned: When only one resource, with a MOID, was queried
  sample: resgroup-1009
  type: str

value:
  description:
    - Raw output from the API response
    - This output is maintained for consistency with version 4.x and earlier of this collection.
      It is recommended to switch to the info return key for a more consistent and documented output.
  returned: On success
  sample:
    description: ntpd.service
    state: STARTED
  type: raw

info:
  description: A list of detailed information about resources
  returned: On success
  sample:
    - description: ntpd.service
      state: STARTED
  type: list

For CRUD modules:

(Hint: is the module name states with appliance_, the id value will never be returned)

yaml
id:
  description: MOID of the managed resource
  returned: When state is present, or when a resource is deleted, or when state is set to a supported action
  sample: resgroup-1009
  type: str

CRUD modules also return the raw API response body:

yaml
value:
  description: The raw API response body from the vCenter operation.
  returned: On success
  sample:
    succeeded: true
  type: raw

Step-by-Step Review Process

Step 1: Identify the Module Type

Determine if the module is:

  • INFO module: Gathers information (ends with _info)
  • CRUD module: Creates/updates/deletes resources (has state parameter)

This determines the expected RETURN structure.

Step 2: Review DOCUMENTATION Section

Check and complete:

  1. short_description: Should be concise and clear
  2. description: Should be 2-5 sentences providing detail
  3. options: Each option should have a clear, plain-language description
  4. Are all lines 160 characters or less?

Look for:

  • PLACEHOLDER text
  • Vague or unclear descriptions
  • Missing context about what options do
Step 3: Review EXAMPLES Section

Verify the examples:

  1. Are they valid YAML?
  2. Do they use the fully qualified module name?
  3. Do they demonstrate different use cases appropriately?
  4. For CRUD modules: Do they show different states?
  5. For INFO modules: Do they show both simple and complex queries?
  6. Are the examples realistic and executable?
Step 4: Review RETURN Section

Check return value documentation:

  1. For INFO modules: Verify id, value, and info are documented (Hint: is the module name states with appliance_, the id value will never be returned)
  2. For CRUD modules: Verify id and value are documented (Hint: is the module name states with appliance_, the id value will never be returned)
  3. Ensure each return value has description, returned, type, and sample
  4. Verify samples are realistic (check API spec if needed)
Step 5: Consult API Endpoints

For context and validation:

  1. Review the module's operation config definitions in plugins/module_utils/_operation_configs.py
  2. Check API endpoint specifications for:
    • Available parameters and their meanings
    • Expected return value structures
    • Sample response data
Show full SKILL.md (481 more words)Show less
Step 6: Make Improvements

Apply improvements to the module documentation:

  1. Replace PLACEHOLDER text with meaningful content
  2. Clarify unclear option descriptions
  3. Add or improve examples
  4. Complete or fix RETURN documentation
  5. Ensure consistency with collection standards
Step 7: Validate Documentation

Validate that the documentation is syntactically correct and follows formatting standards:

  1. Run ansible-doc validation: From the repository root, run:

    bash
    PAGER=cat ansible-doc -t module -M plugins/modules/ <module_name>

    This command should exit with code 0, indicating the documentation is valid YAML and can be parsed correctly.

  2. Check for errors: If the command exits with a non-zero code, it indicates:

    • Invalid YAML syntax in DOCUMENTATION, EXAMPLES, or RETURN
    • Malformed documentation structure
    • Missing required sections

    Review the error output and fix any issues before proceeding.

  3. Verify line length: Ensure all lines in the DOCUMENTATION, EXAMPLES, and RETURN sections are 160 characters or less. Long lines should be wrapped appropriately while maintaining YAML validity.

Common Patterns

Pattern: Reviewing Option Descriptions

Situation: Option descriptions are too technical or unclear

Before:

yaml
parent:
  description:
  - Parent of the created resource pool.
  - When clients pass a value of this schema as a parameter...

After:

yaml
parent:
  description:
  - The parent resource pool under which to create this resource pool.
  - Must be the MOID (managed object identifier) of an existing ResourcePool.
Pattern: Creating Realistic Examples

Situation: Need to show both simple and complex usage

For CRUD module:

yaml
# Simple example - create with minimal options
- name: Create a basic resource pool
  vmware.vmware_rest.vcenter_resourcepool:
    name: my-pool
    parent: resgroup-1001
    state: present

# Complex example - create with resource limits
- name: Create resource pool with CPU and memory limits
  vmware.vmware_rest.vcenter_resourcepool:
    name: limited-pool
    parent: resgroup-1001
    cpu_allocation:
      reservation: 1000
      limit: 4000
    memory_allocation:
      reservation: 512
      limit: 2048
    state: present

Note: Connection parameters are omitted from examples as they are implied.

Anti-Patterns

Anti-PatternProblemCorrect Approach
Copying API docs verbatimAPI docs are too technical for Ansible usersTranslate to plain language explaining what users accomplish
Leaving PLACEHOLDER textUsers can't understand what module doesWrite clear descriptions based on module purpose
Examples without fully qualified namesUsers don't know which collectionAlways use vmware.vmware_rest.module_name
Including connection params in examplesCreates clutter, params are impliedOmit vcenter_hostname, vcenter_username, vcenter_password
Missing state in CRUD examplesExamples won't workAlways include state: present or state: absent
No sample data in RETURNUsers don't know what to expectProvide realistic sample output from API
Incomplete RETURN "returned" for CRUDUnclear when id is returnedUse "When state is present, or when a resource is deleted, or when state is set to a supported action"

Validation Checklist

Before considering documentation complete, verify:

  • No PLACEHOLDER text remains
  • short_description is 1-2 clear sentences
  • description has 2-5 detail sentences
  • All option descriptions are clear and user-friendly
  • EXAMPLES section has valid YAML
  • EXAMPLES use fully qualified module names
  • EXAMPLES demonstrate appropriate use cases for module type
  • RETURN section matches module type (INFO vs CRUD)
  • All return values have description, returned, type, and sample
  • Sample data in RETURN is realistic
  • PAGER=cat ansible-doc -t module -M plugins/modules/ <module_name> exits with code 0
  • All documentation lines are 160 characters or less in length

Resources

Internal Files
  • plugins/module_utils/_operation_configs.py: Operation configurations showing API endpoints used by modules
  • plugins/modules/*.py: Existing modules with documentation examples
  • Module type determination: Check for _info suffix or state parameter
API References
  • vSphere API documentation for understanding resource types and operations
  • OpenAPI/Swagger specs for endpoint details and response schemas
Ansible Documentation Standards

© ansible-collections, GPL-3.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in .agents/skills/ansible-module-doc-review of ansible-collections/vmware.vmware_rest.

Open the folder on GitHubat commit b1bd3fe

Compare with similar skills

Ansible Module Doc Review next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ansible Module Doc Review compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ansible Module Doc Review this skillansible-collections/vmware.vmware_rest147—~3kAutomated safety check: PassGPL-3.0
Wdio Testingansible/vscode-ansible488—~2.2kAutomated safety check: PassMIT
Spa Create Configsplunk/splunk-platform-automator138—~3.5kAutomated safety check: PassProprietary
Spa Add Test Scenariosplunk/splunk-platform-automator138—~2.2kAutomated safety check: PassProprietary
Frontend Overlayansible/ansible-ui113—~2.5kAutomated safety check: NotesApache-2.0
Run Testsansible-collections/ansible.mysql134—~1.2kAutomated safety check: PassCustom licence

Similar skills

  • Wdio Testing

    ansible/vscode-ansible

    Write, run, and debug WebDriverIO (WDIO) UI tests for the Ansible VS Code extension.

    488 GitHub stars~2.2k tokensUpdated yesterday
    DevOps & CloudAuto-check passed
  • Spa Create Config

    splunk/splunk-platform-automator

    A skill your agent uses when creating or updating splunkconfig.yml, designing Splunk Enterprise lab topology, multisite IDXC, SHC layout, architecture plan before config, or AWS Terraform block for…

    138 GitHub stars~3.5k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Spa Add Test Scenario

    splunk/splunk-platform-automator

    A skill your agent uses when adding app scope/routing test coverage (deployer, CM, DS, direct).

    138 GitHub stars~2.2k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Frontend Overlay

    ansible/ansible-ui

    Product-specific frontend wrappers, API clients, and paths for ansible-ui.

    113 GitHub stars~2.5k tokensUpdated yesterday
    DevOps & CloudAuto-check: notes
  • Run Tests

    ansible-collections/ansible.mysql

    Runs and writes tests (sanity, unit, integration) for the ansible.mysql Ansible collection using ansible-test.

    134 GitHub stars~1.2k tokensUpdated 5 days ago
    DevOps & CloudAuto-check passed
  • Run Tests

    ansible-collections/community.postgresql

    Runs and writes tests (sanity, unit, integration) for the community.postgresql Ansible collection using ansible-test.

    144 GitHub stars~1k tokensUpdated 18 days ago
    DevOps & CloudAuto-check passed

Works with

Categories

Questions about Ansible Module Doc Review

What does Ansible Module Doc Review do?

Review and enrich Ansible module documentation to ensure completeness and quality. vmware_rest. Review and enrich Ansible module documentation to ensure completeness and quality.

When should I use Ansible Module Doc Review?

Ansible Module Doc Review fits situations like: A module needs documentation improvements; tasks that involve Infrastructure as code.

How do I install Ansible Module Doc Review in Claude Code?

Run `npx skills add ansible-collections/vmware.vmware_rest --skill ansible-module-doc-review -a claude-code`. Or copy the skill folder (.agents/skills/ansible-module-doc-review in ansible-collections/vmware.vmware_rest) into .claude/skills/ansible-module-doc-review in your project. Claude Code loads it when a task matches its description.

How do I install Ansible Module Doc Review in Codex?

Run `npx skills add ansible-collections/vmware.vmware_rest --skill ansible-module-doc-review -a codex`. Or copy the skill folder (.agents/skills/ansible-module-doc-review in ansible-collections/vmware.vmware_rest) into .agents/skills/ansible-module-doc-review in your project. Codex loads it when a task matches its description.

Can I use Ansible Module Doc Review in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add ansible-collections/vmware.vmware_rest --skill ansible-module-doc-review -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ansible-module-doc-review, .gemini/skills/ansible-module-doc-review, .github/skills/ansible-module-doc-review and .opencode/skills/ansible-module-doc-review in your project.

What does Ansible Module Doc Review need to run?

SKILL.md names no scripts, command-line tools or credentials: Ansible Module Doc Review is instructions for the agent only. Our summary lists: Python 3.

Does Ansible Module Doc Review access the network?

SKILL.md names 1 domain. As links in the text: docs.ansible.com. This is read from the text; nothing was executed.

Is Ansible Module Doc Review safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Ansible Module Doc Review use?

Ansible Module Doc Review is published under the GPL-3.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Ansible Module Doc Review use?

About 3k tokens (SKILL.md is roughly 12k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Ansible Module Doc Review?

Skills that share tags, products or a category with Ansible Module Doc Review: Wdio Testing (ansible/vscode-ansible, 488 stars), Spa Create Config (splunk/splunk-platform-automator, 138 stars), Spa Add Test Scenario (splunk/splunk-platform-automator, 138 stars) and Frontend Overlay (ansible/ansible-ui, 113 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ansible Module Doc Review?

ansible-collections (a GitHub organization) maintains it in ansible-collections/vmware.vmware_rest, which has 147 GitHub stars. The repository was last updated on October 2, 2026.

Source: ansible-collections/vmware.vmware_rest on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.