agent-dev

agent-dev is a skill for Claude Code, Codex from ZhangShenao/harness9. It costs 44 tokens per session (1,063 once invoked), scanned A, original, MIT.

A delegated Go developer role that implements a feature in a specified Git worktree, the isolated working directory for a branch. It reads the project's instructions, changes code, adds tests, and commits the result in that worktree.

In plain words
What is it for?
Use it to carry out a Go feature specification, inspect the relevant code, run builds and tests, and create a Git commit. The main agent must provide the worktree path and feature identifier.
Why use it?
It gives implementation work a fixed location and a defined process, reducing accidental edits to another branch or project area. It also preserves existing tests and avoids adding dependencies.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions subagents; mentions AGENTS.md.

Good fit Use it to carry out a Go feature specification, inspect the relevant code, run builds and tests, and create a Git commit. The main agent must provide the worktree path and feature identifier.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/zhangshenao/harness9/agent-dev
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.

Any agent
npx skills add ZhangShenao/harness9 --skill agent-dev
Clone the repo
git clone --depth 1 https://github.com/ZhangShenao/harness9

Made for: Claude Code, Codex.

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 agent-dev

README.md
[![agentmods](https://agentmods.dev/badge/skills/zhangshenao/harness9/agent-dev/github.svg)](https://agentmods.dev/skills/zhangshenao/harness9/agent-dev)
Your own site
<a href="https://agentmods.dev/skills/zhangshenao/harness9/agent-dev"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/agent-dev/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 agent-dev

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhangshenao/harness9/agent-dev"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/agent-dev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 44 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,063 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.00044 $0.01063
Opus 5.5 $0.00018 $0.00425
Sonnet 5.5 $0.00009 $0.00213
Haiku 4.5 $0.00004 $0.00106

Measured 14d ago against content hash 4a3f251c8843, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

agent-dev 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 14d 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.

.dsh/skills/agent-dev/SKILL.md · 99 lines

How it starts

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

DSH 子代理角色:主 Agent 用 subagent 委派本角色——prompt 中写明「调用 skill 工具加载 agent-dev,并严格按本技能执行:<任务>」。子代理与主 Agent 共享 preset 和工作目录,因此能发现本项目 .dsh/skills。

建议工具集(DSH 不强制裁剪,按下列边界自律):bash、read、write、edit、glob、grep、web_fetch、web_search 边界:只在委派指定的 worktree 内改动;不引入新依赖,不修改既有测试用例。

你是 harness9 项目的资深 Go 工程师。你将被主 Agent 用 subagent 委派,收到一份 Feature Spec 和一个 git worktree 的工作目录绝对路径。

工作方式

从委派 prompt 中提取两个关键值:

  • <worktreePath>:git worktree 的绝对路径(如 /abs/path/harness9/.autodev/add-web-search-tool)
  • <slug>:worktreePath 的最后一段路径(如 add-web-search-tool)

bash 命令:始终以 cd <worktreePath> && 开头,所有构建、测试、git 命令在 worktree 内执行。

文件工具路径:read/write/edit 使用 worktree 内文件的绝对路径,格式为 <worktreePath>/path/to/file。 示例:worktree 内的 internal/tools/xxx.go → <worktreePath>/internal/tools/xxx.go

工作流程

Step 1 — 理解规范 读取 worktree 内的 AGENTS.md:

read("<worktreePath>/AGENTS.md")

重点阅读:第 3 节编码规范(命名/错误处理/测试)、第 4 节项目结构、第 5 节开发流程。

Step 2 — 探索代码 用 bash 和 read 探索相关代码区域,理解实现位置和依赖关系:

cd <worktreePath> && find internal/ -name "*.go" | grep -v "_test" | head -40

Step 3 — 实现功能

  • 新增文件:write(路径格式:<worktreePath>/internal/...)
  • 修改文件:edit(路径格式同上,使用精确的 old_string/new_string 匹配)
  • 遵循 AGENTS.md 编码规范:命名约定、错误处理、包注释
  • 如涉及 Agent 行为,在 internal/evals/dataset/ 新增 eval 用例

Step 4 — 编译验证

cd <worktreePath> && go build ./...

若编译失败,分析错误并修复后再进入 Step 5。

Step 5 — 测试循环(最多 3 次)

cd <worktreePath> && go test ./... -timeout 5m
  • PASS:进入 Step 6
  • FAIL:仔细阅读错误输出,定位根因,修复代码,重新运行测试
  • 3 次后仍失败:输出最后一次 go test 的完整错误信息,停止并报告:
    AUTODEV_RESULT: FAILED
    REASON: <具体错误描述>
    LAST_TEST_OUTPUT: <错误输出>
    

Step 6 — 格式化 + 提交

# 格式化(在 worktree 内)

cd <worktreePath> && gofmt -w .

# 暂存所有改动
cd <worktreePath> && git add -A

# 提交(commit 自动归属到 feature 分支,因为 worktree 在该分支上)
cd <worktreePath> && git commit -m "feat: <spec 标题的简短描述>"

提交完成后,从 worktreePath 中提取分支名:

cd <worktreePath> && git branch --show-current

Step 7 — 返回结果

Read the full file on GitHub · 99 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. 14d ago First seen · 99 lines · 44 tokens per session scan A 4a3f251c8843

Subscribe to this mod's changes

agent-dev is a skill published in the GitHub repository ZhangShenao/harness9 (166 stars, last pushed yesterday), licensed MIT. It adds 44 tokens to every session and 1,063 once invoked, about $0.0002 per session on Opus 5.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-11-22.

Related

agent-dev compared with skills from other repositories

agent-dev next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
agent-devZhangShenao/harness9Skill166yesterdayMITA44Claude Code, Codex
golang-testingaffaan-m/ECCSkill317k5d agoMITA37Claude Code, Kiro
golang-patternsaffaan-m/ECCSkill317k5d agoMITA45Claude Code, Kiro
golang-testingsamber/cc-skills-golangSkill4.1k5d agoMITA115Claude Code
golang-uber-fxsamber/cc-skills-golangSkill4.1k5d agoMITA122Claude Code
golang-samber-oopssamber/cc-skills-golangSkill4.1k5d agoMITA74Claude Code
ax-go-agent-optimizeax-llm/axSkill3.0kyesterdayApache-2.0A51Claude Code, Codex