Command Palette

Search for a command to run...

Назад к скиллам
скилл № 38900

git-environments

Use when bootstrapping a collaboration-ready project or retrofitting Git branch workflows, isolated development/Preview/QA/Production environments, secrets…

БесплатноБез исполняемых скриптов
J-StaR-Films-Studiosот J-StaR-Films-Studios★ 27 звёзд на GitHub

Установить git-environments в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Об этом скилле

Git environments

Make a project safe for humans and agents to build, test, and release together. Match the actual stack and budget. Invoking this skill grants no infrastructure or deployment authority.

1. Inspect without changing state

Read repo instructions, config files, scripts, branch/worktree state, CI, hosting, and release docs. Do not create branches, files, services, or cloud resources during discovery.

  • Preserve unrelated work.
  • Inspect secret names and bindings only, never secret values. Use private credential-entry tools when credentials are needed; never ask for secrets in chat.
  • Ask before fetching remotes if network access was not authorized.
  • For greenfield repos, inspect what exists without requiring a repo or stack upfront.

Done when: you have summarized the current code-to-environment map with concrete repo evidence and explicit unknowns.

2. Interview the user

Ask only what inspection did not answer. Group up to four concrete decisions at a time with trade-offs and custom options (use structured question tools when available). Cover:

  • Stack, hosting, data sensitivity, team size, human reviewers, agent tools, and budget.
  • Production branch name, shared preview branch needs, release ownership, and hotfix policy.
  • Local vs shared dev state across database, auth, storage, email, and third-party providers.
  • Local worktree QA, CI runners, or persistent VM, plus optional browser/Electron/MCP needs.
  • Secrets management, individual access, CI identities, recovery ownership, and agent permission scope.

Recommend the baseline below, but never silently decide anything that changes cost, access, or data safety.

Done when: the user picks the operating model and any open choices are visible blockers rather than guessed config.

3. Propose the setup and stop for approval

Read the setup checklist before drafting the plan. Present a compact plan naming exact files, branches, resources, targets, expected costs, required permissions, verification steps, and rollback. Ask where durable docs belong if the repo has no established convention.

  • Include an environment matrix: code source, deploy trigger, database, auth issuer/store, storage, outbound provider mode, credential scope, data policy, and owner. Flag shared resources explicitly.
  • Separate repo file edits from external actions. Require explicit approval for provisioning, remote pushes, branch protection changes, secret updates, migrations, deployments, outbound messages, production access, and destructive cleanup. Broad plan approval never covers unspecified external side effects.

Done when: the user explicitly approves a bounded plan. If declined, paused, or blocked, stop without retrying or substituting.

4. Implement the approved scope

Confirm the target repo, checkout, and environment before every mutation.

  • Reuse existing repo tools and conventions. Check current provider docs and CLI behavior before writing provider config; delegate to specialist skills when available.
  • Never copy environment IDs, accounts, credentials, or deployment assumptions from another project.
  • Keep setup repeatable: preserve existing config, refuse conflicting bindings, list prerequisites, and provide a manual fallback if approved. Reruns must inspect existing state instead of blindly overwriting it.
  • Keep changes proportional: start with project-local config, scripts, focused CI, short docs, and a real user-path verification recipe where warranted.

Done when: approved files exist, each required external action is separately authorized and completed (or explicitly blocked), and every changed binding has a verified target.

5. Verify and hand off

Run narrow offline config checks first. Run live or browser checks only against authorized targets with controlled data, testing both the intended success path and wrong-target or permission-refusal paths.

  • Demonstrate contributor setup and an exact-commit QA run where access allows. If live prerequisites are missing, mark the setup configured but unverified.
  • A file on disk, green process exit, screenshot, or frontend build alone is not full acceptance.
  • Inspect the final diff and remove unrelated changes. Update project docs in their existing location and add only brief pointers to agent instructions.

Done when: you report implemented vs proposed controls, exact checks run and results, release/recovery ownership, remaining manual steps, and unresolved risks. Never call the project fully ready while required controls remain unverified.

Default operating model

Branches and promotion

  • Keep two permanent branches by default: main (or existing master) for Production source, and preview for integration and human acceptance. Do not rename an existing Production branch by default. (For tiny internal repos that will never scale into a public product, trunk-based main + per-PR previews is an acceptable lighter optio
Полный SKILL.md на GitHub

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

  • references/setup-checklist.md

FAQ

Что делает скилл git-environments?

Use when bootstrapping a collaboration-ready project or retrofitting Git branch workflows, isolated development/Preview/QA/Production environments, secrets, CI checks, release workflows, and human/agent collaboration. Interview the user, propose a plan, and implement only after approval.

Как установить скилл git-environments?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл git-environments запускает скрипты?

Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.

Похожие скиллы

Сравнить git-environments с