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#

Where a skill lives#

Skill

Folder

A toolkit skill

skills/skills/geonemo-<name>/

A pack’s skill

packs/<pack>/skills/geonemo-<name>/, listed with skills: in the parts list

An orchestration skill

reference/orchestration/templates/skills/

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#

  1. Create the folder. Every file except SKILL.md and skill-card.md is optional.

    geonemo-<name>/
      SKILL.md
      skill-card.md
      LICENSE
      NOTICE
      evals/scenarios.json
      references/
      scripts/
      assets/
    
  2. Write SKILL.md. Frontmatter gives name (the folder name) and a trigger-rich description that 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 into references/.

  3. 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
    
  4. Write skill-card.md: owner, purpose, dependencies, network and credentials, outputs, risks, mitigations and trust tier. Update it when permissions or risks change.

  5. Write evals/scenarios.json (schema_version: skill-test/v1). Include at least one success case, one failure case and one non_activation case. Each case has available_tools, rules with stable IDs (required_call, ordered_calls, forbidden_call, outcome, required_fact, forbidden_claim), a passing reference_trace, and mutants: 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.

  6. 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.

  7. For a toolkit skill, add it to the explicit inventories in skills/tests/ (for example EXPECTED_SCRIPTS in test_package_layout.py). A pack’s skills are listed in that pack’s .gitlab-ci.yml, which uses the templates in skills/ci/part-skills.yml.

  8. 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.md also lists the pinned skills-ref and 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.