Agent Skills: From Repeated Prompts to Measured Procedures
by Frank de Alcantara on November 11, 2026
English translation by OpenAI Codex, November 11, 2026.
By the tenth review of the week, pasting the same prompt for the tenth time starts to grate. The prompt is right. We have refined it with every use, which is precisely why we keep returning to it. The trouble is that a procedure already worked out still lives in the memory of whoever types it. Whenever somebody forgets a detail, the result differs from last time’s.
Damn AI! Or is it?
The creative side of software engineering comes with its share of repetitive manual work: writing tests, reviewing code, updating dependencies, and going through quality checks. Almost all of it follows a fixed procedure. Each organization has its own way of reviewing and measuring coverage, and the CVE (Common Vulnerabilities and Exposures) scanners have to go away happy. This assumes, of course, that you care about security, structure, standards, quality, and all those things that supposedly have nothing to do with writing code.
Agent skills take that procedure out of specialists’ heads and give it to the agent as an artifact.
Writing skills that follow your organization’s rules and processes is a skill in its own right. Today. This article asks what separates a skill that works from a tidy prompt saved in a directory. The OpenHands team’s article on creating skills provided both the inspiration and the map [1].
The route, detours, and stubbornness are mine.
The Minimum Contract
A skill is a directory with a contract. The AgentSkills standard defines the minimum [2]: a SKILL.md file containing YAML metadata and Markdown instructions, alongside three optional directories with distinct roles.
1
2
3
4
5
revisao-cpp/
├── SKILL.md # Required: metadata and instructions
├── scripts/ # Optional: executable code
├── references/ # Optional: documentation
└── assets/ # Optional: templates and assets
The required metadata fields are a name and a description. License, compatibility, custom metadata, and preapproved tools are optional. The name follows identifier rules. It has 1 to 64 characters, uses lowercase letters, digits, and hyphens, has no leading, trailing, or consecutive hyphens, and matches the directory name. The description, up to 1,024 characters, must say what the skill does and when to use it. Describing only what it does leaves the agent to guess when to load it. Describing only when to use it leaves the agent unsure what it will do. The standard recommends keywords that help the agent recognize the right task.
For our example, consider the routine every C++ repository here follows before accepting a change. Build with the project script, run the test suite, compare new warnings with the accepted list, and check that the public interface has not changed inadvertently. The revisao-cpp skill captures that routine:
1
2
3
4
5
6
7
8
9
10
11
12
---
name: revisao-cpp
description: Review C++23 changes against the project standards. Use this when the user requests a code review, a PR review, or a review before committing.
---
# C++ Review Against Project Standards
1. Run build.ps1 and record the result.
2. Run the test suite; no tests may fail.
3. Compare compiler warnings with references/avisos-aceitos.md.
4. Check the public interface: no signature in include/ may change without justification in the changelog.
5. Write the assessment in three sections: what is correct, what needs to change, and the verdict.
The skill is written in English for reasons of cost. Language models read tokens, text fragments defined by a tokenizer, often built using BPE (Byte Pair Encoding). Since tokenizers train on predominantly English data, common English sequences tend to become a single token. Portuguese, with more inflections and accents, is split into more pieces. The same instruction therefore tends to cost more tokens in Portuguese. Petrov et al. measured the disparity across languages [7], giving rise to the term tokenizer tax. Newer tokenizers have narrowed the gap, which still exists.
The contract makes the procedure readable, versionable, and shareable. Whether the procedure is sound and whether the agent follows it are separate questions. That is where the rest of the work lies.
Why the Agent Reads So Little
The description merits care because it is the part of the skill the agent always reads. Loading happens in three stages [2]. The metadata, about 100 tokens, enters the starting context. The body of SKILL.md, recommended to stay under 5,000 tokens and 500 lines, is loaded when the skill is activated. Files in scripts/, references/, and assets/ are opened individually as needed. This is progressive disclosure. The reason is economic. Every token occupies context and carries a cost in response quality and per-call expense.
The division of labor follows the same logic. SKILL.md gives directions. Scripts execute. References document. A well-designed skill puts mechanical steps in scripts and lengthy material in references, leaving the body with the decisions the model needs to make. The standard recommends focusing each reference file on one topic so that loading it on demand consumes less context. Brevity is a budget decision.
Authorship Matters More Than Format
SkillsBench is a benchmark with 87 tasks across eight domains, each with a deterministic pass/fail verifier. It measured the effect of adding skills to 18 model and coding-agent combinations [3]. With human-curated skills, the mean pass rate increased from 33.9% to 50.5%, a gain of 16.6 percentage points over the same configurations without skills. On the public leaderboard [8], the five highest-ranked configurations gained between 15.8 and 25.7 points. OpenHands with GPT-5.5 went from 51.5% to 67.3%, and Gemini CLI with Gemini 3.1 Pro rose from 36.0% to 60.8%.
The third arm of the experiment matters here. When agents generated their own skills, pass rates for the three configurations tested fell 8.1 to 11.5 percentage points below their no-skill baselines [3]. Models benefit from well-written procedural knowledge. The experiment found that the procedures they generated on their own failed to deliver that benefit.
An attentive reader might ask how that result fits the practical advice to have an agent document a workflow immediately after running it. In the experiment, the agent invents a procedure from scratch, without a worked example or verification, and writes a plausible account of a workflow it has never tested. In the second case, the workflow just ran, with real commands, outputs, and errors. The agent acts as a scribe. The value comes from the executed example and the person who decides what to capture. The skill inherits that value when it records work that actually took place.
In practice, run the workflow and keep the evidence. Then ask the agent to turn the run into a skill using the steps that actually occurred. Finally, test the skill on the same workflow, preferably alongside a run without it, and compare. Creation tools such as skill-creator conduct a guided interview [1]. In the version Red Hat describes, they generate test cases, run the task with and without the skill in parallel, and compare the results with a model acting as judge [4]. The interview improves the transcript. You remain the author.
Distributing the Procedure as Code
A skill that works on your machine is an anecdote. Versioning makes it infrastructure. The shortest path is the repository’s .agents/skills/ directory. There the skill travels with the code and gains history, review, and rollback. Teams that prefer separate repositories can share skills on GitHub with /add-skill followed by the repository URL. The OpenHands extensions registry makes procedures available to anyone who wants to use them [5].
When the whole team uses the same skills, code reviews, implementations, and standards become consistent. That consistency lives in a versioned artifact. The next step is to automate invocation as well. GitHub automation starts the workflow when a pull request (PR) is ready for review. Figure 1 shows the full cycle.
Correct because the article advises running the workflow, keeping evidence, asking the agent to turn the actual run into a skill, and then testing it.
Incorrect because the workflow should be tested before sharing or publishing; immediate publication skips the validation step.
Incorrect because the recommended approach is to capture the steps that actually occurred, not to invent a plausible procedure from a general description.
Incorrect because the value comes from the executed example and recorded evidence, not from observing a new run and inventing a procedure.
Figure 1. GitHub triggers the automation, the skill guides the review, and comments and the verdict return to the PR.
Evidence: Record, Evaluate, Aggregate
Once the skill is published, we can find out whether it works. Measurement has three stages, each depending on the one before it.
First, record. OpenTelemetry-compatible instrumentation such as the open-source Laminar library [6] records each skill execution as a trace of actions, timings, and outputs. With an API key in LMNR_PROJECT_API_KEY, traces flow into the monitoring system. The answer to what did the agent do? is in the trace. Figure 2 shows an illustrative review trace with example timings.
Figure 2. Each bar represents an agent action, and its length represents the elapsed time. The example totals 7.2 seconds.
Second, evaluate. A pile of traces needs a measure. PR review provides a useful signal: adoption. If a developer incorporated a suggestion into the final code, the suggestion was probably useful. Divide the number of adopted suggestions by the number made. The OpenHands team calls this suggestion accuracy. Here we call it precision because it measures the share of suggestions that were taken up:
1
precision = adopted_suggestions / total_suggestions
To measure it, run a dedicated CI (continuous integration) evaluation action after the PR merges. Gather the human comments, the agent’s comments, and the final accepted diff. A language model acting as a judge counts the suggestions the AI made and how many were incorporated. OpenHands published this excerpt from its production review bot’s prompt [1]:
1
2
3
4
5
6
7
8
9
### ai_suggestions
Count items in `agent_comments` where the `body` contains an actionable code
suggestion (look for code blocks, "suggestion:", specific changes to make).
Do NOT count general praise or approval-only comments.
### ai_suggestions_reflected
Count suggestions that were incorporated. A suggestion is "reflected" if EITHER:
1. There exists a `human_responses` entry indicating that the suggestion was reflected
2. OR the suggestion is reflected in `final_diff`
Ask the judge for an open-ended analysis too. Which comments were helpful? Which were noise? What did the agent miss? That analysis feeds the third stage.
Third, aggregate. A SQL query over the traces turns individual runs into one time series of precision. The OpenHands article describes an upward trend and gives no numerical values. Figure 3 illustrates the shape of such a result.
Figure 3. In this illustrative series, PR review precision rises from 58% to 74% in eight weeks, with some fluctuation.
The trend lets you compare repositories, A/B test instruction wording, and choose which skill version to keep based on measurements. To close the loop, feed the open-ended analysis back to a long-context reasoning model. The OpenHands team used Gemini 3 Pro. It receives the current prompt and the aggregated history of evaluations and suggests improvements. The team reported two findings from its review bot. In about 15% of traces with suggestions, the agent proposed technically correct changes that were rejected because they conflicted with the repository’s testing philosophy or maintenance practices. More seriously, in about 10% of traces, the agent identified a critical flaw and approved the PR anyway. The model proposed two new rules: disallow approval when a critical flaw exists, and require the agent to verify that a suggestion fits existing patterns, or that a file claimed to be missing really is absent, before posting the suggestion [1]. The rules go into a new skill version, which is measured again with new data.
What Stays with Us
The AgentSkills contract makes a procedure readable and shareable. The skill’s substance comes from the executed example behind it. SkillsBench found that curated procedural knowledge was worth roughly 16 percentage points, while model-generated procedures scored below the no-skill baseline. Who decides what goes into the package matters. Recording, evaluating, and aggregating give changes to a skill a measurable basis.
An unmeasured skill is a repeated prompt with a certificate of good intentions. Repetitive work moves from the memory of the person typing it to the contract the agent loads. Only then can it be measured, corrected, and, with luck, forgotten.
Acronyms and Abbreviations in This Article
The table lists the English terms and Portuguese translations of the acronyms and abbreviations used in this article.
| Acronym / Abbreviation | English Term | Portuguese Translation |
|---|---|---|
API |
Application Programming Interface | Interface de Programação de Aplicações |
BPE |
Byte Pair Encoding | Codificação por Pares de Bytes |
CI |
Continuous Integration | Integração Contínua |
CLI |
Command Line Interface | Interface de Linha de Comando |
CVE |
Common Vulnerabilities and Exposures | Vulnerabilidades e Exposições Comuns |
GPT |
Generative Pre-trained Transformer | Transformador Generativo Pré-treinado |
AI |
Artificial Intelligence | Inteligência Artificial |
PR |
Pull Request | Solicitação de Mudança |
SQL |
Structured Query Language | Linguagem de Consulta Estruturada |
YAML |
YAML (originally YAML Ain’t Markup Language) | YAML |
References
-
MICHELINI, J.; NEUBIG, G. How to Create Effective Agent Skills. OpenHands Blog, February 27, 2026. https://www.openhands.dev/blog/20260227-creating-effective-agent-skills. Accessed October 17, 2026.
-
AGENTSKILLS. Agent Skills Specification. https://agentskills.io/specification. Accessed October 17, 2026.
-
LI, X. et al. SkillsBench: Benchmarking How Well Agent Skills Work Across Diverse Tasks. arXiv:2602.12670v4, June 14, 2026. https://arxiv.org/abs/2602.12670. Accessed October 28, 2026.
-
ANAND, S.; O’CONNOR, E.; VALAPPIL, A. Building skills for AI agents: pitfalls and best practices for skill development. Red Hat Emerging Technologies, July 28, 2026. https://next.redhat.com/2026/07/28/building-skills-for-ai-agents-pitfalls-and-best-practices. Accessed October 17, 2026.
-
OPENHANDS. OpenHands Extensions. GitHub. https://github.com/OpenHands/extensions. Accessed October 17, 2026.
-
LAMINAR. Laminar. https://www.laminar.sh/. Accessed October 17, 2026.
-
PETROV, A.; LA MALFA, E.; TORR, P. H. S.; BIBI, A. Language Model Tokenizers Introduce Unfairness Between Languages. In: ADVANCES IN NEURAL INFORMATION PROCESSING SYSTEMS (NeurIPS), 37., 2023. https://proceedings.neurips.cc/paper_files/paper/2023/hash/74bb24dca8334adce292883b4b651eda-Abstract.html. Accessed October 28, 2026.
-
SKILLSBENCH. Leaderboard. skillsbench@1.1. https://www.skillsbench.ai/. Accessed October 28, 2026.
(Updated: )