Agent skill

wegent-knowledge

Knowledge base management tools for Wegent. Provides capabilities to list, create, and update knowledge bases and documents. Use this skill when the user wants to manage knowledge bases or documents programmatically.

Stars 518
Forks 84

Install this agent skill to your Project

npx add-skill https://github.com/wecode-ai/Wegent/tree/main/backend/init_data/skills/wegent-knowledge

SKILL.md

Wegent Knowledge Base Skill

You now have access to Wegent Knowledge Base management tools.

Available Tools

  • list_knowledge_bases: List all knowledge bases accessible to the current user

    • scope: "personal" (your own), "group" (team), or "all" (default)
    • group_name: Specify group name when scope="group"
  • list_documents: List all documents in a knowledge base

    • knowledge_base_id: ID of the knowledge base
  • create_knowledge_base: Create a new knowledge base

    • name: Knowledge base display name
    • description: Optional description
    • namespace: "default" (personal) or a group namespace (requires Maintainer+)
    • kb_type: "notebook" (default) or "classic"
    • summary_enabled: Enable automatic summary generation (default: true)
  • create_document: Create a new document in a knowledge base

    • knowledge_base_id: Target knowledge base ID
    • name: Document name
    • source_type: "text" (paste content), "file" (base64 encoded), or "web" (URL to scrape)
    • content: Document content when source_type="text"
    • file_base64: Base64 encoded file when source_type="file"
    • file_extension: File extension when source_type="file"
    • url: URL to fetch when source_type="web"
    • trigger_indexing: Whether to trigger RAG indexing (default: true)
    • trigger_summary: Whether to trigger summary generation (default: true)
  • read_document_content: Read raw document content with offset/limit pagination

    • document_id: Document ID to read
    • offset: Character offset to start reading from (default: 0)
    • limit: Maximum number of characters to return (uses the backend default when omitted)
    • returns: content slice, total_length, returned_length, has_more, kb_id
  • update_document_content: Update a document's content for text documents and editable plain-text files

    • document_id: Document ID to update
    • content: New content (replaces existing content)
    • trigger_reindex: Whether to trigger RAG re-indexing (default: true)

Usage Notes

  • All operations inherit the current user's permissions
  • After creating or updating documents, indexing happens asynchronously
  • Documents may show status "pending" until indexing completes
  • For web scraping, the URL content is fetched and stored as document content
  • update_document_content supports text documents and plain-text file documents such as txt, md, and markdown; binary files like pdf or docx still require creating or replacing the source file instead of inline editing
  • Default behavior: if user doesn't specify scope, use scope="all" directly (no extra confirmation).
  • Avoid loops: if a tool call fails, report the error once and stop retrying/re-loading the skill unless the user changes inputs.
  • Long documents should be read incrementally: start with the backend default limit, then continue with offset = previous_offset + previous_returned_length while has_more=true

Example Workflow

  1. First, list available knowledge bases:

    list_knowledge_bases(scope="all")
    
  2. List documents in a specific knowledge base:

    list_documents(knowledge_base_id=123)
    
  3. Create a new knowledge base:

    create_knowledge_base(
      name="My KB",
      description="My personal notes",
      namespace="default",
      kb_type="notebook"
    )
    
  4. Create a new text document:

    create_document(
      knowledge_base_id=123,
      name="Meeting Notes",
      source_type="text",
      content="Notes from today's meeting..."
    )
    
  5. Update document content:

    text
    update_document_content(
      document_id=456,
      content="Updated notes with new information...",
      trigger_reindex=true
    )
    
  6. Read long document content incrementally:

    text
    read_document_content(
      document_id=456,
      offset=0
    )
    

Expand your agent's capabilities with these related and highly-rated skills.

wecode-ai/Wegent

wiki_submit

Submit wiki documentation sections to Wegent backend API. Simplifies the HTTP POST process for wiki content submission.

518 84
Explore
wecode-ai/Wegent

subscription-manager

Create and manage scheduled subscription tasks. Use when the user wants to set up recurring reminders, periodic reports, scheduled checks, or any automated tasks that run on a schedule. Supports cron expressions, fixed intervals, and one-time executions.

518 84
Explore
wecode-ai/Wegent

conversation_to_prompt

Convert the current conversation into a reusable system prompt draft with strict structure and quality checks.

518 84
Explore
wecode-ai/Wegent

mermaid-diagram

Use this skill when you need to draw diagrams including: Flowchart, Sequence Diagram, Class Diagram, State Diagram, ER Diagram, User Journey, Gantt Chart, Pie Chart, Quadrant Chart, Requirement Diagram, Gitgraph, Mindmap, Timeline, Sankey, XY Chart (Bar/Line), Block Diagram, Packet Diagram, Kanban, Architecture Diagram, C4 Diagram, Radar Chart, Treemap, and ZenUML. You MUST use this skill BEFORE outputting any mermaid code block.

518 84
Explore
wecode-ai/Wegent

sandbox

Provides read_file/write_file/exec/list_files/read_file/write_file for running process and managing filesystems in the sandbox. Ideal for code testing, file management, and command execution. The sub_claude_agent tool is available for advanced use cases. You MUST load this skill BEFORE use sandbox tools.

518 84
Explore
wecode-ai/Wegent

browser

Complete real user web tasks end-to-end via browser-tool, navigate, interact, wait for page state, extract results, and provide evidence when needed.

518 84
Explore

Didn't find tool you were looking for?

Be as detailed as possible for better results