mcpField
A
agentic-workflow-guide

agentic-workflow-guide

github.com/aktsmmAgent workflows26113 installsUpdated 1d ago
Repository

About agentic-workflow-guide

agentic-workflow-guide is a skill for designing, reviewing, and improving agent workflows, intended for teams building or maintaining agent configurations. It favors the simplest suitable primitive and provides guidance on escalation, context management, and verification.

Key features

  1. 01Choose among Prompt, Instruction, Skill, Agent, or Hook
  2. 02Assess whether multi-agent design is needed
  3. 03Select patterns based on workflow complexity
  4. 04Manage context through splitting, compaction, and retrieval
  5. 05Review data flow and state changes with gates

Use cases

  1. 01Choose a primitive for a new workflow
  2. 02Review agent delegation and responsibility boundaries
  3. 03Debug subagent, visibility, or access-control issues
  4. 04Address context growth and recurring errors

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/aktsmm/agent-skills --skill agentic-workflow-guide

After installing, type/agentic-workflow-guidein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

LICENSE.txt
references/
agent-evaluation.md
agent-guide.md
agent-template.md
builtin-customization-patterns.md
context-engineering.md
copilot-cloud-agent-ci.md
customization-decision.md
deep-agent-patterns.md
design-principles.md
external-resources.md
handoffs-guide.md
hooks-guide.md
prompt-template.md
review-checklist.md
scheduled-runtime-bindings.md
splitting-criteria.md
vscode-agent-placement.md
references/workflow-patterns/
0-plan-first.md
1-prompt-chaining.md
2-routing.md
3-parallelization.md
4-orchestrator-workers.md
5-evaluator-optimizer.md
6-connected-agents.md
combining-patterns.md
ir-architecture.md
overview.md

Details

From the project README

Agentic Workflow Guide

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

この SKILL の基本姿勢は、agent を増やすことではなく、必要最小の primitive で解くこと。 context が膨らんだときも、まずは split / compact / reference 化を考え、いきなり multi-agent にしない。

Primitive First

Do not start with multi-agent by default.

  • Single focused slash task -> Prompt (Local harness only; prompt files are deprecated for Agent Host sessions, so prefer a Skill for new slash workflows)
  • Always-on or file-scoped guidance -> Instruction
  • Reusable workflow with bundled assets -> Skill
  • Persona, tool restrictions, delegation, or handoffs -> Agent
  • Deterministic enforcement -> Hook (Preview; events and config differ by harness)

If the ask does not require an Agent, stop and use the simpler primitive.

Selection details: references/customization-decision.md

When to Use

ActionTriggers
CreateNew .agent.md, .instructions.md, .prompt.md, AGENTS.md, or workflow architecture
ReviewOrchestrator not delegating, design principle check, context overflow
UpdateAdding Handoffs, improving delegation, tool configuration
DebugAgent not found, subagent not working, picker visibility, access control
DecideDetermining whether multi-agent is justified or a simpler primitive is enough

Core Principles

  • Simplicity First: より単純な primitive で解けるなら agent 化しない
  • SSOT / SRP: 情報源と責務の分割を守る
  • Fail Fast: エラーは早く止める
  • Feedback Loop: 各段で検証できるようにする
  • Context Discipline: context が膨らんだら compact / split / retrieve を検討する

Principle details: references/design-principles.md

Pattern Selection

Name the pattern explicitly when complexity rises, using the selector in references/workflow-patterns/overview.md. Every loop needs explicit stop conditions.

Design Workflow

  1. Extract repeated behavior, tool preferences, and workflow shape from the conversation.
  2. Choose primitive + scope (workspace / profile); ask only about ambiguities that change behavior.
  3. Escalate only when split / compact / reference-ization cannot solve it, then pick a pattern.
  4. Implement the smallest version and tighten the weakest parts.

Rule Placement

  • 汎用的な workflow 設計原則は、この SKILL と references/ を SSOT にする。
  • repo local の .instructions.md には workspace 固有の差分だけを残す。差分が無い generic instruction は merge back して削除候補にする。
  • IR は原則 in-memory で扱う。validator、script、deterministic handoff が必要な場合だけ中間 file を materialize し、不要になったら片付ける。
  • scheduler / service / config など決定論的な state mutation は、AI/UI loop ではなく direct script / API で現状確認 -> 最小変更 -> live read-back まで行う。LLM は scope と整合対象の判断に限定する。
  • For model allocation reviews, use scheduled runtime bindings.

Escalation Rules

Prefer the lowest level (L0 prompt → L1 + instructions → L2 single agent → L3 multi-agent) that solves the problem cleanly. Quick signals to split:

  • Prompt > 50 lines
  • Steps > 5
  • "missed" / "overlooked" errorsが続く
  • Multiple responsibilities in one agent
  • Context > 70%

Threshold details: references/splitting-criteria.md

Review Gates

  • Primitive choice is simpler than agent if possible
  • Placement is appropriate and always-loaded entry files stay thin (entry boundary smells: review-checklist.md)
  • New additions are proposed only after delete / merge / split / move options are checked
  • Single responsibility per agent is preserved
  • Errors can be detected and stopped early
  • Verify actual producer-to-consumer dataflow, not only fixtures injected into a validator; cover empty results and meaningful state transitions. Repeating unchanged input proves idempotency, not the full lifecycle.
  • Deterministic parts are offloaded to scripts / IR / hooks, and state changes are confirmed by reading authoritative live state back (not LLM/UI loops)

Full checklist: references/review-checklist.md

Reference Map

Core references: primitive decision, design principles, workflow patterns, splitting criteria, review checklist, and context management.

For scheduled workflows, use scheduled runtime bindings. For delegated evidence and append-only current-state extraction, see orchestrator-workers and IR architecture.

When an orchestrator promises delegation but works directly, make the delegation requirement explicit and verifiable (agent-guide.md). Tool mapping and agent scaffold: agent-template.md.

Done Criteria

  • Primitive and scope selected intentionally
  • Workflow pattern selected and confirmed with user
  • New or updated assets have clear Role/Workflow/Done Criteria where applicable
  • Review Gates passed
  • Recommendations are classified as delete / merge / split / move / add / keep where applicable
  • Always-on instruction boundaries and DRY / SSOT risks are explicitly reviewed when copilot-instructions.md or AGENTS.md are in scope
  • New agent / workflow assets are registered in the appropriate catalog or docs when needed
  • AGENTS.md is updated only when shared guardrails or entry behavior need to change
  • Long-running or ad-hoc terminals/tasks started during the workflow are closed, or remaining terminals are explicitly reported with a reason
  • Distinguish configuration saved, code tested, live read verified, action authorized, and recurring cycle completed. Verify authoritative state before claiming completion or unattended readiness; pending safeguards and unobserved cycles retain their blockers and next check conditions.

Comments

Markdown supported