wayfinder
MAmattpocock/skills337k4,978 new stars in the last 7 days
Detailed 5-phase workflow for creating agents - from requirements analysis through validation and iterative refinement
Create agents through 5 phases: ANALYZE -> DESIGN -> CREATE -> VALIDATE -> REFINE. Each phase has clear inputs, outputs, and quality gates. Follow "start minimal, add based on failure."
Classify every skill by how the role needs it:
skills:. The installer preloads each declared skill body once, so the agent body never tells the role to load, read or invoke it.[SKILL MISSING] protocol.description frontmatter states when to use it. Knowledge skills with disable-model-invocation: true are read on their trigger, never invoked through the Skill tool.The registry and doc generator are framework build inputs, not installed-project capabilities. First identify the candidate as a framework source agent or an installed/generated artifact.
role-skill-loading.yaml registry and scripts/docgen.py, alongside its agent and skill sources. Read the existing registry schema; declare the conditional skill once under its owning role with the precise trigger, then run python scripts/docgen.py from that checkout through a permitted execution capability. Inspect the resulting GENERATED:role-skill-loading region and referenced skill asset. This is the single conditional index; frontmatter preloads remain untouched.GOOD vs BAD:
| Shape | Why | |
|---|---|---|
| GOOD | source-aware registration followed by inspection of the generated conditional index | the trigger is authored in its real source and delivered once |
| GOOD | always-needed skill in frontmatter only | the installer preloads it once |
| BAD | frontmatter skill also reloaded by a body directive or table | duplicates already-loaded knowledge |
| BAD | handwritten Skill Loading section or table in the body | a second, drifting index beside the generated one |
Goal: Understand requirements and determine agent architecture.
Inputs: User requirements, use case description, existing codebase context.
Steps:
Gate: Single responsibility identified. Agent type classified. No overlap.
Output: Requirements summary with agent type, tools list, skill needs.
Goal: Design agent architecture and structure.
Inputs: Requirements summary from Phase 1.
Steps:
nw-design-patterns knowledge---
name: {kebab-case-id}
description: Use for {domain}. {When to delegate.}
model: inherit
tools: [{minimum tools needed}]
maxTurns: 40
skills:
- nw-{skill-name}
---
Gate: Design fits ~200-300 lines (core) + Skills. Pattern selected. Frontmatter drafted.
Output: Agent architecture document (working notes, not deliverable).
Goal: Write agent definition file and Skills.
Inputs: Design from Phase 2.
Steps:
Create agent .md file:
Create Skill files if needed: each in nWave/skills/{agent-name}/ | YAML frontmatter with name and description | Focused content, 100-250 lines each
Measure: wc -l. Target: under 300 lines.
Apply the source-aware conditional-skill procedure above for each conditional skill. Preserve the single generated index and report missing source or execution capability instead of manufacturing build inputs.
Verify: every frontmatter skill exists and is always needed; every intended conditional skill has a reachable precise trigger. Distinguish proposed changes from generated and inspected changes.
Gate: Authorized agent/skill changes delivered; conditional registration is either generated and inspected in the actual source checkout or explicitly pending its named source capability.
Output: Agent .md file + Skill files.
Goal: Verify agent meets quality standards.
Steps:
nw-ab-validate-spec: every item of nw-ab-validation-checklist plus the anti-pattern scan.Gate: Every checklist item passes. No anti-patterns.
Output: Validation report (pass/fail per item).
Goal: Iteratively improve based on testing feedback.
Steps:
wc -l. If approaching 400 lines, extract to Skills.nw-ab-validate-spec.Gate: All validation passes. Line count within target. Edge cases handled.
Output: Final agent definition, ready for installation.
| Phase | Gate | Blocks |
|---|---|---|
| ANALYZE | Single responsibility, no overlap | DESIGN |
| DESIGN | Architecture fits size target | CREATE |
| CREATE | File created, under 300 lines | VALIDATE |
| VALIDATE | every nw-ab-validation-checklist item passes | REFINE/Deploy |
| REFINE | Edge cases handled, within target | Deploy |
nw-{name}.md in nWave/agents/{skill-name}.md in nWave/skills/{agent-name}/nw-{name}-reviewer.mdnw-{name} (kebab-case with nw- prefix)Reviewer agents pair with a primary agent and use the Reflection pattern:
model: haiku in frontmatter (cost-efficient review)MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days
MAmattpocock/skills337k4,978 new stars in the last 7 days