Topic: AI agents

Agent Skills: Build Verifiable Workflows

Use hch-log.com's Astro release workflow to build a downloadable SKILL.md with existing checks and an ads.txt failure case, separating command validation from agent activation tests.

Looking at the Agent Skills ecosystem today, it is easy to walk away with two completely opposite impressions.

On one side, an introduction featured on daily.dev describes Skills as an open, cross-tool format for packaging procedural knowledge and loading it on demand. On the other, Reddit recently asked a blunt question: Why do all the Claude Code skill files online seem completely pointless?

Both sides are right.

Agent Skills solve a real problem, but a SKILL.md file does not magically turn ordinary advice into expertise. It tells an agent when to load a particular way of working. Whether that method deserves to be loaded still depends on whether it preserves anything genuinely scarce.

This revision uses the site’s Astro and Cloudflare release workflow as a concrete case: package existing commands, stop conditions, and production checks into a downloadable file, then test one gate with a deliberately invalid build artifact.

Package useful commands, checks, and stop conditions into a reusable skill. · Source: GIPHY

The format solves how content loads, not whether it is good

According to the official Agent Skills specification, a skill needs only a SKILL.md containing name, description, and Markdown instructions. It can also include:

  • scripts/: executable code
  • references/: supporting documentation
  • assets/: templates and other resources

The central idea is progressive disclosure. At startup, the agent sees only each skill’s name and description. It loads the full instructions after deciding that a task is relevant, then reads scripts and reference material only when needed.

This is a sensible design. It keeps every rule from consuming context in every conversation, while making workflows versionable, shareable, and maintainable.

But the format governs the container, not the quality of what goes inside. Putting “write clean code, use meaningful variable names, and remember to test” into a skill still amounts to repeating what the model already knows.

The least useful skill teaches the model what it already knows

Many public skills read like tutorials for beginners. They explain accessibility, REST, or how to split React components. The material may be correct, but the model’s training data probably already contains plenty of it.

These skills tend to share three problems:

  1. The trigger is too broad: Touch anything related to frontend or databases and the skill loads, consuming context for little gain.
  2. They offer adjectives instead of decisions: They demand “robust,” “production-ready,” and “best practice” work without saying how completion will be judged.
  3. They ignore the environment: They overlook the project’s actual scripts, deployment path, compatibility requirements, and failure conditions.

They make the agent read more without helping it guess less.

What deserves to be preserved is usually not public knowledge. It is the detail you have repeatedly paid to learn at work: which check cannot be skipped, which state requires an immediate stop, which source is authoritative, and what evidence must exist at the end.

Keep tools, usage conditions, and checks together so the next task has a dependable starting point. · Source: GIPHY

A good skill preserves decisions and brakes

This repository already has pnpm test, pnpm lint, pnpm seo:check, and pnpm deploy. The deploy script runs pnpm seo:check && wrangler deploy: if the output check fails, the upload does not execute. A skill can reuse this path instead of adding another release wrapper.

Download the site’s release example, hch-log-release-SKILL.md. It is a sample for inspection and adaptation, not an automatic installation. Following your host’s skill-directory rules, save it as hch-log-release/SKILL.md and verify that the host loads it. Its trigger description is:

---
name: hch-log-release
description: Use only for an explicitly authorized release of this Astro repository to hch-log.com. Do not use for a read-only review or an unrelated site.
---

The full file requires reading repository instructions, checking git status and the task’s diff, and preserving other people’s changes. It stops the release if unrelated changes cannot be excluded. It also separates deployment from commit and push authorization: “deploy” does not authorize committing every changed file.

Run these commands in order from the repository root:

pnpm test
pnpm lint
pnpm seo:check
pnpm exec wrangler whoami
pnpm exec wrangler deploy --dry-run
# Only after successful checks and explicit authorization for this release:
pnpm deploy

Prerequisites are Node.js, pnpm, repository dependencies, the correct Wrangler configuration, and an authorized account. A dry run does not upload and cannot replace production verification. After release, read the changed bilingual URLs, example downloads, and ads.txt; record the Worker version ID and report local validation, upload, and production results separately.

A real failure case: reject the wrong publisher ID

On 2026-10-10, using Node.js 26.8.1, I first ran pnpm seo:check successfully, then changed only the regenerable dist/ads.txt. This experiment does not modify public/ads.txt or deploy anything. Its finally block restores the original artifact. Repeat it in an isolated working directory with no concurrent build or deployment:

// Save as .mjs and run at the repository root after a successful build.
import assert from "node:assert/strict";
import { readFile, writeFile } from "node:fs/promises";
import { spawnSync } from "node:child_process";

const path = "dist/ads.txt";
const original = await readFile(path, "utf8");
try {
  await writeFile(path, "google.com, pub-0000000000000000, DIRECT, f08c47fec0942fa0\n");
  const check = spawnSync(process.execPath, ["scripts/check-seo.mjs"], {
    encoding: "utf8",
  });
  if (check.error) throw check.error;
  assert.equal(check.status, 1);
  assert.match(check.stderr, /ads\.txt must be included in the deployed assets/);
} finally {
  await writeFile(path, original);
}

Observed result: the incorrect ID made the checker exit with code 1 and ads.txt must be included in the deployed assets. The checker passed again after restoration. This establishes that the existing artifact gate rejects this error; the script’s && prevents the subsequent deployment step. No incorrect file was uploaded, and this experiment did not test whether an agent obeys the skill.

Trigger conditions need negative cases too

User request Intended behavior of this sample Verification status
Edit this site’s articles, then deploy to hch-log.com Select the release workflow and run checks first Manual review of the description and steps
Read-only review: no edits or deployment Do not execute a release Manual review of the description and steps
Deploy another product’s website Do not apply this site’s Wrangler configuration Manual review of the description and steps

These are testable expectations, not measured model activation results. This revision verifies commands and an invalid artifact. It does not measure selection rate, false activation, or cross-host behavior with repeated independent model runs. An activation test should also record selection and subsequent compliance separately.

The recent paper Authoring Agent Skills: A Software-Engineering Approach treats a skill as a software artifact: the description is the interface that determines whether it activates, while the body and bundled resources are its implementation. That analogy forces two questions more useful than “Is the documentation complete?”:

  • Does the agent select the skill when it should?
  • Does the skill stay out of the way when it should not run?

A skill is not really verified until both cases have been tested.

Give deterministic work to code and judgment to the model

Anthropic’s original introduction to Agent Skills points out that some operations are better suited to traditional code execution. That boundary matters.

If a parser, schema validator, test, or exit code can decide something, do not spend a paragraph asking the model to “check carefully.” For example:

  • Is the frontmatter valid? Use a validator.
  • Is an artifact missing? Use a script.
  • Did the build succeed? Read the exit code.
  • Does the change meet the requirement? Let the agent judge it in context.

That does not mean every skill needs a script to look serious. A script earns its place when a deterministic operation repeats, is easy to get wrong, or would waste substantial context when performed manually. If one existing command solves the problem, use that command.

A skill is guidance, not a security boundary

A skill can influence an agent’s choices, but it cannot guarantee compliance. Writing “do not read secrets” in SKILL.md is not access control.

This matters even more when installing third-party skills. A skill may bundle Python, Shell, or JavaScript code that typically runs with the file and network permissions available to the agent. Red Hat’s Agent Skills security analysis therefore recommends treating skills as a supply-chain concern: review their source and scripts, restrict file permissions, isolate execution, minimize network and tool access, and never embed credentials in a skill.

The official specification includes an experimental allowed-tools field, but not every agent supports it. The real security boundary still belongs in sandboxes, operating-system permissions, human approval, and platform controls—not in natural-language instructions.

An open format does not guarantee identical behavior everywhere

The open Agent Skills format makes the core directory structure and metadata portable across tools. That is a useful starting point. But “can read it” and “will run it the same way” are different promises.

A skill can fail elsewhere as soon as it depends on an agent-specific tool, a fixed directory, an undeclared binary, or implicit permissions. Reusable skills should declare their environment requirements, use relative paths, and fail early when required tools are missing. Cross-tool compatibility should be a test result, not an assumption based on the .md extension.

Seven questions to ask before publishing a skill

  1. Does this problem actually recur? A one-off task does not need a skill.
  2. Does the description say both what the skill does and when to use it?
  3. Does the content preserve a workflow, constraint, or organizational context the model would not otherwise know?
  4. Does it define the conditions that require a stop, approval, or report?
  5. Do deterministic decisions have a minimal executable check?
  6. Are third-party scripts, permissions, and network requirements visible and restrictable?
  7. Have both positive and negative activation cases been tested?

If most answers are unclear, do not publish it yet. The material may belong in documentation, a project rule, or a one-time prompt. It does not need to be forced into a skill.

Conclusion: A skill should be a scar, not an encyclopedia

A good skill usually begins with a real failure: a missed migration, someone else’s work overwritten, a deployment never verified, or untrusted input mistaken for an instruction. The team converts that cost into triggers, steps, brakes, and evidence so the next agent does not repeat it.

A bad skill merely stuffs a technical article into the context window and hopes the model becomes more senior.

Agent Skills are worth using, but the measure should not be how many rules they contain. Ask instead: Does this skill eliminate one more guess, prevent one more skipped gate, and leave behind a verifiable result?


External references