fathom-skill
Python SDK for writing Fathom
skills. Typed Ctx, fetch + secret helpers, manifest types — small
package, zero runtime dependencies.
Install
pip install fathom-skill
Requires Python 3.10+ and the Fathom gateway at v0.8.0 or later (earlier gateways only run Node skills).
Quick start
# my-skill/index.py
from fathom_skill import Ctx, require_fetch, require_secret
async def search(params: dict, ctx: Ctx) -> dict:
fetch = require_fetch(ctx)
res = await fetch(
f"https://api.example.com/search?q={params['query']}",
attach=[{"type": "bearer", "secret": "EXAMPLE_API_KEY"}],
)
return {"body": res["body"]}
# my-skill/skill.manifest.yaml
name: my-skill
version: "1.0.0"
author: you@example.com
signature: ed25519:builtin
language: python # tells Fathom to run via runner.py
permissions:
network:
- GET https://api.example.com/*
secrets:
- EXAMPLE_API_KEY
tools:
- name: search
function: search
description: Search the example API for a query.
Drop this directory into your Fathom skills/ folder. The agent
loads it on next start.
Sync skills
Functions don't have to be async. The runner detects sync vs async
via inspect.iscoroutinefunction and dispatches accordingly:
def echo(params: dict, ctx: Ctx) -> dict:
return params
If your skill makes HTTP calls via ctx.fetch you need async def
because fetch is awaitable. Pure-compute skills can stay sync.
Credential attaches
from fathom_skill import BearerAttach, HeaderAttach, BasicAttach, GoogleOauthAttach
| Type | What it does |
|---|---|
bearer |
Authorization: Bearer <secret> |
header |
Arbitrary header with optional template (Bot ${secret} etc.) |
basic |
Authorization: Basic base64(user:pass) |
google-oauth |
Refresh-token rotation; injects fresh access token |
Manifest typing
from fathom_skill import SkillManifest
manifest: SkillManifest = {
"name": "my-skill",
"version": "1.0.0",
"author": "you@example.com",
"signature": "ed25519:builtin",
"language": "python",
"permissions": {
"network": ["GET https://api.example.com/*"],
"secrets": ["EXAMPLE_API_KEY"],
},
"tools": [
{
"name": "search",
"function": "search",
"description": "Search the example API for a query.",
},
],
}
Reference
Ctx— runtime context protocol with optionalget_secret+fetch.require_fetch(ctx)/require_secret(ctx, name)— narrow to non-optional, raise with a useful message if the runtime didn't provide it.EgressAttachunion —BearerAttach | HeaderAttach | BasicAttach | GoogleOauthAttach.SkillManifest,SkillPermissions,SkillTool— typed mirror ofskill.manifest.yaml.
See also
fathom-sdk— Python client for the Fathom gateway (for calling the agent from your code, distinct from skills which are invoked by the agent).@darklake.ai/fathom-skill— the sibling SDK for TypeScript skills.
License
MIT — see LICENSE.
Metadata
Release files for fathom-skill 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| fathom_skill-0.1.0.tar.gz | 6.4 kB | Without provenance | Details for fathom_skill-0.1.0.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| fathom_skill-0.1.0-py3-none-any.whl | Python 3 | none | any | Details for fathom_skill-0.1.0-py3-none-any.whl |
Total release size: 14.1 kB
Release files / fathom_skill-0.1.0.tar.gz
| Download URL | fathom_skill-0.1.0.tar.gz |
|---|---|
| Size | 6.4 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
c0ea8797bf67babdb65567e600c46bdd04d7bc5d061906a03f75c3d3b6876f1f
|
|
BLAKE2b-256 checksum How to use checksums |
955e755c5a90e76d2dc410d728fad31fe6e8e01391afc08b6c394ba25ccdc626
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Release files / fathom_skill-0.1.0-py3-none-any.whl
| Download URL | fathom_skill-0.1.0-py3-none-any.whl |
|---|---|
| Size | 7.7 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
b6a2c6cfdb1d03d3c8e083834d37d90b17e747f642ffb04f17e0d7676f2a73dc
|
|
BLAKE2b-256 checksum How to use checksums |
36e8d314715582ee1fc8a1e38c6f30ec00ce944204d4900245ccc9cb19c06440
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/6.2.0 CPython/3.14.5
|
Security for fathom-skill 0.1.0
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.