360 Secure SkillHub
360 安全技能中心

claude-delegate

该 Skill 通过 bash 脚本将用户明确请求的仓库分析或经批准的代码编辑委派给本地 Claude Code CLI;默认只读并限制工具,编辑需显式批准,结果输出到 stdout。

分类:开发
jlacroix82
jlacroix82
热度 30.53
最近更新 2026-12-03 09:31:27

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add jlacroix82/claude-delegate
兼容性
通用兼容
联网要求
联网要求未确认
数据出网
必须出网
Metadata
name
claude-delegate
description
Delegate explicitly requested repository analysis or approved edits to a verified local Claude Code CLI with a restricted tool list.
version
0.1.1
permissions
["env","exec"]
metadata
{"openclaw":{"requires":{"bins":["bash","git"],"env":["CLAUDE_DELEGATE_BIN","CLAUDE_DELEGATE_SHA256"]}}}

Claude Delegate

Only delegate when the user explicitly asks. The operator sets CLAUDE_DELEGATE_BIN to an absolute path to a trusted standalone Claude Code executable and CLAUDE_DELEGATE_SHA256 to its verified lowercase SHA-256. Use a version that supports the wrapper's options.

bash {baseDir}/scripts/claude-delegate.sh --cwd /path/to/repo --prompt "Summarize the selected code"
  • Read-only is the default and exposes the Read, Glob, and Grep tools. Only after the user approves edits, pass --sandbox workspace-write --approve-write; this adds Edit and Write. These are Claude Code permission modes, not an operating-system sandbox. For hard filesystem isolation, run Claude Code in an externally isolated environment.
  • Use --prompt-file or --stdin-file for explicitly approved inputs. Repository context, prompts, and stdin may go to the configured Claude provider. Do not send credentials or private data without authorization.
  • The wrapper requests no session persistence and disables hooks and project MCP configuration for the invocation. Output is on stdout; it can contain private repository context. Use --output-format for JSON or stream JSON when needed.

Version 0.1.1 removes permission bypass, arbitrary tool overrides, added directories, and wrapper-created logs. Workspace edits now require explicit approval.