Install
$ agentstack add skill-reopt-ai-reopt-skills-opt-chat-install ✓ scanned · ✓ verified — works with Claude Code, Cursor, and more.
Security review
✓ PassedNo issues found. Passed automated security review. · v0.1.0 How review works →
- ✓ Prompt-injection patterns
- ✓ Secret / credential exfiltration
- ✓ Dangerous shell & filesystem operations
- ✓ Untrusted network calls
- ✓ Known-malicious package signatures
What it can access
- ✓ Network access No
- ✓ Filesystem access No
- ✓ Shell / process execution No
- ✓ Environment & secrets No
- ✓ Dynamic code execution No
From automated source analysis of v0.1.0. “Used” means the capability is present in the source — more access means more to trust, not that it’s unsafe.
About
opt-chat Install
> This is NOT the opt-chat you know. opt-chat ships no dist/docs/ — read node_modules/@reopt-ai/opt-chat/README.md before writing code.
When to apply
Consumer project depends on @reopt-ai/opt-chat. Triggers: "install", "init", "setup", "upgrade", "update" — with chat / opt-chat / "set up AI chat".
What opt-chat provides
| Area | Pattern | |---|---| | Core | Conversation, Message, PromptInput (composable) | | Hook | useChatSession (Vercel AI SDK wrapper) | | Parts | 28+ message part renderers (reasoning, tool, artifact, code, agent, …) | | Input | Attachments, SpeechInput, ModelSelector, AudioPlayer / VoiceSelector | | Streaming | streamdown + shiki syntax highlighting | | Flow | @reopt-ai/opt-chat/flow agent-graph Canvas (optional peer @xyflow/react) | | Styling | opt-ui global CSS or @reopt-ai/opt-chat/styles.css (CSS-variable tokens) — no Tailwind config required |
Invocation
/opt-chat-install # Auto-branch (missing → init, installed → upgrade)
/opt-chat-install --upgrade # Explicit upgrade
/opt-chat-install --check # 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-chat does not, as of 1.0.0). Fallback: agent-rules.md bundled with this skill. Wrap content between:
…content from source…
Idempotent: replace only between markers.
Step 2 — Consumer-side setup (this skill owns; docs cannot)
- Public npm registry — no token or scoped
.npmrcentry is required. Inspect the project.npmrcandnpm 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. The “.npmrc등록 후” comment in the bundled 1.0.0 README is stale setup text; do not follow it.
- Prereqs — Node 18+, React 19+, a Vercel AI SDK–compatible AI endpoint. No Tailwind required. Optional peers:
react-jsx-parser(JSXPreview parts),@xyflow/react(/flowCanvas).
- App wiring — properties of the consumer app:
- Styles:
import "@reopt-ai/opt-chat/styles.css"at the app root unless opt-ui's global CSS is already loaded (they share keyframes / data-attribute tokens). - AI endpoint route (e.g.
app/api/chat/route.ts) returning a Vercel AI SDK stream. - Default Chat component composition (Conversation > Message[] > PromptInput).
Step 3 — Route to module docs
opt-chat ships no dist/docs/. Route to node_modules/@reopt-ai/opt-chat/README.md sections (and CHANGELOG.md).
| Task signal | Read | |---|---| | Quick start + composition (Conversation / Message / PromptInput) | README.md §§ Quick start, Component catalog | | Hooks (useChatSession), 28+ part renderers, input (Attachments / SpeechInput / ModelSelector), streaming | README.md § Component catalog | | Styling / CSS import (opt-ui CSS or styles.css) | README.md § Styles | | Flow / agent-graph Canvas (@reopt-ai/opt-chat/flow) + optional peers | README.md §§ Optional peers, Flow | | opt-ui token / design-system integration | README.md § Design system integration | | Version migration / breaking changes | README.md § Migration, CHANGELOG.md |
Pipeline (auto-branch)
| # | Step | Init | Upgrade | |---|---|---|---| | 1 | Detect current state | ✓ | ✓ | | 2 | Public-registry preflight + legacy override cleanup | ✓ | ✓ | | 3 | Install / update package | ✓ | ✓ | | 4 | Styles import check (opt-ui CSS or styles.css) | ✓ | ✓ | | 5 | AI SDK endpoint check | ✓ | – | | 6 | Generate default Chat component | ✓ | – | | 7 | Breaking-change edits | – | ✓ | | 8 | Verify + summary | ✓ | ✓ |
Safety
- Never upgrade without an impact scan.
- Apply breaking-change edits in logical groups.
- Do not finish until
tsc --noEmitpasses. - Never commit — do not commit or push without an explicit request from the user.
Verify
npx tsc --noEmitpasses.- Chat conversation renders, AI endpoint streams back, parts render correctly (text + at least one code block).
Source & license
This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.
- Author: reopt-ai
- Source: reopt-ai/reopt-skills
- License: MIT
- Homepage: https://skills.sh/reopt-ai/reopt-skills
Install and usage instructions live in the source repository linked above.
Reviews
No reviews yet — be the first.
Write a review
Versions
- v0.1.0 Imported from the upstream source.