You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
## Skill Hub - Discovering and Fetching Skills from Remote Sources
2147
+
2148
+
**Skill Hub** (`trpc_agent_sdk.skills.hub`) is a set of adapters (`SkillSource`) for discovering and fetching skills from remote sources. It provides three capabilities: searching for available skills from a source (GitHub, ClawHub, skills.sh, and others), inspecting metadata for a specific skill, and downloading the complete file contents for that skill. Users can also implement the `SkillSource` interface to integrate their own skill source.
2149
+
2150
+
### `SkillSource` Contract
2151
+
2152
+
Every adapter implements the same four-method interface:
2153
+
2154
+
```python
2155
+
from trpc_agent_sdk.skills.hub import SkillSource, SkillMeta, SkillBundle
`fetch()` only returns an in-memory `SkillBundle`. Writing it to disk (including overwrite policy, atomic writes, and concurrency safety) is the **caller's** responsibility, because different harnesses have different installation semantics. For this purpose, the SDK also exports three path validation functions:
2168
+
2169
+
```python
2170
+
from trpc_agent_sdk.skills.hub import validate_skill_name, validate_category_name, validate_bundle_rel_path
2171
+
```
2172
+
2173
+
### Built-in Adapters
2174
+
2175
+
| Adapter | Source | Identifier format |
2176
+
| --- | --- | --- |
2177
+
|`GitHubSource`| GitHub repos, via the Contents / Git Trees API |`"owner/repo/path/to/skill-dir"`|
2178
+
|`WellKnownSkillSource`| Any domain exposing `/.well-known/skills/index.json`|`well-known:{base_url}/{skill_name}` or a raw HTTPS URL |
2179
+
|`HermesIndexSource`| A centralized, pre-crawled skills catalog | Same identifiers as the underlying `GitHubSource` entries |
0 commit comments