redhat-docs-toc

Extract distinct article URLs from Red Hat documentation table of contents pages.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/redhat-documentation/redhat-docs-agent-tools --skill redhat-docs-toc
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: redhat-docs-toc
Source: https://github.com/redhat-documentation/redhat-docs-agent-tools/tree/main/plugins/docs-tools/skills/redhat-docs-toc
Command: npx skills add https://github.com/redhat-documentation/redhat-docs-agent-tools --skill redhat-docs-toc

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires requests, beautifulsoup4, and includes scripts (resource) components.

What problem does it solve?

This Skill automates the process of finding all individual article URLs within a Red Hat documentation table of contents page, streamlining documentation crawling and processing.

Core Features & Use Cases

  • Extract Article URLs: Parses TOC navigation to identify and list distinct documentation articles.
  • Filter Duplicates & Anchors: Ensures only unique article URLs are returned, cleaning up section fragments.
  • Use Case: Quickly gather all URLs for a specific Red Hat product guide to initiate a bulk download or analysis of its content.

Quick Start

Use the redhat-docs-toc skill to extract article URLs from the provided Red Hat documentation index page.

Frequently Asked Questions about redhat-docs-toc

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

FAQPage Schema
How do I extract all article URLs from a Red Hat documentation table of contents?

Extract article URLs from Red Hat documentation by parsing the HTML table of contents navigation elements. This process identifies and lists distinct documentation articles by scoping to publicly accessible sites utilizing the standard `<nav id="toc">` structure.

Can I use web scraping to prepare Red Hat documentation for bulk download and content analysis?

Web scraping prepares Red Hat documentation for bulk download and content analysis by automating the extraction of individual article URLs. This provides a clean, sorted list of links satisfying automated documentation crawling and archival requirements.

Does the URL extraction process filter out duplicate links and section anchors?

The URL extraction process filters out duplicate links and section anchors to ensure only unique article URLs are returned. It cleans up section fragments during HTML parsing to deliver a distinct list of documentation articles.

What is the best way to automate documentation crawling for Red Hat product guides?

The best way to automate documentation crawling for Red Hat product guides is by parsing TOC navigation to identify and list distinct articles. This approach quickly gathers all URLs for a specific guide to initiate bulk processing.

Do I need the beautifulsoup4 library to parse the Red Hat TOC HTML structure?

You need the beautifulsoup4 library alongside requests to parse the Red Hat TOC HTML structure. These dependencies enable the script to fetch web pages and navigate the standard `<nav id="toc">` elements for URL extraction.

Why does URL extraction fail on non-standard Red Hat documentation pages?

URL extraction fails on non-standard Red Hat documentation pages because the parser specifically scopes to publicly accessible sites utilizing the standard `<nav id="toc">` structure. Pages lacking this navigation element cannot be parsed for article URLs.