index-agent

Generate tag and topic indexes from YAML frontmatter in wiki content files.

Updated Apr 15, 2026
One-click install
npx skills add https://github.com/juliuss1907/knowledge-base --skill index-agent
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: index-agent
Source: https://github.com/juliuss1907/knowledge-base/tree/main/.openclaw/skills/index-agent
Command: npx skills add https://github.com/juliuss1907/knowledge-base --skill index-agent

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires pypdf, pdfplumber, re, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill automates the generation of tag and topic indexes for efficient navigation and search within knowledge bases, saving time and reducing manual effort.

Core Features & Use Cases

  • Index Generation: Automatically generates tag and topic indexes from existing content.
  • Co-occurrence Analysis: Identifies frequently co-occurring tags and topics to enhance navigation.
  • Orphan Cleanup: Identifies and removes index files for tags and topics no longer in use.
  • Use Case: Imagine you have a large knowledge base with complex relationships between tags and topics. This Skill can help you easily find information by generating an index that groups related concepts and sources together.

Quick Start

Run the 'index-agent' skill to generate indexes for all tags and topics in the knowledge base.

Frequently Asked Questions about index-agent

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

FAQPage Schema
How do I automate tag and topic index generation for a large knowledge base?

Automating tag and topic index generation requires parsing YAML frontmatter from content files to extract metadata, which is then grouped into navigable index files. This process reduces manual effort and structures information for efficient knowledge base search.

How does co-occurrence analysis work for tags and topics in a wiki?

Co-occurrence analysis works by scanning extracted tags and topics across content files to identify frequently paired concepts. This generates related groupings within index files, enhancing navigation by linking interconnected sources and topics together.

Do I need Python and specific libraries like pypdf for PDF knowledge base parsing?

Yes, you need Python with pypdf and pdfplumber for PDF parsing, and the re module for regular expressions. These dependencies are required to extract text and parse YAML frontmatter from source documents during index generation.

What is the best way to clean up orphaned index files in knowledge base management?

Cleaning up orphaned index files involves scanning generated indexes and comparing them against currently used tags and topics. The system automatically identifies and removes index files for tags and topics no longer present in the content directory.

Can I generate topic indexes from content stored in specific wiki directories?

Yes, index generation specifically processes content files stored within the 'wiki/sources/' and 'wiki/concepts/' directories. It parses YAML frontmatter in these locations to automatically build tag and topic indexes for knowledge organization.

Why does my index generation fail when parsing YAML frontmatter in PDF files?

Index generation fails when regular expressions cannot properly parse YAML frontmatter or when PDF parsing libraries encounter unreadable file structures. Ensure PDF files use standard formatting compatible with pypdf and pdfplumber for successful extraction.