# oxyaml-lsp for Claude Code

YAML syntax diagnostics and schema validation for `.yaml` and `.yml` files.

## Install

In Claude Code, add the marketplace once, then install the plugin.

```text
/plugin marketplace add marwanvx/oxyaml
/plugin install oxyaml-lsp@oxyaml
```

Run `/reload-plugins` if Claude Code prompts you to reload. The launcher uses `oxyaml` on
`PATH` when available. Otherwise, the first YAML session downloads the GitHub release matching
the plugin version, verifies its SHA-256 checksum, and caches the executable in Claude Code's
plugin data directory. Automatic installation supports x86-64 and ARM64 on Linux, macOS, and
Windows. On Windows, the Git for Windows installation used by the marketplace also provides the
shell that dispatches to Windows PowerShell.

## Develop locally

```sh
claude --plugin-dir ./editors/claude-code
python3 editors/claude-code/test_launcher.py
```

The test serves a fake release on loopback via `OXYAML_RELEASE_BASE_URL` and checks stdio,
PATH precedence, checksum rejection, and offline cache reuse.
