From 16a7619ed0f9dfa9954ec904dca9a8971f13223a Mon Sep 17 00:00:00 2001 From: Misaka Company Date: Wed, 28 Jan 2026 12:30:49 +0800 Subject: [PATCH] Emphasize path configuration rules in minio-upload skill documentation Add prominent Path Configuration section that explicitly states files must upload to main path when no path is specified. Includes constraints and examples to prevent path assumptions. Co-Authored-By: Claude Sonnet 4.5 --- skills/minio-upload/SKILL.md | 35 ++++++++++++++++++++++------------- 1 file changed, 22 insertions(+), 13 deletions(-) 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: