返回顶部
F

Folders

Index important directories and perform safe folder operations with proper security checks.

作者: admin | 来源: ClawHub
源自
ClawHub
版本
V 1.0.0
安全检测
已通过
1,011
下载量
2
收藏
概述
安装方式
版本历史

Folders

## Folder Index Maintain a lightweight index at `~/.config/folder-index.json` to know where important things are without rescanning. ```json { "folders": [ {"path": "/Users/alex/projects/webapp", "type": "project", "note": "Main client project"} ] } ``` When user asks "where is X" or "find my project Y", check the index first. If not found, do targeted discovery then offer to add the result. ## Discovery When asked to find or index folders: - Scan likely locations: ~/projects, ~/Documents, ~/code, ~/dev, ~/work - Detect projects by markers: .git, package.json, pubspec.yaml, Cargo.toml, go.mod, pyproject.toml, *.sln - Stop at first marker (don't recurse into node_modules, vendor, build) - Propose what was found, don't auto-add: "Found 8 projects in ~/code. Add to index?" ## Path Security - Canonicalize paths (resolve `~`, `..`, symlinks) before any operation - Reject system paths: /, /etc, /var, /usr, /System, /Library, C:\Windows, C:\Program Files - Skip symlinks during traversal, report them separately ## Destructive Operations - Use OS trash instead of permanent delete - State recoverability: "node_modules: recoverable with npm install" - Build artifacts safe to delete: node_modules, __pycache__, .gradle, build/, target/, Pods/, .next/ ## Platform Quirks - **macOS:** .DS_Store alone = effectively empty. Treat .app as single item. - **Windows:** Paths >260 chars need `\\?\` prefix. - **Network drives:** Warn before bulk ops — may be slow or offline.

标签

skill ai

通过对话安装

该技能支持在以下平台通过对话安装:

OpenClaw WorkBuddy QClaw Kimi Claude

方式一:安装 SkillHub 和技能

帮我安装 SkillHub 和 folders-1776420039 技能

方式二:设置 SkillHub 为优先技能安装源

设置 SkillHub 为我的优先技能安装源,然后帮我安装 folders-1776420039 技能

通过命令行安装

skillhub install folders-1776420039

下载 Zip 包

⬇ 下载 Folders v1.0.0

文件大小: 1.56 KB | 发布时间: 2026-4-17 19:47

v1.0.0 最新 2026-4-17 19:47
Initial release

Archiver·手机版·闲社网·闲社论坛·羊毛社区· 多链控股集团有限公司 · 苏ICP备2025199260号-1

Powered by Discuz! X5.0   © 2024-2025 闲社网·线报更新论坛·羊毛分享社区·http://xianshe.com

p2p_official_large
返回顶部