When an AI skill needs a reference or a script

Choose the simplest supporting file for guidance, examples, and repeatable mechanical checks.

Give the instruction file the workflow

The main skill file should tell the assistant what it needs to do and when each supporting file matters. The Agent Skills format allows scripts, references, and assets. Their purpose is to keep specialized material close to the workflow while allowing a host to make it available when needed. 1 3

Imagine a skill for an exhibition’s weekly inventory. It has to classify objects by location, identify duplicate record IDs, and produce a tabular review. Those steps need different kinds of support.

Match the support to the type of work

NeedUseful supporting file
Apply curatorial definitions for locationsA text reference with the glossary and examples.
Find exact duplicate record IDsA deterministic script with a documented input column and report.
Preserve the layout of the weekly reviewA template for the table or spreadsheet.

Keep the script’s inputs and outputs small enough to inspect directly. A duplicate check can report each repeated ID and row number, allowing the editor to open the original records. Include a short note about the runtime and how the workflow should proceed if that runtime is unavailable. Anthropic’s skill authoring guide covers the value of predictable scripts for mechanical work. 2

Remove a file that never changes the result

Run a short fixture and note which material the assistant needed. A bundled handbook might add nothing if the workflow relies on only three rules that fit directly in SKILL.md. Conversely, a reference that updates separately from the workflow should live in its own clearly named file.

Test a case where the script cannot run. The assistant can still report which checks are possible from the source and mark the duplicate scan pending. That makes a partially completed run useful to the next reviewer.

Sources

  1. Agent Skills format specification
  2. Anthropic’s skill authoring best practices
  3. Adding skills support to an agent