/install folders
Folder Index
Maintain a lightweight index at ~/.config/folder-index.json to know where important things are without rescanning.
{
"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.
- Make sure OpenClaw is installed (local or Docker)
- Run the install command in chat:
/install folders - After installation, invoke the skill by name or use
/folders - Provide required inputs per the skill's parameter spec and get structured output
What is Folders?
Index important directories and perform safe folder operations with proper security checks. It is an AI Agent Skill for Claude Code / OpenClaw, with 1076 downloads so far.
How do I install Folders?
Run "/install folders" in the OpenClaw or Claude Code chat to install it in one step — no extra setup required.
Is Folders free?
Yes, Folders is completely free (open-source). You can download, install and use it at no cost.
Which platforms does Folders support?
Folders is cross-platform and runs anywhere OpenClaw / Claude Code is available (linux, darwin, win32).
Who created Folders?
It is built and maintained by Iván (@ivangdavila); the current version is v1.0.0.