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/runnpm add @optique/core @optique/runpnpm add @optique/core @optique/runyarn add @optique/core @optique/runbun add @optique/core @optique/runAdditional 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/corenpm add @optique/corepnpm add @optique/coreyarn add @optique/corebun add @optique/coreAgent 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 optiquepnpm dlx skills add dahlia/optique --skill optiquebunx skills add dahlia/optique --skill optiqueKeep 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 setuppnpm add --save-dev skills-npm
pnpm exec skills-npm setupbun add --dev skills-npm
bunx skills-npm setupInstall 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