Co-Pilot
Updated a month ago

update

Aassistant-ui
0.0k
assistant-ui/skills/assistant-ui/skills/update
76
Agent Score

💡 Summary

This skill updates assistant-ui and AI SDK to the latest versions while managing migrations and breaking changes.

🎯 Target Audience

Frontend DevelopersDevOps EngineersSoftware ArchitectsTechnical Project Managers

🤖 AI Roast:Powerful, but the setup might scare off the impatient.

Security AnalysisLow Risk

Risk: Low. Review: shell/CLI command execution; outbound network access (SSRF, data egress); dependency pinning and supply-chain risk. Run with least privilege and audit before enabling in production.


name: update description: Update assistant-ui and AI SDK to latest versions. Detects current versions, identifies breaking changes, and executes migrations. version: 0.0.1 license: MIT

assistant-ui Update

Always verifies against npm ground truth and GitHub commits.

References

Phase 1: Detect Versions

Get Ground Truth

# Installed versions npm ls @assistant-ui/react @assistant-ui/react-ai-sdk ai @ai-sdk/react 2>/dev/null # Latest from npm npm view @assistant-ui/react version npm view @assistant-ui/react-ai-sdk version npm view ai version

Version Analysis

| Package | Check For | |---------|-----------| | ai | < 6.0.0 → needs AI SDK v6 migration | | @assistant-ui/react | < 0.11.0 → needs runtime migration | | @assistant-ui/react | < 0.10.0 → needs ESM migration | | @assistant-ui/react | < 0.8.0 → needs UI split migration | | @assistant-ui/react-ai-sdk | < 1.0.0 → needs AI SDK v6 first |

Phase 2: Route to Migration

AI SDK < 6.0.0?
├─ Yes → See ./references/ai-sdk-v6.md
└─ No
   └─ assistant-ui outdated?
      ├─ Yes → See ./references/assistant-ui.md
      └─ No → Already up to date

Migration Order

  1. AI SDK first (if < 6.0.0) - Required for @assistant-ui/react-ai-sdk >= 1.0
  2. assistant-ui second - Apply breaking changes for version jump
  3. Verify - Type check, build, test

Phase 3: Execute

Update Packages

# pnpm pnpm add @assistant-ui/react@latest @assistant-ui/react-ai-sdk@latest ai@latest @ai-sdk/react@latest # npm npm install @assistant-ui/react@latest @assistant-ui/react-ai-sdk@latest ai@latest @ai-sdk/react@latest

Apply Migrations

Based on version jump, apply relevant migrations from references.

Verify

npx tsc --noEmit # Type check pnpm build # Build check

Troubleshooting

"Peer dependency conflict"

Type errors after upgrade

  • Consult breaking changes reference
  • Check specific migration guide

Runtime errors

  • Verify API patterns match new version
  • Check for renamed/moved APIs
5-Dim Analysis
Clarity8/10
Novelty6/10
Utility9/10
Completeness8/10
Maintainability7/10
Pros & Cons

Pros

  • Automates version detection and migration.
  • Reduces manual errors during updates.
  • Provides clear migration paths.

Cons

  • May require manual intervention for complex migrations.
  • Dependency on external references for migration guides.
  • Potential for breaking changes if not followed correctly.

Related Skills

web-perf

A
toolCo-Pilot
88/ 100

“This skill is so thorough it might start charging consulting fees after the audit.”

tldraw

A
toolCode Lib
86/ 100

“A fantastic library for drawing, though its licensing model means your masterpiece will forever be signed 'Made with tldraw' unless you pay the ransom.”

vue-expert

A
toolCo-Pilot
86/ 100

“Powerful, but the setup might scare off the impatient.”

Disclaimer: This content is sourced from GitHub open source projects for display and rating purposes only.

Copyright belongs to the original author assistant-ui.