본문으로 건너뛰기
cccskills
무료GitHub에 공개

nw-agent-creation-workflow

Detailed 5-phase workflow for creating agents - from requirements analysis through validation and iterative refinement

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

설치 방법 보기

포함된 파일(1)

  • SKILL.md6.9 KB

SKILL.md(원문)

설치하기 전에 에이전트에게 전달되는 지시 내용을 확인할 수 있습니다.

Agent Creation Workflow

Overview

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."

Phase 1: ANALYZE

Goal: Understand requirements and determine agent architecture.

Inputs: User requirements, use case description, existing codebase context.

Steps:

  1. Identify single clear responsibility
  2. Determine new agent or modification of existing
  3. Check overlap with existing agents (avoid duplication)
  4. Classify agent type:
    • Specialist: Single-domain expert (most common)
    • Reviewer: Validates outputs from another agent (Reflection pattern)
    • Orchestrator: Coordinates multiple agents
  5. Identify required tools (start with Read, Glob, Grep -- add only what's needed)
  6. Determine if Skills needed (domain knowledge > 50 lines)

Gate: Single responsibility identified. Agent type classified. No overlap.

Output: Requirements summary with agent type, tools list, skill needs.

Phase 2: DESIGN

Goal: Design agent architecture and structure.

Inputs: Requirements summary from Phase 1.

Steps:

  1. Select design pattern (load design-patterns skill)
  2. Define role and goal (1-2 sentences each)
  3. Identify core principles that DIVERGE from Claude defaults:
    • What must this agent do differently than Claude naturally would?
    • Domain-specific methodology steps
    • Non-obvious constraints | Project-specific conventions
  4. Design workflow (3-7 phases)
  5. Plan Skills extraction: domain knowledge -> separate Skill | Testing/validation -> separate Skill | Keep workflow and principles in core agent
  6. Design Skill Loading Strategy (required for 3+ skills):
    • Map each skill to the workflow phase where it's needed
    • Create a loading table: Phase → Skill → Trigger condition
    • Add explicit Load: skill-name directives in each workflow phase
    • Document path: ~/.claude/skills/nw-{skill-name}/SKILL.md (installed) or nWave/skills/nw-{skill-name}/SKILL.md (repo)
    • Note: skills: in frontmatter is declarative only — Claude Code does NOT auto-load skill files. The agent must use Read tool to load them, triggered by Load: directives in workflow text.
  7. Draft frontmatter:
    ---
    name: {kebab-case-id}
    description: Use for {domain}. {When to delegate.}
    model: inherit
    tools: [{minimum tools needed}]
    maxTurns: 30
    skills:
      - nw-{skill-name}
    ---
    

Gate: Design fits ~200-300 lines (core) + Skills. Pattern selected. Frontmatter drafted.

Output: Agent architecture document (working notes, not deliverable).

Phase 3: CREATE

Goal: Write agent definition file and Skills.

Inputs: Design from Phase 2.

Steps:

  1. Create agent .md file:

    • YAML frontmatter (name, description, tools, model, maxTurns, skills)
    • Role + Goal paragraph
    • Core Principles (divergences only, 3-8 items)
    • Workflow phases
    • Critical Rules (3-5, where violation causes real harm)
    • Examples (3-5 canonical cases)
    • Subagent mode instructions
    • Constraints (what agent does NOT do)
  2. Create Skill files if needed: each in nWave/skills/{agent-name}/ | YAML frontmatter with name and description | Focused content, 100-250 lines each

  3. Measure: wc -l. Target: under 300 lines.

  4. Add Skill Loading Strategy section (required for agents with 3+ skills):

    ## Skill Loading Strategy
    
    Load on-demand by phase, not all at once:
    
    | Phase | Load | Trigger |
    |-------|------|---------|
    | 1 Phase Name | `skill-name` | Always — core methodology |
    | 2 Phase Name | `other-skill` | When condition is met |
    
    Skills path: `~/.claude/skills/nw-{skill-name}/SKILL.md` (installed) or `nWave/skills/nw-{skill-name}/SKILL.md` (repo)
    
  5. Add Load: directives at the start of each workflow phase referencing the applicable skills

  6. Verify: every skill in frontmatter skills: has at least one Load: directive in the workflow text. Orphan skills (declared but never loaded) are a bug.

Gate: Agent file created. Under 300 lines. Skills created if needed. Skill Loading Strategy present for 3+ skills.

Output: Agent .md file + Skill files.

Phase 4: VALIDATE

Goal: Verify agent meets quality standards.

Steps:

  1. Run 14-point validation checklist:
    • Uses official YAML frontmatter format
    • Total definition under 400 lines (domain knowledge in Skills)
    • Only specifies behaviors diverging from Claude defaults
    • No aggressive signaling language
    • 3-5 canonical examples for critical behaviors
    • Tools restricted to minimum needed
    • maxTurns set in frontmatter
    • Safety via platform features, not prose
    • Instructions phrased affirmatively
    • Consistent terminology throughout
    • Description clearly states delegation criteria
  2. Check anti-patterns: no monolithic sections (>50 lines without structure) | No duplicated Claude defaults | No embedded safety frameworks | No aggressive language
  3. Test with representative inputs (Layer 1 testing)

Gate: All 14 items pass. No anti-patterns.

Output: Validation report (pass/fail per item).

Phase 5: REFINE

Goal: Iteratively improve based on testing feedback.

Steps:

  1. Address validation failures
  2. Test with edge cases
  3. Add instructions ONLY for observed failure modes: wrong decision -> add rule/example | Missed step -> clarify workflow | Over-generated -> add constraint
  4. Re-measure: wc -l. If approaching 400 lines, extract to Skills.
  5. Re-validate with 14-point checklist.

Gate: All validation passes. Line count within target. Edge cases handled.

Output: Final agent definition, ready for installation.

Quality Gates Summary

PhaseGateBlocks
ANALYZESingle responsibility, no overlapDESIGN
DESIGNArchitecture fits size targetCREATE
CREATEFile created, under 300 linesVALIDATE
VALIDATE14-point checklist passesREFINE/Deploy
REFINEEdge cases handled, within targetDeploy

Naming Conventions

  • Agent files: nw-{name}.md in nWave/agents/
  • Skill files: {skill-name}.md in nWave/skills/{agent-name}/
  • Reviewer agents: nw-{name}-reviewer.md
  • Agent names in frontmatter: nw-{name} (kebab-case with nw- prefix)

Reviewer Agent Creation (Special Case)

Reviewer agents pair with a primary agent and use the Reflection pattern:

  1. Set model: haiku in frontmatter (cost-efficient review)
  2. Use same tools as primary agent (no Write/Edit -- reviewers don't modify)
  3. Define structured critique output format (YAML)
  4. Include max 2 review iterations
  5. Define clear approval/rejection criteria

리뷰

아직 리뷰가 없습니다. 사용해 본 소감을 남겨 주세요.

댓글

로그인 없이 쓸 수 있습니다. 사용 후기, 질문, 작동하지 않은 환경 등을 편하게 남겨 주세요.

아직 댓글이 없습니다. 첫 댓글을 남겨 보세요.

보내면 바로 공개됩니다. 이메일 주소나 전화번호 같은 개인 정보는 쓰지 마세요. URL은 2개까지입니다.

0 / 1,000자

이 양식은 reCAPTCHA로 보호되며 Google 개인정보처리방침 및 서비스 약관이 적용됩니다.

같은 저장소의 스킬

Review dimensions for validating agent quality - template compliance, safety, testing, and priority validation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6202026년 9월 16일 업데이트

Review dimensions for validating agent quality - template compliance, safety, testing, and priority validation

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6202026년 9월 16일 업데이트

Review dimensions for acceptance test quality - happy path bias, GWT compliance, business language purity, coverage completeness, walking skeleton user-centricity, priority validation, observable behavior assertions, traceability coverage, and walking skeleton boundary proof

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6202026년 9월 16일 업데이트

5-layer testing approach for agent validation including adversarial testing, security validation, and prompt injection resistance

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6202026년 9월 16일 업데이트

Architectural style selection decision matrices, trade-off analysis, structural enforcement rules, and combination patterns. Load when choosing or evaluating architecture styles.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6202026년 9월 16일 업데이트

Comprehensive architecture patterns, methodologies, quality frameworks, and evaluation methods for solution architects. Load when designing system architecture or selecting patterns.

한국어 요약은 준비 중입니다. 원문 설명을 표시하고 있습니다.

nWave-ai/nWave6202026년 9월 16일 업데이트

nWave-ai의 스킬 모두 보기

이 스킬의 문제 신고