Логотип Lima Devbox

Lima Devbox

Організація
recodelabs
lima-devbox

Guide users through setting up a Lima VM for isolated development on macOS. Use when users want to create a sandboxed development environment, set up a VM for AI coding tools, or isolate code execution from their host machine. Walks through VM configuration (name, RAM, shared directories, languages) via wizard, then executes setup systematically.

Огляд

Видавецьrecodelabs
Репозиторійlima-devbox
Назва навичкиlima-devbox
Зірки
29
Форки
2
Файли в пакеті
5
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Файлів у комплекті: 5

    Скрипти, шаблони й довідкові матеріали, які модель може читати під час роботи. Файли доступні лише для читання й ніколи не виконуються.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем recodelabs. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Lima Devbox у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/recodelabs/lima-devbox/tree/main/skills/lima-devbox
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/recodelabs/lima-devbox.git /tmp/lima-devbox
mkdir -p .claude/skills
cp -r /tmp/lima-devbox/skills/lima-devbox .claude/skills/lima-devbox
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Lima Devbox в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Lima Devbox, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Lima Devbox не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

Lima Devbox Setup Skill

This skill guides users through creating a Lima VM configured for development work on macOS.

Prerequisites

  • macOS with Homebrew installed
  • Lima (brew install lima)

Workflow

Phase 1: Configuration Wizard

Use AskUserQuestion to gather configuration. Ask these in sequence:

Question 1: VM Name

  • Header: "VM Name"
  • Options: "devbox" (default), "sandbox", "test"
  • Description: Name for your Lima VM (used in commands like limactl shell <name>)

Question 2: Resources

  • Header: "Resources"
  • Options:
    • "Standard (6 CPU, 8GB RAM, 100GB disk)" - Good for most development
    • "Light (4 CPU, 4GB RAM, 50GB disk)" - Lower resource usage
    • "Heavy (8 CPU, 16GB RAM, 200GB disk)" - For large projects or multiple services
  • multiSelect: false

Question 3: Shared Directories

  • Header: "Mounts"
  • Options:
    • "Single directory" - Recommended, simple setup
    • "Multiple directories" - I'll ask for a comma-separated list
  • Description: Only these directories will be accessible from the VM (read/write). The VM has no access to any other host files.

Question 3b: Ask for the directory path(s)

  • If single directory selected: Ask "What directory should the VM have access to?" with options like "/github", "/projects", or let them type a custom path
  • If multiple directories selected: Ask for comma-separated paths

Question 4: Git Configuration Ask for git user.name and user.email (can use AskUserQuestion with text input)

Question 5: Languages

  • Header: "Languages"
  • Options: "Node.js", "Go", "Rust", "Python"
  • multiSelect: true
  • Description: Languages to install via mise (version manager)

Question 6: Tools

  • Header: "Tools"
  • Options: "GitHub CLI (gh)", "Docker (nerdctl already included)"
  • multiSelect: true
  • Description: Optional tools. Note: nerdctl (docker-compatible CLI) is already installed by default - try it before installing Docker.

Question 6b: AI Coding Agents

  • Header: "AI Agents"
  • Options: "Claude Code (Anthropic)", "Gemini CLI (Google)", "Codex CLI (OpenAI)", "OpenCode", "None"
  • multiSelect: true
  • Description: AI coding assistants to install. All support autonomous/YOLO modes for hands-off operation in this sandboxed environment.

Question 7: SSH Password (Optional)

  • Header: "SSH Password"
  • Options: "No password (key-only)" (default), "Set a password"
  • Description: Lima uses SSH keys by default. You can optionally set a password for convenience.

Question 7b (if password selected): Ask user to enter their desired password

Question 8: Port Forwarding

  • Header: "Ports"
  • Options: "8080", "3000", "5000", "5432 (PostgreSQL)", "6379 (Redis)", "None"
  • multiSelect: true
  • Description: Forward these ports from VM to host. Access VM services at localhost: on your Mac.

Question 9: SSH Agent Forwarding

  • Header: "SSH Agent"
  • Options: "Yes - forward SSH agent (Recommended)", "No"
  • multiSelect: false
  • Description: Allows the VM to use your Mac's SSH keys for git operations, etc.

Question 10: VM Type

  • Header: "VM Type"
  • First, detect macOS version. If macOS 13+, recommend "vz":
  • Options: "vz (Virtualization.framework) - Recommended, faster" (default on macOS 13+), "qemu - More compatible, slower"
  • multiSelect: false
  • Description: "vz" uses Apple's native virtualization (faster, requires macOS 13+). "qemu" works on older macOS.

Question 11: Rosetta (Apple Silicon only)

  • Skip this question on Intel Macs
  • Header: "Rosetta"
  • Options: "Yes - enable Rosetta (Recommended)", "No"
  • multiSelect: false
  • Description: Run x86_64 Linux binaries in the VM. Useful for compatibility with older tools. Requires vz VM type.

Phase 2: Setup Execution

After gathering configuration, create a todo list and execute each step:

Step 1: Install Lima (if needed)
bash
limactl --version

If not installed, install it:

bash
brew install lima
Step 2: Create VM
bash
limactl start --name=<vm_name> --cpus=<cpus> --memory=<memory> --disk=<disk> -y

Wait for VM to be running:

bash
limactl list --json | jq -r '.[] | select(.name=="<vm_name>") | .status'
Step 3: Configure VM Settings

Edit ~/.lima/<vm_name>/lima.yaml to apply user's configuration choices:

VM Type (if user selected vz):

yaml
vmType: "vz"

Rosetta (if enabled, requires vmType: vz):

yaml
rosetta:
  enabled: true

SSH Agent Forwarding (if enabled):

yaml
ssh:
  forwardAgent: true

Port Forwarding (for each selected port):

yaml
portForwards:
- guestPort: 8080
  hostPort: 8080
- guestPort: 3000
  hostPort: 3000

Mounts - configure ONLY the shared directories (no home directory access):

Find the mounts: section and replace it with:

yaml
mounts:
- location: "<writable_path>"
  writable: true

For multiple directories:

yaml
mounts:
- location: "~/github"
  writable: true
- location: "~/projects"
  writable: true

IMPORTANT: Do NOT include a location: "~" mount. Only the specified directories should be accessible.

Step 4: Full Stop/Start VM (required after mount changes)

IMPORTANT: Mount configuration changes (especially writable: true) require a full stop/start cycle to take effect. A simple limactl restart is NOT sufficient - you must explicitly stop and then start the VM.

bash
limactl stop <vm_name>
limactl start <vm_name>

After restarting, verify the mount is writable by checking the mount flags:

bash
limactl shell <vm_name> -- mount | grep <mount_path>

The output should show rw (read-write), not ro (read-only):

mount0 on /path/to/mount type virtiofs (rw,relatime)

If it still shows ro, stop and start again.

Step 5: Setup SSH Config Symlink
bash
mkdir -p ~/.ssh/config.d
ln -sf ~/.lima/<vm_name>/ssh.config ~/.ssh/config.d/<vm_name>

Ensure ~/.ssh/config includes:

Include config.d/*

After this, user can SSH with: ssh <vm_name>

SSH Authentication Note: Lima uses key-based authentication by default:

  • Creates a private key at ~/.lima/_config/user
  • Sets up the VM user with your macOS username
  • Configures all SSH settings in the symlinked config file
  • Password authentication is optional (configured in Step 7 if requested)
Step 6: Run Base Setup Script

Copy and execute scripts/setup-vm.sh in the VM:

bash
limactl shell <vm_name> -- bash -c "$(cat <skill_path>/scripts/setup-vm.sh)" -- "<git_name>" "<git_email>" "<working_dir>"

Where <working_dir> is the first (or primary) mounted directory path. This will be the default directory when the user shells into the VM.

This installs system packages, configures git, sets up .bash_profile for SSH sessions, and configures the shell to start in the shared directory.

Step 7: Set SSH Password (if requested)

If user chose to set a password:

bash
limactl shell <vm_name> -- bash -c "echo '<username>:<password>' | sudo chpasswd"

Where <username> is the user's macOS username (same as VM user).

Step 8: Install Languages (if selected)
bash
limactl shell <vm_name> -- bash -c "$(cat <skill_path>/scripts/install-mise.sh)" -- <languages>

Where <languages> is a space-separated list like nodejs go rust python.

Step 9: Install Optional Tools

For GitHub CLI:

bash
limactl shell <vm_name> -- bash -c "$(cat <skill_path>/scripts/install-gh.sh)"

For Docker (if user specifically wants Docker instead of nerdctl):

bash
limactl shell <vm_name> -- bash -c "curl -fsSL https://get.docker.com | sh && sudo usermod -aG docker \$USER"

Note: nerdctl is already available (nerdctl run, nerdctl build, etc.) and is docker-compatible. Most users won't need Docker.

Step 10: Install AI Coding Agents (if selected)

For Claude Code:

bash
limactl shell <vm_name> -- bash -c "$(cat <skill_path>/scripts/install-ai-agent.sh)" -- claude

For Gemini CLI:

bash
limactl shell <vm_name> -- bash -c "$(cat <skill_path>/scripts/install-ai-agent.sh)" -- gemini

For Codex CLI:

bash
limactl shell <vm_name> -- bash -c "$(cat <skill_path>/scripts/install-ai-agent.sh)" -- codex

For OpenCode:

bash
limactl shell <vm_name> -- bash -c "$(cat <skill_path>/scripts/install-ai-agent.sh)" -- opencode

All agents are configured with aliases for autonomous/YOLO mode operation.

Step 11: Verify Setup
bash
limactl shell <vm_name> -- bash -c "echo 'VM is ready!' && git --version && mise --version"
Step 12: Final Restart (ensures mount permissions are correct)

Stop and restart the VM to ensure shared directory permissions are properly applied:

bash
limactl stop <vm_name>
limactl start <vm_name>

Wait for the VM to be running before presenting the summary to the user.

Phase 3: Post-Setup Summary

After successful setup, provide the user with:

  1. Access commands:

    • limactl shell <vm_name> - Interactive shell (starts in shared directory)
    • ssh <vm_name> - SSH access (if config symlink created)
    • exit or Ctrl+D - Exit the VM shell and return to Mac terminal
  2. Common Lima commands:

    • limactl stop <vm_name> - Stop the VM
    • limactl start <vm_name> - Start the VM
    • limactl restart <vm_name> - Restart the VM
    • limactl delete <vm_name> -f - Delete the VM
  3. Working with files:

    • Only files in configured directories (e.g., ~/github) are accessible from the VM
    • Files are available at the same path in the VM
    • Changes sync bidirectionally between host and VM
  4. Container tools:

    • nerdctl is pre-installed (docker-compatible commands)
    • Example: nerdctl run -it ubuntu bash
  5. Port forwarding (if configured):

    • Forwarded ports are accessible at localhost:<port> on your Mac
    • Example: A server running on port 8080 in the VM is available at localhost:8080
  6. SSH agent (if enabled):

    • Your Mac's SSH keys are available inside the VM
    • Git operations using SSH will work without additional configuration
  7. Reference: Point to references/lima-commands.md for full command reference

Script Locations

Scripts are located in scripts/ relative to this skill:

  • setup-vm.sh - Base system setup (packages, git config, bash_profile, default working directory)
  • install-mise.sh - Mise installation and language setup
  • install-gh.sh - GitHub CLI installation
  • install-ai-agent.sh - AI coding agent installation (Claude Code, Gemini CLI, Codex CLI, OpenCode)

Error Handling

  • If Lima not installed: Guide user to brew install lima
  • If VM creation fails: Check Lima logs with limactl logs <vm_name>
  • If script fails: Can re-run individual scripts after SSH into VM
  • If mounts are read-only: This is a common issue. Mount changes require a full limactl stop followed by limactl start (not just restart). Verify with mount | grep <path> - look for rw not ro
  • If mounts don't work: Verify lima.yaml syntax, then do a full stop/start cycle

Notes

  • Default Lima template uses Ubuntu 24.04 LTS
  • Only explicitly configured directories are mounted (VM has no access to other host files)
  • nerdctl (containerd CLI) is included by default for container operations

Файли в пакеті

Модель читає ці файли за потреби, поки навичку завантажено. Вони доступні для читання й ніколи не виконуються.

Поширені запитання

Що робить навичка ШІ Lima Devbox?

Guide users through setting up a Lima VM for isolated development on macOS. Use when users want to create a sandboxed development environment, set up a VM for AI coding tools, or isolate code execution from their host machine. Walks through VM configuration (name, RAM, shared directories, languages) via wizard, then executes setup systematically.

Навіщо використовувати Lima Devbox у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Lima Devbox — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Lima Devbox у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/recodelabs/lima-devbox/tree/main/skills/lima-devbox. TypingMind прочитає файл SKILL.md, додасть супровідні файли та встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Lima Devbox?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Lima Devbox?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Lima Devbox — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Lima Devbox?

Так. Навичку опубліковано на GitHub: recodelabs, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇