Write a skill#
Add a portable procedure that tells an agent when and how to use capabilities its host provides.
A skill is an onboarding guide for an agent, not an agent or a service. It contains no agent
loop, client, credential store, model call or executable MCP tool. The skills in
skills/skills/ follow the Agent Skills specification.
Prerequisites#
The tools the skill uses exist and are in
skills/contracts/geonemo-services-tools.json. See Add an MCP tool family for adding tools.Python 3.12 and uv. See Development environment.
Where a skill lives#
Skill |
Folder |
|---|---|
A toolkit skill |
|
A pack’s skill |
|
An orchestration skill |
|
The skills catalog image and this site publish the toolkit’s skills and those of every
part in deploy/production/parts.yaml that names a skills folder.
Steps#
Create the folder. Every file except
SKILL.mdandskill-card.mdis optional.geonemo-<name>/ SKILL.md skill-card.md LICENSE NOTICE evals/scenarios.json references/ scripts/ assets/
Write
SKILL.md. Frontmatter givesname(the folder name) and a trigger-richdescriptionthat says when to use the skill and when not to. The body teaches activation, the order of capabilities, safety boundaries, failure behavior and required outputs. Refer to host capabilities by their documented names. Move deeper guidance intoreferences/.Add a script only when deterministic execution clearly improves reliability. A script is a one-shot command-line utility: explicit staged input and output paths, bounded work, useful stderr, meaningful exit codes, no network access and no server mode. Skill inputs never accept service URLs, models, credentials or arbitrary file paths. A script with third-party imports carries PEP 723 metadata and an adjacent lock:
uv lock --script skills/geonemo-<name>/scripts/<script>.py uv lock --script skills/geonemo-<name>/scripts/<script>.py --check
Write
skill-card.md: owner, purpose, dependencies, network and credentials, outputs, risks, mitigations and trust tier. Update it when permissions or risks change.Write
evals/scenarios.json(schema_version: skill-test/v1). Include at least onesuccesscase, onefailurecase and onenon_activationcase. Each case hasavailable_tools,ruleswith stable IDs (required_call,ordered_calls,forbidden_call,outcome,required_fact,forbidden_claim), a passingreference_trace, andmutants: traces that each violate one named rule, to prove the rule is enforced. Tool calls must validate against the pinned tool catalog, and script calls must name a script in the package.Put script tests in
skills/script_tests/<skill>/(for a pack,packs/<pack>/script_tests/), never inside the skill. Generate small synthetic inputs in the tests; keep binary fixtures out of the package.For a toolkit skill, add it to the explicit inventories in
skills/tests/(for exampleEXPECTED_SCRIPTSintest_package_layout.py). A pack’s skills are listed in that pack’s.gitlab-ci.yml, which uses the templates inskills/ci/part-skills.yml.Validate, from
skills/for a toolkit skill:python -m pytest -q tests script_tests python tests/skill_contracts.py --skills-dir skills \ --tool-catalog contracts/geonemo-services-tools.json \ --output-dir artifacts/skill-contracts
The contract check replays each scenario against its passing trace and its mutants. It needs no model, service or GPU.
skills/README.mdalso lists the pinnedskills-refand SkillSpector commands. Then build the site. See Documentation.
What the site publishes#
For each skill, the site publishes SKILL.md, skill-card.md, other top-level Markdown,
and Markdown under docs/ and references/. Web images under assets/ come with them.
Scripts, tests and evals are never published. The generated catalog and each skill’s page
are under /_parts/skills/; see Skills.
Result#
The skill appears in the catalog and in the MCP server’s skill resources once its folder is in the catalog image. Adding a skill to the repository does not update a deployed server: deploying a new catalog is a separate release.