opt-editor-install

opt-editor-install is a skill for Claude Code, Codex from reopt-ai/reopt-skills. It costs 92 tokens per session (1,441 once invoked), scanned A, original, MIT.

A skill for installing, setting up, upgrading, or migrating the @reopt-ai/opt-editor package in another project. It chooses the appropriate setup path based on whether the package is already installed.

In plain words
What is it for?
Use it for opt-editor installation, updates, version-specific upgrades, AI streaming setup, checks, or dry runs.
Why use it?
It avoids treating a new installation like an upgrade and helps keep the project’s agent instructions and package configuration consistent.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it for opt-editor installation, updates, version-specific upgrades, AI streaming setup, checks, or dry runs.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/reopt-ai/reopt-skills/opt-editor-install
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add reopt-ai/reopt-skills --skill opt-editor-install
Clone the repo
git clone --depth 1 https://github.com/reopt-ai/reopt-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for opt-editor-install

README.md
[![agentmods](https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/opt-editor-install/github.svg)](https://agentmods.dev/skills/reopt-ai/reopt-skills/opt-editor-install)
Your own site
<a href="https://agentmods.dev/skills/reopt-ai/reopt-skills/opt-editor-install"><img src="https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/opt-editor-install/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for opt-editor-install

Your own site · 80×15
<a href="https://agentmods.dev/skills/reopt-ai/reopt-skills/opt-editor-install"><img src="https://agentmods.dev/badge/skills/reopt-ai/reopt-skills/opt-editor-install.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,441 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00092 $0.01441
Opus 5.5 $0.00037 $0.00576
Sonnet 5.5 $0.00018 $0.00288
Haiku 4.5 $0.00009 $0.00144

Measured 28d ago against content hash 7e91169de63b, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

opt-editor-install scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 28d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/opt-editor-install/SKILL.md · 94 lines

How it starts

The opening of the file, as written. The whole thing — 94 lines — stays where its author put it; the contents beside it link to each section on GitHub.

opt-editor Install

This is NOT the opt-editor you know. Read node_modules/@reopt-ai/opt-editor/dist/docs/ before writing code.

When to apply

Consumer project depends on @reopt-ai/opt-editor. Triggers: "install", "init", "setup", "upgrade", "update" — with or without an opt- / editor prefix.

Invocation

/opt-editor-install              # Auto-branch (missing → init, installed → upgrade)
/opt-editor-install --with-ai    # Init + AI streaming integration
/opt-editor-install 2.0.0        # Upgrade to a specific version
/opt-editor-install --dry-run    # Analyze only

Step 1 — Pin agent rules into AGENTS.md / CLAUDE.md

Source: the module's own agent-rules file once it ships one (@reopt-ai/opt-editor does not, as of 2.1.0). Fallback: agent-rules.md bundled with this skill. Wrap content between:

<!-- BEGIN:reopt/opt-editor-agent-rules -->
…content from source…
<!-- END:reopt/opt-editor-agent-rules -->

Idempotent: replace only between markers.

Step 2 — Consumer-side setup (this skill owns; docs cannot)

  1. Public npm registry — no token or scoped .npmrc entry is required. Inspect the project .npmrc and npm config get @reopt-ai:registry; if the scope still resolves to GitHub Packages, remove only the legacy project entry @reopt-ai:registry=https://npm.pkg.github.com. Preserve unrelated registry/auth settings, and ask before changing user/global npm config.

  2. Prereqs — Node 20+, React 19+, bun or npm. AI integration uses optional peers ai >= 7 and zod >= 3; do not install them for a non-AI editor. Since 2.1 a client that needs only useEditorAI imports it from the package root without either peer. opt-shell 2.0 peers on this package at ^2.1.0 — upgrade both together or npm fails with ERESOLVE.

  3. App wiring — properties of the consumer app:

    • import "@reopt-ai/opt-editor/styles.css" at the app root.
    • Catalog file (catalog.ts or similar) — block-definition registry.
    • AI endpoint (when --with-ai): a Vercel AI SDK–compatible route.

Read the full file on GitHub · 94 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 28d ago Changed 7e91169de63b
  2. 3mo ago First seen · 94 lines · 92 tokens per session scan A d0467b08241d

Subscribe to this mod's changes

opt-editor-install is a skill published in the GitHub repository reopt-ai/reopt-skills (1 stars, last pushed 28d ago), licensed MIT. It adds 92 tokens to every session and 1,441 once invoked, about $0.0004 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

opt-editor-install compared with skills from other repositories

opt-editor-install next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
opt-editor-installreopt-ai/reopt-skillsSkill128d agoMITA92Claude Code, Codex
idea-refineaddyosmani/agent-skillsSkill123k3d agoMITA75Claude Code
chinese-git-workflowjnMetaCode/superpowers-zhSkill8.7k5d agoMITA69Claude Code
chinese-documentationjnMetaCode/superpowers-zhSkill8.7k5d agoMITA62Claude Code
subagent-driven-developmentjnMetaCode/superpowers-zhSkill8.7k5d agoMITA21Claude Code
create-slack-appslackapi/slack-skills-pluginSkill177yesterdayMITA101Claude Code
skill-trigger-auditorAlexZio00/sovereign-skillsSkill1605d agoMITA38Claude Code, Codex