/rag-service:zeabur-rag-curatefrom rag-service
Interactive curation loop for a RAG knowledge base — reviews pending items (reports, unverified chunks, failed queries, negative feedback) and walks through fixes one by one.
Ships in rag-service. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Interactive curation loop for the knowledge base. This skill orchestrates other skills (triage, inspect, edit, learn, search) plus a few inline admin API calls to walk the user through fixing pending issues one by one.
This is NOT an API wrapper. It's a workflow guide. Follow the steps below as a conversation with the user.
Base URL: $ZEABUR_RAG_URL
Auth: Authorization: Bearer $RAG_API_KEY — admin scope required
zeabur-rag-triage to get the pending items list.chunk_id is null (type=missing) → skip to step 3.zeabur-rag-inspect on the referenced chunk. Show the chunk content + report detail side by side.| Classification | Action |
|---|---|
| Fixable — content is wrong or outdated | Draft fix with user → zeabur-rag-edit → close report |
| Wholly wrong — chunk should not exist | Reject chunk (see Inline commands) → close report |
| Duplicate of another chunk | Reject this one → point user to the correct chunk → close report |
| Type=missing — knowledge gap | Draft new content with user → zeabur-rag-learn → close report |
| Report is invalid — chunk is fine | Close report directly (no chunk changes needed) |
zeabur-rag-inspect on the chunk. Show full content, tags, text_content.| Classification | Action |
|---|---|
| Correct and well-formed | Verify (see Inline commands) |
| Correct but needs polish | zeabur-rag-edit to fix → then verify |
| Low quality or wrong | Reject (see Inline commands) |
zeabur-rag-search with the original query to confirm the gap.| Classification | Action |
|---|---|
| True gap — no relevant chunk exists | Draft new content with user → zeabur-rag-learn |
| Chunk exists but ranks poorly | zeabur-rag-inspect the chunk → zeabur-rag-edit to improve text_content |
| Irrelevant or spam query | Dismiss — no action, move to next item |
zeabur-rag-inspect on each chunk in top_chunk_ids. If top_chunk_ids is null or empty, skip to step 3.| Classification | Action |
|---|---|
| Chunk content is wrong | zeabur-rag-edit to fix |
| Chunk should not have been returned | Reject chunk (see Inline commands) |
| Answer was right but user query was ambiguous | Dismiss — no action |
| No chunks to inspect (null top_chunk_ids) | Treat as knowledge gap → zeabur-rag-learn |
A chunk was ingested from a source file without the stable metadata expected by its adapter. Fix the source file and re-ingest it rather than treating the generated chunk as the canonical record.
zeabur-rag-inspect to show the chunk's url and content.| Classification | Action |
|---|---|
| File is real and worth keeping | Add the adapter's required metadata in the origin → re-ingest |
| File is not worth keeping in KB | Reject the chunk (see Inline commands); user also deletes the source file |
| File is a duplicate of another chunk | Reject this chunk; point user at the canonical one |
These actions don't have dedicated skills. Execute them as direct API calls:
curl -s -X POST "$ZEABUR_RAG_URL/api/admin/learned/<id>/verify" \
-H "Authorization: Bearer $RAG_API_KEY"
Returns {"success": true}. The chunk now ranks at full weight in search (unverified learned chunks are downranked to ×0.7 score).
curl -s -X DELETE "$ZEABUR_RAG_URL/api/admin/learned/<id>" \
-H "Authorization: Bearer $RAG_API_KEY"
Returns {"success": true}. Sets status='rejected', excluded from all search.
curl -s -X PATCH "$ZEABUR_RAG_URL/api/admin/chunks/<id>" \
-H "Authorization: Bearer $RAG_API_KEY" \
-H "Content-Type: application/json" \
-d '{"status":"rejected"}'
Returns {"success": true, ...}. For docs/forum chunks, this rejection survives pipeline rebuilds.
curl -s -X POST "$ZEABUR_RAG_URL/api/admin/reports/<id>/close" \
-H "Authorization: Bearer $RAG_API_KEY"
Returns {"success": true}. Closing an already-closed report is treated as success.
text_content to construct a new one. The edit endpoint returns 400 if you change title/question/answer without providing text_content.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
9 skills in this plugin
/zeabur-rag-editEdit the content of an existing chunk in the RAG knowledge base. Use when a chunk has a typo, outdated info, wrong tags or status, or needs its title/question/answer rewritten. Requires admin scope. Prefer zeabur-rag-report for surfacing issues without write access./zeabur-rag-feedbackSend feedback on RAG search results — thumbs-up (+1) or thumbs-down (-1) to indicate whether the answer was helpful. Use after calling zeabur-rag-search when you can evaluate the quality of the results. Positive feedback reinforces good results; negative feedback flags poor matches for review. Requires write:feedback scope./zeabur-rag-inspectView a single chunk's full content plus related reports, search signals, and edit history. Use before editing, when investigating why a result appeared, or when reviewing a reported issue. Requires admin scope.Other plugins' skills for the same job
npx claudepluginhub zeabur/rag-service --plugin rag-service