← Back to library

Write the agent skill and its tests before the task

u/xbxz, who owns a software company with 20 developers, installed Hermes on a server connected to team chat, repositories and hosting, acting only once he says yes. It covers PR alerts, client notes and daily builds. His routine: create a skill and its test cases first, then run the task. Which prompt fires which skill is still guesswork.

  • OutcomeFor each recurring job you hand an always-on agent, first create a skill with test cases, then run the real task through it.
  • SetupAn afternoon+
  • LevelAdvanced
  • Creditu/xbxz on r/hermesagent
View original
Works with
Custom agent

Published Oct 23, 2026Updated Oct 23, 2026AI dry run on sample input: passed Oct 23, 2026Source verified Oct 24, 2026

When should you use it?

  • You hand the same jobs to an agent every day
  • Several clients each need status updates
  • An agent has access to repos and builds

Not for: One-time tasks; Teams not ready to review agent actions

What do you need, and what do you get?

You need

  • List of recurring jobs
  • A skill-creator tool in your agent
  • Sample inputs and expected outputs

You get

  • One tested skill per job
  • Notes on which prompts trigger which skill
  • Approval step before actions

How does it work, step by step?

  1. Name the jobPick one recurring task, such as sending clients a daily build link.
  2. Create the skillHave the agent draft a skill with steps, inputs and limits.
  3. Add testsWrite sample inputs and what a correct result looks like, and run them.
  4. Check triggersTry several phrasings and note which skill the agent picks, since the poster found this trial and error.
  5. Keep a yes stepLet the agent propose actions and wait for your approval before it runs them.

The prompt

Our own prompt, inspired by u/xbxz on r/hermesagent and written to work in Custom agent. Values in lime are placeholders.

Fill in the blanks (optional; the copied prompt uses your values)

Prompt1 variable
Create a skill for this recurring job: {job}. Include the steps, the inputs it needs, what it must never do, and when to ask me for approval.
Then write five test cases with sample inputs and the expected result, run them, and report which passed. Finally, list three phrasings I might use and which skill each should trigger.

Inspired by u/xbxz on r/hermesagent: Hermes is too good to be true. (working use cases below). The prompt above is written by playbooks.bot in our own words; nothing from the original is quoted.

What can go wrong?

  • Broad server access raises the stakes; give the agent the narrowest access that works.
  • Agents can be token hungry; watch usage per skill.
  • Small local models looped on tool calls for the poster; test before relying on them.

Our take

u/xbxz's habit of writing the skill and its tests before running the task is the part worth taking away. Agents are inconsistent with vague requests, and a skill with test cases turns a one-off prompt into something that behaves the same way next week. It also forces you to define what success looks like, which most informal agent use never does. The open problem the poster names is a real gap: with many skills installed, it is hard to know which phrasing selects which skill. A simple workaround is a small table of typical requests and the skill each should trigger, rerun after every change. The yes step before actions is the right guard for a company tool that touches client communication and hosting. One caution: the post describes giving the agent root on the server. Most teams should start with a dedicated user and only the permissions the logs show are needed. Review client-facing updates before they go out for the first few weeks, then relax only where they are consistently right.

Where the time goes back: Routine notices and build hand-offs run from tested skills instead of daily manual steps.

FAQ

Why skills before tasks?
A tested skill makes the next run predictable instead of improvised.
Did local models work?
The poster saw tool-call loops on local models with limited memory and moved to a hosted model.

Source and credit

Inspired by u/xbxz on r/hermesagent. We describe the idea in our own words, link to the original, and wrote the prompt ourselves; nothing is quoted.

Inspired by
Hermes is too good to be true. (working use cases below)
Creator
u/xbxz on r/hermesagent
Published on
Reddit
Original date
Sep 17, 2026
License
Not openly licensed (the poster keeps all rights), so we quote nothing and link to the original
Originally for
Custom agent
AI dry run
Oct 23, 2026: passed. Dry-run tested by our AI test agent on sample input. PASS: Gates held on desk check; no live sends, bookings or purchases.
AI dry run on sample data; not run with live connected accounts. The playbooks.bot test agent filled the prompt with synthetic inputs, produced the output and checked it against the page's stated outputs and guardrails.
Verified
Oct 24, 2026: source link resolves to the original, the credited creator published it, our excerpt or prompt matches it, and the license allows our use.

Are you the creator? Claim or correct this page.

More in IT & Security

All 82 IT & Security playbooks →

Related playbooks

IT & SecurityPrompt✓ AI dry run

Question an agent's pull request instead of skimming reviews

Have a fresh agent list every concrete change in an agent-written pull request (schema, scheduled jobs, features, new services, settings, endpoints and removals) without judging it, then press it on each item you cannot explain, give it the product context it lacks, and cut whatever nobody can justify before you merge.

Credit: u/EstablishmentGood414 on r/codex

Minutes
IT & SecurityPrompt✓ AI dry run

Vet a third-party agent skill before you install it

Before adding someone else's skill to your coding or design agent, have the agent read the SKILL.md and report what it does, every command it would run, who it credits and where it clashes with your own standards, with nothing installed yet.

Credit: Tommy Geoco (@designertom)

Minutes
IT & SecurityWorkflow✓ AI dry run

Compare an agent run with a task you did by hand

Before you believe big productivity claims, time and cost one routine agent task against a similar one you did yourself, counting review and cleanup.

Credit: Chris_Newton on Hacker News

Under an hour
IT & SecurityWorkflow✓ AI dry run

Self-editing agent with snapshots and automatic rollback

Let an agent rewrite itself in a container while a protected runner snapshots, validates and rolls back every change it makes.

Credit: PedroMFernandes on Hacker News

An afternoon+
IT & SecurityWorkflow✓ AI dry run

Start a coding task locally, hand it to the cloud

Let a coding agent explore your repo locally until you trust its plan, then shift that session onto a cloud machine to finish while you do other work.

Credit: u/Ok_Insurance_919 on r/CognitionLabs

Under an hour