adding-doc-snippets

Automate creation and validation of tested code snippets for documentation pages.

201|25|Updated Dec 18, 2025
One-click install
npx skills add https://github.com/NVIDIA-Omniverse/ovrtx --skill adding-doc-snippets
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: adding-doc-snippets
Source: https://github.com/NVIDIA-Omniverse/ovrtx/tree/main/tests/docs/skills/adding-doc-snippets
Command: npx skills add https://github.com/NVIDIA-Omniverse/ovrtx --skill adding-doc-snippets

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill helps documentation teams ensure every code example in the ovrtx docs is backed by a tested snippet, preventing drift between examples and actual behavior.

Core Features & Use Cases

  • Enforces tested code snippets for documentation pages.
  • Documents workflow for adding, migrating, and validating doc examples.
  • Integrates with existing test frameworks and CI to verify snippet correctness.

Quick Start

Create or update the SKILL.md to define the skill and run the documentation snippet tests to validate new doc examples.

Frequently Asked Questions about adding-doc-snippets

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I automate tested code snippets for documentation?

To automate tested code snippets for documentation, this skill migrates code blocks into validated snippets and integrates doc-tests into CI pipelines. It updates RST and MD documents to prevent drift between examples and actual behavior.

How do I integrate doc-tests into a CI pipeline?

Integrating doc-tests into a CI pipeline involves applying this skill to validate documentation snippets during continuous integration. It verifies snippet correctness by running tests against existing frameworks, ensuring published examples remain accurate.

What is the best way to migrate RST and MD code blocks to tested snippets?

Migrating RST and MD code blocks to tested snippets requires updating your documents to enforce validated examples. This skill automates the migration process, ensuring every code example is backed by a tested snippet to prevent documentation drift.

Does this documentation snippet validation work with existing test frameworks?

Yes, documentation snippet validation works with existing test frameworks. The skill integrates directly into your current setup to verify snippet correctness and applies to updating RST and MD documents without requiring entirely new testing infrastructure.

Why do documentation examples drift from actual code behavior?

Documentation examples drift from actual code behavior when they lack automated testing. This skill solves the problem by enforcing tested snippets for documentation pages, applying CI validation to ensure every example matches the real output.