mcpField
U
utoo

utoo

github.com/utooland開発1810 回インストール39 週間前に更新
リポジトリ

utoo について

utooは、JavaScriptプロジェクトの依存関係やスクリプトを管理するnpmパッケージ管理コマンドラインツールです。パッケージ情報の確認やコマンド実行に加え、monorepoのワークスペースを対話形式で選べます。

主な機能

  1. 01依存関係のインストール、削除、更新
  2. 02package.jsonのスクリプト実行
  3. 03ワークスペースとスクリプトの対話選択
  4. 04依存ツリーとパッケージ情報の確認
  5. 05ローカルまたはリモートのnpmパッケージコマンド実行

活用シーン

  1. 01プロジェクトや開発用の依存関係を導入
  2. 02ビルド、テスト、開発用スクリプトの実行
  3. 03monorepoでワークスペースを選んでスクリプトを実行
  4. 04依存関係やパッケージ情報の確認

インストール

コマンドをコピーしてターミナルで実行します。

$npx skills add https://github.com/utooland/skills --skill utoo

インストール後、Claude Code で/utooを入力して読み込まれたか確認します。

同梱ファイル

SKILL.md と一緒にインストールされる参考資料やスクリプト。

.claude-skill.json
.gitignore
LICENSE
CONTRIBUTING.md
QUICKSTART.md
MULTI-TOOL-SUPPORT.md
reference.md
examples.md
package.json
README.md
install-skill.js
uninstall-skill.js
.github/
WELCOME.md
pull_request_template.md
.github/ISSUE_TEMPLATE/
bug_report.md
feature_request.md
.github/workflows/
release.yml
ci.yml
scripts/
config.json.example
setup.sh

詳細

utoo - 統一フロントエンドツールチェーン

utoo は、高性能な npm パッケージ管理ツールです。依存関係のインストール、スクリプトの実行、パッケージ情報の確認などの機能を提供します。

エイリアス

  • utoo / ut - メインコマンド
  • utx - コマンド実行のエイリアス(ut x と同じ)

コマンド一覧

コマンド短縮形説明
utoo installut iプロジェクトの依存関係をインストール
utoo uninstall <pkg>ut un指定した依存関係をアンインストール
utoo run <script>ut r / utoo <script>package.json 内のスクリプトを実行
utoo runut rworkspace とスクリプトを対話形式で選択
utoo listut ls依存関係ツリーを一覧表示
utoo view <pkg>ut v / ut infoパッケージ情報を確認
utoo execute <pkg>ut x / utxローカルまたはリモートの npm パッケージコマンドを実行
utoo linkut lnローカルパッケージをリンク
utoo depsut dpackage-lock.json のみを生成
utoo updateut unode_modules を削除して再インストール
utoo cleanut cグローバルパッケージキャッシュをクリーンアップ
utoo rebuildut rbスクリプトフックを再構築
utoo configut 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

よくあるタスク

  1. プロジェクトの初期化: まず package.json があるか確認し、その後 utoo install を実行します
  2. 新しい依存関係の追加: utoo install <package> を使用します
  3. 開発サーバーの実行: utoo dev または ut dev を使用します
  4. プロジェクトのビルド: utoo build または ut build を使用します
  5. 依存関係の確認: utoo list を使用して依存関係ツリーを分析します
  6. 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適用シーン
npmmirrorhttps://registry.npmmirror.com国内ユーザー向け。高速
npm 公式https://registry.npmjs.org最新パッケージが必要な場合、海外ネットワーク
推奨事項
  1. 国内ユーザー: npmmirror ミラーを優先的に使用すると、インストールが速くなります
  2. 最新バージョンが必要な場合: npmmirror の同期が遅れている場合は、一時的に公式レジストリに切り替えます
  3. CI/CD 環境: 一貫性を確保するため、コマンドで --registry を明示的に指定することをおすすめします

コマンドの実行

重要:このスキルが呼び出されたら、直ちに Bash ツールを使用して ut コマンドを実行する必要があります。

実行手順
  1. ユーザーが要求した ut コマンドを直接実行します
  2. "command not found: ut"、"command not found: utoo"、または "command not found: utx" が返された場合は、次のインストールコマンドを実行します:
    curl -fsSL https://utoo.land/install | bash
    
  3. インストール完了後、ユーザーが要求したコマンドを再実行します
コマンドの対応関係
  • 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 コマンドを使用してください。

コメント