Skip to main content

input-validation

Validate and constrain untrusted input at the boundary. Use on any handler that accepts external data.

来源信息

仓库
Archive228/loopkit
最近来源活动
2026年6月29日 22:25
检测到的 SKILL.md 语言
英语
星标
757
Forks
124

安装方式

默认使用会先检查来源的 Prompt;你也可以切换为直接命令,或下载本地副本。

检查来源文件

决定是否安装前,请先阅读 SKILL.md,以及 SkillsMP 当前展示的配套文件。

正在显示 SKILL.md

SKILL.md
来源说明 · 只读预览
name
input-validation
description
Validate and constrain untrusted input at the boundary. Use on any handler that accepts external data.
when_to_use
request bodies, query params, file uploads, webhook payloads, form data
# Input Validation Validate at the edge, before the data touches logic or storage. - **Schema** — type, required fields, allowed values. Reject unknown fields rather than ignoring them. - **Bounds** — string length, number ranges, array size. An unbounded input is a DoS and a memory bomb. - **Format** — emails, UUIDs, dates parsed and re-validated, not trusted as strings. - **Files** — size limit, type allowlist (check content, not just extension), no path traversal in names. - Reject with a clear 4xx and a message that says what's wrong — without leaking internals. Never trust "it comes from our own frontend". The request can come from anywhere.
在 GitHub 查看