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 agentmods add skills/peiiii/nextclaw/development-designnpx skills add Peiiii/nextclaw --skill development-designgit clone --depth 1 https://github.com/Peiiii/nextclawWrote 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/peiiii/nextclaw/development-design)<a href="https://agentmods.dev/skills/peiiii/nextclaw/development-design"><img src="https://agentmods.dev/badge/skills/peiiii/nextclaw/development-design.svg" alt="Measured on agentmods" 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 | $0.00056 | $0.01504 |
| Opus 5 | $0.00028 | $0.00752 |
| Sonnet 5 | $0.00011 | $0.00301 |
| Haiku 4.5 | $0.00006 | $0.00150 |
Grade A, and why
development-design 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 today.
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 — 88 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Development Design
目标
回答“采用哪条主链路,为什么”。核对证据和文档层级;证据不足时返回调查,不用假设计补洞。
稳定设计写入 docs/designs/YYYY-MM-DD-<topic>.design.md,局部方案可直接回复;路径显然仍要判断,不为形式建文档。
产物分级
进入本阶段必须形成设计结论并输出 design-document: required | not-required;feature 和 bugfix 使用同一产物门,不按类型机械决定。
轻量设计仅限单一 owner、无跨层合同/状态/兼容和真实分叉,且改动局部可逆、不复用;仍须写清问题、主链路、理由与验证。
出现以下任一情况,必须写入或更新稳定的 docs/designs 文档:
- L3-L4,或跨 package、runtime、projection、transport、持久化边界;
- 用户可见 L2 功能存在交互、信息架构或行为取舍;
- 改变状态 owner、生命周期、不变量、协议、兼容、迁移、fallback 或失败恢复;
- 有两个以上真实可行候选,需要记录选择与放弃理由;
- 设计会跨会话、跨批次、交给他人实现,或预计成为后续判断依据。
L0 文档修正和 lifecycle 可跳过的 L1 单路径改动无需进入;不按 diff、工时或文件数决定是否建文档。
计划门
进入 Implementation 前输出 plan: required | not-required。单批无法可信闭环时使用 project-knowledge-governance 的开发执行 Plan 合同,否则不建;Plan 不是新 phase。
设计合同
只展开与当前任务相关的维度:
- 用户或系统可观察问题;
- producer、owner、consumer 与已有约束;
- 真实分叉时的 2-4 个候选:用户价值、owner、复杂度、可逆性、验证成本及主链路;路径明显不虚构候选;
- 状态、生命周期、不变量、失败/恢复、目录/公共入口/依赖边界;
- 第三方框架/runtime/协议:冻结上游执行、线程、生命周期、资源与错误合同及产品保留职责;偏离须有必要性、官方依据、验证和退出条件;
- 删除或禁止的平行路径,兼容/迁移/fallback 的必要性与退出条件;
- 非目标与最小验证标准。
证据足够时冻结占优方案;仅当选择显著改变用户行为或范围且无法判断偏好时,才请求用户决定。
思考投入
目标、事实、根因或候选不确定,或属高风险决策时,读取自适应方案思考,选最低成本方法。简单可逆的惯例路径直接结论;不机械多方案,也不凭直觉冻结复杂设计。
过度设计门
任何设计进入 Design Ready 前必须完成一次抽象审计:
- 用一个真实用户问题或现有调用链写出入口到结果的最小完整路径;接口、字段和示例必须服务这条路径。
- 先判断证据属于单次实例、局部重复还是跨场景稳定不变量;设计结论、抽象和公共合同的层级不得高于证据层级,单个案例不得直接升级为全局机制或长期优先级。
- 选择能完整解决问题的最低层级和最窄 owner,优先复用现有主链路;只有多个独立场景出现同一变化边界时才扩大适用范围,未来可能性不能替代当前证据。
- 区分核心语义完整与基础设施一次做全:恢复、权限和幂等不能省略,没有真实消费者的通用性也不能借完整性之名进入实现范围。
- 双向比较:过小端是否固化错误 owner、重复生命周期或已知迁移债,过大端是否增加无消费者抽象、状态和验证面;选择全生命周期净复杂度最低的平衡结构。防止过度设计不等于最小改动、最少文件或 MVP。
新增/改变抽象或公开闭集 variant 时必须读取架构设计原则,写清保留、删除、延后项;未来成本未付清不得 Design Ready。
涉及用户可见功能、信息架构、入口、浏览/搜索、选择或反馈时,读取功能设计关;功能闭环未冻结,不用接口代替功能设计。
跨 runtime、journal、projection、transport 或 UI 的状态型设计补普通、运行、重试、取消、中断、刷新恢复和旧数据矩阵;局部无状态方案不填。
What ships with it
5 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
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.
- today Changed · -1 lines 95d9d3cec3dc
- 4d ago First seen · 89 lines · 56 tokens per session scan A 13c4ce5d384f
development-design is a skill published in the GitHub repository Peiiii/nextclaw (253 stars, last pushed today), licensed MIT. It adds 56 tokens to every session and 1,504 once invoked, about $0.0003 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.
Other skills, from other repositories
ha-skill-creator
Create, edit, improve, or audit Hope Agent skills. Use when the user wants to: (1) create a new skill from scratch, (2) edit or improve an existing skill, (3) review or clean up a SKILL.md file, (4) run evaluations to test skill effectiveness, (5) optimize skill descriptions for better trigger accuracy. Trigger…
ha-browser
Hope Agent browser automation — the standard status → tabs → snapshot → act loop, stale-ref recovery rules, and what to do when login / 2FA / captcha / camera-prompt / dialog blocks progress. Load this skill whenever you reach for the browser tool. Trigger on: user asks the agent to open / control / click / scrape /…
ha-logs
Self-service diagnostics — query Hope Agent's local SQLite databases (logs / sessions / background jobs) directly via the exec tool to investigate problems, analyze usage, and locate root causes. Trigger on: user reports something broken / failing / slow / stuck / not responding ('X 不工作', 'X 报错', 'X 卡住', '为什么 X 失败'…
ha-pet-import
Safely import, select, switch, or enable a compatible desktop pet in Hope Agent. Resolve packages from any origin, including local folders, zip archives, pet.json plus a sprite, PNG/WebP atlases, chat attachments, repository or cloud files, direct HTTPS artifact URLs, and download pages. Use whenever a user asks to…
china-translate
中英互译 + 本地化 - 技术翻译、UI本地化、文化适配、避免机翻腔.
email-draft
Use when the user asks to draft, polish, translate, or reply to an email. Produces a clean draft with subject line, greeting, body, and sign-off, plus a pre-send self-check.