Knowledge Base (知识库)

Upload validated files, import URLs, and add notes to IMA Wiki knowledge bases.

Updated May 4, 2026
One-click install
npx skills add https://github.com/234194027-cpu/xianclaw --skill knowledge-base-234194027-cpu
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: Knowledge Base (知识库)
Source: https://github.com/234194027-cpu/xianclaw/tree/main/resources/openclaw/config/skills/ima/knowledge-base
Command: npx skills add https://github.com/234194027-cpu/xianclaw --skill knowledge-base-234194027-cpu

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires crypto, fs, https, node:crypto, node:fs, node:https, and includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps you add and manage knowledge-base content in IMA Wiki without manual, error-prone API juggling, by standardizing how files, URLs, and notes are validated and uploaded.

Core Features & Use Cases

  • Upload files with guardrails: Detects supported file types, enforces size and audio-duration limits, and handles duplicate filenames via a repeat-check workflow.
  • Import webpages and WeChat articles: Adds web and mp.weixin.qq.com articles in batches using the URL import API.
  • Organize by folders and search: Lists knowledge bases, browses folder contents, and searches across files and folders with cursor-based pagination.
  • Add notes directly: Links existing note content by doc_id instead of downloading content again.

Quick Start

Ask to upload a document to your IMA knowledge base by specifying the knowledge base name and the target file (for example, "Add report.pdf to the 产品文档库 (root) and import it as a document").

Frequently Asked Questions about Knowledge Base (知识库)

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I upload files to an IMA Wiki knowledge base using an API?

To upload files to an IMA Wiki knowledge base, the Skill uses the create_media API endpoint. It performs strict preflight validation for file type and size, and checks for duplicate filenames before adding the document to the correct folder.

Can I import webpages and WeChat articles into IMA Wiki in bulk?

Yes, you can import webpages and WeChat articles in batches using the import_urls API. The Skill supports ingesting standard web URLs and mp.weixin.qq.com articles directly into your specified knowledge base.

What is the best way to organize and search documents across IMA Wiki folders?

The best way to organize and search documents is by listing knowledge bases, browsing folder contents, and using the search_knowledge API with cursor-based pagination to retrieve files and folders efficiently.

Does this IMA Wiki upload method check for duplicate filenames before adding documents?

Yes, the IMA Wiki upload method enforces a repeat-check workflow for duplicate filenames. This preflight duplicate-name check ensures you do not accidentally overwrite existing files during document onboarding.

How do I add existing notes to an IMA knowledge base without downloading content again?

You add existing notes by linking their content using a specific doc_id. This avoids downloading the content again and directly integrates the note into the target knowledge base via the add_knowledge API.

Are there file size or audio duration limits when uploading content to IMA Wiki?

Yes, the upload process enforces strict size limits and audio-duration limits during preflight validation. Files exceeding these constraints, or unsupported file types, are rejected before reaching the create_media API.