Context router

From Nhqvu2005/VibeGravityKit · View interactive version

Context router is an AI agent skill from the GitHub repository Nhqvu2005/VibeGravityKit. Universal query router for all skills' data. Retrieves only relevant data to save tokens.

How to use this skill

Skill file

Context Router — Smart Context Protocol

Purpose

Instead of reading entire data files (hundreds of lines), agents call the Context Router to retrieve only the specific data they need. This dramatically reduces token consumption.

Usage

# Search across ALL skill data files for a keyword:
python .agent/skills/context-router/scripts/context_router.py --query "fintech"

# Search within a specific skill's data:
python .agent/skills/context-router/scripts/context_router.py --skill meta-thinker --query "SCAMPER"

# List all available data sources:
python .agent/skills/context-router/scripts/context_router.py --list

# Get a specific item by ID from a skill:
python .agent/skills/context-router/scripts/context_router.py --skill meta-thinker --source industry_database --id fintech

How It Works

  1. Agent has a question → calls Context Router with a query.
  2. Context Router scans the relevant data files (JSON) using keyword matching.
  3. Returns only matching entries — not the entire file.
  4. Agent gets focused context → better answers, fewer tokens.

Supported Data Sources

The router automatically discovers all .json files under .agent/skills/*/data/.

When to Use

Integration

All agents should prefer context_router.py --query "..." over reading raw JSON files.

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.