migrate-v8-to-v9
できること
このスキルは、LitプロジェクトをTanStack Tableのバージョン8からバージョン9へ更新する手順を案内します。変更された各部分のコードのチェックリストが必要な開発者向けです。
使う場面
- ✓LitアプリがまだTable v8のコントローラーを使っていて、更新が必要なとき。
- ✓TanStack Table v9のために、Litプロジェクトとその必要なLitのバージョンを準備しているとき。
- ✓Table v9にアップグレードした後で、表の描画や状態が壊れたとき。
スキルのリンク
https://github.com/TanStack/table/blob/main/packages/lit-table/skills/migrate-v8-to-v9/SKILL.mdコピーしてAI(Claude、ChatGPT、Cursor)に貼り付け、指示に従うよう頼んでください。
使い方
いちばん簡単な方法:メッセージをコピーしてAIに貼り付けるだけ。AIがスキルを読んで指示に従います。
貼り付け用メッセージ
Claude Code、Codex、Cursorの場合:プロジェクトのフォルダで実行するとスキルがインストールされます。
SKILL.mdをダウンロードして、エージェントのスキル用フォルダに入れてください。
AIへの頼み方の例
“Litの表のコードを、TanStack Table v8からv9へ移行する手伝いをしてもらえますか。”
毎週5つの新しいスキル。1分で読めます。
仕組み
描画の中で新しい表の呼び出しに切り替えるなど、変更のチェックリストを示します。そして、各変更の詳しいメモにリンクします。
技術的な内容(元のSKILL.md)
作者による元のテキスト(英語)をGitHubからそのまま表示しています。
Load intent load @tanstack/table-core#migrate-v8-to-v9 first and audit its entire shared checklist. It owns feature registration, row-model slots, state/reset changes, prototype methods, logical pinning, sizing/resizing, sorting, selection, helpers, and TypeScript mappings.
Framework prerequisites
Lit 3.1.3 or newer within v3 (lit ^3.1.3) and @lit/context ^1.1.0 are required.
Lit migration checklist
- Construct one
TableController<typeof features, TData>(this)as a stable host field. - Replace the v8
controller.tableproperty/options thunk withcontroller.table(options, selector?)during render. - Read selected
table.statefor rendering; use atom snapshots in handlers or stabletable.subscribeselectors for template regions. - Feed resolved controlled callbacks back through reactive Lit properties, or use stable external atoms.
- Switch render helpers to
FlexRender({ cell }),FlexRender({ header }), orFlexRender({ footer })and preserve instance-method receivers. - If app conventions repeat, construct a host-bound
useAppTableonce and call its.table()during render.
Apply the affected mappings
Read adapter-migration when changing construction, rendering, state, or app hooks. Read the relevant core migration references for each affected shared API; this adapter checklist does not replace that audit.
For complete v9 construction examples, read getting-started. For reactive state repairs, read table-state.
Final checks
- All shared core migration checks and affected mappings have been applied.
- The framework checklist above passes with the current adapter declarations.
- Model inputs remain stable and state changes reach their reactive owner.
API discovery
Inspect node_modules/@tanstack/lit-table/dist/index.d.ts, then TableController.d.ts, flexRender.d.ts, or the relevant exported declaration. Core feature APIs are in node_modules/@tanstack/table-core/dist/features/.
よくある質問
どのLitのバージョンが必要ですか?
スキルは、バージョン3の中でLit 3.1.3以降と、@lit/context 1.1.0以降を挙げています。
中核の移行ガイドの代わりになりますか?
いいえ、Lit特有の変更を扱い、共有のAPIの変更については中核のガイドを案内します。
描画のヘルパーが古い場合はどうしますか?
セル、ヘッダー、フッターを使い、FlexRenderに切り替えるようスキルは述べています。
詳細
作者による元の説明
Migrate lit Table v8 to v9. Audit framework construction, rendering, state, and app hooks, with shared API changes in the core migration skill.
repo: TanStack/table
人気
- GitHubのスター
- 29k
- ランキング
- #9814
- ライセンス
- MIT
- 更新日
- 2026/10/21
コメント
- …
このリポジトリの他のスキル
getting-started
29kエージェントが、Alpine.jsでTanStack Tableを使ってデータテーブルを作り、表示する方法を教えます。セットアップ、リアクティブなデータ、行の描画を扱います。
table-state
29kエージェントが、Alpine.jsで表の状態(現在のページなど)を読み取り、制御する方法を教えます。その状態が変わると、画面が更新されます。
devtools
29kエージェントが、Angularの表をTanStack Devtoolsのパネルに登録する方法を教えます。開発者はアプリを作りながら、各表を調べられます。
getting-started
29kエージェントが、AngularでTanStack Tableの表を作り、表示する方法を教えます。injectTableの設定、テンプレートの描画、行データの更新を扱います。
似ているスキル
angular-developer
280kエージェントがAngularのコードを作成し、プロジェクト構成についてアドバイスできるようにします。新しいプロジェクトの開始、コード部品の作成、パフォーマンスやアクセシビリティの改善に役立ちます。
frontend-a11y
280kエージェントが Web インターフェースを誰にとっても使いやすくするよう支援します。スクリーンリーダーやキーボード操作に対応し、サイトやアプリが適切に動作するようにします。
frontend-patterns
280kエージェントがフロントエンド開発の最新パターンを適用できるようにします。React と Next.js において、パフォーマンスの最適化、状態管理、ベストプラクティスの遵守を行います。