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-patterns6-connected-agents.md

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

Pattern 6: Connected Agents

Multiple specialized agents collaborate and share context

Back to overview.md

Diagram

graph TD
    A[Shared Context] --> B[Agent 1: Research]
    A --> C[Agent 2: Design]
    A --> D[Agent 3: Implementation]
    B --> E[Update Context]
    C --> E
    D --> E
    E --> A
    E --> F[Final Output]

Characteristics

Aspect Description
Structure Multiple agents with shared state/context
Benefits Agents build on each other's work, emergent insights
Use Cases Complex projects requiring diverse expertise

When to Use

  • Task requires multiple specialized capabilities
  • Agents need to build on each other's outputs
  • Collaboration yields better results than isolation
  • Context sharing reduces redundant work

Implementation Example

Shared Context (Memory/Database):
  ├─ Project goals
  ├─ Decisions made
  ├─ Resources created
  └─ Current state

Agent 1 (Research):
  - Reads context
  - Gathers information
  - Updates context with findings

Agent 2 (Design):
  - Reads research findings from context
  - Creates architecture
  - Updates context with design

Agent 3 (Implementation):
  - Reads design from context
  - Implements solution
  - Updates context with code

Key Principles

Principle Description
Shared State Central repository for context and decisions
Read-Update Cycle Each agent reads latest state, then updates
Specialization Each agent has distinct expertise
Coordination Protocol Clear rules for context access and updates
Conflict Resolution Handle concurrent updates or conflicting data

Coordination Strategies

1. Sequential (Turn-Taking)

Agent 1 completes → Agent 2 starts → Agent 3 starts

Pros: Simple, no conflicts
Cons: Slower, no parallelism

2. Parallel with Merge

Agent 1, 2, 3 work simultaneously → Merge updates

Pros: Fast
Cons: Merge conflicts possible

3. Leader-Follower

Leader Agent coordinates → Assigns tasks to followers

Pros: Clear control flow
Cons: Leader bottleneck

Context Format Example

{
  "project_context": {
    "goal": "Build a web scraper",
    "constraints": ["Must handle rate limiting", "Store in database"],
    "decisions": [
      {
        "agent": "research",
        "timestamp": "2024-01-15T10:00:00Z",
        "decision": "Use Python with BeautifulSoup",
        "rationale": "Simple, well-documented, handles HTML parsing"
      }
    ],
    "artifacts": [
      {
        "type": "design_doc",
        "created_by": "design_agent",
        "path": "docs/architecture.md"
      }
    ],
    "state": "implementation_in_progress"
  }
}

Benefits

Benefit Description
Knowledge Sharing Agents leverage each other's work
Consistency Single source of truth prevents divergence
Auditability Shared context provides complete history
Flexibility Add/remove agents without restructuring

Challenges

Challenge Mitigation
State Complexity Use structured context format (JSON/YAML)
Race Conditions Implement locking or turn-taking protocol
Context Bloat Prune old/irrelevant data periodically
Debugging Log all context reads/writes with timestamp

When NOT to Use

  • Single-domain task (use Orchestrator-Workers instead)
  • Agents work independently (use Parallelization)
  • No need for context sharing (use Routing)

Implementation Checklist

- [ ] Define shared context schema
- [ ] Establish read/write protocols
- [ ] Implement conflict resolution strategy
- [ ] Set up context persistence (file/database)
- [ ] Add logging for all context modifications
- [ ] Define agent responsibilities clearly
- [ ] Test concurrent access scenarios

Real-World Example: Software Development

Context: GitHub Issue + PR + Discussion Thread

├─ Code Agent:
│    - Reads issue requirements
│    - Implements solution
│    - Updates PR with code

├─ Test Agent:
│    - Reads code changes from PR
│    - Generates test cases
│    - Updates PR with tests

├─ Review Agent:
│    - Reads code and tests
│    - Provides feedback
│    - Updates discussion thread

└─ Documentation Agent:
     - Reads final implementation
     - Updates README and docs
     - Commits to repo

Each agent operates on shared artifacts (code, PR, docs) and can see what others have contributed.

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 17 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