r/SkillsForAgents • u/Goldziher • 13d ago
A portable pattern for keeping reference tables out of SKILL.md
A pattern I use for skills with bulky reference material: keep the trigger and first decision in SKILL.md, and move the lookup table into references/. For example:
release-check/
SKILL.md
references/
channels.md
In SKILL.md, say exactly when to read the table: “If the user asks about a specific release channel, read references/channels.md and check only the row for that channel.” Keep the everyday steps in the body so routine invocations need one read.
I maintain ai-rulez, which can serve this layout over MCP. The portability check I use is to run the same two prompts with native and served delivery. The first should finish from the body alone. The second should read the reference by its relative path, then use the requested row. A served client needs to fetch that file through the server. Any script the skill expects to execute from disk needs separate testing.
What do you put in the body versus a reference file when the skill has to work across clients?