opentidehq/language-server/add-language
Claude Code and agent skill by opentidehq/language-server
- community
Checking that the SKILL.md file is still in the repository.
Add a query language to the opentide language server (S1QL, Sigma, YARA). Follow the harness from LanguageId through a vendored tree-sitter grammar, corpus gate, OnceLock catalogs, HighlightSpec, YAML injection, and external fault twins. SQL stays unsupported. Use when creating a new engine crate or grammar.
Install
npx vskill@latest install opentidehq/language-server/add-languageSKILL.md
The same SKILL.md was published earlier as opentidehq/language-server/add-language.
Add a language
KQL, SPL, and Tide YAML are the 1.0 engines. ES|QL, EQL, Kibana KQL (kuery), and Lucene followed this list for Elastic Security, Falco for Sysdig Secure, and CQL for CrowdStrike; opentide-esql and opentide-eql are the most complete examples, and opentide-falco the smallest complete one (grammar, catalogs from a generator, block context from Tide). opentide-exabeam is the pattern for a language whose spec ships a reference checker: port it as the verdict parser, record its verdicts (scripts/sync_exabeam_conformance.py) and keep the tree-sitter grammar for highlighting. A later language follows this list. Authoring guidance for detections lives in opentidehq/skills (kusto-query-language, splunk-spl-processing, and the platform skills). Those skills are not an engine. Implementation skills in this repo are rust-engine, tree-sitter, catalogs, lsp-host, and wasm-hosts. Read them before the matching step.
SQL stays unsupported until a real dialect and grammar are chosen. A stub parser or a fake highlighter is not a language.
Done when
LanguageIdparses the public name and rejectssql.scripts/check-names.shstill passes (opentide, neverotide; noopentide-sql).- The grammar coverage gate names the productions, and
parser.cmatchestree-sitter-cli0.25.10. - Catalogs load once per process through
OnceLockandinclude_str!. Nostd::fsin the new engine'ssrc/. generate-highlights --checkpasses, and capture names are an append-only change to HighlightSpec.testdata/conformance/external/<id>/contains real public rules and a.broken.twin with one injected fault. The full valid file may still parse-error where the grammar does not cover the rule yet. The harness keeps that file, takes the longest prefix that parses, and requires the injected fault on that prefix to diagnose. The broken full file must produce at least one diagnostic. Copycrates/opentide-analysis/tests/external_corpus.rs.- Unsupported platforms still produce no fake validation.
- The language has an oracle in
scripts/oracles/against its reference parser (pySigma for Sigma, yara-python for YARA), orscripts/oracles/README.mdsays why none exists. cargo clippy --workspace --all-targets -- -D warningsis clean.
Steps
- Add a variant to
LanguageIdincrates/opentide-core(as_str,parse,Display, serde rename). Wire name is the public id (kql,spl,opentide-yaml), not a crate path. - Add diagnostic codes to
opentide_core::codes. Unknown constructs get a stable code, not a free-form message. - Vendor
grammars/tree-sitter-opentide-<id>/and compileparser.cfromcrates/opentide-syntax/build.rs. Followskills/tree-sitter/SKILL.md. CI fails ifparser.cdrifts. - Add the C symbol to the
unsafe externblock and alanguage()arm. UseLanguage::from_rawon*const TSLanguage. Do not.collect()aQueryCursor. - Add corpus files under
testdata/corpus/<id>/taggedprod:<rule>, a row indocs/LANGUAGE.md, and the required list incrates/opentide-syntax/tests/corpus_gate.rs. - Add
catalogs/<id>/and aCatalog::cached-styleOnceLock. Followskills/catalogs/SKILL.md. - Add
highlights/queries/<id>/highlights.scm. Specific patterns come before(identifier) @variable. New captures are appended tohighlights/spec.tomllegend. Rungenerate-highlights. - Register the engine in
opentide-analysisonLanguageId. Hover, completion, and signature help dispatch here. Do not copy a second implementation intoopentide-tideexcept the injection remap. - If Tide YAML embeds the language, add a row to the injection table in
docs/ARCHITECTURE.mdand tolanguage_for_field_path. Remap tokens onto YAML coordinates after stripping block-scalar indent. - Add
testdata/conformance/external/<id>/: unmodified public rules, plus<name>.broken.<ext>with one injected fault. Record the source and license inSOURCES.md. Followexternal_corpus.rs: do not delete a public rule because the full text parse-errors; assert the fault on the longest prefix the grammar accepts, and assert the broken full file emits some diagnostic. - Add an oracle: a
<lang>mode inscripts/oracles/oracle.pythat runs the reference over the same corpus,[[<lang>]]entries intestdata/oracles/exceptions.toml, a job in.github/workflows/oracle.yml, and the reference's package names inscripts/license-scan.sh. The reference never ships. - Extend
crates/opentide-lsponly for host behaviour (language id from the URI suffix, e2e frame). The CLIanalyze/highlightpath must keep printing plain JSON. - WASM:
highlight(language_id, bytes)already goes throughLanguageId::parseandopentide_analysis::highlight. Do not add a wasm-bindgen export per language, and do not linkopentide-wasminto a WASI build.
Dispatch
Session::language_for selects the engine from a reported language id, then from the URI suffix. A reported id the parser does not know is ignored and the suffix is used. Raw query files (.kql, .spl, .esql, .eql, .kuery, .lucene, .falco, .cql, .yar, .yara, .yaral, .yl2) are first-class documents with an empty Tide workspace; a new suffix goes in LanguageId::from_extension. crates/opentide-analysis/tests/raw_query_composability.rs is the pattern: the same diagnostic fires for a standalone file and for the same text injected into a Tide query block.
Out of scope
- Rewriting the server onto
tower-lspor an async runtime. - Shipping Kusto.Language or a Splunk SDK in the binary. Oracles stay in CI.
- Validating a platform whose language is unspecified. Return unsupported.
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/add-language/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/opentidehq/language-server/add-language)