diff --git a/skills/minio-upload/SKILL.md b/skills/minio-upload/SKILL.md index 4b15d94..aa11b37 100644 --- a/skills/minio-upload/SKILL.md +++ b/skills/minio-upload/SKILL.md @@ -19,6 +19,28 @@ Upload to a custom subpath: .claude/skills/minio-upload/scripts/upload_to_obsidian.sh path/to/file.md "notes/2024" ``` +## Path Configuration + +**CRITICAL RULE**: When no path is explicitly specified by the user, files MUST be uploaded to the `main` path only. Do NOT assume or invent custom subpaths. + +### Path Behavior + +- **No path specified**: Upload to `minio/obsidian/main/` (DEFAULT - use this unless user explicitly requests otherwise) +- **Custom path specified**: Use the exact path provided by the user (e.g., `notes/2024`, `archive/old projects`) +- **Nested paths**: Multi-level paths are supported when explicitly requested (e.g., `notes/personal/journal`) + +### Important Constraints + +1. **Never assume paths**: If the user doesn't specify a path, always use `main` +2. **User intent only**: Only use custom subpaths when the user explicitly provides them +3. **Path validation**: The script automatically normalizes paths and appends the filename + +### Examples + +- User says "upload file.md" → Upload to `main/` +- User says "upload to notes" → Upload to `notes/` +- User says "upload to archive/old projects" → Upload to `archive/old projects/` + ## Workflow 1. **Verify file exists** - Check that the source file is accessible @@ -26,19 +48,6 @@ Upload to a custom subpath: 3. **Upload with mc** - Execute `mc cp` command to transfer file 4. **Confirm success** - Verify upload completed and report target location -## Path Configuration - -The script accepts an optional subpath argument: - -- **Default**: Files upload to `minio/obsidian/main/` -- **Custom subpath**: Specify any subpath (e.g., `notes/2024`, `archive/old projects`) -- **Nested paths**: Multi-level paths are supported (e.g., `notes/personal/journal`) - -The script automatically: -- Appends the filename to the target path -- Normalizes multiple slashes in paths -- Uses the `minio` alias configured in mc - ## Error Handling The script will: