internal/cli/filesystem/README.md
The ContextEngine Filesystem is a filesystem interface for RAGFlow, providing users with a Unix-like file system interface to manage datasets, tools, skills, and memories.
user_id/
├── datasets/
│ └── my_dataset/
│ └── ...
├── tools/
│ ├── registry.json
│ └── tool_name/
│ ├── DOC.md
│ └── ...
├── skills/
│ └── skill_name/
│ └── version
. ├──SKILL.md
. └── ...
└── memories/
└── memory_id/
├── sessions/
│ ├── messages/
│ ├── summaries/
│ │ └── session_id/
│ │ └── summary-{datetime}.md
│ └── tools/
│ └── session_id/
│ └── {tool_name}.md # User level of memory on Tools usage
├── users/
│ ├── profile.md
│ ├── preferences/
│ └── entities/
└── agents/
└── agent_space/
├── tools/
│ └── {tool_name}.md # Agent level of memory on Tools usage
└── skills/
└── {skill_name}.md # Agent level of memory on Skills usage
ls [path] - List directory contentscat <path> - Display file contents(only for text files)search <query> path - Search contentinstall-skill <space> <source> [options] - Install a skill from multiple sourcesuninstall-skill <space> <skill-name> - Uninstall a skillInstall a skill from multiple sources into a RAGFlow space.
Usage:
install-skill <space> <source> [options]
Arguments:
<space> - Target skills space ID (required)<source> - Skill source reference (required)Supported Sources:
| Source Type | Format | Example |
|---|---|---|
| Local | ./path or /absolute/path | ./my-skill, /home/user/skills/awesome |
| GitHub | github.com/owner/repo/path | github.com/openai/skills/skill-creator |
| ClawHub | clawhub://owner/skill-name or clawhub.ai/owner/skill-name | clawhub://pskoett/self-improving-agent |
| skills.sh | skill://skill-name or skills.sh/skill/name | skill://kubernetes |
Options:
-v, --version <version> - Specify skill version (default: from SKILL.md or 1.0.0)-n, --name <name> - Override skill name (default: from SKILL.md)-f, --force - Force reinstall if skill exists (deletes existing first and updates index)--skip-verify - Skip security verification (use with caution)-h, --help - Show help messageSecurity Scanning:
By default, all skills are scanned for potential security threats:
.ssh accessrm -rf /, mkfs, disk overwrite operationseval() usage, encoded executionTrust Levels:
builtin - Official RAGFlow skills (always allowed)trusted - openai/skills, anthropics/skills, microsoft/skills, google/skills (caution allowed)community - All other sources (findings blocked unless --force)Examples:
# Install from local path
install-skill my-space ./my-local-skill
# Install from GitHub
install-skill my-space github.com/openai/skills/skill-creator
# Install from ClawHub
install-skill my-space clawhub://user/web-search
# Install from Skills.sh
install-skill my-space skills.sh/xixu-me/skills/readme-i18n
# Force reinstall (delete existing and reinstall, update index)
install-skill my-space ./my-skill --force
# Force install with custom name, skip security check
install-skill my-space clawhub://unknown-skill --force --name my-skill --skip-verify
# Install specific version
install-skill my-space skill://kubernetes --version 2.1.0
Remove a skill from RAGFlow and delete its search index.
Usage:
uninstall-skill <space> <skill-name>
Arguments:
<space> - Skills space ID (required)<skill-name> - Name of the skill to uninstall (required)Examples:
uninstall-skill my-space my-skill
add-skill - Deprecated, use install-skill insteaddelete-skill - Deprecated, use uninstall-skill insteadA valid skill directory must contain:
SKILL.md - Required. Skill metadata and instructions in YAML frontmatter formatOptional files:
.md, .mdx).py, .js, .ts, etc.).json, .yaml, .toml)---
name: my-skill
description: A brief description of what this skill does
version: 1.0.0
author: Your Name
tags:
- category1
- category2
---
The skill management system implements defense-in-depth security:
--force