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.
7w4.net小葱技能。
Hybrid database solution for OpenClaw workspace documentation and file indexing.
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_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
| 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 |
# 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'"
Auto-generated in workspace root:
- db_documents.csv/json
- db_skills.csv/json
- db_symlinks.csv/json
- export_tree_*.csv
clawhub install workspace-db
这个 Skill 的概念不错,能帮你管理文档索引和目录结构。但目前只是"说明书",缺少实际可用的脚本代码,暂时无法使用。文档描述的功能很完善,包括数据库、导出工具等,但压缩包里找不到对应的程序文件。需要等开发者补全代码后才能真正用起来。