d1v — скилл для Claude Code: проекты d1v.ai и контейнеры
Скилл учит агента работать с проектами d1v.ai и контейнерными воркспейсами через CLI: аутентификация, привязка проекта, синхронизация, деплой.
npx skills add d1vai/d1v-cli --skill d1v -a claude-codeЧто делает d1v
Скилл описывает работу с установленной командой d1v: проверка аутентификации и состояния проекта, привязка локальной папки к проекту, синхронизация воркспейса через pull и push. Для автоматизации и разбора вывода используется --format json.
Внутри — набор правил безопасности и готовых вызовов. Перед изменениями скилл советует прогнать pull --dry-run и push --dry-run, а состояние проверять по коду возврата: отправленный запрос ещё не значит успешный. Ключи и токены нельзя печатать, логировать и коммитить. Если аутентификации нет, пользователю предлагают выполнить d1v auth login, а не вставлять токен в чат.
Продакшен-релиз требует интерактивного терминала и явного подтверждения — неинтерактивный выпуск CLI отклонит. Команды в воркспейсе идут через d1v exec с argv после --, а d1v shell открывает интерактивную оболочку и не сочетается с --format json. Доступ к оболочке выдаётся короткоживущим одноразовым тикетом.
Какие задачи решает
- привязать локальную папку к проекту d1v.ai
- синхронизировать воркспейс перед изменениями
- запустить команду в контейнере и забрать код возврата
- посмотреть статус и историю деплоя
- выпустить продакшен-релиз после подтверждения
Примеры запросов агенту
- Проверь, залогинен ли я в d1v, и покажи список проектов в JSON
- Привяжи текущую папку к проекту и прогони
pull --dry-run - Создай preview-деплой и скажи, когда статус станет READY
Как установить d1v
1Через Skills CLI (Vercel)
npx skills add d1vai/d1v-cli --skill d1v -a claude-code2Вручную: положить файлы
~/.claude/skills/d1v/SKILL.mdПапка скилла целиком; для одного проекта — .claude/skills/d1v/
1Через Skills CLI (Vercel)
npx skills add d1vai/d1v-cli --skill d1v -a codex2Вручную: положить файлы
.agents/skills/d1v/SKILL.mdДля всех проектов — ~/.agents/skills/
1Через Skills CLI (Vercel)
npx skills add d1vai/d1v-cli --skill d1v -a cursor2Вручную: положить файлы
.cursor/skills/d1v/SKILL.mdCursor читает и .agents/skills/, и .claude/skills/
1GitHub CLI
gh skill install d1vai/d1v-cli d1v2Вручную: положить файлы
.github/skills/d1v/SKILL.md1Через Skills CLI (Vercel)
npx skills add d1vai/d1v-cli --skill d1v -a gemini-cli2Командой платформы
gemini skills install https://github.com/d1vai/d1v-cli --path skills/d1vВручную: положить файлы
.devin/skills/d1v/SKILL.mdСтарый путь .windsurf/skills/ тоже читается
Через Skills CLI (Vercel)
npx skills add d1vai/d1v-cli --skill d1v -a opencodeClaude.ai
Упакуйте папку в zip и загрузите в Settings → Capabilities → Skills
По шагам, с командами для каждой платформы: Как установить скилл в Claude Code: пять способов
Вопросы о d1v
Как установить d1v в Claude Code?
Выполните npx skills add d1vai/d1v-cli --skill d1v -a claude-code. Скилл появится в ~/.claude/skills/d1v/SKILL.md.
Что делает скилл d1v?
Описывает для агента работу с проектами d1v.ai и контейнерными воркспейсами: аутентификацию, привязку проекта, синхронизацию, команды в контейнере, переменные окружения и деплои.
Можно ли выпустить продакшен без подтверждения?
Нет. d1v deploy prod требует интерактивного TTY и явного подтверждения пользователя, неинтерактивный релиз отклоняется.
Исходный текст
SKILL.md · MIT
--- name: d1v description: Operate d1v.ai projects and container workspaces with the d1v CLI. Use when a task involves D1V authentication, project binding, workspace synchronization, container commands, environment metadata, preview deployments, deployment status, or a user-confirmed production release. --- # d1v CLI Use the installed `d1v` command. For automation and structured inspection, use `--format json`; never mix JSON output with an interactive shell. ## Safety - Never print, log, commit, or add API keys, tokens, environment values, or shell tickets to source files, command output, or repository configuration. - Inspect authentication and project state before changing anything. Check the command exit code and query resulting state; a submitted request is not proof of success. - Run `pull --dry-run` or `push --dry-run` before changing a local workspace, then inspect repository instructions and local changes. - Treat preview and production as separate environments. A production release requires an interactive TTY and explicit user confirmation; do not attempt or imply a non-interactive production release. - If a deployment fails or times out, preserve its deployment/release ID and use `deploy status` or `deploy history` rather than blindly retrying. ## Authenticate and discover ```bash d1v auth status --format json d1v project list --format json d1v github status --format json ``` If authentication is missing, ask the user to run `d1v auth login`. Do not ask them to paste a token into chat or a command line. An API key supplied through a secure standard-input workflow can be used with `d1v auth login --api-key`. ## Bind a local workspace ```bash d1v project get <project_id> --format json d1v init . --project-id <project_id> d1v pull --dry-run --format json d1v pull d1v push --dry-run --format json d1v push ``` `d1v init` writes local workspace metadata. Do not use `--force` unless the user explicitly approves replacing an existing binding. ## Run commands in a workspace Use an interactive shell only when a person needs a terminal: ```bash d1v shell d1v shell <project_id> d1v shell --organization-id <organization_id> ``` - With no target, `d1v shell` opens the personal workspace root. - A project ID opens that project's directory. Do not combine it with `--organization-id`. - Interactive shells require a TTY and text output. Do not use `--format json` with `d1v shell`. For automation, Agent actions, CI, or captured exit status, use `d1v exec` and place the remote argv after `--`: ```bash d1v exec -- git status --short d1v exec --project-id <project_id> -- npm test d1v exec --organization-id <organization_id> -- pwd d1v --format json exec --project-id <project_id> -- sh -c 'printf ok; printf problem >&2; exit 7' ``` Read `stdout`, `stderr`, `cwd`, and `exit_code`; a non-zero remote exit is a failed action. Do not wrap commands in `sh -c` unless shell syntax is required. Shell access uses a short-lived, single-use ticket. Never print, persist, forward, or reconstruct terminal WebSocket URLs from that ticket. ## Environment metadata ```bash d1v env list --project <project_id> --format json d1v env set --project <project_id> KEY=VALUE --sensitive ``` The default list output keeps sensitive values redacted. Do not use `--reveal`, `env get --reveal`, or `env export` unless the user explicitly asks for the secret material and has provided a safe destination outside version control. ## Deployments Create a preview with the explicit command when a project ID is known: ```bash d1v deploy preview <project_id> --format json d1v deploy status <project_id> --format json d1v deploy history <project_id> --environment preview --format json ``` `d1v deploy preview` waits for the deployment's terminal state. Report success only when it returns READY, and use its `production_url` when present, otherwise its `vercel_url`. On failure, report the error and deployment ID without repeating the request automatically. `d1v --preview` (or `d1v --prev`) is the current-directory shortcut. It may prompt to select or create a project and write the resulting project binding; use it only when the user wants that local-directory workflow. For production, first explain the pending operation and then require a clear user confirmation in an interactive terminal: ```bash d1v deploy prod <project_id> ``` The CLI shows release preflight information, prompts for relevant environment decisions, creates an idempotent release, and waits for its terminal state. It rejects non-interactive production releases. On failure, report the release phase, error code, and message. The `d1v --prod` shortcut follows the same confirmation and release flow for the bound current directory. ## Local runtime ```bash d1v runtime doctor --format json d1v agent status --format json d1v agent pair d1v agent start ``` Do not silently switch a requested local runtime to cloud when it is unavailable. Explain the runtime status and ask the user how to proceed. ## References - https://github.com/d1vai/d1v-cli - https://www.d1v.ai/cli-install - https://www.d1v.ai/docs/cli - https://www.d1v.ai/openapi
© d1vai · MIT · d1vai/d1v-cli