local-sandbox-fix

local-sandbox-fix is a skill for Claude Code from ZTE-AICloud/Co-OmniSpec. It costs 54 tokens per session (1,926 once invoked), scanned A, original, MIT.

An automated workflow that runs a project’s local CI checks, analyzes failures, fixes code, reviews the changes, and tests again, for up to three rounds.

In plain words
What is it for?
Running the project’s local test process, applying fixes based on failures, requesting a code review, and recording each repair attempt.
Why use it?
It removes the need to repeatedly diagnose failed checks and coordinate fixes by hand before submitting code.

Skill for Claude Code

Written for Claude Code: ${CLAUDE_PLUGIN_ROOT} variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the omni-dsdd plugin — 40 skills, 16 agents, 1 hook shipped together

Good fit Running the project’s local test process, applying fixes based on failures, requesting a code review, and recording each repair attempt.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add ZTE-AICloud/Co-OmniSpec
Claude Code
/plugin install omni-dsdd

Made for: Claude Code.

Or install omni-dsdd, the plugin that ships this one along with the rest of its 40 skills, 16 agents, 1 hook.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for local-sandbox-fix

README.md
[![agentmods](https://agentmods.dev/badge/skills/zte-aicloud/co-omnispec/local-sandbox-fix/github.svg)](https://agentmods.dev/skills/zte-aicloud/co-omnispec/local-sandbox-fix)
Your own site
<a href="https://agentmods.dev/skills/zte-aicloud/co-omnispec/local-sandbox-fix"><img src="https://agentmods.dev/badge/skills/zte-aicloud/co-omnispec/local-sandbox-fix/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for local-sandbox-fix

Your own site · 80×15
<a href="https://agentmods.dev/skills/zte-aicloud/co-omnispec/local-sandbox-fix"><img src="https://agentmods.dev/badge/skills/zte-aicloud/co-omnispec/local-sandbox-fix.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 54 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,926 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00054 $0.01926
Opus 5 $0.00027 $0.00963
Sonnet 5 $0.00011 $0.00385
Haiku 4.5 $0.00005 $0.00193

Measured 11d ago against content hash 9a3b3bbe0e45, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-11, from the pricing page.

Security

Grade A, and why

local-sandbox-fix scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 11d ago.

The scan reads SKILL.md. This mod also ships 7 executable files (scripts/bash/local-sandbox-fix-common.sh, scripts/bash/local-sandbox-fix-gate.sh, scripts/bash/local-sandbox-fix-init-harness.sh, …), listed below but not scanned — reading those needs a real analyzer, not pattern matching.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

omni-dsdd/skills/local-sandbox-fix/SKILL.md · 152 lines

How it starts

The opening of the file, as written. The whole thing — 152 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Local Sandbox 自动修复

编排「本地沙盒 CI → 失败分析 → 修码 → omni-dsdd:code-review → 重测」闭环,最多 3 轮。详细设计见 docs/local-sandbox-fix-design.md

执行主线:环境初始化 → Step 1 init+gate0 → Step 2 主循环(gate 2-start-ci7-record-iteration,最多 3 轮)。


硬约束

  • 工程路径 = CLAUDE_WORKING_DIR(= run_local_ci.py 的 workdir);禁止 git rev-parse --show-toplevel
  • gate_exit≠0 时不得进入下一步
  • gate 2~3 之间禁止修改代码
  • 禁止删除文件规避检查
  • 所有路径从 source "${HARNESS_DIR}/env.sh" 获取
  • 禁止绕过 harness 手工执行 pytestgo testnpm testtoxlocal-ci;所有本地 CI/test 只能由 gate 2-start-ci7-record-iteration 驱动
  • devops_config.yaml 缺失时,gate 0-init 会写出 status=success, skipped=true 并结束;此时不得补跑任何测试、不得修代码/测试、不得把普通 UT 通过当成本 stage 结果

环境初始化

进入 Step 1 之前的就绪准备:检查/补全 CLAUDE_PLUGIN_ROOTCLAUDE_WORKING_DIR,校验 harness 脚本,自动从记录文件解析 FEATURE_DIR(未传 --feature-dir 时由 harness 读取 .active-feature / changes/*/.runs/.omnispec-state.json 等记录,解析不到则报错)。详见 references/stages/00-environment-init.md


执行契约与产物

编排 / 落盘 / 校验分离:Agent 负责 LLM 修码与 omni-dsdd:code-review;Harness gate 负责 cp、启动 CI、等待、解析 JSON、验 diff、验报告。

文件 用途
${FEATURE_DIR}/.runs/local-sandbox-fix/paths.json 路径真值源
${HARNESS_DIR}/env.sh source 后导出绝对路径
${HARNESS_DIR}/run-manifest.json 分步门禁、断点续跑
${HARNESS_DIR}/fix-context.json CI 失败时修码上下文

契约:references/harness-contract.json


Step 1 — init + gate 0-init

主循环(Step 2)的地基:init 只建地基(目录/路径/状态),gate 0-init 做就绪校验 + 文件初始化(devops_config 的 cp / 缺失 skip)。本步不碰业务代码、不跑 CI。若缺失 devops_config.yaml,gate 0-init 已代表本 stage 成功 skip,必须立即停止,不得再执行普通 UT 或自动修复。详见 references/stages/01-init-and-gate0.md


Step 2 — 主循环

每轮开始前 必须 resume:

python3 "${CLAUDE_PLUGIN_ROOT}/skills/local-sandbox-fix/scripts/python/local_sandbox_fix_harness.py" \
  resume --harness-dir "${HARNESS_DIR}"

Read the full file on GitHub · 152 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 11d ago First seen · 152 lines · 54 tokens per session scan A 9a3b3bbe0e45

Subscribe to this mod's changes

local-sandbox-fix is a skill published in the GitHub repository ZTE-AICloud/Co-OmniSpec (54 stars, last pushed 1mo ago), licensed MIT. It adds 54 tokens to every session and 1,926 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.

Related

Other skills, from other repositories

systematic-debugging

4-phase root cause debugging: understand bugs before fixing.

NousResearch/hermes-agent · 16 tokens

langsmith-observability

LLM observability platform for tracing, evaluation, and monitoring. Use when debugging LLM applications, evaluating model outputs against datasets, monitoring production systems, or building systematic testing pipelines for AI applications.

davila7/claude-code-templates · 45 tokens

experimental-code-coverage-local-debugger

Runs code coverage locally via Universal Test Runner (UTR) or helper scripts, mimicking LUCI trybots. Activate when CQ tryjobs fail or underreport coverage, to test local GN/recipe repairs before uploading, or to debug hermetic crashes.

chromium/chromium · 59 tokens

adversarial-reviewer

Adversarial code review that assumes bugs exist and hunts for them. Use when asked to review code, find bugs, audit for correctness, stress-test a PR, or when someone says "tear this apart" or "what's wrong with this". Give no benefit of the doubt — every line is guilty until proven innocent.

emdash-cms/emdash · 71 tokens

cli-e2e

Write, modify, or debug Docker-based Composio CLI end-to-end tests under ts/e2e-tests/cli, including binary invocation, fixture isolation, output assertions, and package manifests. Use for CLI E2E test suites only; use cli-command for CLI source implementation.

ComposioHQ/composio · 62 tokens

work

Deliver one maintainer-approved EmDash issue, choosing the bug-fix path for a defect and the direct implementation path for an enhancement or task.

emdash-cms/emdash · 31 tokens