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

/writing-hordev-skills

@555219e
by Jeffheffrey/hordev4 stars
Run it yourself

Use when creating a new skill, editing an existing one, or verifying a skill triggers correctly and works standalone

  • 1 file
  • 5.8 KB
  • Updated 2 months ago
  • GitHub
Use this Skill: https://skilld.dev/gh/heffrey/hordev/writing-hordev-skills

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

SKILL.md

≈35 tokens for metadata: the name and description. ≈1.4k when used: this file.

Description uses 1.8% 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 ≈140 characters, or 1.8%.

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.

Writing Hordev Skills

A skill is a reference guide — imperative instructions for a model to follow in specific situations. Write once, invoke repeatedly across tasks.

Description Field Is a Trigger, Not a Summary

Your description is the ONLY text a model sees when deciding whether to load your skill. Make it describe WHEN to use, not WHAT it does.

Bad Why Good
"Handles async test flakiness by waiting for conditions instead of sleep" Summarizes the approach; agent may stop reading "Use when tests race, hang, or pass/fail inconsistently"
"A guide to writing hordev skills with TDD" Says what it is "Use when authoring new skills or editing existing ones"
"For state management" Too vague "Use when managing shared state across parallel subagents"

Start with "Use when" and list concrete symptoms or situations. Add keywords an agent would search for (error messages, tool names, symptoms).

Trigger test: Ask — "would a model match this description to the situation the skill is for, given only this text?" A description that names the skill's own actions ("extracts", "produces", "dispatches") rather than the user's situation ("when a request needs", "when requirements are vague") fails this test. Rewrite until the trigger situation is the subject.

File Structure

skills/skill-name/
  SKILL.md              # Required: overview, patterns, examples
  supporting-file.*     # Only if reusable code or heavy reference

Keep everything inline unless it's >100 lines or a reusable tool.

Frontmatter

Required: name and description. Name uses letters, numbers, hyphens only.

---
name: your-skill-name
description: Use when [specific triggering condition]
---

Hordev-Specific: No Approval Gates

Hordev prioritizes time-to-prototype. Your skill must not add a user round-trip or checkpoint.

Test: Does following your skill require the user to approve output before proceeding? If yes, rewrite it to produce a committable artifact without approval.

Example bad: "Sketch the design, wait for approval, then build." Example good: "Build the design directly (revise if feedback arrives)."

Editing an Existing Skill

When a skill fails in production (seen via improving-hordev), make the smallest change that prevents that failure. Add a rule rather than rewriting sections. Test the specific failure before deploying.

Red flags:

  • Rewriting whole sections
  • Adding multiple new rules at once
  • Editing mid-run (wait until task completes)

Narrow vs. Broad

One skill = one decision point. If your skill covers "decomposing work AND dispatching AND reconciling," split it.

Test: Describe your skill in one sentence. If it needs "and," it is two skills.

Content Structure

# Skill Name

## Overview
Core principle, 1–2 sentences.

## When to Use
Concrete situations and symptoms (bullets).
When NOT to use.

## Core Pattern / Quick Reference
Table or list for scanning. Code inline if <50 lines.

## Common Mistakes
What breaks + fixes.

## Red Flags
Signs you are about to violate the skill (discipline skills only).

## Battle cry
The orcish line that fits this skill's moment, and when it earns saying.

Battle Cries

Every skill ends with one, because hordev is a horde and sounds like one. Pick a line that matches the moment the skill owns — the peon lines for accepting and grinding, the grunt lines for dispatch and combat, a blessing for a clean finish — and say when it earns saying. A cry that could sit at the end of any skill is the wrong cry.

Name the moment it does not apply, too. Skills that report failures (horde-qa on a red run, debugging-in-a-horde mid-hunt, assumption-ledger on a falsified assumption) must say so explicitly, or the line lands on top of bad news.

Do not invent a new bank. Draw from using-hordev § Voice, and add a line there first if the moment genuinely has no cry.

Testing Your Skill

Before deploying: Run the skill against a fresh model with NO prior conversation context. Does it trigger correctly? Does a model follow it without the authoring conversation's context?

For technique skills: Can a fresh model apply the technique to a new scenario?

For discipline skills: Does a fresh model comply under pressure (time constraint, sunk cost)?

For editing: Test the specific failure the edit addresses. Verify new wording does not break compliance in other scenarios.

Public Repository

hordev is open source. Skills are read by strangers. No machine-specific paths (no /Users/<name>/, no /home/<name>/), no personal references, no assumed local setup. Use paths relative to the project root, or abstract examples.

Word Count

Target <200 lines. Concrete examples and decision rules are good; explanation and background are expensive. Remove anything that does not change how a model behaves.

Red Flags — STOP Before Writing

Excuse Reality
"I'll test after I deploy" Deploy untested = deploy broken. Test first.
"It's obvious to me" Clear to you ≠ clear to a fresh model. Test it.
"This adds a checkpoint but it's important" Checkpoints delay prototype. Hordev rejects them. Redesign.
"I'm extending an existing skill" Test the full skill afterward. Changes can break old scenarios.
"Editing is too risky" Untested edits are riskier. Test the failure, make the change, re-test.

Battle cry

"Zug zug." — when a new skill is written and its scenarios pass.

Once, at that moment — not every message, and never two messages running. Full rules in using-hordev § Voice: conversational output only, never in artifacts, never on bad news.

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.

No third-party reports yet.

Signed by skilld at 555219e. This ties the file your Agent reads to that commit on GitHub. It does not review the instructions.

Last checked against GitHub 2 months ago.

Steadyupdated 2 months ago

README badge

README badge for heffrey/hordev/writing-hordev-skills