技能 编程开发 代码智能体团队部署审计

代码智能体团队部署审计

v20261023
coding-agent-rollout
此技能用于在团队或组织中部署和审计 Claude Code。它审查共享设置权限,批准 MCP 服务器和插件,审计 CLAUDE.md 层级,并安全地测量采用率。包含四个确定性脚本,用于 linting、库存、指令和跟踪使用情况,不暴露机密。
获取技能
352 次下载
概览

Claude Code Team Rollout

Portability: 4 stdlib scripts, no network, no LLM calls. They read config and counts; they change nothing.

One engineer's Claude Code setup is a preference. A team's is a policy. Settings
merge from five scopes, permissions.allow arrays combine across files, and
deny beats ask beats allow wherever it is written, so nobody can read the
effective policy from a single file. This skill makes it readable, then checks it.

Workflow

# 1 - Guardrails: lint shared, local and managed settings together.
python scripts/settings_linter.py --repo . --managed /etc/claude-code/managed-settings.json
# 2 - Inventory: every MCP server, plugin and marketplace, against your approved list.
python scripts/mcp_plugin_inventory.py --repo . --allowlist approved.json
# 3 - Instructions: what CLAUDE.md actually loads, layer by layer.
python scripts/claude_md_layering_audit.py --repo .
# 4 - Adoption: each member runs this locally and shares only the JSON counts.
python scripts/adoption_tracker.py --member alice --output json > alice.json
python scripts/adoption_tracker.py --merge *.json --seats 12 --weeks-since-launch 6

Start from assets/managed-settings.example.json:
bypass mode disabled, secrets denied, risky commands on ask, managed hooks
only, an MCP and marketplace allowlist. Ship it through MDM before the first
seat; policy added after habits form becomes a negotiation.

What blocks (exit 4)

  • Blanket shell allows (Bash, Bash(*)) and pre-approved destructive commands

(force push, rm -rf, sudo, pipe-to-shell, publish, infra apply).

  • A literal credential in a shared settings env block, a committed .mcp.json, or a committed CLAUDE.md.
  • .claude/settings.local.json committed to git.
  • An MCP server, plugin or marketplace missing from the approved list.

Warnings cover dead rules (an allow that a deny shadows, mcp__* in allow),
enableAllProjectMcpServers, unpinned npx servers, plain-http remotes,
network-calling hooks, broken or too-deep @imports, duplicated or
contradictory instructions, and resident CLAUDE.md size.

Hard rules

  1. Policy lives in managed settings. Project files cannot enable bypass mode

or telemetry, and a team guardrail in a file anyone can edit is a suggestion.

  1. Approve MCP servers by name, URL or command, never by enableAllProjectMcpServers.
  2. Pin what runs. Unpinned npx/uvx servers and unpinned marketplaces change under you.
  3. Never collect transcripts. Share the adoption JSON (counts only); transcripts are plaintext and can hold secrets.
  4. Report findings, not verdicts on people. Adoption is a team metric; inactive seats are a rollout question, not a performance one.
  5. Settings keys change fast. An unknown key is INFO; check the settings reference before calling it a typo.

Scripts

ScriptRoleExit codes
scripts/settings_linter.pyS1-S13 across shared, local, user and managed scopes0 · 2 warn · 3 bad input · 4 blocker
scripts/mcp_plugin_inventory.pyOne table of servers, plugins, marketplaces; M1-M60 · 2 · 3 · 4
scripts/claude_md_layering_audit.pyResident vs on-demand layers, imports (4 hops), L1-L110 · 2 · 3 · 4
scripts/adoption_tracker.pyMember counts; team stage PILOT / SPREADING / EMBEDDED / STALLED0 · 2 stalled · 3

All support --sample and --output json.

References and assets

信息
分类 编程开发
名称 coding-agent-rollout
版本 v20261023
大小 31.57KB
更新时间 2026-10-24
语言