Skip to content

The fastest, cheapest, most efficient open-source agent harness. Run more than 500 agents on a $10 VPS.

docs(skills): add README for skills catalog

Steven Enamakele696b5070547
diff --git a/crates/openhuman-core/src/skills/catalog/README.md b/crates/openhuman-core/src/skills/catalog/README.md
index 9ebfb78bfa..b3954cd66e 100644
--- a/crates/openhuman-core/src/skills/catalog/README.md
+++ b/crates/openhuman-core/src/skills/catalog/README.md
@@ -1,8 +1,10 @@
-# Skill Registry
+# skills/catalog
-`skill_registry` owns remote skill catalogs and installed-skill lifecycle.
+Module path: `crate::skills::catalog`. RPC namespace: `skill_registry` — a
+stable wire contract left unchanged by the module rename (JSON-RPC method
+names and CLI subcommands still read `skill_registry_*`).
-Responsibilities:
+Owns remote skill catalogs and installed-skill lifecycle:
- Fetch and cache registry catalogs.
- Refresh the remote catalog asynchronously on core load.
@@ -12,6 +14,54 @@ Responsibilities:
- Uninstall user-scope skills.
- Host the built-in `skill_setup` agent.
+## Key files
+
+| File | Purpose |
+| --- | --- |
+| `mod.rs` | Feature gate (`skills` Cargo feature) and module wiring; re-exports the controller aggregators |
+| `ops.rs` | Catalog fetch/cache, browse/search/install/uninstall business logic |
+| `store.rs` | On-disk catalog cache persistence |
+| `tools.rs` | LLM-callable tools: `skill_registry_browse`, `skill_registry_search`, `skill_registry_install`, and friends |
+| `types.rs` | Catalog entry and wire types |
+| `schemas/controller_schemas.rs` | `skill_registry_*` `ControllerSchema` definitions and the registered-controller table |
+| `schemas/handlers.rs` | Thin RPC handlers dispatching into `ops.rs` |
+| `schemas/wire_types.rs` | Request/response payload types for the handlers |
+| `stub.rs` | No-op facade compiled in when the `skills` feature is off |
+| `agent/skill_setup/` | Built-in `skill_setup` agent (`agent.toml`, `prompt.md`, `prompt.rs`) |
+
+## RPC surface
+
+Functions in `schemas/controller_schemas.rs::all_skill_registry_controller_schemas`,
+all under the `skill_registry` namespace:
+
+- `browse` — list cached (or force-refreshed) catalog entries.
+- `search` — filter entries by query, source, and category.
+- `sources` — distinct upstream sources present in the catalog.
+- `categories` — distinct categories present in the catalog.
+- `install` — install a catalog entry by `entry_id` into user scope.
+- `uninstall` — remove an installed user-scope skill by slug.
+- `schemas` — return the `skill_registry` controller schemas (CLI/RPC smoke-test generation).
+
+## Agent tools and the `skill_setup` agent
+
+`tools.rs` exposes the browse/search/install/uninstall operations as
+LLM-callable tools (`SkillRegistryBrowseTool`, `SkillRegistrySearchTool`, and
+so on) so agents can discover and manage skills directly.
+
+`agent/skill_setup/` is a built-in agent specializing in skill discovery and
+installation; it is registered in
+`crates/openhuman-core/src/agent/registry/agents/loader.rs`, which embeds
+`agent/skill_setup/agent.toml` and wires `agent/skill_setup/prompt.rs::build`
+as its prompt builder.
+
+## Disabled build
+
+When the `skills` Cargo feature is off, `stub.rs` takes the place of this
+module: the controller aggregators return empty vectors and
+`ops::start_boot_catalog_refresh` is a no-op, so the always-on call sites in
+`core/all.rs` and `core/runtime/services.rs` keep compiling without the real
+implementation.
+
Default catalog:
```text
@@ -33,15 +83,16 @@ the remote catalog and updates the local cache without blocking core readiness.
Production smoke examples:
```bash
-openhuman skill_registry schemas
-openhuman skill_registry browse --force_refresh true
-openhuman skill_registry search --query git
-openhuman skill_registry sources
-openhuman skill_registry install --entry_id git-helper
-openhuman skill_registry uninstall --name git-helper
+openhuman-core skill_registry schemas
+openhuman-core skill_registry browse --force_refresh true
+openhuman-core skill_registry search --query git
+openhuman-core skill_registry sources
+openhuman-core skill_registry install --entry_id git-helper
+openhuman-core skill_registry uninstall --name git-helper
```
Security notes:
-- Production installs still go through the hardened `workflows` URL installer.
+- Production installs still go through `skills::ops_install` (the hardened
+ URL installer shared with the `workflows` domain).
- HTTP localhost installs require `OPENHUMAN_SKILL_INSTALL_ALLOW_LOCAL_HTTP=1` and are intended for local fixtures only.