Fastcrud
benavlabs/fastcrud
A skill your agent uses when building or modifying CRUD endpoints with FastCRUD (the fastcrud PyPI package) in a FastAPI project — covers FastCRUD, crudrouter, EndpointCreator, FilterConfig…
FastAPI 文件上传模块技能。面向已有 FastAPI 项目,提供文件上传、本地存储、OSS 存储、图片处理、附件管理等能力的快速集成。触发词:"文件上传模块"、"上传模块"、"OSS 集成"、"附件管理"、"upload module"、"文件存储"。
$ npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install jiushiwon/wg-skills fastapi-upload-module-skill --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/jiushiwon/wg-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill .claude/skills/fastapi-upload-module-skill && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "fastapi-upload-module-skill" agent skill from https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill into .claude/skills/fastapi-upload-module-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastapi-upload-module-skill", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skillType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install jiushiwon/wg-skills fastapi-upload-module-skill --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jiushiwon/wg-skills.git skills-src && mkdir -p .agents/skills && cp -r skills-src/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill .agents/skills/fastapi-upload-module-skill && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "fastapi-upload-module-skill" agent skill from https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill into .agents/skills/fastapi-upload-module-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastapi-upload-module-skill", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install jiushiwon/wg-skills fastapi-upload-module-skill --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jiushiwon/wg-skills.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill .cursor/skills/fastapi-upload-module-skill && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "fastapi-upload-module-skill" agent skill from https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill into .cursor/skills/fastapi-upload-module-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastapi-upload-module-skill", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/jiushiwon/wg-skills.git --path vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install jiushiwon/wg-skills fastapi-upload-module-skill --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jiushiwon/wg-skills.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill .gemini/skills/fastapi-upload-module-skill && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "fastapi-upload-module-skill" agent skill from https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill into .gemini/skills/fastapi-upload-module-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastapi-upload-module-skill", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install jiushiwon/wg-skills fastapi-upload-module-skillInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/jiushiwon/wg-skills.git skills-src && mkdir -p .github/skills && cp -r skills-src/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill .github/skills/fastapi-upload-module-skill && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "fastapi-upload-module-skill" agent skill from https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill into .github/skills/fastapi-upload-module-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastapi-upload-module-skill", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install jiushiwon/wg-skills fastapi-upload-module-skill --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/jiushiwon/wg-skills.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill .opencode/skills/fastapi-upload-module-skill && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "fastapi-upload-module-skill" agent skill from https://github.com/jiushiwon/wg-skills/tree/main/vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill into .opencode/skills/fastapi-upload-module-skill/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "fastapi-upload-module-skill", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
fastapi-upload-module-skillFastAPI 文件上传模块技能。面向已有 FastAPI 项目,提供文件上传、本地存储、OSS 存储、图片处理、附件管理等能力的快速集成。触发词:"文件上传模块"、"上传模块"、"OSS 集成"、"附件管理"、"upload module"、"文件存储"。
Fastapi Upload Module Skill is an agent skill from jiushiwon/wg-skills. FastAPI 文件上传模块技能。面向已有 FastAPI 项目,提供文件上传、本地存储、OSS 存储、图片处理、附件管理等能力的快速集成。触发词:"文件上传模块"、"上传模块"、"OSS 集成"、"附件管理"、"upload module"、"文件存储"。
Its SKILL.md is about 1.7k tokens, which your agent loads only when the skill is triggered. The skill folder holds 2 other files (for example `README.md` and `api-contract-upload.md`).
It sits in Backend & APIs, covering Backend development. It works with FastAPI. The licence is Apache-2.0.
Read from SKILL.md and the folder at commit a4a640b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are python).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Fastapi Upload Module Skill loads about 1.7k tokens when it runs. Until then it costs about 39 tokens; SKILL.md has 55 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from jiushiwon/wg-skills at commit a4a640b, republished under its Apache-2.0 licence (© jiushiwon). 55 words, ~1,651 tokens.
.claude/skills/fastapi-upload-module-skill/SKILL.md (or your agent's skills folder). This skill also uses 2 other files; get the full folder from GitHub.面向已有 FastAPI 项目的开发者,快速集成文件上传和存储能力。
| 能力 | 说明 |
|---|---|
| 文件上传 | 单文件、多文件、分片上传 |
| 本地存储 | 本地磁盘存储 |
| OSS 存储 | 阿里云 OSS、腾讯云 COS |
| 图片处理 | 缩略图、水印、格式转换 |
| 附件管理 | 附件 CRUD、分类 |
用户说"帮我加文件上传"或"集成 OSS"时触发。
from pydantic_settings import BaseSettings
from typing import Literal
class UploadSettings(BaseSettings):
# 存储方式: local / aliyun / tencent
storage_type: Literal["local", "aliyun", "tencent"] = "local"
# 本地存储配置
local_upload_path: str = "./uploads"
local_domain: str = "http://localhost:8000"
# 阿里云 OSS 配置
aliyun_access_key: str = ""
aliyun_secret_key: str = ""
aliyun_bucket: str = ""
aliyun_endpoint: str = "oss-cn-hangzhou.aliyuncs.com"
# 腾讯云 COS 配置
tencent_secret_id: str = ""
tencent_secret_key: str = ""
tencent_bucket: str = ""
tencent_region: str = "ap-guangzhou"
# 允许的文件类型
allowed_types: list[str] = ["jpg", "jpeg", "png", "gif", "pdf", "doc", "docx", "xls", "xlsx", "zip"]
max_file_size: int = 10 * 1024 * 1024 # 10MBimport os
import uuid
from pathlib import Path
class LocalStorage:
def __init__(self, settings: UploadSettings):
self.base_path = Path(settings.local_upload_path)
self.base_path.mkdir(parents=True, exist_ok=True)
async def upload(self, file: UploadFile) -> str:
# 生成唯一文件名
ext = file.filename.split(".")[-1]
filename = f"{uuid.uuid4()}.{ext}"
# 按日期分目录
date_path = datetime.now().strftime("%Y/%m/%d")
save_dir = self.base_path / date_path
save_dir.mkdir(parents=True, exist_ok=True)
# 保存文件
file_path = save_dir / filename
content = await file.read()
file_path.write_bytes(content)
# 返回访问 URL
return f"{settings.local_domain}/uploads/{date_path}/{filename}"
async def delete(self, url: str) -> bool:
# 从 URL 提取路径并删除
path = url.replace(settings.local_domain, "")
file_path = self.base_path / path.lstrip("/")
if file_path.exists():
file_path.unlink()
return True
return Falseimport oss2
class AliyunStorage:
def __init__(self, settings: UploadSettings):
auth = oss2.Auth(settings.aliyun_access_key, settings.aliyun_secret_key)
self.bucket = oss2.Bucket(auth, settings.aliyun_endpoint, settings.aliyun_bucket)
async def upload(self, file: UploadFile) -> str:
ext = file.filename.split(".")[-1]
filename = f"{uuid.uuid4()}.{ext}"
date_path = datetime.now().strftime("%Y/%m/%d")
key = f"uploads/{date_path}/{filename}"
content = await file.read()
self.bucket.put_object(key, content)
return f"https://{self.bucket.bucket_name}.{self.aliyun_endpoint}/{key}"
async def delete(self, url: str) -> bool:
key = url.split(f"https://{self.bucket.bucket_name}.")[-1]
self.bucket.delete_object(key)
return Truefrom fastapi import UploadFile, File, Form
from dataclasses import dataclass
@dataclass
class UploadResult:
url: str
filename: str
size: int
content_type: str
@router.post("/upload/single")
async def upload_single(file: UploadFile = File(...)):
"""单文件上传"""
# 验证文件类型
ext = file.filename.split(".")[-1].lower()
if ext not in settings.allowed_types:
raise BusinessException(ErrorCode.FILE_TYPE_NOT_ALLOWED)
# 验证文件大小
content = await file.read()
if len(content) > settings.max_file_size:
raise BusinessException(ErrorCode.FILE_TOO_LARGE)
# 上传
url = await storage.upload(file)
return Success(data=UploadResult(
url=url,
filename=file.filename,
size=len(content),
content_type=file.content_type
))
@router.post("/upload/multiple")
async def upload_multiple(files: list[UploadFile] = File(...)):
"""多文件上传"""
results = []
for file in files:
url = await storage.upload(file)
results.append(UploadResult(
url=url,
filename=file.filename,
size=0,
content_type=file.content_type
))
return Success(data=results)from PIL import Image
import io
class ImageProcessor:
@staticmethod
async def thumbnail(image_bytes: bytes, size: tuple[int, int] = (200, 200)) -> bytes:
"""生成缩略图"""
img = Image.open(io.BytesIO(image_bytes))
img.thumbnail(size, Image.LANCZOS)
output = io.BytesIO()
img.save(output, format=img.format or 'JPEG')
return output.getvalue()
@staticmethod
async def watermark(image_bytes: bytes, text: str) -> bytes:
"""添加水印"""
img = Image.open(io.BytesIO(image_bytes))
draw = ImageDraw.Draw(img)
# 添加文字水印
draw.text((10, 10), text, fill=(255, 255, 255, 128))
output = io.BytesIO()
img.save(output, format=img.format or 'JPEG')
return output.getvalue()
@staticmethod
async def compress(image_bytes: bytes, quality: int = 85) -> bytes:
"""压缩图片"""
img = Image.open(io.BytesIO(image_bytes))
output = io.BytesIO()
img.save(output, format='JPEG', quality=quality, optimize=True)
return output.getvalue()class Attachment(Base):
__tablename__ = "wg_attachment"
id = Column(BigInteger, primary_key=True, autoincrement=True)
filename = Column(String(255), nullable=False) # 原文件名
file_path = Column(String(500), nullable=False) # 存储路径
file_url = Column(String(500), nullable=False) # 访问 URL
file_size = Column(BigInteger) # 文件大小
content_type = Column(String(100)) # MIME 类型
file_ext = Column(String(20)) # 扩展名
category = Column(String(50)) # 分类:avatar/article/attachment
uploader_id = Column(BigInteger) # 上传人
created_at = Column(DateTime, server_default=func.now())
deleted_at = Column(DateTime)| 方法 | 路径 | 说明 |
|---|---|---|
| GET | /api/attachment/list | 附件列表 |
| GET | /api/attachment/{id} | 附件详情 |
| DELETE | /api/attachment/{id} | 删除附件 |
© jiushiwon, Apache-2.0. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
SKILL.md and 2 other files in vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill of jiushiwon/wg-skills.
Open the folder on GitHubat commit a4a640b
Fastapi Upload Module Skill next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Fastapi Upload Module Skill this skilljiushiwon/wg-skills | 110 | — | ~1.7k | Automated safety check: Pass | Apache-2.0 | |
| Fastcrudbenavlabs/fastcrud | 1.6k | — | ~5k | Automated safety check: Pass | MIT | |
| FastapiOpen-TutorAi/open-tutor-ai-CE | 108 | 2 repos | ~2.6k | Automated safety check: Pass | BSD-3-Clause | |
| API Surface Reviewpolarsource/polar | 10k | — | ~1.3k | Automated safety check: Pass | MIT | |
| FastAPI-Redis SDK Developmentredis/fastapi-redis-sdk | 404 | — | ~2.5k | Automated safety check: Notes | MIT | |
| Phoenix ServerArize-ai/phoenix | 12k | — | ~1.6k | Automated safety check: Pass | Custom licence |
benavlabs/fastcrud
A skill your agent uses when building or modifying CRUD endpoints with FastCRUD (the fastcrud PyPI package) in a FastAPI project — covers FastCRUD, crudrouter, EndpointCreator, FilterConfig…
Open-TutorAi/open-tutor-ai-CE
FastAPI best practices and conventions. An agent skill from Open-TutorAi/open-tutor-ai-CE.
polarsource/polar
Review changes to Polar's API contract — Pydantic schemas, FastAPI endpoints, OpenAPI output and the generated SDKs.
redis/fastapi-redis-sdk
Guides development on the fastapi-redis-sdk library itself - its connection lifecycle, dependency-injected caching, and async/sync bridging.
Arize-ai/phoenix
Backend development guide for the Phoenix AI observability platform (Strawberry GraphQL, SQLAlchemy async, FastAPI).
nazarli-shabnam/clevis
Andrej Karpathy的思维框架与表达方式。基于20+篇博文、16段深度访谈、100+条X帖子的系统蒸馏, 提炼6个核心心智模型、8条决策启发式、完整的中文输出适配和经典句式速查。
jiushiwon/wg-skills
A skill your agent uses when generating UI for a specific scenario (mobile/PC/官网/管理端/营销页/文档/金融/原生/3D), when refactoring an existing HTML/Vue/React project to a unified design system, when extracting…
jiushiwon/wg-skills
A skill your agent uses when 用户想用一句话生成流程图、工作流图解、开发流程图、AI 流程图或任何步骤型图解,支持多风格输出(flat icon / 暖白手账风 / dark / cute),并提供现成模板一键出图。
jiushiwon/wg-skills
This skill should be used when the user wants to create a standardized uni-app project for WeChat mini-program, H5, and App from scratch.
jiushiwon/wg-skills
FastAPI 项目一键初始化技能。面向零基础小白,提供环境探测、自动安装、完整 Web 骨架生成、SSE 流式框架、JWT 鉴权、统一响应封装、文件上传接口、一键启动/重启脚本、Swagger 文档,内置 MySQL(默认)/ PostgreSQL / MongoDB 数据库选择。用户只需说"帮我搭一个 FastAPI 项目"即可一条命令完成从零到跑的完整链路。触发词:"FastAPI…
jiushiwon/wg-skills
FFmpeg 多媒体处理技能 — 将自然语言描述转为正确的 ffmpeg 命令,覆盖视频剪辑、转码、水印、合成、提取、生成等操作。内置一键安装脚本(Windows/Mac/Linux)。触发词:ffmpeg、视频剪辑、视频裁剪、视频转码、视频压缩、去水印、加水印、视频拼接、视频合成、提取音频、视频转…
jiushiwon/wg-skills
A skill your agent uses when designing or reviewing the request layer of a frontend project (web / uni-app / mini-program), including request.ts wrappers, interceptors, deduplication, mocks, error…
Works with
Categories
FastAPI 文件上传模块技能。面向已有 FastAPI 项目,提供文件上传、本地存储、OSS 存储、图片处理、附件管理等能力的快速集成。触发词:"文件上传模块"、"上传模块"、"OSS 集成"、"附件管理"、"upload module"、"文件存储"。. Fastapi Upload Module Skill is an agent skill from jiushiwon/wg-skills.
Fastapi Upload Module Skill fits situations like: tasks that involve Backend development.
Run `npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a claude-code`. Or copy the skill folder (vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill in jiushiwon/wg-skills) into .claude/skills/fastapi-upload-module-skill in your project. Claude Code loads it when a task matches its description.
Run `npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a codex`. Or copy the skill folder (vibeCoding/backend/python/fastapi-module/fastapi-upload-module-skill in jiushiwon/wg-skills) into .agents/skills/fastapi-upload-module-skill in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skill -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/fastapi-upload-module-skill, .gemini/skills/fastapi-upload-module-skill, .github/skills/fastapi-upload-module-skill and .opencode/skills/fastapi-upload-module-skill in your project.
SKILL.md names no scripts, command-line tools or credentials: Fastapi Upload Module Skill is instructions for the agent only. Our summary lists: Python 3.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Fastapi Upload Module Skill is published under the Apache-2.0 licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 1.7k tokens (SKILL.md is roughly 6.6k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Fastapi Upload Module Skill: Fastcrud (benavlabs/fastcrud, 1.6k stars), Fastapi (Open-TutorAi/open-tutor-ai-CE, 108 stars), API Surface Review (polarsource/polar, 10k stars) and FastAPI-Redis SDK Development (redis/fastapi-redis-sdk, 404 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
jiushiwon (a GitHub user) maintains it in jiushiwon/wg-skills, which has 110 GitHub stars. The repository holds 121 skills in this directory. The repository was last updated on October 4, 2026.
Source: jiushiwon/wg-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.