AGENT SKILL

e2e-fixtures

tree-sitter-language-pack e2e fixture schema: fixture categories, source_code and language input, process and detection calls, skip and assertion types. Use when adding or editing a tree-sitter-language-pack e2e fixture.

使用场景测试与质量
License 许可
MIT
最近更新
2026-11-15
Stars
★ 485
Forks
71

01 前言 Front Matter

type
Reference
paths
[ "fixtures/**", "e2e/**" ]
title
E2E Fixtures
x-ai-rulez
{ "id": "e2e-fixtures", "kind": "skill", "metadata": { "name": "e2e-fixtures" } }
description
tree-sitter-language-pack e2e fixture schema: fixture categories, source_code and language input, process and detection calls, skip and assertion types. Use when adding or editing a tree-sitter-language-pack e2e fixture.

02 资源文件 3

03 SKILL.md 正文

tree-sitter-language-pack E2E Fixtures

  • Files under fixtures/<category>/ hold one fixture or an array; category and docs.topic both equal the directory. Categories: smoke (one per language), process, data_extraction, language-detection, query, error-handling, download, registry, parsing, plus bench.
  • Fields: id, description, category, tags, docs {topic, stem, title}, input, assertions, and optionally call and skip {languages, reason}.
  • call defaults to process, with input.source_code and input.config (language, plus flags such as data_extraction). alef.toml defines the other calls. Fixtures use 22 of them, for example detect_extension, detect_path, get_language, has_language, download_languages, highlights, list_languages and clean_cache.
  • Assertion types in use: not_error, equals, count_min, count_equals, is_true, is_false, greater_than_or_equal, contains, is_empty, not_empty, error.

04 同仓库更多 Skills

xberg-io
xberg-io/tree-sitter-language-pack

tree-sitter-language-pack

Parse and extract code intelligence from 371 programming languages using tree-sitter grammars. Use when writing code that parses source, extracts structure/imports/exports/symbols/docstrings/comments, detects a language, runs syntax diagnostics, or produces syntax-aware chunks for LLMs — in Rust, Python, Node.js/TypeScript, or the ts-pack CLI. Covers installation, the CLI surface, the SDK surface, and parser-cache management.

开发工程师
★ 485
xberg-io
xberg-io/tree-sitter-language-pack

tree-sitter-language-pack-using-the-mcp-server

Use when parsing source, extracting code structure, or detecting a language through the tree-sitter-language-pack MCP server's tools, rather than shelling out to the ts-pack CLI. Covers the tool surface, the auto-installing launcher, and when MCP beats the CLI or SDK.

后端与接口Skill与智能体开发
★ 485
xberg-io
xberg-io/tree-sitter-language-pack

tree-sitter-language-pack-parsing-source

Use when the user wants a tree-sitter syntax tree for a source file — an s-expression dump or JSON tree. Covers `ts-pack parse`, language auto-detection vs `--language`, stdin input, and reading `has_errors`.

★ 485
xberg-io
xberg-io/tree-sitter-language-pack

tree-sitter-language-pack-managing-parsers

Use when the user needs to manage the tree-sitter parser cache — prefetch parsers for offline or CI runs, list what is downloaded, inspect a language, find the cache directory, or clean it. Covers `ts-pack download`, `list`, `info`, `cache-dir`, `clean`, and `init`.

★ 485
xberg-io
xberg-io/tree-sitter-language-pack

tree-sitter-language-pack-extracting-code-structure

Use when the user wants structured code metadata from a source file — functions, classes, imports, exports, symbols, docstrings, comments, or syntax diagnostics. Covers `ts-pack process` feature flags, the JSON result shape, and the default feature set.

开发工程师
★ 485
xberg-io
xberg-io/tree-sitter-language-pack

tree-sitter-language-pack-detecting-languages

Use when the user wants to know which programming language a file or snippet is. Covers implicit detection in `ts-pack parse`/`process`, confirming support with `ts-pack list`/`info`, and the SDK detection functions for path, extension, and raw content.

★ 485