add-language-hook

Define custom chunking hooks for programming languages in the TeaRAGs ingest pipeline.

11|3|Updated Jan 29, 2026
One-click install
npx skills add https://github.com/artk0de/TeaRAGs-MCP --skill add-language-hook
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-language-hook
Source: https://github.com/artk0de/TeaRAGs-MCP/tree/main/.claude/skills/add-language-hook
Command: npx skills add https://github.com/artk0de/TeaRAGs-MCP --skill add-language-hook

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill addresses the challenge of integrating new programming languages into the TeaRAGs ingest pipeline by providing a standardized way to define how source files are split into meaningful chunks like classes and functions.

Core Features & Use Cases

  • Custom Chunking Hooks: Implement language-specific logic for comment extraction and body chunking.
  • Pipeline Integration: Register new language hooks into the existing ingest architecture to ensure consistent code search quality.
  • Use Case: If you need to add support for a new language like Rust or improve how TypeScript classes are parsed, this skill guides you through creating the necessary hook files and registering them in the configuration.

Quick Start

Follow the step-by-step instructions in the skill documentation to create and register a new chunking hook for your target language.

Frequently Asked Questions about add-language-hook

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

FAQPage Schema
How do I add custom chunking logic for a new programming language in a code search pipeline?

To add custom chunking logic for a new programming language, you implement language-specific parsing hooks for classes, functions, and comments, then register them within the pipeline's language configuration definitions.

What is a chunking hook and how does it process source files?

A chunking hook is a modular interface that defines how source files are split into meaningful chunks. It processes files by extracting comments and chunking class and function bodies for consistent code search ingestion.

How do I register a new language parsing hook into the ingest configuration?

You register a new language parsing hook by adding it to the language configuration definitions. This integrates the custom parsing logic into the existing ingest architecture to ensure consistent code search quality.

Can I use this chunking hook interface to improve how TypeScript classes are parsed?

Yes, you can use the chunking hook interface to improve TypeScript parsing. It facilitates the modular addition of language-specific parsing logic, allowing you to refine how TypeScript classes, functions, and comments are extracted.

Do I need to adhere to a specific interface when creating custom code chunking hooks?

Yes, you must adhere to the ChunkingHook interface when creating custom code chunking hooks. This standardizes the modular addition of language-specific parsing logic for the ingest pipeline.

What are the limitations of using predefined chunking hooks for code ingestion?

Predefined chunking hooks limit code ingestion to supported languages and default parsing rules. Adding support for a new language like Rust requires creating custom hook files and registering them in the configuration to handle specific syntax.