utoo について
utooは、JavaScriptプロジェクトの依存関係やスクリプトを管理するnpmパッケージ管理コマンドラインツールです。パッケージ情報の確認やコマンド実行に加え、monorepoのワークスペースを対話形式で選べます。
主な機能
- 01依存関係のインストール、削除、更新
- 02package.jsonのスクリプト実行
- 03ワークスペースとスクリプトの対話選択
- 04依存ツリーとパッケージ情報の確認
- 05ローカルまたはリモートのnpmパッケージコマンド実行
活用シーン
- 01プロジェクトや開発用の依存関係を導入
- 02ビルド、テスト、開発用スクリプトの実行
- 03monorepoでワークスペースを選んでスクリプトを実行
- 04依存関係やパッケージ情報の確認
インストール
コマンドをコピーしてターミナルで実行します。
$
npx skills add https:/ / github.com/ utooland/ skills --skill utooインストール後、Claude Code で/utooを入力して読み込まれたか確認します。
同梱ファイル
SKILL.md と一緒にインストールされる参考資料やスクリプト。
.claude-skill.json.gitignoreLICENSECONTRIBUTING.mdQUICKSTART.mdMULTI-TOOL-SUPPORT.mdreference.mdexamples.mdpackage.jsonREADME.mdinstall-skill.jsuninstall-skill.js.github/WELCOME.mdpull_request_template.md.github/ISSUE_TEMPLATE/bug_report.mdfeature_request.md.github/workflows/release.ymlci.ymlscripts/config.json.examplesetup.sh詳細
utoo - 統一フロントエンドツールチェーン
utoo は、高性能な npm パッケージ管理ツールです。依存関係のインストール、スクリプトの実行、パッケージ情報の確認などの機能を提供します。
エイリアス
utoo/ut- メインコマンドutx- コマンド実行のエイリアス(ut xと同じ)
コマンド一覧
| コマンド | 短縮形 | 説明 |
|---|---|---|
utoo install | ut i | プロジェクトの依存関係をインストール |
utoo uninstall <pkg> | ut un | 指定した依存関係をアンインストール |
utoo run <script> | ut r / utoo <script> | package.json 内のスクリプトを実行 |
utoo run | ut r | workspace とスクリプトを対話形式で選択 |
utoo list | ut ls | 依存関係ツリーを一覧表示 |
utoo view <pkg> | ut v / ut info | パッケージ情報を確認 |
utoo execute <pkg> | ut x / utx | ローカルまたはリモートの npm パッケージコマンドを実行 |
utoo link | ut ln | ローカルパッケージをリンク |
utoo deps | ut d | package-lock.json のみを生成 |
utoo update | ut u | node_modules を削除して再インストール |
utoo clean | ut c | グローバルパッケージキャッシュをクリーンアップ |
utoo rebuild | ut rb | スクリプトフックを再構築 |
utoo config | ut cfg | 設定を管理 |
使用ガイド
スクリプトの実行
# 快捷方式:直接运行 package.json 中的脚本
utoo build
utoo dev
ut test
# 交互式选择(适用于 monorepo)
utoo run
# → 会引导用户选择 workspace 和对应脚本
# 显式运行
utoo run build
ut r dev
依存関係のインストール
# 安装所有依赖
utoo install
# 安装指定包
utoo install lodash
# 安装开发依赖
utoo install -D typescript
# 安装并保存到 package.json
utoo install react --save
依存関係の確認
# 查看依赖树
utoo list
# 查看指定深度
utoo list --depth=1
# 查看包信息
utoo view react
リモートパッケージの実行
# 使用 utx 别名(推荐)
utx create-react-app my-app
utx vite
# 或使用完整命令
utoo execute create-react-app my-app
ut x vite
よくあるタスク
- プロジェクトの初期化: まず package.json があるか確認し、その後
utoo installを実行します - 新しい依存関係の追加:
utoo install <package>を使用します - 開発サーバーの実行:
utoo devまたはut devを使用します - プロジェクトのビルド:
utoo buildまたはut buildを使用します - 依存関係の確認:
utoo listを使用して依存関係ツリーを分析します - Monorepo の操作:
utoo runを使用して workspace とスクリプトを対話形式で選択します
設定管理
# 设置镜像源
utoo config set registry https://registry.npmmirror.com --global
# 查看当前配置
utoo config list
ベストプラクティス
ミラーの選択
ネットワーク環境に応じて適切なミラーを選択し、--registry パラメーターで指定します。
# 使用 npmmirror(国内推荐,速度快)
utoo install --registry https://registry.npmmirror.com
utoo install lodash --registry https://registry.npmmirror.com
# 使用 npm 官方源(国外或需要最新包时)
utoo install --registry https://registry.npmjs.org
# 更新依赖时指定镜像源
utoo update --registry https://registry.npmmirror.com
よく使われるミラー
| ミラー | URL | 適用シーン |
|---|---|---|
| npmmirror | https://registry.npmmirror.com | 国内ユーザー向け。高速 |
| npm 公式 | https://registry.npmjs.org | 最新パッケージが必要な場合、海外ネットワーク |
推奨事項
- 国内ユーザー: npmmirror ミラーを優先的に使用すると、インストールが速くなります
- 最新バージョンが必要な場合: npmmirror の同期が遅れている場合は、一時的に公式レジストリに切り替えます
- CI/CD 環境: 一貫性を確保するため、コマンドで
--registryを明示的に指定することをおすすめします
コマンドの実行
重要:このスキルが呼び出されたら、直ちに Bash ツールを使用して ut コマンドを実行する必要があります。
実行手順
- ユーザーが要求した ut コマンドを直接実行します
- "command not found: ut"、"command not found: utoo"、または "command not found: utx" が返された場合は、次のインストールコマンドを実行します:
curl -fsSL https://utoo.land/install | bash - インストール完了後、ユーザーが要求したコマンドを再実行します
コマンドの対応関係
- ARGUMENTS:
test→ut testを実行 - ARGUMENTS:
install→ut installを実行 - ARGUMENTS:
install <pkg>→ut install <pkg>を実行 - ARGUMENTS:
run <script>→ut run <script>を実行 - ARGUMENTS:
<script>→ut <script>を実行(ショートカット)
pnpm/npm/yarn コマンドの使用は禁止されています。必ず ut コマンドを使用してください。
コメント
Markdown 対応