AgentSkillsCN

agentic-workflow-guide

创建、审查并更新提示词、智能体与工作流。涵盖5种工作流模式、智能体委托、交接、上下文工程。适用于任何.agent.md文件的处理,或用于多智能体系统的设计。可通过“智能体工作流”“创建智能体”“工作流设计”等指令触发。

SKILL.md
--- frontmatter
name: agentic-workflow-guide
description: "Create, review, and update Prompt and agents and workflows. Covers 5 workflow patterns, agent delegation, Handoffs, Context Engineering. Use for any .agent.md file work or multi-agent system design. Triggers on 'agent workflow', 'create agent', 'ワークフロー設計'."
license: CC BY-NC-SA 4.0
metadata:
  author: yamapan (https://github.com/aktsmm)

Agentic Workflow Guide

Design, review, and improve agent workflows based on proven principles.

When to Use

ActionTriggers
CreateNew .agent.md, workflow architecture, scaffolding
ReviewOrchestrator not delegating, design principle check, context overflow
UpdateAdding Handoffs, improving delegation, tool configuration

Core Principles

references/design-principles.md

TierPrinciples
EssentialSSOT, SRP, Simplicity First, Fail Fast, Feedback Loop
QualityTransparency, Gate/Checkpoint, DRY, Observability
ScaleHuman-in-the-Loop, Loose Coupling, Graceful Degradation

See design-principles.md > Simplicity First for Anthropic's key recommendation.

Workflow Patterns

references/workflow-patterns/overview.md

PatternWhen to Use
Prompt ChainingSequential tasks with validation
RoutingProcessing varies by input type
ParallelizationIndependent tasks run together
Orchestrator-WorkersDynamic task decomposition
Evaluator-OptimizerRepeat until quality criteria met

Stop Conditions (MANDATORY): Define success/failure criteria and exit conditions for every loop.

Design Workflow

  1. Requirements - Goal, subtasks, dependencies, quality criteria
  2. Pattern Selection - [!] Ask user to confirm pattern before proceeding
  3. Design Diagram - Visualize with Mermaid
  4. Principle Check - Validate against review checklist
  5. Implement & Iterate - Build small → verify → improve

When to Escalate

references/splitting-criteria.md

LevelConfigurationEscalation Triggers
L0Single PromptRetry 3+, unstable output
L1Prompt + InstructionsSteps > 5, "missed/overlooked" errors
L2Single AgentMultiple responsibilities, context > 70%
L3Multi-AgentIndependent subtasks needed

Quick Check: Prompt > 50 lines? Steps > 5? SRP violation? Context > 70%? → Consider splitting.

Review Checklist

references/review-checklist.md

  • Single responsibility per agent? (SRP)
  • Errors detected immediately? (Fail Fast)
  • Small iterative steps? (Iterative)
  • Results verifiable at each step? (Feedback Loop)

Key References

agent Quick Fix

Problem: Orchestrator says "I'll delegate" but does work directly.

Solution: Use MUST/MANDATORY language. See agent-guide.md.

yaml
## MANDATORY: Sub-agent Delegation
You MUST use agent for each file. Do NOT read files directly.

Tools Reference

references/agent-template.md

PurposeVS Code CopilotClaude Code
ShellrunInTerminalBash
Readread/readFileRead
Editedit/editFilesWrite
SubagentagentTask
Web fetchweb/fetch(MCP)

External References

Official Documentation

Design Principles

Instructions & Context

Community Resources

Prompt Engineering

Done Criteria

  • Workflow pattern selected and confirmed with user
  • .agent.md file created with clear Role/Workflow/Done Criteria
  • Design principles checklist passed
  • Agent registered in AGENTS.md (if applicable)