/gifthub:gfh-importfrom gifthub
Import a Google Drive file into a GiftHub repo — move to LFS folder, create pointer, and pull. Use when user says "download recording", "import video", "把 Drive 檔案拉下來", "gfh import".
Ships in gifthub. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Move a Google Drive file into the GiftHub-LFS folder, create an LFS pointer via gfh link, and optionally pull the actual file.
.claude/.gfs/config.json(v2 layout,預設)或 .gfh.json(v1 layout,backward-compat)gfh CLI installed (~/bin/gfh)gws CLI installed (Google Workspace CLI)# v0.4.0+:自動 resolve v2 path 優先,v1 fallback
if [ -f ".claude/.gfs/config.json" ]; then
cat .claude/.gfs/config.json
elif [ -f ".gfh.json" ]; then
cat .gfh.json
fi
Extract:
driveFolderId — the GiftHub-LFS folder on DriveregistryPath / aliasRegistryPath — alias file pathIf user provides a Drive file ID or URL:
https://drive.google.com/file/d/{ID}/...)gws drive files get --params '{"fileId":"ID","fields":"id,name,size,parents"}'If user says "latest Meet recording" or similar:
gws drive files list --params '{"q":"FOLDER_ID in parents","fields":"files(id,name,size,createdTime)","orderBy":"createdTime desc","pageSize":5}'If user provides a local path: use it directly.
If not: ask user. Suggest based on project conventions (e.g., from CLAUDE.md naming patterns).
Move the file from its current folder to the GiftHub-LFS folder, and rename if needed:
gws drive files update \
--params '{"fileId":"FILE_ID","addParents":"GFH_FOLDER_ID","removeParents":"SOURCE_FOLDER_ID"}' \
--json '{"name":"NEW_NAME.mp4"}'
addParents: GiftHub-LFS folder ID (from config — v2 .claude/.gfs/config.json or v1 .gfh.json)removeParents: the file's current parent folder ID (from Step 2 metadata)name: new filename matching project conventionSkip if file is already in the GiftHub-LFS folder.
gfh linkgfh link "FILE_ID" "LOCAL_PATH"
This will:
lfs-registry-aliases.jsongfh pull "LOCAL_PATH"
Downloads the full file from Drive, replacing the pointer.
Ask user if they want to stage the file:
git add "LOCAL_PATH"
✅ Imported: {filename}
Drive ID: {id}
Local: {path}
Size: {size}
Status: hydrated (full file)
gfh link fails: Check if gfh version supports link (requires v0.3.0+). Suggest ~/bin/gfh version.gfh pull fails (500 from Drive): File may still be processing on Google's side (common with fresh Meet recordings). Suggest waiting 10-30 minutes and retrying, or manual browser download.gfh link is preferred over downloading first + gfh push, because it avoids a full download-then-reupload cycle — the file stays on Drive, only the SHA is computed via streaming.What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub psychquant/psychquant-claude-plugins --plugin gifthub