rea-analysis-optimization
MOmorluto/rea485k近 7 天新增 9,215 个 star
KNOWLEDGE — canonical worked examples for agent creation, migration, and command optimization. Reference for the relevant procedures; no sequence.
Kind: KNOWLEDGE (reference). Loaded on demand by the procedure whose example it carries. No forced sequence.
User requests agent for database migration planning.
---
name: nw-db-migrator
description: Use for database migration planning. Designs migration strategies with rollback safety.
model: inherit
tools: Read, Glob, Grep, Bash
maxTurns: 40
skills:
- nw-deployment-strategies
---
Core definition: ~150 lines (role, 5 divergent principles, 4-phase workflow, 4 critical rules, 3 examples). Domain knowledge extracted to the nw-deployment-strategies skill (rollback planning, ~200 lines). Total always-loaded: ~150 lines. With skill: ~350 lines.
2,400-line spec with embedded YAML config, 17 commands, 7-layer enterprise security framework, aggressive language.
Action: Apply migration path:
Agent at 380 lines — within 400-line target. Extract Skills?
Decision tree:
User asks to optimize execute.md (1,051 lines). It's a dispatcher command.
Analysis: ~35% reducible (300 lines JSON state examples contradicting v2.0 format|200 lines duplicated parameter parsing|100 lines agent registry|deprecated references).
Action:
develop.md at 2,394 lines embeds 6 sub-command workflows inline.
Action: Replace embedded workflows with phase references. Keep orchestration logic (phase sequencing, resume handling). Remove all embedded agent prompt templates. Target: 200-300 lines of pure orchestration.
MOmorluto/rea485k近 7 天新增 9,215 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star
MAmattpocock/skills336k近 7 天新增 5,004 个 star