experience-lwc-typescript-migrate
A Salesforce skill for converting an existing JavaScript Lightning Web Component to TypeScript.
スキルの内容
A Salesforce skill for converting an existing JavaScript Lightning Web Component to TypeScript. The agent reads the component, renames the file with git mv so history is kept, adds type annotations based on bundled pattern files, and writes a declaration file limited to the properties and methods marked @api. It then compiles with tsc and runs the tests, finishing with a checklist of the expected bundle shape. A bundled shell script finds other components that use the one being converted. It needs git, jq and the TypeScript compiler and is not meant for writing new components.
できること
- Rename LWC JavaScript files to TypeScript with git mv
- Add type annotations to a component
- Generate a .d.ts file for the @api surface
- Find components that consume the converted one
概要
- 公開元
- Salesforce
- ツール
- Salesforce
インストール
- すべてのクライアントに追加するには、次のコマンドを実行します:
npx skills add forcedotcom/sf-skills
含まれるファイル
- assets/dts-template.ts
- assets/type-patterns.ts
- scripts/find-consumers.sh
MCPサーバーやスキルは、お使いのコンピューターでコードを実行したり、データを操作したりできます。インストールする前にソースを確認してください。
このスキルには、エージェントが実行する可能性のあるスクリプトが含まれています。
詳細
| 項目 | 内容 | 出典 |
|---|---|---|
| 種類 | スキル | |
| ツール | Salesforce | |
| 公開元 | Salesforce | 出典 |
| 公式かどうか | 公式Salesforce's developer documentation for its skills and plugins links to the forcedotcom/sf-skills repository | 出典 |
| APIキーまたはサインインが必要 | ドキュメントに記載なし | |
| スクリプトを含む | はい | 出典 |
| プラットフォーム | ドキュメントに記載なし | |
| AIクライアント | ドキュメントに記載なし | |
| ライセンス | Apache-2.0 | 出典 |
| 料金 | ドキュメントに記載なし | |
| 活動状況 | 最終コミット 2026年11月6日GitHubスター 1,156ダウンロード数のデータなし(npm・PyPIで未公開) | 出典 |
| リンク | リポジトリ |
出典
- スキルファイル(SKILL.md)github.com/forcedotcom/sf-skills2026年11月10日
- README(README.md)github.com/forcedotcom/sf-skills2026年11月13日
- ライセンスファイル(LICENSE.txt)github.com/forcedotcom/sf-skills · 根拠となる項目:ライセンス, 公開元2026年11月13日
- Webページdeveloper.salesforce.com · 根拠となる項目:公式かどうか2026年11月13日
- リポジトリ内のフォルダ(experience-lwc-typescript-migrate)github.com/forcedotcom/sf-skills · 根拠となる項目:スクリプトを含む2026年11月10日
- GitHubリポジトリgithub.com/forcedotcom/sf-skills · 根拠となる項目:活動状況, ライセンス2026年11月11日