rag-packager

Package canonical documentation into RAG-friendly chunks with metadata.

3|Updated Apr 3, 2026
One-click install
npx skills add https://github.com/ForgePlan/marketplace --skill rag-packager
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: rag-packager
Source: https://github.com/ForgePlan/marketplace/tree/main/plugins/forgeplan-brownfield-pack/skills/rag-packager
Command: npx skills add https://github.com/ForgePlan/marketplace --skill rag-packager

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires forgeplan, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of preparing and packaging documentation for efficient ingestion into RAG systems, ensuring structured and high-quality retrieval.

Core Features & Use Cases

  • Documentation Packaging: Automates the process of packaging canonical documentation into a format suitable for RAG systems.
  • Chunking & Metadata: Produces document chunks with metadata, stable IDs, and cross-references for effective indexing.
  • Incremental Updates: Supports incremental updates to only package changed artifacts since the last package.
  • Embeddings & Indexing: Offers optional embedding generation and provides an index.md for human-readable chunk mapping.
  • Use Case: For a developer who needs to integrate RAG capabilities into a project, this Skill can automatically package existing documentation into a RAG-friendly structure, ready for embedding and indexing.

Quick Start

Execute the package mode to create a full RAG package for your workspace.

Frequently Asked Questions about rag-packager

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

FAQPage Schema
How do I package documentation into chunks for RAG system ingestion?

Structuring documentation for RAG ingestion involves splitting canonical texts into domain-specific chunks with stable IDs, cross-references, and metadata annotation. This creates a structured format optimized for efficient retrieval and indexing.

What is the best way to handle incremental updates for RAG document indexing?

Incremental updates for RAG indexing are handled by packaging only changed artifacts since the last package generation. This ensures your retrieval system stays current without reprocessing the entire documentation workspace every time.

How does metadata annotation improve retrieval in RAG systems?

Metadata annotation improves RAG retrieval by attaching stable IDs and cross-references to document chunks. This structured packaging allows retrieval systems to accurately map and index content, resulting in highly relevant and contextually accurate model responses.

Can I generate embeddings automatically when chunking documents for RAG?

Yes, you can generate embeddings automatically when chunking documents for RAG. The packaging process offers optional embedding generation alongside an index.md file for human-readable chunk mapping, streamlining the transition from raw text to indexed vectors.

Do I need canonical documentation to structure my RAG retrieval system?

Yes, canonical documentation is required to effectively structure a RAG retrieval system. The packaging process relies on structured source texts to perform domain-specific splitting and generate the cross-referenced chunks required for high-quality retrieval.