autodev

autodev is a skill for Claude Code, Codex from ZhangShenao/harness9. It costs 46 tokens per session (1,224 once invoked), scanned A, original, MIT.

A workflow for turning a feature request into implemented code. It first clarifies the request, writes a specification for approval, then assigns the implementation to a development sub-agent and merges it into the current branch.

In plain words
What is it for?
Use it to clarify feature scope, define acceptance tests, list files, run required checks, create an isolated Git worktree, and coordinate implementation.
Why use it?
It reduces misunderstandings about what to build, how to test it, and which files may change before implementation starts.

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 clarify feature scope, define acceptance tests, list files, run required checks, create an isolated Git worktree, and coordinate implementation.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/zhangshenao/harness9/autodev"><img src="https://agentmods.dev/badge/skills/zhangshenao/harness9/autodev.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 46 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,224 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to high

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • high Privilege Escalation · line 82
    Code accesses credential files (SSH keys, AWS credentials, etc.). This could indicate credential theft attempts.
    Fix: Remove references to credential paths. Use environment variables or secrets managers. For docs, use placeholder paths (e.g., /path/to/config). Never load .env or token files in production code paths.
How audits are shown
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.00046 $0.01224
Opus 5.5 $0.00018 $0.00490
Sonnet 5.5 $0.00009 $0.00245
Haiku 4.5 $0.00005 $0.00122

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

Security

Grade A, and why

autodev 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/autodev/SKILL.md · 131 lines

How it starts

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

/autodev — Feature Auto-Development Workflow

当用户输入 /autodev <功能描述> 时,你按以下三个阶段工作。


Phase 1: 需求澄清

首先用 read 读取 AGENTS.md,了解项目当前模块、架构和规范(重点:第 4 节项目结构、第 5 节开发流程)。

然后向用户提 2-3 个关键澄清问题,每次只问一个:

  1. 功能边界:明确实现什么、不实现什么
  2. 验收标准:什么样的测试证明功能完成(单元测试?eval 用例?)
  3. 影响范围:新增文件为主还是修改已有模块

2-3 轮澄清后直接进入 Phase 2,不要过度追问。


Phase 2: Spec 生成与确认

以如下格式生成并展示 spec:

## Feature Spec: <标题>

### 功能描述
<简洁描述该功能做什么>

### 实现范围
新增文件:
- internal/<pkg>/<file>.go
- internal/<pkg>/<file>_test.go

修改文件:
- cmd/harness9/main.go(如需注册新工具)

### 验收标准
- [ ] go build ./... 通过
- [ ] go test ./... 通过
- [ ] (如涉及 Agent 行为)internal/evals/dataset/ 新增 eval 用例

### 不在范围内
- <明确列出不做的事>

展示完成后,输出以下提示,不要调用任何工具,直接结束本轮回复(DSH 会在本轮结束后等待用户输入):

请确认 spec(输入「确认」继续实现),或告知需要修改的地方。

如果用户要求修改,更新 spec 后重新展示,再次等待确认。 只有用户明确输入「确认」后才进入 Phase 3。


Phase 3: 前置检查 + 委派实现

3.1 前置检查

依次用 bash 执行以下检查,任一失败则停下来告知用户并等待修复:

# 检查 Go 已安装(项目要求 1.25+)
go version
# 检查 git 可用
git --version

DSH 侧无需额外沙箱配置:子代理与主 Agent 使用同一会话权限预设。若会话处于 read-only 预设,先切到 workspace-write(权限不足时向用户说明,不要绕过审批)。

3.2 创建 git worktree

从 spec 标题生成 slug(全小写,空格替换为 -,去掉非 ASCII 字母数字字符),然后执行: 示例:"Add WebSocket 支持" → "add-websocket-"(中文字符去掉)→ 可简化为 "add-websocket-support"

git worktree add .autodev/<slug> -b feature/autodev-<slug>

用 bash 获取绝对路径(macOS 的 readlink 不支持 -f,用下面的写法):

cd .autodev/<slug> && pwd

3.3 委派 dev sub-agent

DSH 用 subagent 工具委派,prompt 必须让子代理自己加载角色技能(子代理不继承本会话上下文):

subagent(
  description="autodev 实现",
  prompt="调用 skill 工具加载 `agent-dev`,并严格按该技能执行。\n\nFeature Spec:\n<spec 全文>\n\n工作目录(git worktree 绝对路径):<worktreePath>"
)

subagent 只返回「已启动」,不会阻塞等待。本轮到此结束,等子代理的完成通知再继续:通知里应包含 AUTODEV_RESULT: SUCCESS/FAILED 与 BRANCH: <branch-name>。

3.4 处理结果

成功(完成通知里 AUTODEV_RESULT: SUCCESS):

从 sub-agent 返回结果中提取 BRANCH: <branch-name>,然后执行合并:

# 将 feature 分支合并到当前分支
git merge feature/autodev-<slug>

若合并成功:

  1. 展示:「✓ 已合并到当前分支:feature/autodev-」
  2. 清理 worktree:git worktree remove .autodev/<slug>

Read the full file on GitHub · 131 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 Changed · -1 lines · +21 tokens per session 45d2978a8974
  2. 3mo ago Changed 8b8285ec1128
  3. 3mo ago First seen · 132 lines · 25 tokens per session scan A 99b1a15a190b

Subscribe to this mod's changes

autodev is a skill published in the GitHub repository ZhangShenao/harness9 (166 stars, last pushed yesterday), licensed MIT. It adds 46 tokens to every session and 1,224 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-08-30.

Related

autodev compared with skills from other repositories

autodev next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
autodevZhangShenao/harness9Skill166yesterdayMITA46Claude Code, Codex
local-ai-agentsmicrosoft/ai-agents-for-beginnersSkill82kyesterdayMITA200Claude Code, Codex
imagegenopenai/codexSkill137ktodayApache-2.0A113Codex
playwright-climicrosoft/playwrightSkill102kyesterdayApache-2.0A19Claude Code
browser-automationopenclaw/openclawSkill396ktodayMITA36Claude Code
free-llm-apismnfst/awesome-free-llm-apisSkill15kyesterdayCC0-1.0A113Claude Code, Codex
next-cache-components-adoptionvercel/next.jsSkill144kyesterdayMITA95Claude Code