nw-command-optimization-workflow

Transform oversized command definitions into lean declarative workflows.

Updated Mar 18, 2024
One-click install
npx skills add https://github.com/v1bh0r/precise-ledger-pro --skill nw-command-optimization-workflow-v1bh0r
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: nw-command-optimization-workflow
Source: https://github.com/v1bh0r/precise-ledger-pro/tree/main/nWave/skills/nw-command-optimization-workflow
Command: npx skills add https://github.com/v1bh0r/precise-ledger-pro --skill nw-command-optimization-workflow-v1bh0r

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This workflow provides a structured approach to convert oversized command definitions into compact, declarative forms, reducing duplication and enhancing maintainability across large command repositories.

Core Features & Use Cases

  • Phase 1 Analyze: Classify commands, measure line counts, identify content categories, and flag reducible boilerplate.
  • Phase 2 Extract: Remove shared boilerplate, move domain knowledge to agents, and delete dead content.
  • Phase 3 Restructure: Apply a declarative command template and separate orchestration logic.
  • Phase 4 Validate: Enforce size targets, guard against dead code, ensure declarative structure, and verify measurable success criteria.
  • Phase 5 Measure and Report: Provide before/after metrics, categorize removed content, and track dependencies.
  • Special Case: develop.md handling to inline sub-commands without duplicating orchestration.

Quick Start

Provide an oversized command file to be transformed into a lean declarative workflow following the phases described.

Frequently Asked Questions about nw-command-optimization-workflow

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I refactor bloated command definitions into lean workflows?

To refactor bloated command definitions into lean workflows, you apply five phases: Analyze, Extract, Restructure, Validate, and Measure. This transforms oversized commands into compact, declarative forms by removing duplicate boilerplate.

What is the best way to reduce boilerplate duplication across large command repositories?

Reducing boilerplate duplication across large command repositories involves classifying commands to flag reducible boilerplate, extracting shared content, and applying a declarative command template to separate orchestration logic from domain knowledge.

How do you extract domain knowledge during command refactoring?

During command refactoring, you extract domain knowledge by moving it to dedicated agents and deleting dead content. This ensures oversized command files transform into compact, declarative workflows without losing critical logic.

Can I use declarative command templates for consolidating oversized orchestration logic?

Yes, declarative command templates consolidate oversized orchestration logic. The restructuring phase separates orchestration from definitions, allowing sub-commands to be inlined without duplicating workflow logic.

How do you validate and measure success when streamlining command workflows?

To validate and measure success when streamlining command workflows, enforce size targets, guard against dead code, and verify declarative structure. Then generate before and after metrics, categorize removed content, and track dependencies.