rag
Create, ingest, search, and attach explicit user RAG collections for task-specific corpora.
SKILL.mdskills/rag/SKILL.md
GitHubRAG
Use this skill when the operator explicitly asks to create, ingest, search, use, attach, detach, or delete a task-specific RAG collection.
Collection posture
- User collections are explicit task/corpus context. They are not default memory and are not automatically injected into prompts.
- Create collections only from sources the operator names directly. Do not infer a collection source from incidental URLs or paths in the conversation.
- Local sources must pass kernel trusted-root checks. URL sources must pass kernel URL policy, robots, redirect, content-type, and SSRF checks.
- Search user collections only by naming
collection_type: "user"and the collection name. - Attach a collection only when the operator asks to use it for the current task or session. Detach it when the operator asks to stop using it.
- Deleting a collection removes the manifest and derived index rows only. It does not delete local source files or remote content.
Typical flow
- Use
list_rag_collectionswhen checking whether a collection exists. - Use
create_rag_collectionfor an explicit local path or HTTP(S) URL source. - Use
ingest_rag_collectionafter creation or when sources changed. - Use
search_ragwithcollection_type: "user"andcollections: ["name"]for scoped lookup. - Use
attach_rag_collectiononly after the operator asks to use that collection as task context.