[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6CT3SDW1E3QDPNJ271D61M9":3,"skill-same:01M6CT3SDW1E3QDPNJ271D61M9":68},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":32,"linkOnly":33,"markdownContent":34,"markdownBody":35,"frontMatter":36,"refName":40,"commitSha":41,"skillDirectory":42,"forksCount":43,"repositoryHtmlUrl":44,"repositoryHomepageUrl":44,"ownerHtmlUrl":45,"ownerBlogUrl":6,"ownerDescription":46,"updatedAt":47,"install":48,"resources":61},"01M6CT3SDW1E3QDPNJ271D61M9","file-uploads",null,"Expert at handling file uploads and cloud storage. Covers S3, Cloudflare R2, presigned URLs, multipart uploads, and image optimization. Knows how to handle large files without blocking.","Sam-06060\u002Fjarvis-assistant","Sam-06060","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F208600848?v=4","01M6CRKT7C7FXD21V6HXF293S0","Samson Frank Ganta","01M6CRKTBEKYFD8YX5Z1GT99EE",6,"Apache-2.0","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Ffile-uploads\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31],"file","file uploads","uploads","image","storage","cloudflare","apache","s3","cloud","Optimization","how","files","expert","2026-11-10 10:12:30",false,"---\nname: file-uploads\ndescription: Expert at handling file uploads and cloud storage. Covers S3,\n  Cloudflare R2, presigned URLs, multipart uploads, and image optimization.\n  Knows how to handle large files without blocking.\nrisk: none\nsource: vibeship-spawner-skills (Apache 2.0)\ndate_added: 2026-02-27\n---\n\n# File Uploads & Storage\n\nExpert at handling file uploads and cloud storage. Covers S3,\nCloudflare R2, presigned URLs, multipart uploads, and image\noptimization. Knows how to handle large files without blocking.\n\n**Role**: File Upload Specialist\n\nCareful about security and performance. Never trusts file\nextensions. Knows that large uploads need special handling.\nPrefers presigned URLs over server proxying.\n\n### Principles\n\n- Never trust client file type claims\n- Use presigned URLs for direct uploads\n- Stream large files, never buffer\n- Validate on upload, optimize after\n\n## Sharp Edges\n\n### Trusting client-provided file type\n\nSeverity: CRITICAL\n\nSituation: User uploads malware.exe renamed to image.jpg. You check\nextension, looks fine. Store it. Serve it. Another user\ndownloads and executes it.\n\nSymptoms:\n- Malware uploaded as images\n- Wrong content-type served\n\nWhy this breaks:\nFile extensions and Content-Type headers can be faked.\nAttackers rename executables to bypass filters.\n\nRecommended fix:\n\n# CHECK MAGIC BYTES\n\nimport { fileTypeFromBuffer } from \"file-type\";\n\nasync function validateImage(buffer: Buffer) {\n  const type = await fileTypeFromBuffer(buffer);\n  \n  const allowedTypes = [\"image\u002Fjpeg\", \"image\u002Fpng\", \"image\u002Fwebp\"];\n  \n  if (!type || !allowedTypes.includes(type.mime)) {\n    throw new Error(\"Invalid file type\");\n  }\n  \n  return type;\n}\n\n\u002F\u002F For streams\nimport { fileTypeFromStream } from \"file-type\";\nconst type = await fileTypeFromStream(readableStream);\n\n### No upload size restrictions\n\nSeverity: HIGH\n\nSituation: No file size limit. Attacker uploads 10GB file. Server runs\nout of memory or disk. Denial of service. Or massive\nstorage bill.\n\nSymptoms:\n- Server crashes on large uploads\n- Massive storage bills\n- Memory exhaustion\n\nWhy this breaks:\nWithout limits, attackers can exhaust resources. Even\nlegitimate users might accidentally upload huge files.\n\nRecommended fix:\n\n# SET SIZE LIMITS\n\n\u002F\u002F Formidable\nconst form = formidable({\n  maxFileSize: 10 * 1024 * 1024, \u002F\u002F 10MB\n});\n\n\u002F\u002F Multer\nconst upload = multer({\n  limits: { fileSize: 10 * 1024 * 1024 },\n});\n\n\u002F\u002F Client-side early check\nif (file.size > 10 * 1024 * 1024) {\n  alert(\"File too large (max 10MB)\");\n  return;\n}\n\n\u002F\u002F Presigned URL with size limit\nconst command = new PutObjectCommand({\n  Bucket: BUCKET,\n  Key: key,\n  ContentLength: expectedSize, \u002F\u002F Enforce size\n});\n\n### User-controlled filename allows path traversal\n\nSeverity: CRITICAL\n\nSituation: User uploads file named \"..\u002F..\u002F..\u002Fetc\u002Fpasswd\". You use\nfilename directly. File saved outside upload directory.\nSystem files overwritten.\n\nSymptoms:\n- Files outside upload directory\n- System file access\n\nWhy this breaks:\nUser input should never be used directly in file paths.\nPath traversal sequences can escape intended directories.\n\nRecommended fix:\n\n# SANITIZE FILENAMES\n\nimport path from \"path\";\nimport crypto from \"crypto\";\n\nfunction safeFilename(userFilename: string): string {\n  \u002F\u002F Extract just the base name\n  const base = path.basename(userFilename);\n  \n  \u002F\u002F Remove any remaining path chars\n  const sanitized = base.replace(\u002F[^a-zA-Z0-9.-]\u002Fg, \"_\");\n  \n  \u002F\u002F Or better: generate new name entirely\n  const ext = path.extname(userFilename).toLowerCase();\n  const allowed = [\".jpg\", \".png\", \".pdf\"];\n  \n  if (!allowed.includes(ext)) {\n    throw new Error(\"Invalid extension\");\n  }\n  \n  return crypto.randomUUID() + ext;\n}\n\n\u002F\u002F Never do this\nconst path = \"uploads\u002F\" + req.body.filename; \u002F\u002F DANGER!\n\n\u002F\u002F Do this\nconst path = \"uploads\u002F\" + safeFilename(req.body.filename);\n\n### Presigned URL shared or cached incorrectly\n\nSeverity: MEDIUM\n\nSituation: Presigned URL for private file returned in API response.\nResponse cached by CDN. Anyone with cached URL can access\nprivate file for hours.\n\nSymptoms:\n- Private files accessible via cached URLs\n- Access after expiry\n\nWhy this breaks:\nPresigned URLs grant temporary access. If cached or shared,\naccess extends beyond intended scope.\n\nRecommended fix:\n\n# CONTROL PRESIGNED URL DISTRIBUTION\n\n\u002F\u002F Short expiry for sensitive files\nconst url = await getSignedUrl(s3, command, {\n  expiresIn: 300, \u002F\u002F 5 minutes\n});\n\n\u002F\u002F No-cache headers for presigned URL responses\nreturn Response.json({ url }, {\n  headers: {\n    \"Cache-Control\": \"no-store, max-age=0\",\n  },\n});\n\n\u002F\u002F Or use CloudFront signed URLs for more control\n\n## Validation Checks\n\n### Only checking file extension\n\nSeverity: CRITICAL\n\nMessage: Check magic bytes, not just extension\n\nFix action: Use file-type library to verify actual type\n\n### User filename used directly in path\n\nSeverity: CRITICAL\n\nMessage: Sanitize filenames to prevent path traversal\n\nFix action: Use path.basename() and generate safe name\n\n## Collaboration\n\n### Delegation Triggers\n\n- image optimization CDN -> performance-optimization (Image delivery)\n- storing file metadata -> postgres-wizard (Database schema)\n\n## When to Use\n\n- User mentions or implies: file upload\n- User mentions or implies: S3\n- User mentions or implies: R2\n- User mentions or implies: presigned URL\n- User mentions or implies: multipart\n- User mentions or implies: image upload\n- User mentions or implies: cloud storage\n","# File Uploads & Storage\n\nExpert at handling file uploads and cloud storage. Covers S3,\nCloudflare R2, presigned URLs, multipart uploads, and image\noptimization. Knows how to handle large files without blocking.\n\n**Role**: File Upload Specialist\n\nCareful about security and performance. Never trusts file\nextensions. Knows that large uploads need special handling.\nPrefers presigned URLs over server proxying.\n\n### Principles\n\n- Never trust client file type claims\n- Use presigned URLs for direct uploads\n- Stream large files, never buffer\n- Validate on upload, optimize after\n\n## Sharp Edges\n\n### Trusting client-provided file type\n\nSeverity: CRITICAL\n\nSituation: User uploads malware.exe renamed to image.jpg. You check\nextension, looks fine. Store it. Serve it. Another user\ndownloads and executes it.\n\nSymptoms:\n- Malware uploaded as images\n- Wrong content-type served\n\nWhy this breaks:\nFile extensions and Content-Type headers can be faked.\nAttackers rename executables to bypass filters.\n\nRecommended fix:\n\n# CHECK MAGIC BYTES\n\nimport { fileTypeFromBuffer } from \"file-type\";\n\nasync function validateImage(buffer: Buffer) {\n  const type = await fileTypeFromBuffer(buffer);\n  \n  const allowedTypes = [\"image\u002Fjpeg\", \"image\u002Fpng\", \"image\u002Fwebp\"];\n  \n  if (!type || !allowedTypes.includes(type.mime)) {\n    throw new Error(\"Invalid file type\");\n  }\n  \n  return type;\n}\n\n\u002F\u002F For streams\nimport { fileTypeFromStream } from \"file-type\";\nconst type = await fileTypeFromStream(readableStream);\n\n### No upload size restrictions\n\nSeverity: HIGH\n\nSituation: No file size limit. Attacker uploads 10GB file. Server runs\nout of memory or disk. Denial of service. Or massive\nstorage bill.\n\nSymptoms:\n- Server crashes on large uploads\n- Massive storage bills\n- Memory exhaustion\n\nWhy this breaks:\nWithout limits, attackers can exhaust resources. Even\nlegitimate users might accidentally upload huge files.\n\nRecommended fix:\n\n# SET SIZE LIMITS\n\n\u002F\u002F Formidable\nconst form = formidable({\n  maxFileSize: 10 * 1024 * 1024, \u002F\u002F 10MB\n});\n\n\u002F\u002F Multer\nconst upload = multer({\n  limits: { fileSize: 10 * 1024 * 1024 },\n});\n\n\u002F\u002F Client-side early check\nif (file.size > 10 * 1024 * 1024) {\n  alert(\"File too large (max 10MB)\");\n  return;\n}\n\n\u002F\u002F Presigned URL with size limit\nconst command = new PutObjectCommand({\n  Bucket: BUCKET,\n  Key: key,\n  ContentLength: expectedSize, \u002F\u002F Enforce size\n});\n\n### User-controlled filename allows path traversal\n\nSeverity: CRITICAL\n\nSituation: User uploads file named \"..\u002F..\u002F..\u002Fetc\u002Fpasswd\". You use\nfilename directly. File saved outside upload directory.\nSystem files overwritten.\n\nSymptoms:\n- Files outside upload directory\n- System file access\n\nWhy this breaks:\nUser input should never be used directly in file paths.\nPath traversal sequences can escape intended directories.\n\nRecommended fix:\n\n# SANITIZE FILENAMES\n\nimport path from \"path\";\nimport crypto from \"crypto\";\n\nfunction safeFilename(userFilename: string): string {\n  \u002F\u002F Extract just the base name\n  const base = path.basename(userFilename);\n  \n  \u002F\u002F Remove any remaining path chars\n  const sanitized = base.replace(\u002F[^a-zA-Z0-9.-]\u002Fg, \"_\");\n  \n  \u002F\u002F Or better: generate new name entirely\n  const ext = path.extname(userFilename).toLowerCase();\n  const allowed = [\".jpg\", \".png\", \".pdf\"];\n  \n  if (!allowed.includes(ext)) {\n    throw new Error(\"Invalid extension\");\n  }\n  \n  return crypto.randomUUID() + ext;\n}\n\n\u002F\u002F Never do this\nconst path = \"uploads\u002F\" + req.body.filename; \u002F\u002F DANGER!\n\n\u002F\u002F Do this\nconst path = \"uploads\u002F\" + safeFilename(req.body.filename);\n\n### Presigned URL shared or cached incorrectly\n\nSeverity: MEDIUM\n\nSituation: Presigned URL for private file returned in API response.\nResponse cached by CDN. Anyone with cached URL can access\nprivate file for hours.\n\nSymptoms:\n- Private files accessible via cached URLs\n- Access after expiry\n\nWhy this breaks:\nPresigned URLs grant temporary access. If cached or shared,\naccess extends beyond intended scope.\n\nRecommended fix:\n\n# CONTROL PRESIGNED URL DISTRIBUTION\n\n\u002F\u002F Short expiry for sensitive files\nconst url = await getSignedUrl(s3, command, {\n  expiresIn: 300, \u002F\u002F 5 minutes\n});\n\n\u002F\u002F No-cache headers for presigned URL responses\nreturn Response.json({ url }, {\n  headers: {\n    \"Cache-Control\": \"no-store, max-age=0\",\n  },\n});\n\n\u002F\u002F Or use CloudFront signed URLs for more control\n\n## Validation Checks\n\n### Only checking file extension\n\nSeverity: CRITICAL\n\nMessage: Check magic bytes, not just extension\n\nFix action: Use file-type library to verify actual type\n\n### User filename used directly in path\n\nSeverity: CRITICAL\n\nMessage: Sanitize filenames to prevent path traversal\n\nFix action: Use path.basename() and generate safe name\n\n## Collaboration\n\n### Delegation Triggers\n\n- image optimization CDN -> performance-optimization (Image delivery)\n- storing file metadata -> postgres-wizard (Database schema)\n\n## When to Use\n\n- User mentions or implies: file upload\n- User mentions or implies: S3\n- User mentions or implies: R2\n- User mentions or implies: presigned URL\n- User mentions or implies: multipart\n- User mentions or implies: image upload\n- User mentions or implies: cloud storage\n",{"name":5,"risk":37,"source":38,"date_added":39,"description":7},"none","vibeship-spawner-skills (Apache 2.0)",1772150400000,"main","a50a3aa6b39fb0e1b7db88bef1bfc9c93606e126","modules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Ffile-uploads",0,"https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant","https:\u002F\u002Fgithub.com\u002FSam-06060","Mobile Application Developer | Kotlin | Flutter, KMP, Swfit, Android,Swift UI | Building at Saar It Resources | Creator of Jarvis (AI Assistant)","2026-06-23 05:13:38",{"source":8,"skillName":5,"commands":49,"prompt":59,"zipAvailable":60},[50,53,56],{"tool":51,"command":52},"npx","npx skills add Sam-06060\u002Fjarvis-assistant --skill file-uploads",{"tool":54,"command":55},"bunx","bunx skills add Sam-06060\u002Fjarvis-assistant --skill file-uploads",{"tool":57,"command":58},"pnpm","pnpm dlx skills add Sam-06060\u002Fjarvis-assistant --skill file-uploads","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Ffile-uploads\u002FSKILL.md",true,[62],{"path":63,"resourceType":64,"resourceTypeDesc":65,"sizeBytes":66,"sourceHtmlUrl":67},"metadata.json","REFERENCE","参考文档",1310,"https:\u002F\u002Fgithub.com\u002FFDU-INS\u002FInsurance-Skills\u002Fblob\u002Fmain\u002FSkills\u002FPolicyPulse Development\u002Fmetadata.json",[69,77,94,118,136,159],{"skillNo":70,"name":71,"nameZh":6,"description":6,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":72,"categories":73,"keywords":74,"publishedAt":32},"01M6GDRVS6FXX3ESH0C9DW01C0","test_skill","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fscratch\u002Ftest_skill\u002FSKILL.md",[],[75,76],"Test Skill","test",{"skillNo":78,"name":79,"nameZh":6,"description":80,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":81,"categories":82,"keywords":83,"publishedAt":32},"01M6GDRQ40HX22MA6XWC31RHHK","zustand-store-ts","Create Zustand stores following established patterns with proper TypeScript types and middleware.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzustand-store-ts\u002FSKILL.md",[],[84,85,86,87,88,89,90,91,92,93],"zustand store ts","zustand","store","with","types","middleware","patterns","community","create","typescript",{"skillNo":95,"name":96,"nameZh":6,"description":97,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":98,"categories":99,"keywords":100,"publishedAt":32},"01M6GDRKEA0WE670SPFWX5GKCN","zoom-automation","Automate Zoom meeting creation, management, recordings, webinars, and participant tracking via Rube MCP (Composio). Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzoom-automation\u002FSKILL.md",[],[101,102,103,104,105,106,107,108,109,110,111,112,113,114,91,115,116,117],"automation","zoom automation","zoom","first","Tools","search","MCP","via","meeting","automate","critical","creation","webinars","composio","recordings","management","tracking",{"skillNo":119,"name":120,"nameZh":6,"description":121,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":122,"categories":123,"keywords":124,"publishedAt":32},"01M6GDRFS1452PC71JQ38S24HR","zoho-crm-automation","Automate Zoho CRM tasks via Rube MCP (Composio): create\u002Fupdate records, search contacts, manage leads, and convert leads. Always search tools first for current schemas.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzoho-crm-automation\u002FSKILL.md",[],[125,101,126,127,128,129,130,91,106,131,114,132,111,110,105,133,92,134,107,135],"crm automation","zoho crm","crm","zoho crm automation","zoho","leads","contacts","records","update","tasks","manage",{"skillNo":137,"name":138,"nameZh":6,"description":139,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":140,"categories":141,"keywords":142,"publishedAt":32},"01M6GDRCKQBAVTGHX5XBH26KPZ","zod-validation-expert","Expert in Zod — TypeScript-first schema validation. Covers parsing, custom errors, refinements, type inference, and integration with React Hook Form, Next.js, and tRPC.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzod-validation-expert\u002FSKILL.md",[],[31,143,144,145,146,93,147,148,149,150,151,152,87,153,154,155,156,91,157,158],"zod","zod validation expert","validation","react","safe","parsing","errors","schema validation","react hook form","hook","trpc","form","type","next","schema","Next.js",{"skillNo":160,"name":161,"nameZh":6,"description":162,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":163,"categories":164,"keywords":165,"publishedAt":32},"01M6GDR658B08K4MY0RWD4A6EH","zeroize-audit","Detects missing zeroization of sensitive data in source code and identifies zeroization removed by compiler optimizations, with assembly-level analysis, and control-flow verification. Use for auditing C\u002FC++\u002FRust code handling secrets, keys, passwords, or other sensitive data.","https:\u002F\u002Fgithub.com\u002FSam-06060\u002Fjarvis-assistant\u002Fblob\u002Fmain\u002Fmodules\u002Fagent_skills\u002Fawesome-skills\u002Fplaybooks\u002Fzeroize-audit\u002FSKILL.md",[],[166,167,168,169,170,171,172,173,91,174,175,176,177,178,179,180,181,182,183,107],"zeroize audit","audit","write","passwords","get","project","c++","activate","assembly","read","Bash","secrets","analysis","data","flow","verification","code","rust"]