Index of every page on this site: llms.txt
All skills
Run it yourself

Use when creating skill repositories, standardizing or validating skill repo structure, setting up composer/release workflows, configuring split licensing (MIT + CC-BY-SA-4.0), fixing plugin.json / SKILL.md validation or version-parity errors, writing or validating skill evals, selection tests or captured agent evidence, or releasing a skill version (version bump, tagging).

Use this Skill: https://skilld.dev/gh/netresearch/skill-repo-skill/skill-repo

Nothing lands on disk. Nothing to clean up.

Fork this Skill

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

referencesskill-quality.md

≈7k tokens on demand. Your agent reads this file only when SKILL.md points to it.

<!-- SPDX-License-Identifier: CC-BY-SA-4.0 --> <!-- SPDX-FileCopyrightText: Netresearch DTT GmbH -->

SKILL.md Quality Rules — Detail and Examples

Contents

  • Why these rules exist
  • Content value rubric
  • Eval evidence
  • Description rules
  • Body rules
  • Reference patterns
  • Authoring checks before commit
  • Auditing
  • Sources

Detailed guidance backing the summary in SKILL.md (§ SKILL.md Frontmatter: the Budgets and Flat discovery paragraphs).

Why these rules exist

Claude Code skills have two distinct context costs:

  • Listing cost (per turn): Only name, description, and optional when_to_use from each skill's frontmatter enter context on every assistant turn — whether the skill is invoked or not. Per-skill cap: 1,536 chars (skillListingMaxDescChars). Total listing cap: skillListingBudgetFraction × context_window (default 0.01).
  • Body cost (per invocation): The full SKILL.md body loads when the skill is invoked, and persists for the rest of the session. Reference files (references/*.md) are not auto-loaded — the model only reads files it sees referenced.

Description bytes are the always-on tax; body bytes are the on-demand tax. References are free unless the model knows they exist and decides to read them.

Content value rubric

Size rules bound how MUCH a skill costs; this rubric bounds WHAT KIND of content earns that cost. Every passage in a SKILL.md body or reference file must provide at least one of six value categories:

  1. Org/project-specific knowledge — Netresearch conventions, internal tooling, URLs, field IDs, policy decisions. (jira custom-field IDs; the split-licensing model.) Organization-wide only: one customer's sites, domains or excludes are not category 1 and belong in that project's AGENTS.md (see "Shared skills carry generic examples" below).
  2. Version/ecosystem facts models get wrong — post-training-cutoff changes, version-specific breaking changes, niche tool flags. (TYPO3 v14 #108055 asset-concat removal; golangci-lint v2 config.)
  3. Retro-born failure patterns — symptom → cause → required behavior → verification, encoded from a real incident. (github-project: the auto-approve/Copilot race.)
  4. Executable scripts/validators — deterministic work shipped in scripts/ or checkpoints.yaml instead of prose the model re-derives.
  5. Inference suppression — "read file X, never guess Y" rules that shut down a known guessing pattern and its retry cost. (typo3-ddev: never guess backend URLs — read .ddev/config.yaml.)
  6. Anti-rationalization guards — rules that stop the model from skipping steps or over-claiming. ("No 'tested' claim without pasted command output.")

Generic bloat is content that provides none of these: restated public best practice a one-line prompt regenerates ("write tests first", "use parameterized SQL", tutorials paraphrased from public docs). The test, from Den Odell's essay (see Sources): if you can generate the passage with a prompt, the skill doesn't need to carry it.

Two protections when applying the rubric:

  • Categories 3 and 5 are first-class even when they read as prose. Reducing wrong or unnecessary inference counts as value although the model "knows" the underlying facts — a skill that surfaces the right rule at the right moment saves the retry tokens the guess would have cost. Do not cut a failure pattern or a never-guess rule because it "looks like advice".
  • A claimed activation/recall benefit ("the model knows this but forgets") is an eval claim: back it with an A/B delta (repo-root scripts/run-ab-evals.sh) rather than asserting it. See "Eval evidence" below for what that delta does and does not say.

Eval evidence

Whether an eval can carry evidence at all — every eval needs at least one assertion a no-skill baseline fails — is specified in materialization-contract.md ("Quality rule: every eval needs a delta-discriminating assertion"), together with the samples self-check. What follows is the other half: how to report a number once you have one.

Cutting skill text: reconcile the evals, do not drop or keep them wholesale

When a review asks for shorter skill text, the eval cases for that text stay. Deleting them loses the evidence the reviewer did not ask to lose. Keeping the file unchanged is wrong too: an expectation that tests guidance the cut removed now fails, or passes on the base model alone, and either way it measures nothing. Check each expectation against the remaining text, remove only those whose guidance is gone, and re-run the eval checks before reporting the evals as kept.

A rule for a foreign skill repository carries its own delta

Inside our repos, categories 3 and 5 above count as value even when they read as prose. A maintainer of another organisation's skill repository need not accept that: one closed six of twelve pull requests because the new text did not change a decision the model would otherwise get wrong, and the pull requests had claimed no measurement. Before proposing a rule there, add an eval that the no-skill baseline fails and the rule makes pass, on the model the repository treats as its reference, and read its CONTRIBUTING file and the maintainer's recently closed pull requests for the bar actually applied.

A delta belongs to an actor, not to a skill

delta = f(skill version, model, agent harness, task, tool environment)

So docker-development has +23% is not a statement anyone can check. The reportable form names the tuple:

docker-development@2.4.0 · claude-code 2.0.31 · model sonnet
· eval-set evals.json@09cc52ef (24 evals) → +23% over the no-skill baseline

Every run prints that line and stores the same fields under provenance in ab-results.json, so a published number can be traced to the text, the actor and the questions that produced it. Quote them together — in a PR that justifies skill content, in the dashboard, in a release note.

Two consequences worth stating, because they cut in opposite directions:

  • A stronger actor can erase a delta. If a later model derives the same content unaided, the skill stops buying behavior and only costs context. That is a reason to re-measure on the current actor before defending a passage, not a reason to keep the old number.
  • A weaker delta is not always a weaker skill. A harness that is bad at skill discovery scores the skill poorly although the skill is fine. The per-skill A/B eval assumes the skill is already loaded, so it cannot see that failure at all — that is what the system-level evals in netresearch/agent-system-evals measure, by giving the agent a realistic underspecified request that names no skill, tool or method.

Where the gate lives, and where it must not

run-ab-evals.sh --samples=3 --require-delta is a local, pre-merge instrument: run it in the repo you are editing, before opening the PR that adds the eval. It calls the model 2 × N times per eval, so it cannot run on every pull request, and it is deliberately not wired into the scheduled sweep either. The sweep's job is to publish numbers; a gate there would abort a skill's merge step, and a skill with one weak eval would quietly stop being refreshed on the dashboard while looking merely unchanged. The sweep therefore reports the evidence-free evals in the PR body it opens and leaves the decision to a person.

What CI can decide without a model is the samples self-check: it proves that the assertions accept a correct answer and reject a wrong one, which is the mechanical half of "this eval discriminates". Prefer adding samples over adding a CI job that spends tokens.

Sample each arm more than once

A single completion per arm is not a verdict. Measured on this repo's own suite, two consecutive runs of the same eval text:

eval run 1 run 2
migrate_single_license 2 discriminating checks 0
release_workflow_setup 1 0

Nothing about those evals changed between the runs. --samples=N therefore runs N completions per arm and decides every assertion by majority over the samples; must_not inverts each sample before the vote, and samples that carry no answer are dropped rather than counted as failures. The sweep uses 3 by default, and ab-results.json records samples_per_arm so a quoted number always says how firm it is.

--require-delta refuses to run below --samples=2 — gating on a coin flip is the failure mode the flag exists to prevent, one level up.

Sampling reduces the noise; it does not remove it. Two consecutive three-sample runs of this repo's own suite, nothing changed in between, still disagreed about four evals — all of them at the 0↔1 boundary, where a single marginal assertion decides the verdict. The aggregate held (24 vs 26 discriminating checks, 8 vs 6 evidence-free); the membership of the list did not.

So the two flags have different jobs:

flag what it is for
--require-delta a reading signal. Read a failure as "these evals were marginal in this run", open the two arms, decide. Do not block a merge on it.
--min-evidence-ratio=P the gate. Fails unless at least P percent of the measured evals carry a discriminating check — the quantity that held still across both runs.

Pick the floor from a measurement of the suite rather than from taste, and leave headroom for the boundary cases: this suite measured 62% and 71% on two consecutive runs, so a floor of 50% holds while a floor of 70% would fail every other time — which would be the same coin flip one level up.

The cost is linear and real: 2 × N completions per eval, so the default triples what a single-sample sweep costs. Use --samples=1 for a cheap indicative run whose aggregate is still informative — a suite where half the evals never discriminate is telling you something either way — but do not quote a per-eval verdict from it.

Read the arms before believing the delta

A measured delta is only as good as the two answers behind it, and the first three runs of this instrument were each contaminated in a way the totals did not show:

  • The operator's MCP servers were still attached. --tools "" drops the built-in tools and nothing else, so answers on a workstation with Gmail and Drive servers configured discussed which tools existed — unequally between the arms. Fixed by --strict-mcp-config with an empty --mcp-config.
  • The model still expected tools. With them gone, an action-shaped prompt ("create a plugin.json") was answered with "I'll check the repo first" and a tool call print mode cannot serve: three output tokens, nothing to grade, and a negative delta on two evals because the with-skill arm spent its answer explaining the convention. Fixed by telling both arms up front that there are no tools.
  • A call that never happened was graded as a wrong answer. The CLI writes a session-limit notice or an API error into the same file an answer would go to, so an eval that was never measured scored 0 in both arms and appeared in the evidence-free list. Such a pair is now reported as not measured and excluded from the totals — unknown, never refuted — and --require-delta skips them while failing outright if nothing could be measured.

All three were found by opening scripts/ab-results/<eval>_with.txt after a run that looked plausible in aggregate. When a delta is negative, or an eval reports zero discriminating checks, read the two files before concluding anything about the skill — the instrument is the more likely defect.

Build the prompt so it measures the skill

Three ways an eval's input measures something other than the skill:

  • The prompt carries the answer. When a prompt embeds the output of a tool or script, for example a report the skill's script prints, build the prompts with a generator script. Strip every line that holds the answer: a triage decision, a list of existing pull requests, a flag that states the result. Make the generator fail when a known answer token is still in a prompt. Strip regexes break silently: on 2026-10-21 the embedded script's output format changed twice during review, the regexes stopped matching both times, and the answer leaked into the prompts until a later grep found it.
  • The skill points at a page the arm cannot open. When a skill delegates rules to a document it tells the agent to read, such as a guide page, give both arms the text of that document in the prompt. run-ab-evals.sh runs with no tools, so the with-skill arm cannot read the page. Measured on 2026-10-21 (typo3-docs-changelog): moving the triage rules from SKILL.md to the guide dropped the with-skill arm from 14/15 to 12/15. With the guide text in both arms the result was 10/15 without and 14/15 with the skill. The drop to 12/15 had measured the missing page, not the skill.
  • The fixture's metadata carries the answer. An agent eval that hands the agent a repository or a pull request also hands it the commit messages, the branch name, the pull request title and the file names. Give them neutral text, such as "Implement the requested change", and check them for answer tokens the same way as the prompt. Measured on 2026-11-14 (php-modernization-skill#185, code-review cases): the commit of each case's pull request carried the case title, and the title named the defect the reviewer had to find. A pilot run on a small model exposed it before the full run.

Fact and trigger ownership

Each fact and each trigger phrase has ONE canonical owning skill in the catalog; every other skill cross-references instead of restating. Duplicated facts drift apart at the next release, and duplicated trigger phrases compete for the model's skill selection. (Example: TYPO3 v14 breaking-change facts are owned by typo3-conformance; upgrade-execution phrasing by typo3-extension-upgrade; siblings link, they do not repeat.) This is the content-level twin of the discovery-level Mirroring rule in repository-quality-rules.md — one canonical surface per fact, links from everywhere else.

Description rules

Caps

  • Hard cap: 1,536 chars — Claude Code truncates above this regardless of budget.
  • Target: 100–300 chars — fits comfortably in the listing, leaves headroom for other skills.
  • Justify above ~500 chars — long descriptions are reasonable when they enumerate triggers (e.g., ticket-key prefixes, file-extension lists). Keep the structure tight.

Position matters

Truncation is position-based. Put your primary trigger first. The convention is Use when <trigger> as the opener.

Anti-patterns

Anti-pattern Example
Marketing language "blazingly fast", "powerful", "comprehensive"
Vagueness "a tool to help with X", "general-purpose helper"
Restating the skill name description: "The frobnicator skill frobnicates."
Redundancy with body duplicating the skill's intro paragraph in both fields

Examples

Good:

description: "Use when reviewing your diff, writing a commit message, or asking what changed. Summarizes uncommitted changes and flags risky patterns."

Bad:

description: "A comprehensive solution for managing your repository state with advanced semantic understanding"

Body rules

Size

Body loads on invocation and persists for the rest of the session. The threshold goal is per-invocation token cost — every additional word in the body is paid every time the skill is invoked. Move what isn't strictly needed at decision time into references/ (lazy-loaded when SKILL.md instructs).

Word count translates to tokens at roughly 1.4× (English prose; code fences run higher). audit-skills.sh reports three tiers:

  • INFO above 500 words (~700 tokens) — modest cost; skim for split candidates.
  • WARN above 1,000 words (~1,400 tokens) — almost any body at this size has lookup content that could move to references.
  • FAIL above 2,000 words (~2,800 tokens) — body is acting as a manual; split required.

audit-skills.sh exits 1 on the FAIL tier, but no CI workflow runs it, so no shared gate fails on a word count. The limit the shared validation enforces is in lines — skills/skill-repo/scripts/validate-skill.sh, the validator the shared validate.yml workflow runs, errors when the body (frontmatter excluded) exceeds 500 lines and warns above 300, and checkpoint SR-21 in skills/skill-repo/checkpoints.yaml checks the same 500-line limit. Treat the audit tiers as triage levels for the token cost of any skill repo.

Adding to a body already near a tier or the line limit: measure first (wc -w / scripts/audit-skills.sh), then land the addition in a single budgeted pass — put the detail in references/ and add only a minimal pointer (one Critical Rule line or one reference-table row) to the body, and trim an equal number of words from the fattest existing lines (verbose reference-table descriptions are the usual give) in the same edit. Iterating one or two words at a time across repeated re-validations wastes cycles. Gotcha: wc -w counts a spaced slash (a / b) as three tokens, so slash-separating during a trim can raise the count — use commas (a, b).

Empirical anchor: the Netresearch skill corpus (n=52) has p95 ≈ 994 words. WARN at 1,000 catches the actual outliers in our own work. Anthropic's longer skills (e.g., writing-skills at 3,193 words) FAIL under this rule — that's the honest signal: even shipped skills can have content moved out. We can't fix theirs; we hold ourselves to the rule.

  • Bloat signals: body >3 KB, body >150 lines, single fenced code block >25 lines (long code examples are the primary lazy-load target).

When to split to references/

Move to references/<topic>.md when content is:

  • Long examples (>20 lines)
  • Configuration templates
  • API/syntax tables
  • Migration matrices
  • Detailed checklists
  • Repository directory trees (often the worst offenders)

Keep in SKILL.md body:

  • High-level workflow
  • The "what does this skill do" summary
  • A reference catalog (see Pattern 2 below) when there are many topic-files
  • One canonical quick example

Reference patterns

Every .md file in references/ must be discoverable to the model from SKILL.md. Three acceptable patterns:

Pattern 1: Direct cite

For form validation, see [`references/forms.md`](references/forms.md).
For multi-profile auth, see [`references/multi-profile.md`](references/multi-profile.md).

Best for ≤10 reference files. Each gets a one-line cite with the path. The model sees the path on invocation and reads on demand.

Pattern 2: Catalog-with-convention

## Reference Files (in `references/`, `.md` implied)

- **Frameworks** (`*-security`): react, vue, angular, nextjs, nuxt
- **Languages** (`*-security-features`): php, python, go, rust, javascript-typescript
- **Cloud** (`*-security`): aws, azure, gcp

Best for 10+ topic-grouped files. The model sees:

  • The directory (references/)
  • The filename suffix convention (-security, -security-features)
  • The list of stems

It can resolve any combination on demand. The security-audit skill uses this pattern for ~60 reference files in ~12 lines of body content.

Pattern 3: List-and-pick

For language-specific guidance, list `references/` and read the file matching your stack.

Use sparingly — burns a tool call (the model has to enumerate the directory). Useful when there's no naming convention but the directory is small.

Anti-pattern: Hub-and-spoke

# DON'T DO THIS

In SKILL.md:
> See [references/index.md](references/index.md) for the catalog of references.

In references/index.md:
> - [forms.md](forms.md)
> - [auth.md](auth.md)

Multi-hop traversal isn't reliable. Anthropic's docs phrase the rule as "Reference supporting files from SKILL.md so Claude knows what each file contains" — direct visibility from SKILL.md is the model. The hub gets read but its leaves aren't deeply traversed. Anthropic's published skills use flat / catalog patterns, never hub-and-spoke.

Anti-pattern: Orphan refs

Files in references/ with no path to discovery from SKILL.md (no direct cite, no catalog mention, no list-and-pick instruction). The model never reads them. Either cite them or delete them — they consume disk and signal "stale" to readers without contributing to the skill's behavior.

Authoring checks before commit

Six checks for any change to SKILL.md or a reference file. Each one targets a class of finding that reviewers otherwise catch one PR at a time.

Spell in US English

Skill prose uses US spelling: -ize/-ization, behavior, color, authorization, serialized. File names in the skill repos already follow it (security-audit-skill's error-message-sanitization.md), so a British spelling in the prose splits every search in two — grep sanitisation misses the rest of the skill, grep sanitization misses the new text. When unsure, count the repo (git grep -i 'behavior' | wc -l against git grep -i 'behaviour' | wc -l) and follow the majority; a repo whose norm is British stays British. Code identifiers, API names and quoted output are not prose and keep their spelling.

Examples obey the rules of their own document

When a document states a rule in prose and also shows code, every example must follow that rule. An example that contradicts its own page teaches the wrong rule, and the reader copies the example, not the sentence. Typical shapes: a page that says "never use strippable assert() for security checks" and then uses assert() in its PHP and Python samples; a helper defined as Assertf and called as assertf. Before committing, extract the rules from the prose as a checklist and read each example against it line by line. If a rule cannot be shown without breaking it, split the example or restate the rule.

Run every executable example once before the PR

A reader copies an example as written, so it has to run as written. Run each executable example (a config, a setup file, a script, a test) once in a throwaway directory before opening the PR, against the tool versions the page names. When the example is itself a test, a check or a property, also run a counter-probe that must fail: the property against an identity function, the check against the unfixed code. A green run alone does not show that the example tests anything. Real case: netresearch/typo3-testing-skill#210 added a Vitest config whose root: '..' resolved against the working directory and found no tests, a setup file that used vi and afterEach without globals: true, and a Playwright locator.or() combining a page locator with a frame locator, which Playwright rejects. A review round found each of them; one run would have.

A block of commands that a page prescribes, such as a cleanup sweep, a checklist or a runbook step, is held to the same rule, and one run shows three things reading does not. A variable the reader is expected to supply may not exist in the environment: du -sh "$SCRATCHPAD"/* with SCRATCHPAD unset expands to du -sh /* and walks the root file system, so write "${SCRATCHPAD:?set it to the scratch directory}" and let the block stop. A search pattern may not match what this kind of work leaves behind: a process sweep for php -S|node|python -m http found none of the test runners and watch loops a verification-heavy session had started. And a result may invite acting on something that is not the reader's: the processes that sweep did find were MCP servers of the environment, which a heading called Cleanup reads as an order to stop. Say in the PR that the block was run, and where. Real case: netresearch/retro-skill#81, whose cleanup sweep read as complete and had never been run.

Shared skills carry generic examples; customer specifics go to that project's AGENTS.md

Examples and defaults in a shared skill are generic. Site names, domains, a customer's plugin names and one customer's exclude lists do not belong there: an agent in every other project reads them as the standard. Put them in that project's own AGENTS.md, and only where an agent working in that project needs them. Real case: an internal frontend skill carried one customer's three site URLs, consent-manager block list and plugin excludes as the general standard.

A cross-reference is a claim

"See X below", "as the Y section covers", "§ Z" all assert that the target exists in this document. The pointer is easiest to get wrong exactly when the fact is familiar: it is real, but it lives in another file, another repo or your own notes. Grep the target before writing the pointer (grep -n '<heading or phrase>' <file>), then sweep the diff for pointers as a class before committing:

git diff HEAD | grep -E '^\+' | grep -niE 'see |below|above|section|§'

Confirm every hit. A pointer that one grep cannot confirm gets deleted — a section that stands on its own beats one that leans on a neighbor that is not there.

Extending an enumerated set touches every surface that lists it

Skills often enumerate a set of codes or concepts (pillars G1–G3, checks R1–R6, checkpoint IDs) in several files at once: the SKILL.md table, including the body cells of its rows, a lifecycle or workflow reference, an output template and its worked examples, a vocabulary reference. Adding a member to one of them leaves the others describing the old set, and a reader who follows any of those surfaces never learns the new member exists. Before opening the PR, pick one existing member as the anchor and grep the whole skill for it:

grep -rlw 'R1' skills/<name>/

Read every hit and decide whether the new member belongs there too. The same sweep applies in reverse when a member, option or helper is removed: git grep -n '<name>' across the repo finds the README feature lists, example configs and comments that still advertise it.

Auditing

Run scripts/audit-skills.sh from the repo root. It scans SKILL.md files for:

  • Description length violations (warn >500 chars, fail >1,536)
  • Body length tiers (info >500 words, warn >1,000, fail >2,000)
  • Long code fences (info >25 lines — primary lazy-load candidate)
  • Orphan refs (files in references/ not reachable by any pattern)

Pattern 2 detection is heuristic: a reference file counts as P2 when its stem matches a convention stated in SKILL.md (filename suffix or topic-list pattern). Files outside any P1/P2/P3 path are reported as ORPHAN.

Sources

Source: SKILL.md on GitHub

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.

1 warning13d4 checks · Risk SAFE
  • Gen Agent Trust Hub13d

    The skill is a legitimate repository management tool for maintaining and validating AI agent skill repositories. It provides automated scripts for versioning, manifest synchronization, and structural checks. All behaviors are consistent with its primary purpose of development automation.

  • Socket1mo

    No alerts

  • Snyk13d

    Risk: MEDIUM · 1 issue

  • ZeroLeaks7mo

    Score: 93/100 · 2 sections analyzed

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

Last checked against GitHub yesterday.

Activeupdated 4 days ago
What it can do
Runs commands
compatibility
Requires bash 4.3+, python3 3.11+, and uv (runs the Python scripts).
All 1 allowed tools
Bash(${CLAUDE_SKILL_DIR}/scripts/*) Bash(bash ${CLAUDE_SKILL_DIR}/scripts/*) Bash(uv run ${CLAUDE_SKILL_DIR}/scripts/*) Bash(skills/skill-repo/scripts/*) Bash(bash skills/skill-repo/scripts/*) Read Write Glob Grep
Other metadata
metadata
{
  "author": "Netresearch DTT GmbH",
  "version": "4.2.1",
  "repository": "https://github.com/netresearch/skill-repo-skill"
}

README badge

README badge for netresearch/skill-repo-skill