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 ​

The npm package for @optique/core bundles the Optique skill. Linking the bundled copy keeps the skill on the same version as the library.

pnpm 12.11.0 and later ​

With pnpm's built-in Agent Skills support, you don't need skills-npm. After adding @optique/core as a direct dependency, run:

pnpm approve

Select @optique/core in the approval prompt. The first time you approve a skill in the project, pnpm also asks where to link it. pnpm records the approval in pnpm-workspace.yaml.

npm, Bun, and older pnpm versions ​

Use skills-npm if you install with npm, Bun, or a version of pnpm older than 12.11.0:

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