managing-parsers

Manage tree-sitter parser cache with prefetch, list, inspect, and clean commands.

26|2|Updated Jun 8, 2026
One-click install
npx skills add https://github.com/xberg-io/plugins --skill managing-parsers
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: managing-parsers
Source: https://github.com/xberg-io/plugins/tree/main/plugins/tree-sitter-language-pack/.cursor-plugin/skills/managing-parsers
Command: npx skills add https://github.com/xberg-io/plugins --skill managing-parsers

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill streamlines the management of tree-sitter parser cache, allowing users to prefetch parsers for offline or CI runs, list cached languages, inspect specific languages, find cache directories, or clean the cache.

Core Features & Use Cases

  • Cache Management: Prefetch parsers for offline or CI runs, list cached languages, inspect specific languages, find cache directories, and clean the cache.
  • Offline/CI Support: Supports offline work and CI prefetch, ensuring that parser libraries are available when needed.
  • Config File: Allows users to pin a cache location and/or a language set with ts-pack init.

Quick Start

Initialize the parser cache for Python and Rust with ts-pack init --languages python,rust --cache-dir .ts-pack-cache.

Frequently Asked Questions about managing-parsers

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

FAQPage Schema
How do I prefetch tree-sitter parsers for a CI pipeline?

You can prefetch tree-sitter parsers for CI pipelines by initializing the cache with `ts-pack init --languages python,rust --cache-dir .ts-pack-cache`, ensuring parser libraries are available offline.

What is tree-sitter parser cache management?

Tree-sitter parser cache management involves prefetching, listing, inspecting, and cleaning parser libraries for various languages to ensure they are available for offline or CI runs.

Can I configure a custom cache directory for tree-sitter parsers?

Yes, you can configure a custom cache directory for tree-sitter parsers by using the `--cache-dir` flag with `ts-pack init` to pin a specific cache location for your project.

How do I list and inspect cached tree-sitter languages?

You can list and inspect cached tree-sitter languages using dedicated cache management commands provided by the tool, allowing you to view available languages and find specific cache directories.

Does tree-sitter parser cache management support offline work?

Yes, tree-sitter parser cache management supports offline work by allowing users to prefetch parser libraries in advance, ensuring they are available when network access is restricted.

What is the best way to clean up tree-sitter parser caches?

The best way to clean up tree-sitter parser caches is by using the dedicated cache clean command, which removes cached parser libraries and frees up storage space when they are no longer needed.