hermes-workflows-creating
Skill68 starsChanged 5 months agoMITView on GitHub
Design and author Hermes Workflows with typed inputs/outputs, agent/bash/ask/parallel/pipeline/goal primitives, Review Queue gates, artifacts, and verification receipts. Use when creating or modifying workflow definitions.
In this repository27 other files it gives its agents.
- 8-bit-video-genSkill
- anki-connectSkill
- explainSkill
- formatting-notion-pagesSkill
- github-replySkill
- goal-rider-authorSkill
- here-nowSkill
- high-signal-chart-workflowSkill
- impeccableSkill
- loreSkill
- magazine-explainerSkill
- marimo-pairSkill
- mutation-testingSkill
- pre-mortemSkill
- project-planningSkill
- prompt-refinementSkill
- remotion-videoSkill
- researchSkill
- resend-emailSkill
- ship-itSkill
- thread-postmortemSkill
- try-exceptSkill
- verified-frontendSkill
- wikipedia-discoverySkill
- writing-revisionSkill
- writing-styleSkill
- youtube-watch-later-gist-summariesSkill
The file
We split this skill into the rules it gives an agent
8 rules. About 0 are common, 4 are distinctive, and 4 are very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈4
Distinctive · estimate
This author's own choices. Worth a look.
4
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- could be automatic: a setting could enforce it
- Distinctive: line 14
Use this when designing or implementing a workflow definition.
- Distinctive: line 20
Use the public authoring primitives:
- Very specific: line 30
Do not expose runtime plumbing (ctx.handoff, raw signals, internal waits, leases, outbox commands) in normal workflow authoring unless …
- Very specific: line 41
Add explicit gates before external effects: send, publish, schedule, commit/push/PR/merge, deploy, payment, credentials, destructive data …
- Very specific: line 43
Add smoke tests that run without provider credentials by using mock_output where appropriate.
- Distinctive: line 104
Prefer small named steps with stable keys.
- Distinctive: line 105
Keep workflow bodies intention-level.
- Very specific: line 133
Do not bake private business/blog/event workflows into the runtime package unless explicitly making a public example.
≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Project: skylarbpayne/hermes-workflows. "Code-first durable workflows for agent work, Review Queues, Workflow Workers, and receipts."
License: Apache License 2.0. Full license text is in
LICENSEalongside this file.Snapshot: Frozen copy of
hermes-workflows-creating/SKILL.mdas of 2026-07-03. The maintained version lives upstream and may have evolved since this snapshot.
Hermes Workflows — creating workflows
Use this when designing or implementing a workflow definition. This skill is generic authoring guidance, not a place for project-specific workflow shapes.
Product model
Hermes Workflows are ordinary Python orchestration code with durable execution state.
Use the public authoring primitives:
@workflowfor the durable workflow entrypoint.agent(...)for judgment-heavy or generative work.bash(...)for deterministic local commands and receipts.ask(...)for typed review input and external-action approval gates.parallel(...)for fan-out/fan-in.pipeline(...)for staged transformations over items.goal(...)for loop-until-done semantics when available/appropriate.
Do not expose runtime plumbing (ctx.handoff, raw signals, internal waits, leases, outbox commands) in normal workflow authoring unless debugging the runtime itself.
Authoring checklist
- Define the purpose and side-effect boundary.
- Define typed dataclass inputs and outputs.
- Split steps by ownership:
- agent judgment/synthesis/editing →
agent(...) - deterministic command/check/evidence →
bash(...) - human decision or external side-effect authorization →
ask(...)
- agent judgment/synthesis/editing →
- Make artifacts reviewable inline in the Review Queue; paths alone are not enough.
- Add explicit gates before external effects: send, publish, schedule, commit/push/PR/merge, deploy, payment, credentials, destructive data changes.
- Record receipts: commands run, stdout/stderr/exit code, artifact paths, external handles, side-effect ledger.
- Add smoke tests that run without provider credentials by using
mock_outputwhere appropriate.
Minimal skeleton
from __future__ import annotations
from dataclasses import dataclass, field
from typing import Literal
from hermes_workflows import agent, ask, bash, parallel, workflow
@dataclass
class MyWorkflowInput:
topic: str
@dataclass
class DraftPacket:
title: str
body: str
risks: list[str] = field(default_factory=list)
@dataclass
class ReviewDecision:
action: Literal["approve", "request_changes", "drop"]
feedback: str | None = None
@workflow
async def my_workflow(inputs: MyWorkflowInput) -> dict:
req = inputs if isinstance(inputs, MyWorkflowInput) else MyWorkflowInput(**dict(inputs or {}))
preflight = await bash(
"python -V && git status --short",
key="preflight",
timeout_seconds=60,
)
draft = await agent(
"draft_packet",
prompt="Create a concise reviewable draft from the input.",
input={"request": req, "preflight": preflight.stdout[-4000:]},
returns=DraftPacket,
mock_output={"title": req.topic, "body": "Demo draft", "risks": []},
)
decision = await ask(
"Review this draft before any external side effect.",
key="review_draft_packet",
input={"draft": draft, "side_effects": {"published": False}},
returns=ReviewDecision,
)
return {"status": decision.action, "draft": draft, "decision": decision}Step design rules
- Prefer small named steps with stable keys; keys should describe the public review/action, not internal plumbing.
- Keep workflow bodies intention-level. Hide retry loops, per-item keys, and feedback routing in helper functions when they get noisy.
- Rejections must roundtrip into workflow logic. If a human says
request_changes, feed the feedback into a targeted regeneration step. - For fan-out review, use
ask(...)insideparallel(...)only when each review is independent and can emit its own Review Queue request. - For code workflows, distinguish plan approval, implementation/review approval, and landing approval. One approval does not authorize all later side effects.
- For generated files, return paths plus summaries/checks/hashes where useful.
Testing pattern
At minimum:
PYTHONPATH=src:. python -m compileall -q path/to/workflow.py
PYTHONPATH=src:. python -m pytest -q tests/test_your_workflow.pyTest:
- first wait/review key appears;
- typed dataclass outputs rehydrate correctly;
- approval/request-changes paths behave as expected;
- side-effect flags remain false before explicit final gates;
- mock-output path runs without provider credentials;
- deterministic receipts are preserved in status/artifacts.
Placement guidance
- Runtime/package examples can live in the Hermes Workflows repo.
- Normal user/team workflows should live in the owning workspace or a separate private workflows repo and be exposed through that workspace’s workflow registry/catalog.
- Do not bake private business/blog/event workflows into the runtime package unless explicitly making a public example.
Do not put here
- One-off content/event/email/coding workflow designs for a specific user or demo.
- Personal infrastructure preferences.
- Repo-specific launch history.
- Runtime implementation details better suited to package-development docs.
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

