Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx skills add jiushiwon/wg-skills --skill fastapi-upload-module-skillgit clone --depth 1 https://github.com/jiushiwon/wg-skillsWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-upload-module-skill)<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-upload-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-upload-module-skill/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/skills/jiushiwon/wg-skills/fastapi-upload-module-skill"><img src="https://agentmods.dev/badge/skills/jiushiwon/wg-skills/fastapi-upload-module-skill.svg" alt="Reviewed on agentmods" width="80" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00083 | $0.01871 |
| Opus 5.5 | $0.00033 | $0.00748 |
| Sonnet 5.5 | $0.00017 | $0.00374 |
| Haiku 4.5 | $0.00008 | $0.00187 |
Grade A, and why
fastapi-upload-module-skill scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2mo ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing — 247 lines — stays where its author put it; the contents beside it link to each section on GitHub.
FastAPI Upload Module Skill
面向已有 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 # 10MB
存储服务
本地存储
import 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 False
What ships with it
2 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 2mo ago First seen · 247 lines · 83 tokens per session scan A da65cf7a8517
fastapi-upload-module-skill is a skill published in the GitHub repository jiushiwon/wg-skills (154 stars, last pushed 6d ago), licensed Apache-2.0. It adds 83 tokens to every session and 1,871 once invoked, about $0.0003 per session on Opus 5.5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-15.
fastapi-upload-module-skill compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| fastapi-upload-module-skilljiushiwon/wg-skills | Skill | 154 | 6d ago | Apache-2.0 | A | 83 | Claude Code, Codex |
| mem0-oss-to-platformmem0ai/mem0 | Skill | 70k | 3d ago | Apache-2.0 | A | 217 | Claude Code, Codex |
| tao-run-inference-serviceNVIDIA/skills | Skill | 4.2k | today | Apache-2.0 | A | 92 | Claude Code |
| azure-mgmt-botservice-dotnetmicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 78 | Claude Code |
| fastapi-router-pymicrosoft/skills | Skill | 3.3k | yesterday | MIT | A | 46 | Claude Code |
| dev-runtimelangwatch/langwatch | Skill | 5.1k | today | Apache-2.0 | A | 172 | Claude Code |
| api-designericrisco/rsc-harness | Skill | 691 | 5d ago | MIT | A | 105 | Claude Code, Codex |