Agent skill

Context Shunt

by alinaqi in alinaqi/maggy

Offload large / multi-file reads to a cheap worker model so raw files never enter Claude's context (token savings)

MITAuto-check passed

Install Context Shunt

skills CLI
$ npx skills add alinaqi/maggy --skill context-shunt -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install alinaqi/maggy context-shunt --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/alinaqi/maggy.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/context-shunt .claude/skills/context-shunt && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
context-shunt
GitHub stars
707
Token cost
~564 tokens
SKILL.md length
231 words
Files
1
Skills in repo
71
Repo updated
First seen
Licence
MIT

At a glance

Offload large / multi-file reads to a cheap worker model so raw files never enter Claude's context (token savings)

  • SKILL.md covers Decision: read raw, shunt, or…, Usage and Configuration
  • Calls git

What it does

Context Shunt is an agent skill from alinaqi/maggy. Offload large / multi-file reads to a cheap worker model so raw files never enter Claude's context (token savings)

Its SKILL.md is about 560 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.

The repository describes itself as: What started as an opinionated Claude Code setup kit is now an autonomous AI engineering command center. The licence is MIT.

Example prompts

  • “/context-shunt”

What it can do on your machine

Read from SKILL.md and the folder at commit 72a456e. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • git

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md. Its commands use git, which can reach the network depending on how they are called.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Context Shunt loads about 564 tokens when it runs. Until then it costs about 32 tokens; SKILL.md has 231 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~32
When it runs · the whole SKILL.md, loaded when a task matches
~564

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from alinaqi/maggy at commit 72a456e, republished under its MIT licence (© alinaqi). 231 words, ~564 tokens.

Download SKILL.mdSave it as .claude/skills/context-shunt/SKILL.md (or your agent's skills folder).
name
context-shunt
description
Offload large / multi-file reads to a cheap worker model so raw files never enter Claude's context (token savings)
when-to-use
When answering a question that requires reading large or many files, reviewing logs, or scanning generated output — anything you don't need to edit
user-invocable
false
effort
low

Context Shunt — Read Cheap, Keep Context Small

Reading big files into context is the most expensive thing an agent does for the least reasoning value. The shunt hands those reads to a cheap worker model (bulk-read) that answers a question about the files and returns a compact summary. The raw bytes never enter this session's context.

This is orthogonal to whole-turn routing (srooter / route-task): those pick the model for the turn; the shunt trims what a tool call pulls into context when the turn is legitimately here.

Decision: read raw, shunt, or graph?

  • Editing this exact file — read it raw. You need every line; never edit against a summary.
  • A fact/answer across large or many files — bulk-read "<question>" file....
  • A code symbol (function/class/route) — get_code_snippet(qualified_name): free and exact.
  • Small file (under threshold) you need in full — read it raw.

A shunt answer is for understanding, not for producing a diff.

Usage

bash
bulk-read "how does token refresh work?" src/auth/session.ts src/auth/refresh.ts
bulk-read "which config keys are read at startup?" $(git ls-files 'config/*.yaml')

bulk-read prints structured bullets citing path:line, or NOT FOUND IN PROVIDED FILES. A token-savings report goes to stderr.

Configuration

Env vars or ~/.claude/shunt.conf (see templates/shunt.conf):

  • SHUNT — on/off master switch for the PreToolUse hook.
  • SHUNT_MIN_LINES — large-read threshold (default 350).
  • SHUNT_MODE — suggest (default) / block / off for the hook's large-read action.
  • SHUNT_GRAPH_NUDGE — on/off once-per-session graph nudge.
  • SHUNT_MODEL — worker command (default deepseek --flash; also gemini-api --flash-lite, qwen3, glm).

The context-shunt-gate PreToolUse hook enforces the thresholds; this skill tells you when to reach for bulk-read yourself.

© alinaqi, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

Just SKILL.md in skills/context-shunt of alinaqi/maggy.

Open the folder on GitHubat commit 72a456e

Compare with similar skills

Context Shunt next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Context Shunt compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Context Shunt this skillalinaqi/maggy707—~564Automated safety check: PassMIT
Worker Visualizernexu-io/open-design100k—~998Automated safety check: PassApache-2.0
Agent Worker Specialistruvnet/ruflo74k2 repos~1.4kAutomated safety check: PassMIT
Loop Workerruvnet/ruflo74k—~297Automated safety check: PassMIT
Cloudflare Workerssickn33/agentic-awesome-skills47k2 repos~2.7kAutomated safety check: PassMIT
Profile Worker Memoryactivepieces/activepieces25k—~1.7kAutomated safety check: PassCustom licence

Similar skills

  • Worker Visualizer

    nexu-io/open-design

    A real-time data/particle/simulation visualizer whose heavy compute runs in a Web Worker (off the main thread), optionally sharing memory with the UI via SharedArrayBuffer, and renders to a canvas…

    100k GitHub stars~998 tokensUpdated today
    Auto-check passed
  • Agent skill for worker-specialist - invoke with $agent-worker-specialist

    74k GitHub starsUsed in 2 repos~1.4k tokens
    Auto-check passed
  • Loop Worker

    ruvnet/ruflo

    Run Ruflo background workers using Claude Code native /loop scheduling

    74k GitHub stars~297 tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Cloudflare Workers

    sickn33/agentic-awesome-skills

    Build and deploy edge functions with Cloudflare Workers and Wrangler.

    47k GitHub starsUsed in 2 repos~2.7k tokens
    Backend & APIsAuto-check passed
  • Profile Worker Memory

    activepieces/activepieces

    Diagnose a worker that is growing memory or being OOM-killed: separate a JS-heap leak from native growth, take a V8 heap snapshot of a live worker in place (never uploading it), and walk the…

    25k GitHub stars~1.7k tokensUpdated today
    Productivity & AutomationAuto-check passed
  • Cloudflare Workers Expert

    sickn33/agentic-awesome-skills

    Expert in Cloudflare Workers and the Edge Computing ecosystem.

    47k GitHub starsUsed in 2 repos~922 tokens
    Auto-check passed

More from alinaqi/maggy

All 71 skills in this repo
  • Aeo Optimization

    alinaqi/maggy

    AI Engine Optimization - semantic triples, page templates, content clusters for AI citations

    707 GitHub stars~3.7k tokensUpdated 16 days ago
    Auto-check passed
  • Agent Teams

    alinaqi/maggy

    Claude Code Agent Teams - default team-based development with strict TDD pipeline enforcement

    707 GitHub stars~5k tokensUpdated 16 days ago
    Auto-check: notes
  • AI Models

    alinaqi/maggy

    Latest AI models reference - Claude, OpenAI, Gemini, Eleven Labs, Replicate

    707 GitHub stars~4.1k tokensUpdated 16 days ago
    Auto-check passed
  • Android Java

    alinaqi/maggy

    Android Java development with MVVM, ViewBinding, and Espresso testing

    707 GitHub stars~3.9k tokensUpdated 16 days ago
    Auto-check: notes
  • Android Kotlin

    alinaqi/maggy

    Android Kotlin development with Coroutines, Jetpack Compose, Hilt, and MockK testing

    707 GitHub stars~3k tokensUpdated 16 days ago
    Auto-check passed
  • Autonomous Testing

    alinaqi/maggy

    AI-driven testing agent that auto-discovers, generates, executes, evaluates, and fixes tests for any project type

    707 GitHub stars~1.1k tokensUpdated 16 days ago
    Auto-check passed

Questions about Context Shunt

What does Context Shunt do?

Offload large / multi-file reads to a cheap worker model so raw files never enter Claude's context (token savings). Context Shunt is an agent skill from alinaqi/maggy.

How do I install Context Shunt in Claude Code?

Run `npx skills add alinaqi/maggy --skill context-shunt -a claude-code`. Or copy the skill folder (skills/context-shunt in alinaqi/maggy) into .claude/skills/context-shunt in your project. Claude Code loads it when a task matches its description.

How do I install Context Shunt in Codex?

Run `npx skills add alinaqi/maggy --skill context-shunt -a codex`. Or copy the skill folder (skills/context-shunt in alinaqi/maggy) into .agents/skills/context-shunt in your project. Codex loads it when a task matches its description.

Can I use Context Shunt in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add alinaqi/maggy --skill context-shunt -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/context-shunt, .gemini/skills/context-shunt, .github/skills/context-shunt and .opencode/skills/context-shunt in your project.

What does Context Shunt need to run?

Going by SKILL.md and its folder, Context Shunt needs the command-line tools its instructions call (git).

Does Context Shunt access the network?

SKILL.md contains no URLs. Its commands use git, which can reach the network depending on how they are called. This is read from the text; nothing was executed.

Is Context Shunt safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Context Shunt use?

Context Shunt is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Context Shunt use?

About 564 tokens (SKILL.md is roughly 2.3k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Context Shunt?

Skills that share tags, products or a category with Context Shunt: Worker Visualizer (nexu-io/open-design, 100k stars), Agent Worker Specialist (ruvnet/ruflo, 74k stars), Loop Worker (ruvnet/ruflo, 74k stars) and Cloudflare Workers (sickn33/agentic-awesome-skills, 47k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Context Shunt?

alinaqi (a GitHub user) maintains it in alinaqi/maggy, which has 707 GitHub stars. The repository holds 71 skills in this directory. The repository was last updated on September 24, 2026.

Source: alinaqi/maggy on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.