/varar:varar-setupfrom Varar
Detects the project's language and test framework, installs Varar, configures it, runs a first oath to see it fail, then wires up editor integration and project style. Use when asked to set up Varar (varar.dev) in a project or when a Varar tool reports no varar.config.json.
Ships in Varar. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Take the user from nothing to a passing oath they have also seen fail, in their own project and test framework. Work in this order, and confirm with the user before anything that edits files outside the project or installs software globally.
varar.config.json means Varar is already set up. Say so, run the test
command once to show its state, and offer only the later steps (editor, style)
that are missing.| Look for | Language / framework | Example project |
|---|---|---|
package.json with vitest | TypeScript + vitest | typescript-vitest |
pom.xml | Java + JUnit + Maven | java-junit-maven |
build.gradle(.kts) with Java sources | Java + JUnit + Gradle | java-junit-gradle |
build.gradle.kts with Kotlin, JUnit | Kotlin + JUnit | kotlin-junit |
build.gradle.kts with Kotlin, Kotest | Kotlin + Kotest | kotlin-kotest |
pyproject.toml with pytest | Python + pytest | python-pytest |
pyproject.toml / setup.py, unittest only | Python + unittest | python-unittest |
Gemfile with rspec | Ruby + RSpec | ruby-rspec |
Gemfile with minitest | Ruby + Minitest | ruby-minitest |
Cargo.toml | Rust + cargo test | rust-cargotest |
*.csproj | C# + dotnet test | csharp-vstest |
go.mod | Go + go test | go-gotest |
pubspec.yaml with test | Dart + package:test | dart-test |
pubspec.yaml with flutter | Flutter + flutter test | flutter-test |
Varar for Dart and Flutter isn't on pub.dev yet. Say so, and offer to wait for the release rather than wiring the project to unpublished packages.
A JavaScript project without vitest (jest, mocha, …) has no adapter yet. Say so, and offer vitest alongside the existing runner rather than replacing it.
Say what you detected and what you are about to do, and let the user correct you.
The example project is the source of truth. Each one at
https://github.com/varar-dev/varar-examples/tree/main/ is a
complete, minimal project with the dependency versions of the latest release.
Read its README, its build file, its varar.config.json, and any test-runner
glue it has (a JUnit suite class, a spec/varar_spec.rb, a test_varar.py, a
*_test.go, …), and mirror exactly that wiring into this project. Use
gh api repos/varar-dev/varar-examples/contents/<example-project>/<path> or
fetch https://raw.githubusercontent.com/varar-dev/varar-examples/main/<example-project>/<path>.
Where the port has a varar init scaffold, install and run it, which writes
the config, a first oath and its steps:
| Language | Install | Scaffold | Run |
|---|---|---|---|
| TypeScript | pnpm add -D @varar/varar @varar/cli (or npm/yarn) | pnpm exec varar init | pnpm vitest run |
| Python | uv add --dev pytest-varar (or pip/poetry) | uv run varar init | uv run pytest |
| Ruby | bundle add varar-rspec (Minitest: varar-minitest) | bundle exec varar init | bundle exec rspec / bundle exec rake test |
The others have no scaffold. Add the dependency the example project uses, then create the files by hand:
| Language | Install | Run |
|---|---|---|
| Java | the dev.varar:junit test dependency in pom.xml / build.gradle | mvn test / ./gradlew test |
| Kotlin | the dev.varar test dependency (JUnit or Kotest) in build.gradle.kts | ./gradlew test |
| Rust | cargo add varar-cargotest --dev | cargo test |
| C# | dotnet add package Varar.TestAdapter | dotnet test |
| Go | go get github.com/varar-dev/varar/go | go test |
| Dart | dart pub add dev:varar dev:varar_test (Flutter: flutter pub add) | dart test / flutter test |
Use the project's own package manager when it has one (npm, yarn, poetry, Gradle rather than Maven). For a version, take the one in the example project: it is the latest release.
The configuration every port shares — oaths in varar/, steps at the
language's conventional place (copy the steps glob from the example project):
{
"docs": { "include": ["varar/**/*.md"], "exclude": [] },
"steps": ["<the example project's steps glob>"]
}
Also add varar.lock merge=union to .gitattributes (varar init does this
itself), so two branches' drift baselines merge line by line.
If the scaffold didn't write one, create varar/deep-thought.md:
# Deep Thought
You're really not going to like it.
The answer to the great question of life, the universe and everything is 42.
It was a tough assignment.
and the steps file the example project has for it, a sensor on
life, the universe and everything is {int} that returns 42.
Run the project's test command. One example should pass. If it doesn't run at all, compare the wiring with the example project again before changing anything else.
Then show the user that it is a real test: change the sensor's 42 to 43,
run again, and point out that the failure names the 42 in the Markdown. Put
it back. Never trust a test you haven't seen fail.
varar.lock now exists. Tell the user to commit it.
Ask before installing anything.
.vscode/ or .cursor/ directory, or the user says
so): add "varar.varar" to recommendations in .vscode/extensions.json
(create it if needed; Cursor reads it too). Then offer to install it now with
code --install-extension varar.varar or cursor --install-extension varar.varar. Cursor installs from Open VSX, where the extension is
published as well.npx -y -p @varar/lsp varar-lsp --stdio, for Markdown files. Point the user at
https://varar.dev/reference/editor-support/.The agent itself. In Claude Code with the Varar plugin, the language server
and the varar MCP tools are already running. Any other coding agent (Codex,
OpenCode, Cursor, Gemini CLI, Copilot, …) benefits from the same: offer to add
the MCP server, npx -y @varar/cli mcp, to its configuration, and, where it
supports language servers, varar-lsp for Markdown. The per-agent snippets are
at https://varar.dev/how-to/connect-a-coding-agent/.
The varar skill defers to a ## Varar style section in AGENTS.md or
CLAUDE.md on matters of taste. Offer to add one. Ask the user rather than
inventing preferences, and keep it short. Good things to settle:
The/the alternation);varar/shared/…) and how deep references may go;Example:
## Varar style
- Oaths speak about Maya (a buyer) and Ben (a seller), never "the user".
- Expressions start with a verb; the sentence supplies the subject.
- Shared setup lives in `varar/shared/` and is referenced, one level deep.
- Run the oaths with `pnpm vitest run varar`.
Summarise what you changed, file by file, and the commands to run the oaths and
to accept deliberate drift (VARAR_UPDATE=1 <test command>). Suggest a first
real oath for a feature the user is about to build: the oath is written before
the code.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub varar-dev/varar --plugin varar2 skills in this plugin
Other plugins' skills for the same job