Index of every page on this site: llms.txt
All skills
aktsmm avatar

/agentic-workflow-guide

@9bedf91
by yamapanaktsmm/agent-skills27 stars
5
Run it yourself

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

Nothing lands on disk. Nothing to clean up.

Fork this Skill

Edit a local copy. It keeps the author and licence.

SKILL.md

≈124 tokens for metadata: the name and description. ≈1.9k when used: this file. ≈56k more on demand in 27 files.

Description uses 6.0% of example budget

Before choosing a Skill, your Agent reads its name and description. All available Skills share that space.

  • A shorter description leaves more room for other Skills. This entry exceeds our 1% size suggestion.

In our Claude Code example, all Skill names and descriptions share 8,000 characters. This Skill uses ≈480 characters, or 6.0%.

The 1% threshold is a size suggestion. Longer descriptions can still fit.

Your model, settings, and other Skills decide how much text your Agent can read.

Example settings and source

The example uses a 200k-token context and default Claude Code settings. The count includes the name, description, separators, and when_to_use when present. Codex also counts local file paths.

Skit's source and limits: Codex 0.160.1, Claude Code 2.1.292.

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

Action Triggers
Create New .agent.md, .instructions.md, .prompt.md, AGENTS.md, or workflow architecture
Review Orchestrator not delegating, design principle check, context overflow
Update Adding Handoffs, improving delegation, tool configuration
Debug Agent not found, subagent not working, picker visibility, access control
Decide Determining 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%

Check each delegated agent's tool list against what you ask it to produce: an agent without file create/edit tools cannot save a deliverable. Ask it to return the full file text in one code block (no summary) and save it in the parent.

Threshold details: references/splitting-criteria.md

Review Gates

  • Primitive choice is simpler than agent if possible
  • Placement fits; entry files stay thin; authored fields/tools match the destination inventory, runtime behavior is tested separately, and unobserved editor Hints remain unverified (checklist).
  • Delete unnecessary or self-evident text, including rationale sentences that do not change a decision, before shortening, only if normal/exception/stop decisions stay unchanged; then consider merge / split / move before additions. Preserve evidence, nontrivial procedures, scope, required examples, metadata, approvals, unverified requirements and failure/recovery conditions; age alone does not obsolete history, and unsaved notes stay protected.
  • 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.

Source: SKILL.md on GitHub

No rule matched.

skilld matched fixed text patterns in SKILL.md and file names. Patterns miss obfuscated code.

skilld run checks every file with the same patterns. It asks for approval before it loads a Skill with a behavior marked Needs approval.

1 warning12d4 checks · Risk SAFE
  • Gen Agent Trust Hub12d

    The 'agentic-workflow-guide' skill is a comprehensive educational resource for designing and managing AI agent workflows. It provides templates, design principles, and architectural patterns (e.g., Orchestrator-Workers, Routing) compatible with VS Code Copilot and Claude Code. The analysis found no evidence of malicious behavior, prompt injection, or data exfiltration. The skill emphasizes security best practices such as least privilege, input validation, and human-in-the-loop controls.

  • Socket12d

    No alerts

  • Snyk12d

    Risk: LOW · No issues

  • Runlayer8mo

    15/58 files flagged

Signed by skilld at 9bedf91. 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 2 weeks ago
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