Skills and recipes
uShelf gives your agent two kinds of instructions: skills describe how to drive the MCP tools, and recipes describe what a saved description and its tags should contain.
Skills
Section titled “Skills”Skills are part of the product contract and ship with the server. ushelf setup downloads the ones matching the server version and links them into your client’s skill directory.
| Skill | Used when the user asks to… |
|---|---|
ushelf-ingest |
Save, bookmark, ingest, or summarize a URL, X post, thread, or attached PDF |
ushelf-library |
Search or browse saved items, change reading status, send to Kindle, refresh, or delete |
Highlights of the ingestion workflow:
- Start with
ingest_url, oringest_filewith the exact PDF bytes in base64. - Report an already-ready duplicate instead of re-enriching it, unless asked.
- For an X source in
awaiting_source, obtain the content and callsubmit_source_content. - Call
get_ingestion_context, follow the recipe using only the supplied source, and callsave_insightswith the returned recipe hash and revision. - On a revision or recipe conflict, fetch a fresh context and redo only the affected step.
The library skill archives rather than deletes by default, and permanently deletes only after explicit confirmation through request_delete and confirm_delete.
Recipes
Section titled “Recipes”A recipe is a Markdown file in the server’s recipes/ directory. Its instructions are returned by get_ingestion_context, and its hash is recorded with every enrichment. The bundled default recipe asks for two things, both grounded in the captured source:
- Description: one to three sentences on what the piece is and why it is worth reading, shown on the library card.
- Tags: up to 12 short, lowercase topical tags.
When a recipe changes, its hash changes too, and list_stale_items finds items enriched with the older version. Ask your agent to re-enrich them explicitly; uShelf never spends tokens on its own.
For a local deployment, recipes live in ~/.ushelf/recipes/. Remote deployments keep them in their data volume. The default recipe is copied there only when it is missing, so an existing deployment keeps its current copy until you delete or replace it.