Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

configure-web-session

БесплатноБез исполняемых скриптовНе проверен

SessionStart hook for Claude Code web sessions to install tools (helm, terraform, gitleaks, just). Use when CI tools fail in remote sessions due to missing…

laurigatesот laurigates★ 61 звезда на GitHub

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

/configure:web-session

Check and configure a SessionStart hook that installs missing tools when Claude Code runs on the web.

When to Use This Skill

Use this skill when... Use another approach when...
Pre-commit hooks fail in remote sessions (tool not found) Project has no infrastructure tooling (plain npm/pip is enough)
just recipes fail because just, helm, terraform, or similar are absent Tools are already available in the base image (check with check-tools)
Setting up a new repo for unattended Claude Code on the web tasks Only need to set env vars — use environment variables in the web UI instead
Auditing whether scripts/install_pkgs.sh is current and idempotent Debugging a specific hook failure — fix the hook itself first
Re-auditing already-onboarded repos for spec drift after the spec changed The repo was never onboarded — run the full setup instead
Onboarding a repo to Claude Code on the web for the first time Project uses only standard language runtimes (python, node, go, rust)

Context

  • Install script: !find . -name 'install_pkgs.sh' -path '*/scripts/*'
  • Settings hooks: !find . -maxdepth 3 -name 'settings.json' -path '*/.claude/*'
  • Pre-commit config: !find . -maxdepth 1 -name '.pre-commit-config.yaml'
  • Justfile: !find . -maxdepth 1 \( -name 'justfile' -o -name 'Justfile' \)
  • Has helm charts: !find . -maxdepth 3 -name 'Chart.yaml' -print -quit
  • Has terraform: !find . -maxdepth 3 \( -name '*.tf' -o -type d -name 'terraform' \) -print -quit

Parameters

Parse from $ARGUMENTS:

  • --check-only: Report current state without creating or modifying files
  • --fix: Apply all changes automatically without prompting
  • --tools <list>: Comma-separated list of tool names to install (overrides auto-detection)
    • Supported: helm, terraform, tflint, actionlint, helm-docs, gitleaks, just, pre-commit

Execution

Execute this web-session dependency setup:

Step 1: Detect required tools

Auto-detect which tools are needed from project signals:

Signal Tools needed
.pre-commit-config.yaml contains gitleaks gitleaks, pre-commit
.pre-commit-config.yaml contains actionlint actionlint, pre-commit
.pre-commit-config.yaml contains tflint tflint, pre-commit
.pre-commit-config.yaml contains helm helm, helm-docs, pre-commit
Chart.yaml exists anywhere helm, helm-docs
*.tf or terraform/ directory exists terraform, tflint
Justfile or justfile exists just
--tools flag provided Use that list exactly
Any pre-commit hook present pre-commit

Step 2: Check existing configuration

  1. Read .claude/settings.json if it exists
  2. Look for a SessionStart hook that references install_pkgs.sh
  3. Check scripts/install_pkgs.sh for completeness — verify each detected tool has an install block

Report current status:

Item Status
scripts/install_pkgs.sh exists EXISTS / MISSING
SessionStart hook configured CONFIGURED / MISSING
Tools covered in install script List each: PRESENT / ABSENT

Step 2b: Detect spec drift in an already-onboarded repo

An install_pkgs.sh that merely exists reads as compliant even when the canonical spec has moved on — the gap is invisible until a manual audit (see issue #1670). When the repo is already onboarded, compare the existing files against the current spec and report each item as PRESENT / DRIFT / ABSENT. Treat any DRIFT or ABSENT as a re-apply trigger, not a no-op. Check: Renovate pin annotations, pinned versions vs the Step 3 reference, path-bootstrap.sh wired as the first SessionStart hook, allowlist-safe downloads (no api.github.com latest lookups), and the remote + idempotency guards.

The per-item drift signals and the drift report table are in references/drift-audit.md — read it whenever the repo already has scripts/install_pkgs.sh.

If --check-only is set, stop here and print the status + drift report. Otherwise, re-apply the drifted items in Steps 3-5 (update pins, add Renovate annotations, wire path-bootstrap.sh first, replace latest lookups with pinned URLs) so the repo returns to spec.

Step 3: Build tool inventory

For each tool that needs to be installed, pin versions to match .pre-commit-config.yaml rev values where applicable. For tools not in pre-commit, use latest stable. Use only download sources on the "Limited" network allowlist (github.com, releases.hashicorp.com, raw.githubusercontent.com, pypi.org), and annotate each pin for Renovate.

The per-tool install method / version-source table and the Renovate pin-annotation guidance are in references/install-script.md — read it before writing or updating any install block.

Step 4: C

Полный SKILL.md на GitHub

Установить configure-web-session в Claude Code и Claude Desktop

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

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

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

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

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

Glob
Grep
Read
Write
Edit
Bash(find *)
Bash(chmod +x scripts/install_pkgs.sh)
Bash(grep *)
AskUserQuestion
TodoWrite

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

references/drift-audit.mdreferences/install-script.mdreferences/settings-hook.md

FAQ

Что делает скилл configure-web-session?

SessionStart hook for Claude Code web sessions to install tools (helm, terraform, gitleaks, just). Use when CI tools fail in remote sessions due to missing binaries.

Как установить скилл configure-web-session?

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

Скилл configure-web-session запускает скрипты?

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

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

Сравнить configure-web-session с