ima Knowledge Base Sync Tool
Paste the following prompt into your AI chat to install this skill:
Please install @user_3af2e55b/ima-sync according to https://skillhub.cn/install/skillhub.md.
About this skill
What It Solves
Local folders and ima knowledge bases often drift apart: new or modified files stay local, while some entries exist only in the knowledge base. Manually checking uploads is slow, and it is easy to attempt files that ima does not support or that exceed size limits. This skill treats the local directory, the ima knowledge base, and the sync state as one comparison workflow, which is useful for ongoing knowledge-base maintenance rather than one-off file transfers.
How It Works
The tool is organized around diff states:
- It lists knowledge-base files via ima OpenAPI or Bearer Token
- It scans the local directory recursively and matches local filenames, including extensions, against ima titles
- It uses sync_state.json to record file size and modification time for incremental sync
- It pre-checks supported formats and limits, such as .pdf, .docx, .md, and .png, and automatically flags unsupported video types
- It generates an HTML report with missing, new, modified, and same
- Uploads follow create_media, direct COS upload, and add_knowledge
It can run as a browser UI, a Python script, or a WorkBuddy scheduled check. For automation, a --dry-run pass is a safer starting point.
Boundaries And Caveats
Use this for local folder to ima knowledge base syncing and reporting; search, note creation, or editing inside ima belong to other ima capabilities. File names must match ima titles. Keep OpenAPI credentials in environment variables or trusted UI fields, and treat sync_state.json as important: deleting it can cause repeated uploads.
Use Cases
- Compare a local project folder with an ima knowledge base to find new local files not yet uploaded.
- Check PDF, Word, and Markdown files before upload to verify format and size limits.
- Generate an HTML diff report with a CLI script to share local-versus-ima inconsistencies with the team.
- Run a daily WorkBuddy dry-run to list local documents missing from ima.
Best For
- Technical writers maintaining project docs who sync local Markdown and PDFs into ima.
- Operations staff curating knowledge bases who need to confirm missing local materials in ima.
- Engineers building automation who want Python-based pre-checks, uploads, and state tracking.
- Team leads needing reviewable diff reports to reconcile local folders with ima.
Related Skills
Extracts an eight-layer reasoning fingerprint from scholar texts and applies a nine-module constraint to run peer review, supervision, lecturing, or panel discussion with quantitative scores and qualitative comments.
Guides users through a nine-step failure review to analyze causes, hidden gains, and controllable improvements, producing a structured Word report.
Paste a paper abstract or passage and output a structured note with subject, methods, innovations, conclusions, and limitations or outlook.
Turn a topic or outline into a structured Markdown mind map for common visualization tools.