nw-command-design-patterns

仓库创建 2026年2月13日最近提交 1 个月前SkillHot 收录 22 天前
▸ 精选理由

为技能/调度器提供统一的命令格式与成功判据范式,便于维护。

这个 Skill 做什么

命令定义文件的最佳实践、模板与反模式示例库。

给命令定义文件提供一套实践模板、规模目标和反模式示例,包含像 forge.md 这样的金标准示例供参考。适合写 dispatcher、命令清单或交接文件时用,能帮你把 header、触发器、成功准则和下游交接都规范化。特别强调可读性与可移植性,减少维护成本与误用风险。

▸ 展开 SKILL.md 英文原文

Best practices for command definition files - size targets, declarative template, anti-patterns, and canonical examples based on research evidence

开发编程命令设计规范化示例模板通用
586
Stars
59
Forks
40
仓库内 Skill
+16
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/nWave-ai/nWave/main/nWave/skills/nw-command-design-patterns/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/nWave-ai/nWave/main/nWave/skills/nw-command-design-patterns/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Command Design Patterns

## The Forge Model (Gold Standard)

`forge.md` at 40 lines is the reference dispatcher. Contains: header (wave, agent, overview) | Agent invocation (name + command + config) | Success criteria (checklist) | Next wave handoff | Expected outputs. Every dispatcher should aspire to this pattern.

## Command Categories

| Category | Description | Size Target | Examples |
|----------|-------------|-------------|----------|
| Simple | Direct action, minimal delegation | 40-80 lines | forge, start, version, git |
| Dispatcher | Delegates to one agent with context | 40-150 lines | research, review, execute |
| Orchestrator | Coordinates multiple agents/phases | 100-300 line
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有