tree-sitter-language-pack: Skill for Claude Code

.agents/skills/mcp/SKILL.md

mcp is a skill for Claude Code, Codex from xberg-io/tree-sitter-language-pack. It costs 14 tokens per session (313 once invoked), scanned A, original, MIT.

A reference for connecting tree-sitter-language-pack to MCP, a standard way for agents to call external tools. It lists operations for parsing code, detecting languages, downloading parsers, and extracting code information.

In plain words
What is it for?
Use it to integrate parsing and code analysis into an MCP-based agent, including language detection, cache management, and source processing.
Why use it?
It explains how an agent can use the parser through tool calls instead of invoking it directly.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: installed under .agents/ (shared by several agents).

This is xberg-io/tree-sitter-language-pack's own configuration. It tells Claude Code and Codex how to work on tree-sitter-language-pack itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything tree-sitter-language-pack configures →

Reuse

Borrowing it

Nothing to install: this file belongs to xberg-io/tree-sitter-language-pack. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/xberg-io/tree-sitter-language-pack/main/.agents/skills/mcp/SKILL.md
Clone the repo
git clone --depth 1 https://github.com/xberg-io/tree-sitter-language-pack

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for mcp

README.md
[![agentmods](https://agentmods.dev/badge/skills/xberg-io/tree-sitter-language-pack/mcp/github.svg)](https://agentmods.dev/skills/xberg-io/tree-sitter-language-pack/mcp)
Your own site
<a href="https://agentmods.dev/skills/xberg-io/tree-sitter-language-pack/mcp"><img src="https://agentmods.dev/badge/skills/xberg-io/tree-sitter-language-pack/mcp/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for mcp

Your own site · 80×15
<a href="https://agentmods.dev/skills/xberg-io/tree-sitter-language-pack/mcp"><img src="https://agentmods.dev/badge/skills/xberg-io/tree-sitter-language-pack/mcp.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 14 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 313 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00014 $0.00313
Opus 5 $0.00007 $0.00156
Sonnet 5 $0.00003 $0.00063
Haiku 4.5 $0.00001 $0.00031

Measured 10d ago against content hash 1e94fd77679a, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

mcp scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 10d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

.agents/skills/mcp/SKILL.md · 24 lines

What it actually says

tree-sitter-language-pack MCP Reference

Use this skill when integrating tree-sitter-language-pack through Model Context Protocol tools, prompts, or resources.

  • cache_dir: Return the effective parser cache directory path.
  • clean_cache: Delete all cached parser libraries from the cache directory.
  • detect_language: Detect the language for a file path or source content. Returns the detected language name.
  • download: Download parser libraries from the remote registry. Pass languages list, groups, or all=true.
    Set fresh=true to clean the cache first.
  • info: Show whether a language is known, downloaded, and its cache path.
  • list_languages: List languages. source: 'available' (default), 'downloaded', or 'manifest'. Optional substring filter.
  • parse: Parse source code with a tree-sitter grammar. Returns the syntax tree as sexp or JSON.
  • process: Run the code-intelligence pipeline on source code. Extracts structure, imports, exports, symbols, and more.
Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 10d ago First seen · 24 lines · 14 tokens per session scan A 1e94fd77679a

Subscribe to this mod's changes

mcp is a skill published in the GitHub repository xberg-io/tree-sitter-language-pack (464 stars, last pushed 3d ago), licensed MIT. It adds 14 tokens to every session and 313 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

crawlberg

Crawl, scrape, and convert websites to Markdown using the local crawlberg CLI and its MCP server. Use when the user wants to fetch a page, follow links across a domain, enumerate URLs, or drive a real browser. Covers installation, the subcommands (scrape, crawl, map, interact, batch-scrape, batch-crawl, download…

xberg-io/crawlberg · 107 tokens

automating-the-browser

Use when extracting a page needs scripted interaction first — click, type, press a key, scroll, wait, screenshot, or run JS before capturing the DOM. Covers crawlberg interact URL --actions with the real action schema, result shape, limits, and external-CDP options.

xberg-io/crawlberg · 63 tokens

crawling-a-site

Use when the user wants to follow links across a domain and capture every reachable page as Markdown. Covers crawlberg crawl with depth, page caps, concurrency, rate limiting, domain scoping, robots, and output selection.

xberg-io/crawlberg · 52 tokens

headless-fallback

Use when a static fetch returns nothing useful and the page needs a real browser. Covers --browser-mode auto|always|never, external CDP via --browser-endpoint, symptoms of JS-only pages and WAF blocks, and the performance cost.

xberg-io/crawlberg · 57 tokens

scraping-html-to-markdown

Use when the user wants a single page rendered as clean Markdown plus structured metadata. Covers crawlberg scrape URL, JSON vs Markdown output, what metadata is returned, and how to handle JS-heavy pages.

xberg-io/crawlberg · 48 tokens

serving-the-api

Use when the user wants a long-running HTTP service for scrape/crawl/map instead of one-shot CLI calls or the MCP server — for example wiring crawlberg into other apps over REST. Covers crawlberg serve, the Firecrawl-v1-compatible endpoints, --host/--port, and when to prefer it.

xberg-io/crawlberg · 71 tokens