nw-command-optimization-workflow

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

面向维护者的实用步骤,能显著降低命令复杂度与重复。

这个 Skill 做什么

将臃肿的命令文件精简为声明式定义的操作流程。

把臃肿的命令脚本拆成精简的声明式定义,按步骤去重、模块化并把领域知识交给 agents 处理。适合面对上百到上千行的巨型命令文件,想提高可维护性和可复用性时用。方法强调抽取重复、清晰分类和采用 forge.md 风格,让文件变得更短更易理解。

▸ 展开 SKILL.md 英文原文

Step-by-step workflow for converting bloated command files to lean declarative definitions

开发编程命令优化重构工作流通用
586
Stars
59
Forks
40
仓库内 Skill
+16
7 日增星
安装 / 使用
给你的 Agent 一句话(通用)
帮我安装这个 skill:https://raw.githubusercontent.com/nWave-ai/nWave/main/nWave/skills/nw-command-optimization-workflow/SKILL.md
或 curl 直取 SKILL.md
curl -fsSL "https://raw.githubusercontent.com/nWave-ai/nWave/main/nWave/skills/nw-command-optimization-workflow/SKILL.md"
SKILL.MD 节选查看完整文件 ↗
# Command Optimization Workflow

## Overview

Convert oversized commands (500-2400 lines) to lean declarative definitions (40-300 lines) by removing duplication, extracting domain knowledge to agents, and adopting the forge.md pattern.

## Phase 1: Analyze

1. **Classify**: dispatcher, orchestrator, or simple
2. **Measure**: `wc -l` the file
3. **Identify content categories** (approximate %): parameter parsing/validation | Workflow/orchestration logic | Agent prompt templates | Examples/documentation | Error handling | Boilerplate (orchestrator briefing, agent registry)
4. **Flag reducible content**: Duplication from other commands (orchestrator briefing, agent registry, parameter parsing) |
via SKILL·HOT · 数据来自 GitHub 公开信息 · 原文版权归作者所有