All skills
aktsmm avatar

/agentic-workflow-guide

@fb34748
by yamapanaktsmm/agent-skills26 stars
4

Design, review, and debug agent workflows, and decide when a request should use a prompt, instruction, skill, agent, or hook before escalating to multi-agent design. Use for .agent.md / .instructions.md / .prompt.md / AGENTS.md work, workflow architecture, orchestration planning, scheduled automation model allocation, or when agent workflows may be overkill. Triggers on 'agent workflow', 'create agent', 'automation models', 'ワークフロー設計', 'orchestrator'.

Use this Skill: https://skilld.dev/gh/aktsmm/agent-skills/agentic-workflow-guide

This session only. Nothing lands on disk.

referencesworkflow-patterns5-evaluator-optimizer.md

≈558 tokens on demand. Your agent reads this file only when SKILL.md points to it.

Pattern 5: Evaluator-Optimizer

Generate → Evaluate → Improve loop

Back to overview.md

Diagram

graph TD
    A[Input] --> B[Generator]
    B --> C[Output v1]
    C --> D[Evaluator]
    D -->|Not Good| E[Feedback]
    E --> B
    D -->|Good| F[Final Output]

Characteristics

Aspect Description
Structure Generator + evaluator + feedback loop
Benefits Improves until quality criteria are met
Use Cases Translation, code review, text proofreading

When to Use

  • Clear quality criteria exist
  • Iterative improvement increases quality
  • Want to mimic human feedback

Implementation Example

Generator: Generate translation
    ↓
Evaluator:
  - Is the nuance accurate?
  - Is the grammar correct?
  - Does it reflect the original intent?
    ↓
  ├─ OK → Complete
  └─ NG → Regenerate with feedback

Real-World Example: Error-Fixer Agent

A practical implementation combining Evaluator-Optimizer with Human-in-the-Loop:

flowchart TD
    A[User Issue] --> B{Clarify?}
    B -->|Yes| C[Ask Questions]
    C --> A
    B -->|No| D[Create Plan]
    D --> E{User Approval?}
    E -->|No| D
    E -->|Yes| F[Fix: agent developer]
    F --> G[Verify: agent reviewer]
    G --> H{All PASS?}
    H -->|Yes| I[Done]
    H -->|No| J{Retry < 3?}
    J -->|Yes| K[Reflection: Why failed?]
    K --> F
    J -->|No| L[Escalate to User]

Key Design Patterns

Pattern Implementation
Reflection Loop Analyze why previous fix failed before retrying
Error Context Pass full stack trace + related files + past attempts
No Repeat Fixes Track attempt history, try different approaches
Escalation After 3 failures, report to user with recommendations

Stop Conditions (MANDATORY)

  • ✅ All verification items PASS
  • ⛔ Max 3 retries reached → Escalate
  • ⛔ Same error 2x in a row → Change approach

Source: SKILL.md on GitHub

2 warnings4mo4 checks · Risk SAFE
  • Gen Agent Trust Hub4mo

    This skill is a professional development toolkit for designing, reviewing, and managing AI agent workflows. It provides structured templates, architectural guidance, and utility scripts to help users build efficient multi-agent systems following best practices like Single Responsibility and Single Source of Truth.

  • Socket4mo

    No alerts

  • Snyk4mo

    Risk: MEDIUM · 1 issue

  • Runlayer7mo

    15/58 files flagged

Signed by skilld at fb34748. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 15 hours ago.

Activeupdated last week
user-invocable
true
metadata
{
  "author": "yamapan (https://github.com/aktsmm)"
}
Other metadata
argument-hint
作りたい .agent.md / .instructions.md / .prompt.md / AGENTS.md、設計したい workflow、または困っている症状

README badge

README badge for aktsmm/agent-skills/agentic-workflow-guide