dot_claude/skills/devbox/SKILL.md
devbox 開発環境管理ツールのリファレンス。Nix ベースの再現可能な開発環境、GitHub Actions での使用例を提供。
npx skillsauth add mizchi/chezmoi-dotfiles devboxInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
devbox は Nix ベースの開発環境管理ツール。プロジェクトごとに隔離された再現可能な環境を提供。
curl -fsSL https://get.jetify.com/devbox | bash
# プロジェクト初期化(devbox.json 作成)
devbox init
# パッケージ追加
devbox add nodejs@20
devbox add [email protected] [email protected]
# パッケージ削除
devbox rm nodejs
# devbox シェルに入る
devbox shell
# コマンド実行(シェルに入らずに)
devbox run -- npm test
# スクリプト実行
devbox run test
# サービス起動(process-compose)
devbox services start
# パッケージ検索
devbox search nodejs
{
"$schema": "https://raw.githubusercontent.com/jetify-com/devbox/main/.schema/devbox.schema.json",
"packages": [
"nodejs@20",
"[email protected]"
],
"shell": {
"init_hook": [
"echo 'Welcome to devbox!'",
"export FOO=bar"
],
"scripts": {
"test": "npm test",
"dev": "npm run dev",
"build": "npm run build"
}
}
}
{
"packages": [
"nodejs@20",
"[email protected]",
"go@latest",
"github:NixOS/nixpkgs#hello"
]
}
パッケージ検索: https://www.nixhub.io
{
"shell": {
"scripts": {
"test": "npm test",
"dev": "npm run dev",
"lint": [
"eslint .",
"prettier --check ."
]
}
}
}
devbox run test
devbox run dev
process-compose.yaml を作成:
processes:
web:
command: npm run dev
db:
command: postgres -D /tmp/pgdata
devbox services start # 全サービス起動
devbox services stop # 全サービス停止
devbox services ls # サービス一覧
{
"env": {
"DATABASE_URL": "postgresql://localhost:5432/dev",
"NODE_ENV": "development"
},
"shell": {
"init_hook": [
"export API_KEY=$(<.api_key)"
]
}
}
jetify-com/devbox-install-action を使用。完全な例は assets/gh_action_example.yaml を参照。
steps:
- uses: actions/checkout@v4
- uses: jetify-com/[email protected]
# with:
# enable-cache: true # Nix store キャッシュ
- run: devbox run test
| オプション | 説明 |
|-----------|------|
| --config | devbox.json のパス指定 |
| --quiet | 出力抑制 |
| --print-env | 環境変数を出力 |
tools
Use when working on github.com/mizchi/pkspec, especially release readiness, version bumps, GitHub Actions/Nix release checks, adapter DSL work, or the experimental Playwright/Vitest coverage presets. Covers the repo's spec gates, pkfire release flow, pkl CLI dependency gotchas, and what is intentionally still experimental.
data-ai
指定されたリポジトリ、複数リポジトリ、または GitHub organization から、ドメイン固有の専門用語、業界用語、社内・プロダクト用語、リポジトリ実装マップ、技術構成、オンボーディング向け Mermaid 構成図を抽出・生成するときに使う。ユーザーが「用語集を作る」「ドメイン辞書を作る」「オンボーディング資料にする」「repo/org を見て専門用語をまとめる」「AI が再確認しなくてよい知識ベースを作る」と依頼したら起動する。
development
Guide for writing MoonBit bindings to JavaScript using `extern "js"`. Use when adding FFI declarations against browser/Node/Deno APIs or npm packages, wrapping JS objects behind opaque types, bridging Promises with `async fn` and `Promise::wait()`, configuring `moon.pkg` exports for esm/cjs/iife output, or handling null/undefined at the JS boundary.
testing
技術記事の再現性 (読者が手元で再現できるか) を評価するスキル。subagent に「初見の読者として手元で再現を試みる」シミュレーションをさせ、足りない情報をリストアップさせる。記事ドラフトの最終チェック、または公開後フィードバック前の事前検証で使う。