edgebric

Search and manage your private knowledge base. Find documents, query knowledge, upload files, and manage data sources in Edgebric.

Safety Notice

This listing is from the official public ClawHub registry. Review SKILL.md and referenced scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "edgebric" with this command: npx skills add jerv/edgebric

Edgebric Knowledge Base

Use this skill when the user asks about documents, files, knowledge, policies, notes, records, or any information that might be stored in their private knowledge base. Also use it when they want to save, upload, or organize documents.

Setup

Two environment variables are required:

  • EDGEBRIC_URL: The base URL of the Edgebric instance (e.g. http://localhost:3001 or https://edgebric.company.com:3001)
  • EDGEBRIC_API_KEY: An API key starting with eb_, created in Edgebric Settings > API Keys

All requests use Authorization: Bearer $EDGEBRIC_API_KEY header.

When to Use

  • User asks about documents, files, knowledge, policies, procedures, notes, records
  • User says "check my docs", "what do we know about...", "find the policy for..."
  • User wants to save/upload a document ("save this to my Edgebric", "upload this file")
  • User asks to create a new knowledge source or manage their data

Endpoints

Discovery

GET $EDGEBRIC_URL/api/v1/discover

Returns API version, available sources, capabilities, and endpoint map. Call this first if unsure what sources exist.

List Sources

GET $EDGEBRIC_URL/api/v1/sources

Returns all data sources the API key has access to, with document counts.

List Documents in a Source

GET $EDGEBRIC_URL/api/v1/sources/{sourceId}/documents

Returns documents with name, type, size, upload date, and processing status.

Search (Preferred)

POST $EDGEBRIC_URL/api/v1/search
Content-Type: application/json

{
  "query": "what is the vacation policy?",
  "sourceIds": ["optional-source-id"],
  "topK": 5
}

Returns ranked chunks with citations. Prefer this over /query -- it returns raw search results without LLM synthesis, letting you (the smart model) do the synthesis with full context of the conversation.

Response:

{
  "results": [
    {
      "content": "The vacation policy allows...",
      "relevanceScore": 0.92,
      "citation": {
        "documentName": "HR Handbook.pdf",
        "page": 12,
        "section": "Benefits > Time Off",
        "sourceId": "abc-123",
        "sourceName": "HR Documents"
      }
    }
  ]
}

Query (Full RAG)

POST $EDGEBRIC_URL/api/v1/query
Content-Type: application/json

{
  "query": "what is the vacation policy?",
  "sourceIds": ["optional-source-id"],
  "stream": false
}

Returns a synthesized answer from the local LLM with citations. Use this only when you specifically need the local model's interpretation, or when /search returns results and you want a pre-formatted answer.

Response:

{
  "answer": "According to the HR Handbook...",
  "citations": [
    {
      "documentName": "HR Handbook.pdf",
      "page": 12,
      "section": "Benefits > Time Off",
      "sourceId": "abc-123",
      "sourceName": "HR Documents"
    }
  ]
}

Set stream: true for SSE streaming (Server-Sent Events).

Create a Source

POST $EDGEBRIC_URL/api/v1/sources
Content-Type: application/json

{
  "name": "Project Alpha Docs",
  "description": "Documentation for Project Alpha"
}

Requires read-write or admin permission.

Upload a Document

POST $EDGEBRIC_URL/api/v1/sources/{sourceId}/upload
Content-Type: multipart/form-data

file: <binary file data>

Supported types: PDF, DOCX, TXT, MD (max 50MB). Returns document ID and job ID. The document will be processed asynchronously (text extraction, chunking, embedding, PII detection).

Requires read-write or admin permission.

Check Job Status

GET $EDGEBRIC_URL/api/v1/jobs/{jobId}

Check if a document upload/ingestion job is complete.

Delete a Document

DELETE $EDGEBRIC_URL/api/v1/documents/{documentId}

Requires read-write or admin permission. Always confirm with the user before deleting. Never delete documents without explicit user approval.

Delete a Source

DELETE $EDGEBRIC_URL/api/v1/sources/{sourceId}

Deletes the source and ALL its documents. Requires admin permission. Always confirm with the user before deleting a source — this is a destructive, irreversible operation. Never delete sources without explicit user approval.

Formatting Results

When presenting search results or query answers to the user, always include citations:

According to HR Handbook.pdf (p. 12, Benefits > Time Off), the vacation policy allows...

Format: Document Name (p. Page, Section Path)

If multiple sources contribute to an answer, cite each one.

Error Handling

All errors return JSON:

{
  "error": "Human-readable message",
  "code": "MACHINE_CODE",
  "status": 401
}

Common codes:

  • AUTH_REQUIRED (401): Missing or invalid API key
  • INVALID_KEY (401): Key is revoked or malformed
  • INSUFFICIENT_PERMISSION (403): Key doesn't have required permission level
  • NOT_FOUND (404): Resource doesn't exist or is outside key's scope
  • RATE_LIMITED (429): Too many requests, check Retry-After header
  • INFERENCE_UNAVAILABLE (503): Local LLM not running

Tips

  • /search is almost always better than /query -- you can synthesize better answers with more context
  • Check /discover first to see what sources are available
  • Source IDs filter searches to specific collections -- omit to search everything
  • The API key's scope may limit which sources are visible
  • Documents take a few seconds to process after upload (extraction + embedding)
  • Works with both localhost and network URLs

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

Research

Philosophical Three Questions

A structured decision framework for embodied navigation using Goal Tree, Current State Tree, and Future Tree analysis. Use when: making navigation decisions...

Registry SourceRecently Updated
Research

FN Portrait Toolkit

Financial report footnote extraction and analysis tool for Chinese A-share listed companies. Use when: (1) User wants to extract financial note data from ann...

Registry SourceRecently Updated
Research

SEO AGI (Multi-Agent SEO: Research → Gap Analysis → Write → Validate → Ship)

Write SEO pages that rank in Google AND get cited by LLMs (ChatGPT, Perplexity, Claude). Use when creating airport parking pages, local service pages, listic...

Registry SourceRecently Updated
Research

Knowledge Gaps

Track questions Hans failed to answer and flag missing knowledge

Registry SourceRecently Updated