Appendix A — Reference Manual
Look up the skills-pack/1.0 rules for structure, scripts, checks, releases and conformance.
Felix Reyes · The Skills Pack · First edition, 2026 · CC BY 4.0 · Router
This appendix is the pack standard, skills-pack/1.0, first published in this edition. “Appendix A, 3.4.1” in a chapter is rule A.3.4.1 here.
A tag in brackets ends most rules and says how the rule is checked. A rule without one defines a term. V: tools/validate_pack.py, which reports an error, or a warning where the tag says so, in a line that starts with the file, if any, then spec <section>:. T: the pack’s tests/checks.py or the named test. P: a portability run. S: the split tool. R: review by a person.
Conformance and terms
A.1.1 A skill is what the Agent Skills specification defines (A.2.1).
A.1.2 A pack is a skill whose folder follows A.3 to A.7. To a host it is one skill.
A.1.3 A conforming pack passes tools/validate_pack.py with no errors, passes every check in its test kit (A.6) on at least one host, and meets every rule tagged R on review. A pack whose every case passed on two or more model families (A.6.7.2) and two hosts, under the clean configuration (A.6.5.4), is a portable pack. One that passed on one configuration, recorded in its run folder, is a tested pack. [P for the families; R for the hosts]
A.1.4 Terms. Router: the root SKILL.md. Leaf skill: a skill under skills/. Shared skill: one under _shared/. Deliverable: the document the model writes; display block: the strings a script prints for it; output contract: the leaf’s rules for its shape. Test kit: tests/. Host: the program that loads skills and runs the model. Model family: the family of the host entry that ran the model (A.6.7.2). Primary models, test host: the target models and the host that ran them, as Chapter 12 lists them. House skill and pack-local skill: A.3.5.4. Shared layer: _shared/, both kinds. Library: the catalogue of approved pack versions (A.7.7).
A.1.5 “Must” is a requirement: a pack that breaks one does not conform. “May” is a permission. “Should” does not appear.
A.1.6 Paths are written from the pack root, <pack root>: the folder that contains the router, wherever the host installed it.
A.1.7 The rules beyond the specification’s own are the standard’s choices, and each says what its choice costs (A.3.4, A.3.6, A.5). Rules 2.8, 3.3.6, 3.6.11 and 3.9.4 follow the skill-authoring guidance that Section 12.1 compares with the book.
The skill
A.2.1 A skill is a folder with a SKILL.md file, plus any other files and folders. The standard adds no field or file to a single skill. [V]
A.2.2 SKILL.md starts with YAML frontmatter, a mapping between --- lines, then the instructions, and is UTF-8 without a byte-order mark. [V]
A.2.3 name: required; 1 to 64 lowercase letters, digits and hyphens, no hyphen leading, trailing or doubled; equal to the folder name. [V]
A.2.4 description: required; 1 to 1,024 characters; says what the skill does and when to use it. [V for the length; R for the content]
A.2.5 compatibility: optional; 1 to 500 characters; the environment the skill needs. [V]
A.2.6 metadata: optional; a map from string keys to string values, numbers quoted. [V for the values; R for the keys]
A.2.7 license and allowed-tools are the specification’s other fields. A pack leaves allowed-tools out, since the host decides which tools a model may call (A.8.1). [V: a warning for any other field; R for allowed-tools]
A.2.8 The specification recommends a SKILL.md under 500 lines and references one level deep. [V: a warning past 500 body lines; R for depth]
A.2.9 Which script languages run is the host’s decision. The standard chooses Python 3.9 or later for every script (A.3.6). [R]
A.2.10 The folder names scripts/, references/ and assets/ follow the specification’s recommendation. A pack’s skills use no others. [R]
The pack
Layout
A.3.1.1 A pack is laid out as follows. What is not marked optional must be present.
<pack>/
SKILL.md the router (A.3.3)
_shared/<shared>/SKILL.md optional; shared skills (A.3.5), each
with an optional assets/
_shared/house.lock with house copies: their sha256
(A.3.5.5)
skills/<leaf>/SKILL.md at least one leaf skill, each with
optional scripts/, references/, assets/
tests/ the test kit; never shipped (A.6)
[V for the router and skills/; R for the rest]
A.3.1.2 Every folder directly under skills/ and _shared/ is a skill (A.2.1). Nothing else is directly under them, except _shared/ house.lock. [V; R for stray files under skills/]
A.3.1.3 The pack root contains SKILL.md, _shared/, skills/, tests/ and otherwise only README.md and LICENSE, which count in the file count (A.5). [V for the two names; R for other stray files]
A.3.1.4 No name below the root starts with . or is __pycache__. [V, which skips .DS_Store and tests/]
A.3.1.5 Names match ^[a-z0-9._-]+$, except SKILL.md, and, at the root, README.md and LICENSE. Reserved device names (CON, PRN, AUX, NUL, COM1 to COM9, LPT1 to LPT9) are refused in any case. [V]
Names
A.3.2.1 The pack name is the router’s name, equal to the root folder’s (A.2.3): the business job as a noun phrase (variance-bridge). [V for the folder; R]
A.3.2.2 A leaf’s name is its deliverable’s (revenue-bridge); a shared skill’s is its rule set’s (executive-voice). [R]
A.3.2.3 No two skills in one pack share a name, across skills/ and _shared/ (A.4.2). [R]
The router
A.3.3.1 The router’s description covers every leaf: what the pack produces, the requests that trigger it, and what it is not for. A host needs to see only the router. [R]
A.3.3.2 The router’s frontmatter has license, compatibility (A.3.3.6) and metadata: pack-version, pack-standard and, in a pack with a house copy, house (A.7.1). [V for metadata; R for the others]
A.3.3.3 The body opens with the read-before-answer rule, in these words or their equivalent: pick the row that matches the request, read every file listed for it, then follow the skill; do not answer from memory. [R; P: trace tokens show the reads]
A.3.3.4 The body says every path is relative to the router’s folder. [R]
A.3.3.5 The routing table is the body’s first pipe table outside fenced code with the columns Request, Read first and Then read, in any case: requests in the user’s words; the leaf’s SKILL.md; the shared skills the leaf needs, as _shared/<name>/SKILL.md paths. Every leaf has exactly one row, every shared skill is in some row’s Then read, and a final row says to say so and stop for requests outside the pack. [V for the table, rows and shared skills; R for the final row; S refuses other than one row per leaf]
A.3.3.6 compatibility lists the interpreter, the permission to run scripts, and each package outside the standard library that a script imports, with its leaf and install command. It also says the pack stops, and says so, when scripts cannot run. [R; V for the length (A.2.5) and the imports (A.3.6.1)]
A.3.3.7 The body ends with a section headed ## Rules for every skill in this pack, which says numbers come from scripts, never from the model; a script failure is reported and stops the work; a missing input is asked for, not guessed. A pack may add rules to the section and may not remove these. [R; T: provenance and binding test the first; S refuses a router without it]
Path rules
A.3.4.1 Every path in any SKILL.md, in backticks (a token containing a /) or as a link target, is from the pack root. [V]
A.3.4.2 No path contains .. or a backslash. [V]
A.3.4.3 User-side paths are not checked: a path whose first segment is output, outputs, data, input, inputs or ~, an absolute path, and a path containing a placeholder in angle brackets (<the CSV>). [V: not checked]
A.3.4.4 A command that runs a script writes its path as <pack root>/``skills/<leaf>/scripts/<script> (A.8.1). The validator resolves the part after <pack root>/ anywhere. The leaf also lists each scripts/*.py once in backticks without the placeholder, so the plain path is checked (A.3.4.1). [V]
A.3.4.5 A leaf refers only to files under its own folder and _shared/, never to another leaf’s (A.4.2). [V]
A.3.4.6 Deliverables and script outputs go to output/ in the working folder unless the user gives other paths. [R; T: cases fix output/ paths]
Shared skills
A.3.5.1 A shared skill contains rules that more than one leaf follows: the house voice, source tracing, branding, a planning model. It is read, not triggered, and its description says so. [R]
A.3.5.2 A shared skill is one hop from the router: the leaf’s Then read lists it, and the model reads it with the leaf. A leaf may name the shared files its row lists, and no others. [R; P: trace tokens]
A.3.5.3 A shared skill may have assets/ (A.3.6.4), not scripts/. [R]
A.3.5.4 A shared skill is either a house skill, owned by the central team in house/<name>/ and copied unchanged into each pack that uses it, or a pack-local skill, which belongs to its pack alone (driver-model). The lock tells them apart: a _shared/ folder it lists is a house copy, any other is pack-local, and no pack-local folder has the name of a house skill in the pinned release. [V; T: tests/test_shared_sync.py]
A.3.5.5 The lock. A pack with a house copy has _shared/house.lock, which the house sync writes and nobody edits. Lines starting # are comments. The first other line is house: <house>/<MAJOR.MINOR.PATCH>, the pinned release (A.7.1), and each line after it is <skill>/<path> sha256:<64 hex>, one per file of each house copy, sorted by path. Its lines equal the release manifest’s for each skill it lists (A.7.6), and each listed copy has the sha256 its line records. [V: differs from its sha256 in house.lock; a house copy is never edited in the pack]
A.3.5.6 The sync and the drift check. tools/sync_house.py copies house/<name>/ into each pack that pins the current release and whose lock lists that skill, rewrites the lock and touches no pack-local folder. --check writes nothing: it compares each copy with its lock, each lock with its pinned release’s manifest, and house/ with the manifest of the release in house/VERSION. It exits 1 on a difference, a pin with no manifest or a clash (A.3.5.7). --add <name> <pack> adds a house copy, and --adopt moves a pack (A.7.6). [T: tests/test_shared_sync.py; make sync-check runs before make validate]
A.3.5.7 Clash. When a house skill and a pack-local folder share a name, the sync, --add and --adopt stop before writing anything, with an error naming both: clash: house/<name> (<pin>) and <pack>/_shared/<name> share a name. A first adoption claims a folder as a house copy only when it is byte-identical to the house skill. [T: tests/test_shared_sync.py]
Scripts
A.3.6.1 A script is a Python 3.9 program under skills/<leaf>/ scripts/. It imports the standard library, modules in its own scripts/ and the packages the router’s compatibility lists (A.3.3.6). It imports no file from another skill or from _shared/. [V, which reads the imports and runs nothing]
A.3.6.2 A script finds its own files from Path(__file__), never from the working folder. To reach a shared asset it walks up to the first parent folder that contains _shared/. A flag with the asset’s path overrides the walk. [R]
A.3.6.3 A script takes its inputs and output path from named flags: --input, or one flag per input (--pnl, --kpis), and --output. Several files of one kind take one flag, repeated per file (--register), with numbered roles (A.3.7.4). When the primary input lists the other inputs (the deck leaf’s slide map), the script reads them from that list. Every threshold or parameter is a flag with a default the leaf’s SKILL.md states. With --note, --input is a JSON file the script wrote and --output is the note (a .md file). The script then reads nothing else and takes no parameter flag, and the leaf’s steps run it once the script has run on the data. [T: tests/test_bva_note.py; R for the flag names]
A.3.6.4 A script reads only its inputs and its own files, writes only --output and any file the leaf’s SKILL.md declares, and never reads the network. [R]
A.3.6.5 Exit codes. 0: the output is complete and every identity holds. 2: bad input or arguments (A.3.6.12: an unknown period, a missing package), with one stderr line starting error: and no --output. 3: an identity failed (A.3.6.8). The JSON is written for inspection and one stderr line says the figures must not be reported. 1: a crash. No script returns it deliberately. [T: the pack tests and tests/test_scripts_edge.py]
A.3.6.6 On exit 0 a script prints one line to stdout: the headline figures from the display block and the output path. [R]
A.3.6.7 Money is computed in decimal.Decimal, quantized to cents half up. Ratios stay fractions until they are written, then take four places. No output figure passes through binary floating point, and the same input gives byte-identical output. [T: golden]
A.3.6.8 Every script checks at least one identity before exit 0, an arithmetic identity or a tie between inputs. The leaf’s SKILL.md states it and the output records it (A.3.6.10). [T: script_identity, independent_identity]
A.3.6.9 Output is one JSON file: UTF-8, two-space indent, trailing newline. Exact figures are two-place decimal strings ("11243300.00"), not JSON numbers, and counts are JSON integers. With --note the script writes the note instead (UTF-8 Markdown, LF line endings, the same bytes for the same JSON). The note has the contract’s sections in order. A fixed section is written from the display block alone. A section that needs judgment is one marked line with an HTML comment that tells the model to replace that line and edit nothing else. It refuses a JSON not shaped like its own output (another schema, no boolean identity.ok, a display leaf that is not a string): exit 2, nothing written. It checks the shape only and trusts the display block it is given. On a false identity.ok it exits 3 and writes no note. On exit 0 it prints one line naming the note and the section left to the model. The contract still describes the whole note (A.6.1.4). [T: golden, and the golden note tests/golden/<leaf>-note.md]
A.3.6.10 The JSON’s top-level keys, in this order, plus any the leaf needs. schema: <leaf>/<n> (A.7.4). input: the primary input’s file name, sha256, rows (A.3.7.4) and any column or period the script chose. inputs, when there are several: a list shaped like input, the primary first. labels, when the deliverable refers to periods or versions: the names it uses. The exact figures (A.3.6.9), grouped as the leaf needs. identity: ok and the identity’s sides as exact strings. display: A.3.7. [T: script_identity, independent_identity and provenance read their keys; R for the order]
A.3.6.11 A script that checks an artifact the model wrote (the deck leaf’s slide map) exits 2 on a structural defect and names the slide. On a figure in neither source it exits 3, writes the unsourced figures to --output and builds no deck. The leaf may let the model correct the artifact and rerun the script once. A second failure stops the work (A.3.3.7), and the leaf states the limit. No other leaf lets the model retry. [R; T: the pack’s tests show both exits]
A.3.6.12 Input policy. A blank cell in a required column is bad input: the script exits 2, and the error names the line and column, unless the docstring says what a blank there means (a blank timing_amount is zero). A value Decimal accepts and finance does not (NaN) is bad input. A percentage over a zero denominator is n/a, in the exact figures and the display block, never 0, unless the script treats that zero as bad input and exits 2 (a margin over zero revenue). [T: tests/test_scripts_edge.py, tests/test_known_answers.py]
The display block
A.3.7.1 Every leaf of display is a string, not a number, boolean or null. Maps and lists may nest. Every figure the deliverable may contain is there, labels and identifiers with digits included. [T: provenance for the figures; the strings in three packs’ tests]
A.3.7.2 Display strings come from six functions and no others. A negative is in parentheses and a zero is not, except that a workday keeps its sign. Money follows the router’s house pin (A.7.1). From house 2.0.0, fmt_k(x, places): thousands, with $, K and separators, places decimals (default none), rounded half up. A non-zero amount that would print as zero takes the fewest extra decimals that show it ($11,238K, ($1,288K), ($0.3K)). A walk’s figures all take the fewest decimals (at most three) at which its opening and closing totals print differently. Before 2.0.0, fmt_money(x): $ and one decimal in millions at or above 999,500; $ and whole thousands with K at or above 999.5; whole dollars below; rounded half up before the unit is chosen ($11.2M, $443K, $940, $0). An amount booked to the cent uses fmt_num(x, 2). fmt_pct(x), x a fraction: one decimal, two below 1 percent, % suffix. fmt_pts(x), x a difference of fractions: times 100, one decimal, and from house 2.0.0 the suffix pts ((0.7) pts). fmt_int(n): thousands separators. fmt_num(x, places): fixed places, thousands separators. fmt_wd(n): workday from period end. bridge.py is the reference implementation of fmt_k and fmt_pct. Other units are separate strings without digits, and period labels keep the data’s form. [T: golden; R for the set]
A.3.7.3 Display figures are rounded. The exact figures live outside display. The deliverable never adds, subtracts or re-rounds one, and no script adjusts one to make rows add. From house 2.0.0, display.rounding (mbr-narrative has one per period) is a sentence, computed from the exact figures, naming what does not add as shown, or is empty. [T: provenance; contract]
A.3.7.4 display contains the input block that the data notes copy (A.3.8.4). With one input it is display.input, exactly three keys: file, the file name; rows, the data-row count by fmt_int; and sha12, the first 12 characters of input.sha256. With several inputs it is display.inputs, a map from each input’s role to such a map, in flag order. The role is the flag’s name with _ for each hyphen. A flag repeated per file numbers each file’s role from 1 in the order given (register_1), placed where the flag first comes. The deck leaf’s roles are the source names in its slide map; the map’s rows counts slides, and each source’s rows counts display strings. A period or an as-of date goes under display.labels. A hash or a row count appears under no other key. [T: contract reads the block; provenance allows sha12; R for the deck leaf’s and the numbered roles]
Output contracts
A.3.8.1 A leaf that produces a deliverable has a section titled Output contract in its SKILL.md, which fixes the deliverable’s file name, sections, their order and what each contains. [T: contract]
A.3.8.2 Sections are level-2 headings (## ; a trailing # is tolerated), with the stated names, in the stated order, each once. [T: contract, which ignores case in the names]
A.3.8.3 A section’s content rule is a sentence count with the display strings the section must contain; a pipe table with named columns and rows in a fixed order, each figure cell a named display string (a unit word such as pts may follow); or a bullet range (2 to 4 bullets) with what each bullet names. A contract may add a word ceiling. [T: contract]
A.3.8.4 The last section is Data notes: every input file, its row count and the first 12 characters of its sha256 in backticks, copied from the input block (A.3.7.4), then any rounding sentence (A.3.7.3). [T: contract, which first confirms that the block lists the inputs the script read]
A.3.8.5 Every figure in the deliverable is a display string, copied exactly, parentheses included, or an input’s hash. provenance (A.6.1) tests it as a figure allowlist and reads nothing about where a token sits or what its sentence says. Its figure definition is normative: a token that starts with a digit, $, a minus sign, a parenthesis or a decimal point and runs to the end of the word, fenced code included. A bare year and an ordered-list marker are not figures. A comma belongs to a figure only between two digits, and a token glued to a letter, a digit, ., - or _ before it is a name. [T: provenance; cases in tests/test_checks_core.py and Table 6.3]
A.3.8.6 The contract says what the model contributes (the ordering, the connecting sentences, the questions to ask) and what it must not do: derive figures, name causes the data does not show, or change a status, an owner or a date. [R]
A.3.8.7 Binding. Outside the tables, the Headline and the Data notes, a figure that belongs to exactly one record in the display block appears only in a bullet or sentence that names that record. A scoped total’s figure appears only with its scope word. The check reads a bullet or sentence with its section’s heading and default names, and a bullet with its list’s lead-in line. A leaf whose free text contains one-record figures has a binding entry in SKILLS: Bind(path, names) pairs per dimension; sections, the default names of each section; and lenient, a dimension a bullet may leave unsaid. A leaf whose free-text figures no record owns has none. A record’s names are aliases, whole words in any case; the form a ... b counts as named when a comes before b. The check skips a figure two records share or none owns, and reads neither the verb nor a cause: a bullet that names two records passes with their figures swapped. [T: binding; tests/test_binding.py]
References and assets
A.3.9.1 A reference contains what the model reads to apply judgment: definitions, a method, a policy, review questions. Its leaf’s SKILL.md gives its path (A.3.4.1), one level deep (A.2.8). It says what a rule means and does not restate one a script enforces. [R]
A.3.9.2 An asset is a file a script reads or a deliverable embeds. Its size counts (A.5), and scripts read one under _shared/ as A.3.6.2 says. [V: size]
A.3.9.3 Only SKILL.md is required under a leaf. A leaf with no script is permitted when its deliverable has no figures. Its test kit then runs contract only. [R]
A.3.9.4 A reference over 100 lines opens with a table of contents: a heading Contents (or Table of contents) in its first 15 lines, then its sections in order. [V: a warning for the heading; R for the list]
Shapes
A.4.1 The bundle shape is the layout of A.3.1.1 installed as one skill: the form a pack is written, tested and shipped in, and whose file count (A.5) is reported. A pack is written for a host that registers only the root SKILL.md, since the router lists every other file (A.8.1). [P]
A.4.2 The split shape is one skill per leaf, for a host that takes single skills or whose file limit the bundle exceeds. tools/split_pack.py derives it. No pack is written split. [S]
A.4.3 Derivation. For each leaf the split tool copies skills/<leaf>/, without hidden files and __pycache__, to <out dir>/``<leaf>/ and deletes the prefix skills/<leaf>/ from every path token in its SKILL.md: a script path becomes <pack root>/``scripts/<script>, the leaf folder becomes ./, and _shared/ paths stay. It copies each _shared/<name>/ in the leaf’s Then read to <leaf>/_shared/<name>/. When the pack has a lock, the split skill gets one with the house: line and the lines of the house skills that leaf uses. It copies no tests/ (A.6.3) and gives a leaf without license or compatibility the router’s. Last, it writes the routing table and the ## Rules for every skill section to <out dir>/``always-on.md for the host’s always-on instructions (A.8.1); there each Read first path becomes “the <leaf> skill”. [S: exit 2 when the pack cannot be split, an unreadable lock included; 1 when a split skill fails A.4.4. T: tests/test_split_pack.py]
A.4.4 A split skill is a conforming single skill: its name equals its folder, its paths exist from its own root, and its scripts are named and import only what its compatibility allows. It passes validate_pack.py --shape split, or --auto, which takes a folder with skills/ as a bundle and any other as a split skill. Only its scripts/ paths after <pack root>/ are resolved (A.3.4.4). It has no pin, and its lock and copies are checked as A.3.5.5 says. [V; S runs it on every split skill]
A.4.5 A leaf may be installed alone, so its description says what it does and when to use it on its own terms (A.2.4), in the requests a user would type, and does not say that only the router uses it. [R]
A.4.6 The file count (A.5) is reported for each split skill separately. [V]
The file count and one host’s limit
A.5.1 The validator counts the files below the root and their bytes. It leaves out the router and tests/ and counts _shared/house.lock. One host documents a limit of 20 companion files, 5 MB each and 10 MB in all (A.5.2): past 20 files the validator warns, and errors only with --budget strict, the setting for a pack bound for that host. The size limits are errors in both settings. [V; past 20, a warning ending For that host, ship this pack split.]
A.5.2 The 20-file figure is Copilot Cowork’s documented limit for a skill’s companion files, as of the date in the claims register. Of the five hosts Chapter 12 covers, it alone documents a count or size limit, and it was not run for this edition (Section 12.7). When a host documents a stricter limit, the figure changes (A.7.5).
A.5.3 A pack over the count ships split to a host that enforces it (A.4.2). Chapter 7 prints the four packs’ counts. [V]
The test kit
The test kit is tests/, which is never shipped (A.3.1.1). It contains checks.py, cases/ (the default suite on top, others in subfolders such as cases/robustness/), golden/*.json and fixtures/.
Checks
A.6.1.1 checks.py exposes CHECKS, a map from check name to a function (run: Path, case: dict) -> (bool, str), and run_case(run, case), which runs the checks a case lists and turns an exception into a failed check with its text. It needs the standard library only, plus any package the router’s compatibility declares. Its generic core (the helpers and the seven generic checks) is one block between the lines # >>> generic core and # <<< generic core, byte-identical in every pack. The SKILLS table and its helpers sit outside it. [T: tests/test_checks_core.py]
A.6.1.2 Every pack provides seven generic checks, each dispatching on case["skill"] to the leaf’s definitions. script_identity: identity.ok is true and recomputes from the exact figures. independent_identity: each input’s sha256 matches the file the host was given, and the totals or flags recompute from the raw input. golden: every top-level key but input and inputs (or the case’s golden_keys) equals the golden file. contract: A.3.8. provenance: A.3.8.5. binding: A.3.8.7. no_deliverable: A.6.3.2. A leaf’s SKILLS entry gives contract as a specification dictionary, or a function for a deliverable that is not a Markdown note, and header as the columns each input must have or a JSON input’s schema (A.6.8). [T: each pack’s tests show each check catching its defect]
A.6.1.3 provenance allows every display string, normalized (Unicode minus to hyphen, spaces removed, parentheses kept only around the whole token), every figure token (A.3.8.5) inside one, and each input’s sha256 and its first 12 characters. A token outside that set fails and is named. A deliverable that is not a Markdown note supplies text_of, the text to search. [T]
A.6.1.4 A pack adds skill-specific checks where a generic one cannot test the leaf’s point (Chapter 11). A leaf whose script has a --note mode has rendered_sections_match, which the release gate counts under structure. A check name several leaves use means the same in each and is dispatched by case["skill"] through the leaf’s extra map. [T; tests/test_bva_note.py]
A.6.1.5 A check trusts neither the model nor the script alone: identity is recomputed from the raw input, and every figure matched to what the script printed. A check is never weakened to make a run pass. A failed run on a primary model gets a reviewer’s written disposition: real, which holds the case back, or test-kit false alarm, which does not. The fix is an alias added to the test kit (the pack is not changed), then a re-check. A report shows all three: the recorded verdict, the disposition and the re-checked verdict. Human review covers what the checks do not read, prose quality included (Section 9.1). [R; T: tests/test_binding.py tests each alias and real failure]
Fixtures
A.6.2.1 fixtures/good-<leaf>.md is each leaf’s correct deliverable (good-deck-assembly.json for the slide map), each hash a placeholder the tests fill from the golden file: {sha12}, or {sha12:<role>} for each of several inputs (A.3.7.4). [T: tests/test_checks_core.py]
Test cases
A.6.3.1 A test case is one JSON file under cases/: id, the file stem, <leaf>-<period or year>; skill, the leaf it exercises, on which checks dispatch; prompt, what a user would type, which mentions no skill, pack or script; inputs, run-folder path to repository path (a leaf that consumes another’s output takes that leaf’s golden file); artifacts, input (or inputs), result, deliverable and any further output, {} out of scope; golden, the golden file’s path under tests/, absent out of scope; reads, the SKILL.md paths the routing row requires, [] out of scope; checks, in order, the generic checks (six, or five without binding), then any skill-specific check. Optional: golden_keys (A.6.4.2); suite, absent for the default suite, which the runner runs unless --suite selects another or all; variant_of, a case this one inherits and may override, and drop_checks, those it drops; stages, upstream cases whose checks also run here; purpose, a note no tool reads. [T: run_case and each pack’s tests; P]
A.6.3.2 Every leaf has a case, and every pack has one out-of-scope case, cases/out-of-scope.json: skill router, reads [], and a prompt asking for what the routing table’s last row covers (another pack’s request). Its only check, no_deliverable, fails when a file this pack’s skills write (an output/ path in its own cases’ artifacts) appears in output/. Any other file passes and is listed, since a host may answer off-topic on its own. [T: no_deliverable and each pack’s out-of-scope test; P; R for coverage]
Golden files
A.6.4.1 golden/<leaf>.json is the script’s output on the case’s input and is never written by hand. It is regenerated in the change that alters the data or the script, and that change says so. [T: golden; R]
A.6.4.2 A leaf whose result depends on the model’s choices lists its deterministic keys in golden_keys. The one such leaf, deck-assembly, compares structure, labels and schema. [T]
The portability run
A.6.5.1 A run takes a pack, its cases and hosts. Per case and host it makes a throwaway folder, installs the pack where the host discovers skills (no tests/, hidden files or __pycache__; the split shape with --shape split), copies the inputs, runs the host non-interactively with the prompt and runs run_case. --repeat N repeats each case; --with-packs adds other packs; --no-pack installs none and runs no check (a baseline, scored by tools/baseline_eval.py). Results go to runs/<timestamp>-<pack>[-split][-<suite>][-nopack][-with-N][-xN][-<model>]/, with a result.json per case, host and repeat that records isolation, host_loaded, the models and the files written. The records are never edited: tools/recheck.py adds recheck.json beside them, and --rerender rewrites only portability.md and says so in a footer. [P: make portability, make portability-split]
A.6.5.2 A host that is not installed fails its run rather than skipping it: host_available says the command is not on the path. [P]
A.6.5.3 The run records the models the host’s transcript reports (models_used); the book claims only those. [P; R]
A.6.5.4 Clean configuration. The host’s home is a fresh, empty temporary folder, no server connections are configured, and only the file and shell tools a pack needs are enabled. The variables that would sync skills, add tools or tie the host to the launching session are removed, so it starts as a fresh session. Its bundled skills and plugins still load, and every record lists them. It is a test setting, not a security boundary. tools/hosts.json lists the flags and variables, and result.json records them under isolation. A run without it is evidence for no claim, and where the book prints one for another reason it says the run is superseded. [P; R]
A.6.5.5 Installed-pack integrity. The runner’s pack_unchanged check hashes every installed file before and after the host runs and fails the run on a file changed, removed or added. The release gate (A.6.8) compares each installed file’s hash with the library copy given in run.json (the file list of a library manifest, A.7.7) and refuses a differing pack before it reads a deliverable. Neither sees a copy changed and restored during the run. [P: pack_unchanged; T: tests/test_release_gate.py]
Trace tokens
A.6.6.1 With --sentinels the runner plants an HTML comment with a random token, <!-- trace:SNT-… -->, in each installed SKILL.md; in the split shape the always-on file gets the router’s. The token contains no instruction and the prompt does not name it. A token in the transcript or outputs shows the file reached the session, and a missing one shows a skipped read. [P]
A.6.6.2 sentinels passes when every file in the case’s reads list was read. Other files are reported, not required, and so is the split shape’s always-on file, which the host preloads outside the transcript. A case without reads requires every SKILL.md. [P: sentinel_report; T: tests/test_portability.py]
Verdicts
A.6.7.1 A run passes when the host exits 0 and every check passes, trace tokens and pack_unchanged included. The run as a whole passes when every case passed on every host in it. [P]
A.6.7.2 A case’s verdict line reads PORTABLE only when the case passed on two or more model families and on at least the run’s --min-families threshold (default 2); on one family, passed on this configuration (1 model family; portability not shown); on none, did not pass on this configuration (0 model families). Below the threshold, the line for a case that passed on at least one family adds (need <n>): NOT PROVEN, and the runner exits 1. A case run more than once on a family passes there only when every repeat passed, and the line shows the tally (3/3 runs passed). The report’s six columns are the claim groups: regression (golden), numbers (identity and recompute checks), structure (contract), provenance and binding, routing (trace tokens, out of scope), and host and install (host_available, pack_unchanged). Prose quality is listed as not checked; human review. A pack’s runs cover every model its test plan lists for the adopting teams. [P; R for the models]
A.6.7.3 A pack file is printed only after make validate test and a host run pass every check; the chapter plan cites the run. [R]
The release gate
A.6.8.1 python3 tools/release_gate.py <run folder> runs on a fresh deliverable’s folder with a run.json naming the leaf (skill), the library and installed copies, the script’s args and the artifacts. It first refuses, with exit 2, a folder it cannot trust: no manifest, a golden file named, a path outside the folder, a library that is not a pack or lacks the leaf, or an installed copy that differs from the library’s (A.6.5.5). Then it checks each input against the leaf’s header contract (A.6.1.2), re-runs the library’s script on a copy and requires a byte-identical result, and runs script_identity, independent_identity, contract, provenance, binding and the leaf’s extra checks from the library’s tests/checks.py. It writes release.json and release.md: each check with its claim, the hashes, what it leaves unchecked, and a sign-off block for a person. It exits 0 only when every check passed, and 1 otherwise. [T: tests/test_release_gate.py]
A.6.8.2 The gate reads no golden file or fixture. Regression is tested once per version, by the portability run (A.6.5). The gate runs on each deliverable, which is released only when the gate exits 0. [R]
Versioning
A.7.1 The router’s metadata has pack-version, the pack’s version as MAJOR.MINOR.PATCH, and pack-standard, the standard it follows, skills-pack/1.0, both quoted strings (A.2.6). A pack with a house copy also has house, the pinned release, as "<house>/MAJOR.MINOR.PATCH" ("interstationary/2.0.0"). The repository has its manifest, and the lock (A.3.5.5) pins the same release. [V: spec 7.1: the router pins house <pin>, which has no release manifest (house/releases/<version>.json)]
A.7.2 Leaves and pack-local skills have no version of their own. House skills are versioned by the house release, through the router’s pin and the lock (A.7.6). A script’s schema key (A.3.6.10) versions its output. [R]
A.7.3 Increments. MAJOR, a breaking change: a leaf or the pack removed or renamed; a script’s flags or exit-code meanings changed; a JSON key removed or renamed, or a display format changed; an output contract’s sections, order, table rows or file name changed; a shared rule changed so deliverables change. MINOR: a leaf, JSON key, display string, reference, asset, accepted input column, script or renderer added. PATCH: wording, and a fix that changes no golden file. Adopting a house release bumps the pack at least as far as the house moved (a house MAJOR is a pack MAJOR), and a first pin at least a MINOR unless the pack is new. [R; --adopt prints the least bump and does not make it]
A.7.4 The schema suffix n increments at each MAJOR change to the script’s JSON. The golden file and fixture change with it. House 2.0.0’s money display took seven schemas to /2. [T: golden; R]
A.7.5 The standard is versioned the same way. A change to the file count (A.5), the check set (A.6.1.2) or the JSON keys (A.3.6.10) is MAJOR. Appendix E records changes. [R]
A.7.6 House releases. house/VERSION records the house release, and house/releases/<version>.json its manifest, so a pin can be checked without the repository’s history: schema, house, version, skills, and files, the sha256 of every house file but VERSION and releases/. Increments follow A.7.3 applied to the house: MAJOR for a rule change that changes deliverables or a house skill removed; MINOR for a house skill or brand key added; PATCH for wording only, golden files unchanged. House 2.0.0, a MAJOR, changed company-branding’s money rule (A.3.7.2); its manifest is house/releases/2.0.0.json. sync_house.py --release writes the manifest and refuses a change with no bump, a VERSION below the latest release, or a bump smaller than an added or removed skill requires. The sync copies nothing while house/ differs from its release. A pack changes release only by --adopt, which rewrites its pin, copies and lock. Lag window: the library takes packs on the current house MAJOR or one behind until a sunset date the central team sets. --check lists packs behind without failing. [T: tests/test_shared_sync.py; R for brand keys and golden files]
A.7.7 Library manifests and the install check. Each approved pack version has a manifest, library/<pack>/<version>.json: schema, pack, version, house, sha256 (the pack hash the release gate records) and files, the sha256 of each file an install copies. tools/library_manifest.py write <pack> writes it after sign-off and refuses to replace a manifest whose files differ (an approved version never changes) and to record a pack more than one house MAJOR behind. check <installed copy> lists each missing, extra and changed file against the manifest for the installed router’s name and pack-version, bundle shape only: exit 0 on a match, 1 on a difference, 2 with no manifest. An edit to an installed copy, by a person or a model, is not a release (A.6.5.5). [T: tests/test_library_manifest.py]
Implementation-defined behaviour
A.8.1 These decisions are the host’s, and a pack works under any of them. Chapter 12 records each host’s, dated and with a claim id.
| Host decision | What the pack does |
|---|---|
| Where skills are installed (12.2) | <pack root> stands for it (A.3.4.4). |
Whether nested SKILL.md files register (12.3) |
The router points to every file (A.4.1). |
| Whether scripts run (12.4) | If not, the pack stops (A.3.3.6). |
| What loads by default (12.4) | The clean configuration removes it (A.6.5.4). |
| Always-on instructions (12.5) | The split shape needs them (A.4.3). |
| Sharing across an organization (12.6) | The pack is self-contained. |
| File limits and packaging (12.7) | A.5; a copy that keeps only SKILL.md does not work. |
| What the transcript shows (12.3) | Trace tokens and model reporting need it (A.6.6, A.6.5.3). |
| The working folder (12.4) | output/ (A.3.4.6). |
| Frontmatter fields | Specification fields only (A.2.7). |
| Network access | None (A.3.6.4). |
A.8.2 No pack names a host. Only Chapter 12 and Appendix A do. [R]
A.8.3 A pack is one skill and travels inside any package format that can hold skills. A.9 maps it onto Agent Plugins.
Three host facts bear on rules here: Copilot Studio skips a SKILL.md that is not UTF-8 (A.2.2; C035); an upload to the Claude apps or the Skills API fails on an unknown frontmatter field, which Claude Code ignores (A.2.7; C047); and the Claude API installs no package at run time, so one that compatibility lists must already be installed (A.3.3.6; C085).
Mapping to Agent Plugins 1.0.0
Agent Plugins 1.0.0 is an open specification for packaging Agent Skills and server connections as plugins (C015). A plugin is a folder with plugin.json at its root, $schema and name required. Each immediate child of its skills/ that contains a SKILL.md is one skill, and a client must not search deeper (C038, C055). A bundle goes in skills/<pack>/, without tests/, and registers as one skill, the router (A.4.1). A split pack puts each leaf, with its _shared/ copies, in skills/<leaf>/. always-on.md fits no component of the format and goes to the host’s always-on instructions. The pack’s folder is never the plugin’s root (Section 12.6). Each host’s plugin format, and what a Copilot Cowork import renames, is in the claims register (C056 to C059). No plugin was built or run for this edition.