Skip to content

Installation

Optique is a family of packages. Most users start with the two foundational packages, each of which is available on both JSR and npm:

deno add --jsr @optique/core @optique/run
npm add @optique/core @optique/run
pnpm add @optique/core @optique/run
yarn add @optique/core @optique/run
bun add @optique/core @optique/run

Additional packages provide integrations for config files, environment variables, prompts, Temporal, Git, schema validators, LogTape, and man page generation.

You may want to use Optique in a web browser, in which case you would only install the @optique/core package:

deno add jsr:@optique/core
npm add @optique/core
pnpm add @optique/core
yarn add @optique/core
bun add @optique/core

Agent Skills

Optique includes an official Agent Skill that gives compatible AI coding agents concise instructions for using the library and points them to the maintained documentation when they need more detail.

Install from GitHub

The skills CLI installs the skill directly from the Optique repository:

npx skills add dahlia/optique --skill optique
pnpm dlx skills add dahlia/optique --skill optique
bunx skills add dahlia/optique --skill optique

Keep the skill aligned with the npm package

If your project installs @optique/core from npm, skills-npm can use the skill bundled with that package. This keeps the skill on the same version as the library:

npm add --save-dev skills-npm
npx skills-npm setup
pnpm add --save-dev skills-npm
pnpm exec skills-npm setup
bun add --dev skills-npm
bunx skills-npm setup

Install for Claude Code

Claude Code users can install the same skill through Optique's plugin marketplace:

claude plugin marketplace add dahlia/optique
claude plugin install optique@optique