Agent skill

Agent Workflow

by sharpdeveye in sharpdeveye/maestro

A skill your agent uses when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context management, tool orchestration, agent architecture…

MITAuto-check passedMobile

Install Agent Workflow

skills CLI
$ npx skills add sharpdeveye/maestro --skill agent-workflow -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install sharpdeveye/maestro agent-workflow --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/sharpdeveye/maestro.git skills-src && mkdir -p .claude/skills && cp -r skills-src/source/skills/agent-workflow .claude/skills/agent-workflow && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
agent-workflow
GitHub stars
592
Token cost
~2.1k tokens
SKILL.md length
1,000 words
Files
8
Skills in repo
25
Repo updated
First seen
Licence
MIT

At a glance

A skill your agent uses when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context management, tool orchestration, agent architecture…

  • Works in 7 steps: Prompt Engineering → Context Management → Tool Orchestration → …
  • Any Maestro command is invoked — provides foundational workflow design principles across prompt engineering
  • SKILL.md covers MANDATORY — Context Gathering…, Core Principles, 1. Prompt Engineering and 2. Context Management, plus 7 more sections
  • Instructions only: no scripts, shell commands, URLs or credentials in SKILL.md

What it does

Agent Workflow is an agent skill from sharpdeveye/maestro. Use when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context management, tool orchestration, agent architecture, feedback loops, knowledge systems, and guardrails.

Its SKILL.md is about 2.1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 8 other files (for example `reference/agent-architecture.md`, `reference/context-management.md` and `reference/feedback-loops.md`).

It sits in Mobile, covering Mobile testing and debugging, Context engineering and Prompt engineering. The repository describes itself as: Workflow fluency for AI coding agents. 1 core skill · 25 commands · 7 domain references · memory layer · audit trail — works across Cursor, Claude Code, Gemini CLI, Copilot, and… The licence is MIT.

When your agent uses it

  • Any Maestro command is invoked — provides foundational workflow design principles across prompt engineering
  • Context management
  • Tool orchestration
  • Agent architecture

Example prompts

  • “/agent-workflow”

Workflow steps

7 steps, taken from the step headings in SKILL.md.

  1. Prompt Engineering
  2. Context Management
  3. Tool Orchestration
  4. Agent Architecture
  5. Feedback Loops
  6. Knowledge Systems
  7. Guardrails & Safety

What it can do on your machine

Read from SKILL.md and the folder at commit 00f9115. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    No scripts in the folder and no shell commands in SKILL.md.

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Agent Workflow loads about 2.1k tokens when it runs. Until then it costs about 61 tokens; SKILL.md has 1,000 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~61
When it runs · the whole SKILL.md, loaded when a task matches
~2.1k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check passed

The automated check found no risky patterns in SKILL.md.

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from sharpdeveye/maestro at commit 00f9115, republished under its MIT licence (© sharpdeveye). 1,000 words, ~2,059 tokens.

Download SKILL.mdSave it as .claude/skills/agent-workflow/SKILL.md (or your agent's skills folder). This skill also uses 7 other files; get the full folder from GitHub.
name
agent-workflow
description
Use when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context management, tool orchestration, agent architecture, feedback loops, knowledge systems, and guardrails.
category
core
version
2.0.0
user-invocable
false

MANDATORY — Context Gathering Protocol

Before applying any workflow guidance, gather context:

  1. Check for Maestro context in the project root

    • First check .maestro/context.md (v2 layout)
    • Then check .maestro.md (v1 layout — backward compatible)
    • If it exists → read it and use the workflow context within
    • If it doesn't exist → tell the user: "No workflow context found. Run /teach-maestro to set up project-specific context for better results."
  2. Check for decision history (optional)

    • If .maestro/decisions.jsonl exists → read the last 5 decisions for session continuity
    • If it doesn't exist → proceed without it (no error)
  3. Minimum viable context (if no .maestro.md):

    • What AI model(s) are being used?
    • What is the workflow's primary task?
    • Are there existing prompts, tools, or agents to work with?
    • What are the quality/speed/cost priorities?
  4. DO NOT proceed without at least understanding the model, task, and priorities.


Maestro — AI Agent Workflow Mastery

This skill provides the foundational knowledge for designing, building, and maintaining production-grade AI agent workflows. All Maestro commands build on these principles.

Core Principles

  1. Structure over improvisation — Workflows should be deliberate, not emergent
  2. Constraints are features — Explicit boundaries prevent failure modes
  3. Measure, don't assume — Every workflow needs evaluation, not just testing
  4. Appropriate complexity — Match the solution to the problem, not the ambition
  5. Graceful degradation — Every component should fail safely

1. Prompt Engineering

DO:

  • Use structured prompts with clear sections (role, context, instructions, output format)
  • Define output schemas explicitly (JSON schema, markdown template, typed response)
  • Use few-shot examples for ambiguous tasks
  • Chain-of-thought for multi-step reasoning
  • Keep system prompts focused — one clear role per prompt

DON'T:

  • Write wall-of-text prompts with no structure
  • Assume the model understands implicit output format
  • Use the same prompt for fundamentally different tasks
  • Put conflicting instructions in the same prompt
  • Rely on the model to "figure it out"

→ Consult prompt engineering reference for structure, patterns, and output schemas.


2. Context Management

DO:

  • Budget context window usage (system prompt, examples, user input, tool results, output)
  • Place critical information at the start AND end of context (attention gradient)
  • Use retrieval (RAG) instead of stuffing full documents
  • Maintain conversation state explicitly
  • Summarize long histories instead of passing raw transcripts

DON'T:

  • Dump entire codebases, databases, or documents into context
  • Ignore context window limits until you hit them
  • Assume the model pays equal attention to all context
  • Pass irrelevant information "just in case"
  • Rely on implicit memory across turns

→ Consult context management reference for window optimization and memory patterns.


3. Tool Orchestration

DO:

  • Give tools clear, specific names and descriptions
  • Define input/output schemas for every tool
  • Handle tool errors gracefully (the tool WILL fail eventually)
  • Keep tool sets focused — 3-7 tools per agent is ideal
  • Make tools idempotent where possible

DON'T:

  • Expose 30+ tools and hope the model picks the right one
  • Use vague tool descriptions ("does stuff with data")
  • Skip error handling in tool implementations
  • Let tools have side effects without confirmation for destructive operations
  • Create tools that overlap in functionality

→ Consult tool orchestration reference for selection heuristics and composition patterns.


4. Agent Architecture

DO:

  • Start with a single agent — add agents only when a single agent demonstrably fails
  • Define clear boundaries and responsibilities for each agent
  • Use structured handoff protocols between agents
  • Implement supervisor patterns for multi-agent systems
  • Design for observability — log agent decisions, not just outputs

DON'T:

  • Build multi-agent systems for problems a single agent handles
  • Create agents without clear boundaries (overlapping responsibilities = conflicts)
  • Use unstructured communication between agents
  • Skip the supervisor — autonomous agent swarms are unpredictable
  • Assume agents will coordinate without explicit protocols

→ Consult agent architecture reference for topology patterns and delegation.


Show full SKILL.md (410 more words)Show less

5. Feedback Loops

DO:

  • Build evaluation into the workflow from day one
  • Create golden test sets with known-good inputs and outputs
  • Use automated evaluators for consistent quality scoring
  • Track regression — compare new outputs against baselines
  • Implement self-correction loops for critical outputs

DON'T:

  • Ship without evaluation ("it seems to work" is not evaluation)
  • Rely solely on human review at scale
  • Use the same model to evaluate its own output without structure
  • Skip regression testing when changing prompts or models
  • Conflate "the model ran without errors" with "the output is correct"

→ Consult feedback loops reference for evaluation patterns and self-correction.


6. Knowledge Systems

DO:

  • Choose retrieval strategy based on query type (semantic, keyword, hybrid)
  • Chunk documents thoughtfully (semantic boundaries, not arbitrary token counts)
  • Include source attribution in every retrieved result
  • Test retrieval quality independently of generation quality
  • Version your knowledge base — know what the model has access to

DON'T:

  • Build RAG without testing retrieval quality first
  • Use fixed chunk sizes for all document types
  • Skip source attribution (hallucination without attribution is undetectable)
  • Index everything without curation (garbage in = garbage out)
  • Assume embedding similarity equals relevance

→ Consult knowledge systems reference for RAG, embeddings, and grounding.


7. Guardrails & Safety

DO:

  • Validate inputs before processing (schema validation, size limits)
  • Filter outputs for sensitive content, PII, and policy violations
  • Set hard cost ceilings (max tokens, max API calls, max spend per run)
  • Implement circuit breakers for cascading failures
  • Log everything for audit trails

DON'T:

  • Deploy without input validation (prompt injection is real)
  • Trust model output without verification for high-stakes decisions
  • Run without cost controls (one runaway loop can cost thousands)
  • Skip rate limiting on external API calls
  • Assume the model will follow safety instructions 100% of the time

→ Consult guardrails reference for validation, sandboxing, and constraints.


The Workflow Slop Test

If any of these are true, the workflow needs work:

  • Prompts are unstructured walls of text → run /refine
  • No output schema defined — model decides the format → run /refine
  • Context window used without budget — everything stuffed in → run /accelerate
  • More than 10 tools exposed to a single agent → run /streamline
  • No error handling — happy path only → run /fortify
  • No evaluation — "it seems to work" → run /iterate
  • Multi-agent system for a single-agent problem → run /temper
  • No cost controls — unbounded token usage → run /guard
  • Tools have vague one-line descriptions → run /calibrate
  • No logging — can't debug production issues → run /fortify

Zero checked = production-ready. 3+ checked = workflow slop.


Available Commands

Use these commands to apply specific aspects of workflow mastery:

{{available_commands}}

© sharpdeveye, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 7 other files in source/skills/agent-workflow of sharpdeveye/maestro.

  • SKILL.md
  • reference/agent-architecture.md
  • reference/context-management.md
  • reference/feedback-loops.md
  • reference/guardrails-safety.md
  • reference/knowledge-systems.md
  • reference/prompt-engineering.md
  • reference/tool-orchestration.md

Open the folder on GitHubat commit 00f9115

Compare with similar skills

Agent Workflow next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Agent Workflow compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Agent Workflow this skillsharpdeveye/maestro592—~2.1kAutomated safety check: PassMIT
Agents Best PracticesDenisSergeevitch/agents-best-practices2.4k—~7.4kAutomated safety check: PassMIT
Persona Designkangarooking/system-prompt-skills2051 repos~956Automated safety check: PassMIT
Prompt EngineerJeffallan/claude-skills12k1 repos~1.5kAutomated safety check: PassMIT
Debug Bridgegetknit/knit131—~2.2kAutomated safety check: PassGPL-3.0
AI Chatwindmill-labs/windmill18k—~672Automated safety check: PassCustom licence

Similar skills

  • Agents Best Practices

    DenisSergeevitch/agents-best-practices

    A skill your agent uses when designing, generating an MVP blueprint for, auditing, troubleshooting, refactoring, or explaining an agentic harness for any domain.

    2.4k GitHub stars~7.4k tokensUpdated 3 days ago
    AI & LLM EngineeringAuto-check passed
  • Persona Design

    kangarooking/system-prompt-skills

    当需要为 AI 产品定义核心身份、角色声明和能力边界时调用此 skill。典型场景包括:设计新 AI 产品的 system prompt 首段、为不同场景创建差异化角色(如教学助手 vs 编程代理)、重新定义 AI 与用户的关系框架。

    205 GitHub starsUsed in 1 repo~956 tokens
    AI & LLM EngineeringAuto-check passed
  • Prompt Engineer

    Jeffallan/claude-skills

    Designs, tests and refines LLM prompts: zero-shot, few-shot and chain-of-thought patterns, system prompts, structured output schemas and evaluation test suites.

    12k GitHub starsUsed in 1 repo~1.5k tokens
    AI & LLM EngineeringAuto-check passed
  • Debug Bridge

    getknit/knit

    Drive and verify Knit on a device or emulator through the headless debug bridge (am broadcast to app.getknit.knit.debug.<ACTION, replies as JSON) — send a message on one phone and confirm it landed…

    131 GitHub stars~2.2k tokensUpdated 3 days ago
    MobileAuto-check passed
  • AI Chat

    windmill-labs/windmill

    Guidance for improving the Windmill AI chat (copilot), especially global mode — tools, prompts, and context-window discipline.

    18k GitHub stars~672 tokensUpdated today
    AI & LLM EngineeringAuto-check passed
  • Building Agent Systems

    telagod/code-abyss

    AI agent and LLM system engineering reference covering single-agent dev (ReAct, tool calling, plan-execute), multi-agent coordination (swarm, role decomposition, file locking), LLM security (prompt…

    243 GitHub stars~691 tokensUpdated 2 mo ago
    AI & LLM EngineeringAuto-check passed

More from sharpdeveye/maestro

All 25 skills in this repo
  • Accelerate

    sharpdeveye/maestro

    A skill your agent uses when the workflow is too slow, too expensive, or both and needs latency, cost, or token usage optimization.

    592 GitHub stars~745 tokensUpdated 5 mo ago
    Auto-check passed
  • Chain

    sharpdeveye/maestro

    A skill your agent uses when the workflow needs multi-step processing with sequential, parallel, or conditional tool compositions and proper data flow.

    592 GitHub stars~607 tokensUpdated 5 mo ago
    Auto-check passed
  • Compose

    sharpdeveye/maestro

    A skill your agent uses when a single agent demonstrably cannot handle the task and multi-agent coordination is justified.

    592 GitHub stars~720 tokensUpdated 5 mo ago
    Auto-check passed
  • Diagnose

    sharpdeveye/maestro

    A skill your agent uses when the user wants to find problems, audit workflow quality, or get a comprehensive health check on their AI workflow.

    592 GitHub stars~1.5k tokensUpdated 5 mo ago
    Auto-check passed
  • Extract Pattern

    sharpdeveye/maestro

    A skill your agent uses when the user wants to create templates, extract reusable patterns, document solutions, or build a pattern library from working workflows.

    592 GitHub stars~664 tokensUpdated 5 mo ago
    Auto-check passed
  • Fortify

    sharpdeveye/maestro

    A skill your agent uses when the workflow lacks error handling, has been failing in production, or needs retry logic, fallback strategies, and circuit breakers.

    592 GitHub stars~688 tokensUpdated 5 mo ago
    Auto-check passed

Questions about Agent Workflow

What does Agent Workflow do?

A skill your agent uses when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context management, tool orchestration, agent architecture…. Agent Workflow is an agent skill from sharpdeveye/maestro. Use when any Maestro command is invoked — provides foundational workflow design principles across prompt engineering, context management, tool orchestration, agent architecture, feedback loops, knowledge systems, and guardrails.

When should I use Agent Workflow?

Agent Workflow fits situations like: any Maestro command is invoked — provides foundational workflow design principles across prompt engineering; context management; tool orchestration; agent architecture.

How do I install Agent Workflow in Claude Code?

Run `npx skills add sharpdeveye/maestro --skill agent-workflow -a claude-code`. Or copy the skill folder (source/skills/agent-workflow in sharpdeveye/maestro) into .claude/skills/agent-workflow in your project. Claude Code loads it when a task matches its description.

How do I install Agent Workflow in Codex?

Run `npx skills add sharpdeveye/maestro --skill agent-workflow -a codex`. Or copy the skill folder (source/skills/agent-workflow in sharpdeveye/maestro) into .agents/skills/agent-workflow in your project. Codex loads it when a task matches its description.

Can I use Agent Workflow in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add sharpdeveye/maestro --skill agent-workflow -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/agent-workflow, .gemini/skills/agent-workflow, .github/skills/agent-workflow and .opencode/skills/agent-workflow in your project.

What does Agent Workflow need to run?

SKILL.md names no scripts, command-line tools or credentials: Agent Workflow is instructions for the agent only.

Does Agent Workflow access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Agent Workflow safe to install?

Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.

What licence does Agent Workflow use?

Agent Workflow is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does Agent Workflow use?

About 2.1k tokens (SKILL.md is roughly 8.2k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to Agent Workflow?

Skills that share tags, products or a category with Agent Workflow: Agents Best Practices (DenisSergeevitch/agents-best-practices, 2.4k stars), Persona Design (kangarooking/system-prompt-skills, 205 stars), Prompt Engineer (Jeffallan/claude-skills, 12k stars) and Debug Bridge (getknit/knit, 131 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Agent Workflow?

sharpdeveye (a GitHub user) maintains it in sharpdeveye/maestro, which has 592 GitHub stars. The repository holds 25 skills in this directory. The repository was last updated on April 29, 2026.

Source: sharpdeveye/maestro on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.