Chapter 7 — Packs

Group related skills behind a router with explicit selection and shared-file paths.

Felix Reyes · The Skills Pack · First edition, 2026 · CC BY 4.0 · Router

A skill produces one deliverable. A finance team produces several that read the same files and follow the same house rules: the revenue bridge, the budget-vs-actual note and the price-volume-mix analysis all explain one year’s results to readers who expect one voice. Installed as separate skills, each has its own copy of the rules, and the copies drift. This chapter puts the skills in one folder.

A pack comes after its skills: one skill installed alone, as Chapter 1’s stages were, is enough while one person owns one deliverable. The router, the shared layer and the split shape each cost something, and the section on each says when it is worth the cost.

Two of the ten steps are here: step 7, Group the skills, decides which skills share a pack, and the first half of step 8, Route and share, writes the router. The shared layer, the second half, is Chapter 8. The running example is the Variance and Bridge pack, which had one leaf skill at the end of Chapter 1 and has four here.

One folder for one job

A pack is one skill folder that contains the skills for one business job. Variance and Bridge explains a result against a comparison: last year, the budget, an earlier forecast. The book’s other three packs produce the monthly business review, check the month-end close, and plan forward. A pack is named for its job: variance-bridge, close-reconciliation.

The specification defines a skill as a folder that contains a SKILL.md file and lets the folder contain any other files and folders. A pack is such a folder, and a host needs to see only the name and description of the skill file at the root. Whether a host also registers the nested skill files is the host’s decision (Appendix A, 4.1). The pack works either way, because the router lists every file the model needs. In this edition’s runs the test host registered only the router (Chapter 12). Everything below the root is the book’s convention, set out in Appendix A. Here is the Variance and Bridge pack, listed with find, up to where the test kit begins:

File: examples/ch07/outputs/tree.txt (lines 1–16).

$ find packs/variance-bridge -type f -not -path '*/__pycache__/*' | sort
packs/variance-bridge/SKILL.md
packs/variance-bridge/_shared/executive-voice/SKILL.md
packs/variance-bridge/_shared/house.lock
packs/variance-bridge/_shared/source-trace/SKILL.md
packs/variance-bridge/skills/budget-vs-actual/SKILL.md
packs/variance-bridge/skills/budget-vs-actual/scripts/bva.py
packs/variance-bridge/skills/forecast-accuracy/SKILL.md
packs/variance-bridge/skills/forecast-accuracy/references/metrics.md
packs/variance-bridge/skills/forecast-accuracy/scripts/accuracy.py
packs/variance-bridge/skills/price-volume-mix/SKILL.md
packs/variance-bridge/skills/price-volume-mix/references/method.md
packs/variance-bridge/skills/price-volume-mix/scripts/pvm.py
packs/variance-bridge/skills/revenue-bridge/SKILL.md
packs/variance-bridge/skills/revenue-bridge/references/definitions.md
packs/variance-bridge/skills/revenue-bridge/scripts/bridge.py

The folder that contains everything is the pack root. SKILL.md at the root is the router: it has the pack’s name and description, and a table that says which skill answers which request. _shared/ is the shared layer: the skills with house rules every leaf follows, here the executive voice and the source trace of Chapter 1. Beside them, house.lock records the house release they were copied from (Chapter 8). skills/ contains the leaf skills, one folder per deliverable, each an ordinary skill with its own script and, in three of the four, a reference. tests/ is the test kit.

The fifteen lines after the command are what a host installs: the router and the fourteen files below it that the validator counts (Section 7.6). The 25 files under tests/ that follow are never shipped (Chapter 9).

Figure — text equivalent.

A request to build the FY2025 revenue bridge enters the pack's root SKILL.md. Its routing table says to read skills/revenue-bridge/SKILL.md first, then _shared/source-trace/SKILL.md and _shared/executive-voice/SKILL.md, each directly named by the router. The leaf runs skills/revenue-bridge/scripts/bridge.py, then produces output/bridge.json and output/bridge-note.md. Paths in the router and leaves are relative to this finance pack's root.

A request through the Variance and Bridge pack. The router gives the leaf to read first and the shared skills to read next. The script writes to output/ in the working directory, outside the pack.

Figure 7.1 shows the two facts the chapter builds on: the model never searches the folder, because the router lists what to read, and every path starts at the pack root.

Pack scope

Step 7 groups skills by job: skills belong together when their deliverables serve one business job, such as explaining a result against a comparison. The evidence for a shared job is the inputs and house rules the skills share, rather than the team that prepares them today. Skills that share a job and its rules change together, so they belong in one folder under one owner.

The pack scope worksheet (Appendix C) records the decision: the owning department in its top row, then one row per candidate skill, in or out with the reason, and the files each would ship. Table 7.1 is the worksheet filled for Variance and Bridge. “Voice” and “trace” are the executive-voice and source-trace house skills; “lock” is house.lock.

The pack scope worksheet for Variance and Bridge.

Pack: Variance and BridgeOwning department: Finance
Candidate skill Shared inputs Shared house rules Consumers In or out Reason Files
Revenue bridge Customer file Voice, trace Sales In Explains FY2025 revenue against FY2024 3
Budget-vs-actual P&L Voice, trace Operating review In Explains FY2025 actuals against budget 2
Price-volume-mix Product file Voice, trace Pricing In Splits the same revenue change; ties to the customer file 3
Forecast accuracy Forecast versions, P&L Voice, trace Planners In Measures past forecasts against the same actuals 3
Driver forecast review Drivers file Voice, trace, driver model Planners Out Walks a forward forecast through the planning model: Forecast and Planning –
House copies and the lock Voice, trace, lock 3
Total Below the root 14

The four skills in scope explain one year’s actual results against different comparisons, and their inputs tie: the customer file, the product file and the P&L carry the same FY2025 revenue, and the forecast versions carry the P&L actual in every closed month. All four follow the same two house rules, so one owner changes them for all four at once. Three Management Reporting leaves read the same P&L to publish the month, which is a different job. Exercise 7-2 asks what else keeps the two packs apart.

The fifth candidate is the hard case: “a reforecast review” and “how good were the reforecasts” sound like one job for the same planners. But driver-forecast-review reads drivers_fy2026.csv, a forecast of a year that has not happened, and computes from the planning model in the Forecast and Planning pack’s shared layer, which three of that pack’s four leaves read. Moved here, it would need a second copy of the model, which would drift, or a path into another pack, which the standard forbids. It goes with its job and its model, and the planners who would use it do not decide its pack.

In Table 7.2, each router’s “Not for” clause lists the neighbours’ jobs, which is how a host tells the four packs apart when all are installed.

The four packs: one job each, and what each sends elsewhere.

Pack Job Not for (router description)
Variance and Bridge Explain a result against last year, the budget or a forecast Monthly reporting packs, account reconciliations or forward forecasts
Management Reporting Produce the monthly business review from one P&L file and one KPI file Variance bridges, close reviews or forecasts
Close and Reconciliation Review the month-end close before sign-off Management reporting, variance commentary or forecasts
Forecast and Planning Review driver changes, cash, scenarios and assumptions Actuals commentary, KPI scorecards, close reviews or management reporting

Inside a pack, divide the files by request: a budget question reads the budget-vs-actual leaf and none of the revenue bridge’s files, and each leaf lists only its own references. A skill that covers several domains divides its references the same way, one file per domain. Exercise 7-1. Fill a pack scope row for forecast-accuracy as a candidate for Forecast and Planning, taking its inputs from the data README in data/interstationary/ and its shared skills from the two routers. Decide in or out, and check your reason against the two routers’ descriptions and the Forecast and Planning rows that list driver-model.

Exercise 7-2. Group the sixteen leaf skills of the four packs by the data files each reads (the inputs of each pack’s test cases). Where does the grouping agree with the four packs, and where does a file cross a pack boundary? Say what else keeps those leaves apart.

The router

The router is the pack’s root SKILL.md, in four parts: the frontmatter, a short instruction, the routing table and the rules for every skill in the pack. Here is the four-leaf router to the end of its table. Its rules, lines 29 to 33, are the three Section 4.6 printed.

File: packs/variance-bridge/SKILL.md (lines 1–20).

---
name: variance-bridge
description: Builds revenue bridges, budget-vs-actual commentary, price-volume-mix analyses and forecast-accuracy reviews for finance reviews. Use when asked for a revenue bridge or PY-to-CY walk, why revenue changed, budget vs actual or variance commentary, price versus volume versus mix, or how accurate the forecasts were. Not for monthly reporting packs, account reconciliations or forward forecasts.
license: MIT
compatibility: Requires Python 3.9 or later (standard library only) and permission to run scripts. If scripts cannot run, the pack stops and says so; it never computes figures itself.
metadata:
  pack-version: "2.0.0"
  pack-standard: "skills-pack/1.0"
  house: "interstationary/2.0.0"
---

# Variance and Bridge pack

This pack holds several skills. Pick the row that matches the request, read
every file listed for it, then follow the skill. Read the files before
answering; do not answer from memory.

All paths in this pack, in every file, are relative to this file's folder
(the pack root).

File: packs/variance-bridge/SKILL.md (lines 21–27).

| Request | Read first | Then read |
| --- | --- | --- |
| Revenue bridge, PY-to-CY walk, customer movement, why revenue changed year over year | `skills/revenue-bridge/SKILL.md` | `_shared/source-trace/SKILL.md`, `_shared/executive-voice/SKILL.md` |
| Budget vs actual, BvA, actual versus plan, P&L variance commentary for a month or the year | `skills/budget-vs-actual/SKILL.md` | `_shared/source-trace/SKILL.md`, `_shared/executive-voice/SKILL.md` |
| Price-volume-mix, PVM, how much of the change was price versus volume, mix shift | `skills/price-volume-mix/SKILL.md` | `_shared/source-trace/SKILL.md`, `_shared/executive-voice/SKILL.md` |
| Forecast accuracy, how good were the reforecasts, forecast versus actual by version, MAPE, bias | `skills/forecast-accuracy/SKILL.md` | `_shared/source-trace/SKILL.md`, `_shared/executive-voice/SKILL.md` |
| Anything else (monthly review, close, cash, scenarios) | Not in this pack | Say so and stop |

The name is the pack’s and equals the folder’s. Under progressive disclosure the router’s description is the only text of the pack a host reads before a request (Section 4.3), so it covers every leaf. Its metadata has three keys: the pack’s version, the version of the pack standard it follows, and house, the release of the house skills whose copies sit in _shared/ (Chapter 8).

Request lists the requests in the user’s words, with the abbreviations a finance team uses: “PY-to-CY walk”, “BvA”, “PVM”, “MAPE”. Read first is the path of the leaf’s SKILL.md. Then read lists the shared skills the leaf needs, as _shared/<name>/SKILL.md paths. That column is how the shared skills get read at all: every file the model reads is one hop from the router, rather than at the end of a chain of references (Chapter 8).

The last row is the stop row. It sends every request the pack does not serve to “Say so and stop”, and gives the neighbouring packs’ jobs in parentheses so the model recognizes them. A pack that guesses at a request it was not written for produces a deliverable nobody checked.

The rules at the end apply to every leaf. A pack may add rules, as the Close and Reconciliation router adds one on flags, but may not remove these three.

Against Chapter 1’s one-leaf router, the description grew to cover four deliverables and the table from one row to four. The “Not for” sentence, the stop row and the rules are unchanged.

The validator reads the table and checks two rules (Appendix A, 3.3.5): every leaf under skills/ has exactly one row, and every shared skill under _shared/ is named in at least one row’s Then read column, since no row would send the model to it otherwise. The split tool of Section 7.7 depends on the first rule: it refuses a pack whose leaf has other than one row, because it could not tell which row to move with the leaf.

The out-of-scope case of Section 1.8 is the stop row’s test. In every out-of-scope run that installed a pack, 50 in the second set (at 1.0.0), 9 in the third and 47 in the fourth (Chapter 12), the host had the router’s name and description and never read the file: its trace token did not appear. So the case shows the pack staying out of a request it does not serve before the stop row is ever read. The stop row covers a host that reads the router anyway.

Exercise 7-3. In a copy of packs/variance-bridge, add a fifth leaf row to the router for a skill that does not exist (a cost bridge, say) and run the validator on the copy. Which rule fires, and why is it not the one-row-per-leaf rule?

Exercise 7-4. A user asks “how did we do against the 6+6?” Read the Request cells of the budget-vs-actual and forecast-accuracy rows and the two leaves’ descriptions. Which row should win, and what in the leaves’ inputs says so? Write the words you would add to the router to settle it.

Leaves and what they may point to

A leaf skill is a complete skill, because the split shape installs it alone: its frontmatter is valid by itself, its name equals its folder, and its description says what it does and when to use it without help from the router (Section 4.3; Appendix A, 4.5). Here is the frontmatter of the revenue-bridge leaf:

File: packs/variance-bridge/skills/revenue-bridge/SKILL.md (lines 1–4).

---
name: revenue-bridge
description: Computes a prior-year to current-year revenue bridge by customer (timing, loss, decline, upsell, new) and writes a one-page commentary note. Use when asked for a revenue bridge, a PY-to-CY revenue walk, a customer bridge, why revenue changed year over year, or which customers drove the change. Needs a customer CSV with prior-year and current-year revenue columns.
---

The four leaves have no license or compatibility field. The router states both for the pack.

A leaf may point to four places: its own scripts/, references/ and assets/ folders, and _shared/. A file under another leaf is not among them, because a leaf installed alone would then point at a file that is not there. The validator refuses it and says why: “a leaf names only its own files and shared skills” (Appendix A, 3.4.5).

When two leaves need the same rules, the rules become a shared skill under _shared/: a house skill when the rules are the company’s, a pack-local skill when only this pack’s (Chapter 8). Scripts are the exception: a script imports only the standard library, modules in its own scripts/ folder and the packages listed in the pack’s compatibility, so a file from another skill or from _shared/ is out of its reach (Appendix A, 3.6.1). Each of the four scripts therefore has its own copy of the display functions of Chapter 5, and every leaf is whole when it is installed alone.

Paths from the pack root

The host reads the router, then the files it lists, from one working directory that the pack does not choose and cannot see. The model has three or four skill files open at once, and a path must mean the same file in each. So every path in every skill file is relative to the pack root, the folder that contains the router. A leaf writes its own script as skills/revenue-bridge/scripts/bridge.py, with the path from the root rather than from the leaf.

Two kinds of path are exempt because they refer to files on the user’s side of a run: a user-side path, which starts with output/, outputs/, data/, input/, inputs/ or ~, or is absolute; and a path with a placeholder in angle brackets, such as <the CSV>, which stands for a file the user supplies. The validator checks neither.

A command that runs a script is the third case. The pack cannot know where the host installed it, so the command writes the install location as the placeholder <pack root>, and the leaf writes the same script’s path once more in backticks without the placeholder. The validator resolves both (Appendix A, 3.4.4). Here is step 2 of the revenue-bridge leaf in the pack:

File: packs/variance-bridge/skills/revenue-bridge/SKILL.md (lines 17–22).

2. Run the script, `skills/revenue-bridge/scripts/bridge.py`. As in every
   file in this pack, paths are relative to the pack root, the top folder of
   the pack, which holds its main SKILL.md:

       python3 <pack root>/skills/revenue-bridge/scripts/bridge.py \
           --input <the CSV> --output output/bridge.json

and the same step in Chapter 1’s second stage, when the skill stood alone:

File: examples/ch01/revenue-bridge-2/SKILL.md (lines 17–21).

2. Run the script, `scripts/bridge.py`. Its path is relative to the skill
   root, the folder that holds this SKILL.md:

       python3 <skill root>/scripts/bridge.py \
           --input <the CSV> --output output/bridge.json

In the pack every path gains the prefix skills/revenue-bridge/, and <skill root> becomes <pack root>.

No path contains ..: read from the leaf’s folder, a climbing path lands in skills/ instead of the root and misses the file it meant. In a scratch copy of Chapter 1’s one-leaf pack, a sed command points the leaf’s last line at ../_shared/source-trace/SKILL.md. The same command renames the backticked script in step 2 to bridge2.py and leaves the command that runs it as it was. The validator reports three errors:

File: examples/ch07/outputs/validate-bad-path.txt (lines 3–8).

$ python3 tools/validate_pack.py /tmp/variance-bridge
/tmp/variance-bridge: FAIL (bundle, 6/20 files, 17416 bytes below the root)
  error: skills/revenue-bridge/SKILL.md: spec 3.4.1: path `skills/revenue-bridge/scripts/bridge2.py` does not exist relative to the pack root
  error: skills/revenue-bridge/SKILL.md: spec 3.4.2: `../_shared/source-trace/SKILL.md` climbs out with '..'; paths are relative to the pack root
  error: skills/revenue-bridge/SKILL.md: spec 3.4.4: script `skills/revenue-bridge/scripts/bridge.py` is not named in backticks; write its path from the pack root once in backticks, without the placeholder, so the path is checked
exit 1

The first is the renamed bridge2.py, which does not exist (3.4.1). The second is the climbing path (3.4.2). The third is about bridge.py, which nobody renamed: the command still resolves, but rule 3.4.4 requires every script of a leaf to be written once in backticks from the pack root.

Exercise 7-5. In a copy of packs/variance-bridge, write the revenue-bridge script path as scripts/bridge.py in both the backticked path and the command. Run the validator, list the errors, and say what a host would do with the command. Why is the rule written from the root and not from the leaf?

The file count and one host’s limit

The validator counts the files a bundle ships below its root, and their bytes. The router, tests/ and folders are not counted (Appendix A, 5.1). Rule 3.1.4 refuses the files nobody meant to ship: a hidden file, whose name starts with a dot, and the __pycache__ folder a test run leaves beside a script.

One of the five hosts Chapter 12 checked documents a limit on a skill’s companion files: 20 files, 5 MB each, 10 MB in all. No other checked host documents a file limit, and that host was not run for this edition. So the validator treats more than 20 files as a warning by default, and as an error only with --budget strict, the setting for a pack bound for that host (Appendix A, 5.2). The two messages, with <n> for the count:

warning: spec 5.1: <n> files below the root; one host's documented limit is 20 (spec 5.2). For that host, ship this pack split.
error: spec 5.1: <n> files below the root; the strict budget is 20. Ship this pack split.

A split skill gets the rule 4.6 form of each, counted per skill and without the advice to ship split. The 5 MB and 10 MB rules are errors in both modes.

In either mode each pack’s line gives the count and the bytes:

File: examples/ch07/outputs/validate.txt (lines 1–6).

$ python3 tools/validate_pack.py packs/*/
packs/close-reconciliation: ok (bundle, 13/20 files, 86879 bytes below the root)
packs/forecast-planning: ok (bundle, 12/20 files, 78673 bytes below the root)
packs/management-reporting: ok (bundle, 14/20 files, 107597 bytes below the root)
packs/variance-bridge: ok (bundle, 14/20 files, 86784 bytes below the root)
exit 0

No pack ships more than 14 files below its root, and the count would bind long before the bytes: the largest pack, Management Reporting, ships 107597 bytes. In Variance and Bridge, six skill files and four scripts make ten of the fourteen, references three more and the house lock the last. A fifth leaf with a script and a reference would cost three more.

Treating one host’s limit as a rule for every pack costs a Files column in the scope worksheet, and it is one reason the split shape and its copied files exist. A pack over the count can merge files or ship split, and the split shape counts per leaf, so a pack too large for one install still fits as several. Chapter 12 records whether a given host takes either shape.

Exercise 7-6. Run the validator on packs/management-reporting with and without --budget strict. Then add six empty reference files to a scratch copy and run both again, and then add a seventh. Copy the warning and the error, say at which count each first appears, and say which host each matters for.

Two shapes: bundle and split

The bundle shape is the pack as written: one folder, installed as one skill, with the router inside. It is the default: the shape the book tests and ships, and the one the file count applies to.

The split shape is one skill per leaf, for a host that loads one skill at a time or caps the files in one skill below what the bundle needs. Chapter 12 says which hosts those are. The split tool, tools/split_pack.py, derives the split shape from the bundle. Rebuild the split after every change to the bundle, and never edit the split copy by hand.

The tool follows Appendix A, 4.3 (Figure 7.2 shows two leaves): each leaf becomes a separate folder with copies of the shared skills its row lists, the routing table and the rules go to always-on.md, and tests/ stays behind. In the leaf’s SKILL.md every path loses the prefix skills/<leaf>/, so <pack root> stands for the split skill’s own folder, and a leaf with no license or compatibility inherits the router’s.

Figure — text equivalent.

Bundled: one variance-bridge/ install contains its router SKILL.md, _shared/house.lock, shared executive-voice and source-trace skills, and leaf folders skills/revenue-bridge/ and skills/budget-vs-actual/. Revenue-bridge contains SKILL.md, scripts/bridge.py and references/definitions.md; budget-vs-actual contains SKILL.md and scripts/bva.py. Split: the routing table moves into the host's always-on instructions. Each leaf becomes a separately installed skill with its own SKILL.md, unchanged script/reference files, and a copy of _shared/house.lock, source-trace and executive-voice. Paths are rewritten; shared copies and the table move.

The bundle and split shapes of two leaves. The split rewrites each leaf’s paths; the table and the shared copies move.

The tool then validates every split skill separately, including its file count (Appendix A, 4.4 and 4.6), and refuses a pack it cannot split: no routing table, a leaf with other than one row, a Read first or Then read path that does not exist, no rules section, a lock that does not parse, or an out folder that is not empty. Here it is on Variance and Bridge:

File: examples/ch07/outputs/split.txt (lines 1–7).

$ python3 tools/split_pack.py packs/variance-bridge /tmp/split/variance-bridge
/tmp/split/variance-bridge/budget-vs-actual: ok (4/20 files, 24016 bytes below the root; shared: source-trace, executive-voice)
/tmp/split/variance-bridge/forecast-accuracy: ok (5/20 files, 20132 bytes below the root; shared: source-trace, executive-voice)
/tmp/split/variance-bridge/price-volume-mix: ok (5/20 files, 18401 bytes below the root; shared: source-trace, executive-voice)
/tmp/split/variance-bridge/revenue-bridge: ok (5/20 files, 14167 bytes below the root; shared: source-trace, executive-voice)
/tmp/split/variance-bridge/always-on.md: the routing table (5 rows) and the rules, for the host's always-on instructions
exit 0

In the tree the tool wrote, every split skill has a copy of both shared skills, four copies of each where the bundle shipped one, and a house.lock giving the house release of those copies (Appendix A, 4.3).

A split skill has no router in front of it, so the routing table goes to the host’s always-on instructions, text the host loads for the model at the start of a session, outside any skill. The split tool writes the text as always-on.md, and the person installing the pack puts it in the host’s always-on file, if the host has one (Appendix A, 8.1; Chapter 12). Its table is the router’s with a skill name in each Read first cell, under an introduction that says the skills are installed one by one. Its header and first row:

File: examples/ch07/outputs/always-on.txt (lines 10–12).

| Request | Read first | Then read |
| --- | --- | --- |
| Revenue bridge, PY-to-CY walk, customer movement, why revenue changed year over year | the `revenue-bridge` skill | `_shared/source-trace/SKILL.md`, `_shared/executive-voice/SKILL.md` |

Exercise 7-7. Write the always-on text for the Variance and Bridge split shape in under fifteen lines. Then compare it with always-on.txt in examples/ch07/outputs/ and name what yours left out.

All chaptersDownload & licenseBook text CC BY 4.0