opentidehq/language-server/catalogs

Claude Code and agent skill by opentidehq/language-server

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Load opentide catalogs and conformance corpora. Covers include_str, OnceLock, toml 0.8, HighlightSpec capture freezes, Tide catalogs generated by opentide (one row per schema revision), and external KQL/SPL/Elastic fault twins. Use when editing catalogs/, highlights/spec.toml, testdata/conformance, or scripts/sync_opentide_schemas.py.

Install

npx vskill@latest install opentidehq/language-server/catalogs

SKILL.md

The same SKILL.md was published earlier as opentidehq/language-server/catalogs.

Catalogs and conformance

Catalogs are data compiled into the binary. The engine does not read them from disk at request time. A workspace override path exists for the Tide field catalog and deprecations (.opentide/lsp/catalogs/generated/fields.json and deprecations.json, written by opentide generate schemas); the bundled files under catalogs/ are the fallback.

Read references/highlight-spec.md before touching highlights/spec.toml or a capture name.

How a catalog is loaded

  1. TOML (or JSON for generated Tide fields) lives in catalogs/.
  2. The engine include_str!s it with a path relative to the source file (../../../catalogs/...).
  3. A serde::Deserialize struct matches the file. #[serde(default)] on optional arrays.
  4. toml::from_str (toml 0.8) parses it inside OnceLock so each profile is parsed once per process. Catalog::cached is the pattern in opentide-kql and opentide-spl.
  5. Tests construct the catalog through that cache. They do not open the TOML themselves unless they are checking the sync script.

Adding a key to a row struct without #[serde(default)] rejects every existing file that omits the key. Add the field as Option or #[serde(default)], then fill the catalogs.

Do not parse catalogs with serde_yaml. Do not switch catalog files to JSON unless the file is already generated JSON (catalogs/tide/generated/fields.json).

KQL and SPL catalogs

PathContents
catalogs/kql/core/operators, scalar operators, functions, types, evaluate plugins, operator options
catalogs/kql/sentinel/tables and columns
catalogs/kql/defender/tables and columns
catalogs/kql/azure-monitor/tables.tomlevery Azure Monitor Logs table with its columns (generated)
catalogs/kql/asim/asim.tomlASIM schemas, columns, parsers and their parameters (generated)
catalogs/spl/commands, command options, fields, datamodels, macros

KQL profiles are Core, Sentinel, and Defender. Sentinel analysis is the default for a raw .kql file. Defender is selected when the Tide field path contains defender_for_endpoint. A function that exists only in one profile must not be marked known in the other.

Signatures and operator options are copied from public docs (Microsoft Learn for KQL, Splunk Search Reference for SPL). scripts/sync_kql_learn_signatures.py is the generator. Do not invent a parameter the Learn page does not list. Cite the page in the catalog citation field when the row has one.

Unknown operators, functions, tables, and commands are diagnostics (kql_unknown_operator, kql_unknown_function, kql_unknown_table, spl_unknown_command), not grammar errors. A function row with deprecated = "<replacement>" is a deprecated alias Learn names on the replacement's article; the engine warns kql_deprecated_function and leaves it out of completion. A scalar operator row with deprecated is a legacy spelling Kusto still parses (containscs); the engine warns kql_deprecated_operator and leaves it out of completion too. evaluate calls are checked against evaluate-plugins.toml, not functions. render parses and warns kql_render_not_valid. Control commands warn kql_control_command_unsupported.

The sentinel profile knows the hand-written Sentinel tables, the Defender XDR tables (the Defender XDR connector streams them into a workspace), every table of the Azure Monitor Logs reference and the ASIM parsers; defender_for_endpoint knows the advanced hunting tables. scripts/sync_azure_monitor_tables.py (MicrosoftDocs/azure-monitor-docs, CC BY 4.0, plus the columns of Azure-Sentinel's KQL validation schemas, MIT) and scripts/sync_asim_schemas.py (Azure-Sentinel's ASimTester.csv and parser YAML, MIT) generate the TOML catalogs; regenerate them, never hand-edit. Each column is a [[tables.columns]] / [[schemas.columns]] sub-table with named keys (name, type, and description for Azure Monitor, the reference's first sentence; class for ASIM, which has no machine-readable descriptions); hover and completion show the description. Reference columns are ColumnRow::from_reference: only hand-written columns are offered before a query names a table. Hand-written columns are merged in, never removed. An unknown table is kql_unknown_table: a warning under sentinel, an error under defender_for_endpoint. Tables a workspace declares in visibility.toml (DeclaredDatasets::from_visibility, opentide_core::datasets; a log source's name is its table, sourcetype or index pattern, and the 0.20.0 plural lists declare nothing) are known, and once it declares any for a platform an undeclared one is kql_table_not_declared (warning). Declared [logsources.columns] (keyed by column name, { type, description }) reach the KQL checks through Catalog::for_workspace, a copy of the cached profile catalog built once per set of declarations (never a change to Catalog::cached): a declared table with columns is documented, declared columns extend a catalog table's and replace a same-named column's type and description.

crates/opentide-kql/src/schema.rs tracks columns through a query (#112). A documented source (a table of the reference, an ASIM parser) reports only a near miss of a documented column (kql_unknown_column with a suggestion): tables gain columns before the reference lists them. After project, summarize, distinct or count the query names its columns, so any other name is an error. An unknown source, evaluate or an operator whose output naming is not modelled makes the columns open, and nothing below it is reported. kql_type_mismatch covers only the operators Kusto does not define for a documented type; read docs/kql/columns.md before adding a rule, and verify it against the KQL oracle first.

Slow-query warnings (kql_where_not_first, kql_unscoped_search, spl_wildcard, spl_leading_not, and the rest of opentide_core::codes) come from the perf modules. They are warnings about public query shapes, not style nits. Do not add a warning that contradicts docs/kql/ or docs/spl/.

SPL CIM data models

catalogs/spl/datamodels.toml is generated: python scripts/sync_cim_datamodels.py --source <splunk/pytest-splunk-addon checkout> (--check compares). It reads pytest_splunk_addon/data_models/*.json (Apache-2.0, every CIM model, dataset lineage, field name and expected value) and adds what those files leave out, each with its reason in the script: the base-event fields, the Enterprise Security asset and identity fields on every root dataset, CIM 4.x fields CIM 5 dropped, a few object names and datasets, and the models Enterprise Security adds (Risk, Threat_Intelligence, ...) as complete = false. Never copy Splunk_SA_CIM files: it is proprietary. Field names are facts; keep the citations to the CIM manual. Do not hand-edit the TOML.

A row is one dataset: name (Model.Dataset, the object name datamodel= takes), prefix (the root dataset, Processes), lineage (All_Changes.Account_Management; a field a child defines is <lineage>.<field>), fields (the ones the dataset defines; children inherit), values (completion only), complete. The checks (crates/opentide-spl/src/cim.rs) follow precision over recall, because sites add fields and datasets to their CIM models: spl_unknown_datamodel and spl_unknown_datamodel_field are errors only for a name the catalog lacks and that is a near miss (one edit up to five characters, two beyond, a swapped pair counting as one) of one a complete model has. Anything else unknown is silent. Expected values are never checked: real add-ons emit values CIM does not list (reply_code=NXDOMAIN). A change to the generator or the rules runs splunk/security_content's detections through the engine (see docs/spl/cim-fields.md): every error must be a real bug in the detection.

spl_dataset_not_declared (crates/opentide-spl/src/declared.rs) reads opentide_core::datasets::current() for platform splunk: index=, sourcetype= (also :: and IN (...)) in the base search and a tstats where, and macro calls in the base search before the first pipe. It warns only on Declaration::Undeclared, so a workspace that declares no name of a kind is never checked for it. source= has no declared kind and is not checked.

spl_search_operator (crates/opentide-spl/src/search_operators.rs) reports ==, <>, =>, =<, !~ and =~ in an SPL search clause: Splunk accepts them, but the comparison does not do what it says (docs/spl/search-syntax.md). Its fixtures are testdata/conformance/lint/, which the oracle does not read while the grammar reports spl_parse_error on these operators; the forms around them that are valid (== in eval and where, quoted values) are probes in testdata/oracles/spl/.

Elastic catalogs

PathContents
catalogs/esql/commands, functions, operators, cast types with applies_to lifecycle and per-release versions
catalogs/eql/functions (arity, case-insensitive ~ support), pipes
catalogs/ecs/Elastic Common Schema fields: type, level, short description, allowed values (scripts/sync_ecs_fields.py, Apache-2.0, NOTICE)

scripts/sync_esql_catalog.py and scripts/sync_eql_catalog.py regenerate them from a pinned elastic/elasticsearch docs commit. Elastic's docs are not EUPL-compatible, so the catalogs keep facts only (names, signatures, arity, versions) and the summaries are written in the scripts. Do not paste Elastic prose into a catalog. The 9.x docs do not list 8.19 or 9.0, so sync_esql_catalog.py --branches also reads each release branch (8.19, 9.0 … 9.6) and writes versions, the lines that accept each command, function, and cast type (types.toml). esql_unavailable uses those lists: information when an older supported line lacks a name, a warning when the newest does too, an error only for snapshot-only names. Lifecycle::after_floor (first documented at 9.2 or later is missing on 8.19) is the fallback for a row without versions.

ECS is never a closed list: elastic-1.0 says field names MUST NOT be checked against one. opentide-ecs feeds completion and hover (wired in opentide-analysis/src/ecs.rs) everywhere, and a hint where a known field's type makes the query suspicious. The field checks (#116) run only where the query's indices are known and all hold ECS documents (opentide_ecs::indices_are_ecs): logs-* integration data streams (a declared index pattern is not ECS by being declared). The columns an elastic log source declares for an index pattern the query reads are mapped fields there (opentide_ecs::with_declared_fields): no ecs_unknown_field, and their declared type for ecs_type_mismatch. ES|QL reads its indices from FROM; kuery, Lucene, and EQL from the rule's elastic block (index, or threat.index for threat.query); a data_view_id, an omitted index, a raw .kuery/.lucene/.eql file, or one non-ECS pattern in the list means no field check. There:

This is the start of the file. Read the full SKILL.md on GitHub.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

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
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/opentidehq/language-server/catalogs/badge)](https://verified-skill.com/skills/opentidehq/language-server/catalogs)

Something wrong with this skill or its page? Tell us.