harness-init

A guided setup workflow for new software projects using Harness, a development environment for running, observing, and judging test cases. It helps make decisions about the technology stack, infrastructure, architecture, documentation, and safety rules.

In plain words
What is it for?
Use it to choose a project baseline, set up local services, define logging and tracing, create architecture documents and records, and verify the environment with end-to-end cases.
Why use it?
It turns early project decisions into a documented, testable foundation instead of leaving setup choices scattered or implicit. Completion requires health checks, migrations, tracing, a sample case, and destructive-operation protections to pass.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/wallkop/opc-develop/harness-init
Any agent
npx skills add wallkop/opc-develop --skill harness-init
Clone the repo
git clone --depth 1 https://github.com/wallkop/opc-develop

Made for: Claude Code, Codex.

Per session 86 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 763 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00086 $0.00763
Opus 5 $0.00043 $0.00381
Sonnet 5 $0.00017 $0.00153
Haiku 4.5 $0.00009 $0.00076

Measured 2d ago against content hash c98ad14d72e0, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

harness-init 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 2d ago.

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.

skills/harness-init/SKILL.md · 45 lines

What it actually says

harness-init

流程与 Harness 解耦:本 skill 是流程侧伸向 Harness 的手——只负责引导决策与搭建, 建成什么样以 ${CLAUDE_PLUGIN_ROOT}/docs/harness.zh-CN.md 为权威。 技术选型是难以回头的重决策:每个问题给出推荐方案与理由,由架构师确认, 确认的选型与理由记入奠基 ADR。

引导提问(按建设路线分轮,每轮 5-10 问)

  1. 项目画像:应用形态(中后台 / 桌面 / 服务)?目标部署环境?团队既有约定与偏好? → 选定脚手架基线(参考 harness 文档第 2 章的形态基线)与语言约定。
  2. 操作面先行:服务怎么启动?日志采用什么结构?trace_id 如何创建与传播? → 落地 run / observe 两个动词与结构化日志。
  3. 同构基础设施:数据库 / 缓存 / 对象存储 / LLM 分别选什么、生产在哪? → 锁定本地 Docker Compose 同版本镜像(禁 latest、禁伪平替)、Migration 工具、 受保护资源声明(protected_resources)。
  4. 文档最小集与立项决策:AGENTS.md + 产品/技术地图 + 规则;执行立项决策—— 全景架构图初版(Mermaid 文本)、初始 domain.md 集、奠基 ADR(0001 系列)。
  5. 裁决面:drive 沙箱(clone → act → observe → verdict → destroy)与 机器可读 Case 格式落地;破坏性保护硬校验、无跳过参数。
  6. 不预建:探索面 Mock 机制与公共库——由第一个真实 Demo 需求 / 第二个项目拉动 (拉动式建设,总原则第 2 条)。

验证用例(环境必须被证明是 work 的)

初始化不算完成,直到以下用例全绿并留痕:

  • harness run 能起停全栈,健康检查通过;
  • 一条贯穿 trace_id 的请求可被 harness observe trace 完整串出时间线;
  • 从空库执行全量 Migration 成功;
  • 一条最小 seed Case 经 harness drive 完成 clone → 裁决 → 销毁, 产出 PASS 与判定四件套证据;
  • 破坏性保护硬校验生效:配置指向 main 时拒绝启动,且不存在跳过保护的参数。

产出

可用的开发环境(脚手架 + 同构基础设施 + 操作面 + 裁决面)、文档最小集与立项决策 (全景图 / domain.md / 奠基 ADR)、全绿的环境验证用例证据。

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. 2d ago First seen · 45 lines · 86 tokens per session scan A c98ad14d72e0

Subscribe to this mod's changes

harness-init is a skill published in the GitHub repository wallkop/opc-develop (11 stars, last pushed 1mo ago), licensed MIT. It adds 86 tokens to every session and 763 once invoked, about $0.0004 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

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

babysit-pr

Babysit a GitHub pull request after creation by continuously polling review comments, CI checks/workflow runs, and mergeability state until the PR is merged/closed or user help is required. Diagnose failures, retry likely flaky failures up to 3 times, auto-fix/push branch-related issues when appropriate, and keep…

openai/codex · 114 tokens

imagegen

Generate or edit raster images when the task benefits from AI-created bitmap visuals such as photos, illustrations, textures, sprites, mockups, or transparent-background cutouts. Use when Codex should create a brand-new image, transform an existing image, or derive visual variants from references, and the output…

openai/codex · 113 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

next-cache-components-optimizer

Drive a Next.js route to instant navigation by setting up an agentic loop, under Cache Components / PPR, on initial load (hard navigation) and client-side navigation (soft navigation). Encode the goal as a failing @next/playwright instant() e2e and work it to green, one verified route at a time; the shipped test then…

vercel/next.js · 170 tokens