When to use this skill
ALWAYS use this skill when the user mentions:
- Reading or writing local files / 读写本地文件
- Safe directory scope configuration / 安全目录 Scope 配置
- Import or export file workflows / 文件导入导出流程
Trigger phrases include:
- "file system", "file access", "scope", "read", "write"
- "File system", "File access", "Scope", "read/write"
How to use this skill
- Define the minimal directories and file patterns to access
- Configure file-system plugin scope and capabilities
- Implement file selection, read, and write flows
- Validate access boundaries and error handling
Outputs
- File access scope plan / 文件访问 Scope 方案
- Import/export flow checklist / 导入导出流程清单
Scope
- Boundary: File-system plugin usage only
- Key points: Scope restrictions for safe access
References
- https://v2.tauri.app/llms.txt
- https://v2.tauri.app/plugin/file-system/
- https://v2.tauri.app/zh-cn/plugin/file-system/
Keywords
tauri file system, scope, read write, file access
Common Gotchas
- Version compatibility: Pay attention to the compatibility between the framework version and dependency libraries; APIs may differ across versions
- Configuration file format: Configuration file format errors are the most common issue; it is recommended to use the editor's syntax checker
- Environment variables: Ensure all necessary environment variables are set correctly, and do not hard-code sensitive information
- Dependency conflicts: When multiple versions coexist, watch out for dependency conflicts, and use a lock file to pin versions
- Performance pitfalls: Pay attention to performance optimization in large-data scenarios, and avoid common issues such as N+1 queries
Usage flow
Step 1: Environment preparation
Ensure the necessary dependencies and tools are installed in the development environment.
Step 2: Configuration initialization
Perform basic configuration according to project requirements.
Step 3: Using core features
Implement the core functionality according to the example code.
Step 4: Test verification
Run tests to ensure the functionality works properly.
Step 5: Deployment and launch
After development is complete, proceed with deployment and monitoring.