Workspace Database Manager

👤 kikikari 📦 v1.0.0 ⭐ 3.7 ⬇️ 597 下載
📚 知識管理 免費

📖 技能介紹


name: workspace-db description: Workspace Documentation and Tree Database Manager. SQLite-based indexing for all documentation, files, and directory structures with CSV/JSON export capabilities.


Workspace Database Manager

Hybrid database solution for OpenClaw workspace documentation and file indexing.

Features

  • docs.db: Documentation index (256+ documents, skills, symlinks)

    小蔥技能7w4.net持續更新中。

  • tree.db: Directory tree structures (152+ entries)
  • Auto-Export: CSV and JSON formats
  • Git-Ready: Skill structure for easy publishing

Database Schema

docs.db

documents: id, name, path, category, description, type, has_symlink, symlink_path, last_update
skills: id, name, version, status, description, path
symlinks: id, name, target, source_path, description
categories: id, name, description, priority

tree.db

tree_entries: id, root_path, relative_path, name, type, depth, parent_path, size
tree_scans: id, root_path, max_depth, total_files, total_dirs, total_symlinks

Scripts

Script Purpose
db_manager.py Initialize and populate docs.db
tree_indexer.py Scan directories with tree command
update_docs_db.py Re-scan all documentations

Usage

# Initialize databases
python3 scripts/db_manager.py

# Index tree structures
python3 scripts/tree_indexer.py

# Update documentation index
python3 scripts/update_docs_db.py

# Query databases
sqlite3 db/docs.db "SELECT * FROM documents WHERE category='websearch'"
sqlite3 db/tree.db "SELECT * FROM tree_entries WHERE type='symlink'"

Exports

Auto-generated in workspace root: - db_documents.csv/json - db_skills.csv/json - db_symlinks.csv/json - export_tree_*.csv

Installation

clawhub install workspace-db

Requirements

  • Python 3.8+
  • SQLite3
  • tree command (optional, for indexing)

🤖 AI 評測

這個 Skill 的概念不錯,能幫你管理文件索引和目錄結構。但目前只是"說明書",缺少實際可用的指令碼程式碼,暫時無法使用。文件描述的功能很完善,包括資料庫、匯出工具等,但壓縮包裡找不到對應的程式檔案。需要等開發者補全程式碼後才能真正用起來。

📊 多維度評分

適應性3.9
規範性3.6
有效性3.4
可靠性3.3
可信度4.5

📁 包含檔案 (5 個)

📄 INSTALL.md 900 B
📄 README.md 1.7 KB
📄 SKILL.md 1.8 KB
📄 _meta.json 131 B
📄 package.json 209 B