Token导航 LogoToken导航TokenDH.com
研究检索敏感数据github未标认证来源可访问许可证需确认审计提醒

configure-web-session配置网络会话

Agent Skill

configure-web-session 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

753

周安装

32

GitHub Stars

28

下载量

264
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:configure-web-session(配置网络会话)
来源仓库:https://github.com/laurigates/claude-plugins
仓库路径:skills/configure-web-session
安装命令:
npx skills add https://github.com/laurigates/claude-plugins --skill configure-web-session
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/laurigates/claude-plugins --skill configure-web-session

简介

用于在网络会话中配置 SessionStart 钩子,自动安装缺失工具。

  • 适合远程开发环境因缺少 CLI 工具导致预提交失败的场景。
  • 可动态补充 just、helm、terraform 等基础设施工具。
  • 安装前需确认是否包含系统命令执行权限,避免引入安全风险。
  • configure-web-session 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

/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 absentTools are already available in the base image (check with check-tools)
Setting up a new repo for unattended Claude Code on the web tasksOnly need to set env vars — use environment variables in the web UI instead
Auditing whether scripts/install_pkgs.sh is current and idempotentDebugging a specific hook failure — fix the hook itself first
Onboarding a repo to Claude Code on the web for the first timeProject 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:

SignalTools needed
.pre-commit-config.yaml contains gitleaksgitleaks, pre-commit
.pre-commit-config.yaml contains actionlintactionlint, pre-commit
.pre-commit-config.yaml contains tflinttflint, pre-commit
.pre-commit-config.yaml contains helmhelm, helm-docs, pre-commit
Chart.yaml exists anywherehelm, helm-docs
*.tf or terraform/ directory existsterraform, tflint
Justfile or justfile existsjust
--tools flag providedUse that list exactly
Any pre-commit hook presentpre-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:

ItemStatus
scripts/install_pkgs.sh existsEXISTS / MISSING
SessionStart hook configuredCONFIGURED / MISSING
Tools covered in install scriptList each: PRESENT / ABSENT

If --check-only is set, stop here and print the report.

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 this reference:

ToolInstall methodVersion source
pre-commitpip install pre-commitlatest
helmOfficial get-helm-3 script from raw.githubusercontent.comlatest stable
terraformBinary from releases.hashicorp.com (.zip)Pin to .pre-commit-config.yaml rev or latest
tflintGitHub release binary (.zip)Pin to .pre-commit-config.yaml rev
actionlintGitHub release binary (.tar.gz)Pin to .pre-commit-config.yaml rev
helm-docsGitHub release binary (.tar.gz)Pin to .pre-commit-config.yaml rev
gitleaksGitHub release binary (.tar.gz)Pin to .pre-commit-config.yaml rev
justGitHub release binary (.tar.gz)latest stable

All download sources are compatible with the "Limited" network allowlist (github.com, releases.hashicorp.com, raw.githubusercontent.com, pypi.org).

Step 4: Create or update scripts/install_pkgs.sh

Create scripts/install_pkgs.sh with:

  1. Remote guard — exit immediately if not in a remote session: if ["${CLAUDE_CODE_REMOTE:-}"!= "true"]; then exit 0 fi
  2. Idempotency guard per tool — use command -v <tool> before downloading: if! command -v helm >/dev/null 2>&1; then # install helm fi
  3. Install to /usr/local/bin — writable without sudo in the base image (runs as root).
  4. Temp directory cleanup — use a temp dir per download, remove it after: tmp_dir=$(mktemp -d) #... download and extract... rm -rf "$tmp_dir"
  5. unzip bootstrap — terraform and tflint ship as .zip; install unzip via apt if absent.
  6. One install block per tool in this order: pre-commit, helm, terraform, tflint, actionlint, helm-docs, gitleaks, just.

Make the script executable: chmod +x scripts/install_pkgs.sh

Step 5: Update .claude/settings.json

  1. Read existing .claude/settings.json (or start from {} if absent)
  2. Add or merge the SessionStart hook:
"hooks": {
  "SessionStart": [
    {
      "matcher": "",
      "hooks": [
        {
          "type": "command",
          "command": "bash \"$CLAUDE_PROJECT_DIR/scripts/install_pkgs.sh\""
        }
      ]
    }
  ]
}
  1. Preserve all existing permissions and other keys — do not overwrite them.

Step 6: Verify and summarise

Print a final summary:

Web session configuration complete
===================================
scripts/install_pkgs.sh  [CREATED/UPDATED]
.claude/settings.json    [CREATED/UPDATED]

Tools configured: helm, terraform, tflint, actionlint, gitleaks, just, pre-commit

Next steps:
1. Commit both files: git add scripts/install_pkgs.sh .claude/settings.json
2. Smoke-test locally: CLAUDE_CODE_REMOTE=true bash scripts/install_pkgs.sh
3. Run again to verify idempotency: CLAUDE_CODE_REMOTE=true bash scripts/install_pkgs.sh
4. Start a remote session on claude.ai/code and confirm tools are available

Agentic Optimizations

ContextCommand
Check only (CI audit)/configure:web-session --check-only
Auto-fix with detected tools/configure:web-session --fix
Override tool list/configure:web-session --fix --tools helm,terraform,gitleaks
Smoke-test install scriptCLAUDE_CODE_REMOTE=true bash scripts/install_pkgs.sh
Verify idempotencyCLAUDE_CODE_REMOTE=true bash scripts/install_pkgs.sh (run twice)

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

36.25%
按下载量换算96

Claude

27.66%
按下载量换算73

Cursor

18.36%
按下载量换算48

Gemini CLI

10.31%
按下载量换算27

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills