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.
npx skills add ZhangShenao/harness9 --skill agent-devgit clone --depth 1 https://github.com/ZhangShenao/harness9Wrote 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.
[](https://agentmods.dev/skills/zhangshenao/harness9/agent-dev)<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.
<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>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.
| Model | Per session | Once 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 |
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.
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 — 返回结果
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.
- 14d ago First seen · 99 lines · 44 tokens per session scan A 4a3f251c8843
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.
agent-dev compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| agent-devZhangShenao/harness9 | Skill | 166 | yesterday | MIT | A | 44 | Claude Code, Codex |
| golang-testingaffaan-m/ECC | Skill | 317k | 5d ago | MIT | A | 37 | Claude Code, Kiro |
| golang-patternsaffaan-m/ECC | Skill | 317k | 5d ago | MIT | A | 45 | Claude Code, Kiro |
| golang-testingsamber/cc-skills-golang | Skill | 4.1k | 5d ago | MIT | A | 115 | Claude Code |
| golang-uber-fxsamber/cc-skills-golang | Skill | 4.1k | 5d ago | MIT | A | 122 | Claude Code |
| golang-samber-oopssamber/cc-skills-golang | Skill | 4.1k | 5d ago | MIT | A | 74 | Claude Code |
| ax-go-agent-optimizeax-llm/ax | Skill | 3.0k | yesterday | Apache-2.0 | A | 51 | Claude Code, Codex |