xdev-iterate

xdev-iterate is a skill for Claude Code, Codex from Minokun/xdev. It costs 10 tokens per session (952 once invoked), scanned A, original, MIT.

A fast workflow for small software changes, limited to a few files and modules without new dependencies or public API changes. It uses test-driven development (writing a failing test first, then making it pass) and finishes with verification and delivery.

In plain words
What is it for?
Use it for small bug fixes, style adjustments, wording changes, and corrections to existing interfaces that do not add new routes or complex interactions.
Why use it?
It gives small changes a clear scope check and prevents a quick fix from quietly becoming a larger or riskier project. It also catches cases where a shared utility affects many parts of the codebase.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it for small bug fixes, style adjustments, wording changes, and corrections to existing interfaces that do not add new routes or complex interactions.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/minokun/xdev/xdev-iterate
View source ↗ Minokun/xdev
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 Minokun/xdev --skill xdev-iterate
Clone the repo
git clone --depth 1 https://github.com/Minokun/xdev

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 xdev-iterate

README.md
[![agentmods](https://agentmods.dev/badge/skills/minokun/xdev/xdev-iterate.svg)](https://agentmods.dev/skills/minokun/xdev/xdev-iterate)
Your own site
<a href="https://agentmods.dev/skills/minokun/xdev/xdev-iterate"><img src="https://agentmods.dev/badge/skills/minokun/xdev/xdev-iterate.svg" alt="Measured on agentmods" height="20"></a>
Per session 10 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 952 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 pass 7 Sept 2026
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.00010 $0.00952
Opus 5 $0.00005 $0.00476
Sonnet 5 $0.00002 $0.00190
Haiku 4.5 $0.00001 $0.00095

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

Security

Grade A, and why

xdev-iterate 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/xdev-iterate/SKILL.md · 57 lines

What it actually says

/xdev-iterate — 快速迭代流程

改动描述: 用户消息(手势之外的原文)

本流程 = /xdev-full-dev 阶段 3–4 去掉设计与计划,直接以用户描述为 Intent Contract。 硬规则 1–5 全部生效。本文件只写 iterate 不同于 full-dev 的部分:范围门控与升级触发。

阶段 0:范围门控(先判断,再动手)

全部满足才留在本流程:改动 <100 行、≤5 文件、≤2 模块、不引新依赖、不改公开 API 契约。

命中任一立即升级,不看行数

信号 去向
金融计算 / 资金逻辑;认证 / 权限 / 安全;数据库 schema;第三方 API 集成;已发布 API 行为 /xdev-full-dev(条件深度审查会触发)
新增页面 / 路由 / 含 ≥2 交互状态的新组件 /xdev-full-dev(需要设计阶段)
描述的其实是错误行为而非改动需求 /xdev-bugfix

留在本流程的 UI 改动仅限:现有组件的样式 / 文案 / 间距微调、现有 UI 的显示修正。

影响面门禁(改动目标是共享 util / service / config / 协议文件时必做): 用一次限域 rg 列出直接调用方(file:line)。调用方跨 ≥2 顶层目录或 ≥5 文件 → 升级 full-dev。 查不到调用方但目标是共享文件 → 写明 "影响面未知",不得声称影响面为空

判定后告知用户分流结果,继续执行。

分支:在 main/master 上则先 git switch -c xdev-iterate-<slug>(或 worktree;注意 worktree 不带 .env* 与构建产物)。

阶段 1:TDD 改动(= full-dev 阶段 3,单任务)

  1. 找到相关现有测试;没有则先补一条覆盖当前行为的测试
  2. 更新 / 新增测试描述目标行为,跑一次确认真的失败
  3. 最小实现到通过;不顺手重构、不做描述之外的事
  4. 项目约定的全量测试 + lint/build,相比改动前无新增失败(既有失败与本次 diff 无关 → 记为 BASELINE_DEBT,不修)
  5. commit:<fix|feat|perf|refactor|chore>: <description>

涉及 UI:用项目可用的 e2e / 截图手段确认受影响页面无回归(不评分)。

Diff 后复核git diff --name-only 与阶段 0 预估的影响面对比——多出的文件要么有一句理由,要么升级 full-dev。同时列出需要同步的文档 / 测试 / release notes。

阶段 2:交付(= full-dev 阶段 4)

  • 小改动(单文件、无行为变化):推到分支即止
  • 其余:按 /xdev-full-dev 阶段 4——pre-landing 对抗审查(附录 D)→ CHANGELOG 一行 → commit + push + PR → 合并后清理 worktree

升级信号(任一出现即切换,不硬撑)

阶段 0 阈值被突破 · 测试暴露的失败不是本次改动引入 → /xdev-bugfix · 需要新依赖或改 API → /xdev-full-dev · FIX_REQUIRED 2 轮未解 → /xdev-bugfix · 改动的真实目的是验证假设/找规律(要研究结论而非代码交付) → /xdev-research

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 Changed 898b0750d7c1
  2. 4d ago First seen · 57 lines · 10 tokens per session scan A 28ed6e421f22

Subscribe to this mod's changes

xdev-iterate is a skill published in the GitHub repository Minokun/xdev (24 stars, last pushed yesterday), licensed MIT. It adds 10 tokens to every session and 952 once invoked, about $0.0001 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-09-04.