richgo/auto-reviewer/api-design-input-validation

Claude Code and agent skill by richgo/auto-reviewer

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Missing Input Validation. Use this skill whenever diffs may introduce api-design issues on web, api, mobile, especially in all. Actively look for: API endpoints or functions that accept user input without validating type, format, range, or required fields — leading... and report findings with high severity expectations and actionable fixes.

Install

npx vskill@latest install richgo/auto-reviewer/api-design-input-validation

SKILL.md

The same SKILL.md was published earlier as richgo/auto-reviewer/api-design-input-validation.

Missing Input Validation

Task Metadata

  • Category: api-design
  • Severity: high
  • Platforms: web, api, mobile
  • Languages: all

Purpose

API endpoints or functions that accept user input without validating type, format, range, or required fields — leading to crashes, data corruption, or security vulnerabilities.

Detection Heuristics

  • Request body fields used directly without schema validation
  • Missing type checks on dynamic inputs
  • No range/length validation on numeric/string fields
  • Enum values not validated against allowed set
  • File uploads without type/size validation

Eval Cases

Case 1: No validation on API input
javascript
app.post('/api/orders', async (req, res) => {
const order = await Order.create({
userId: req.body.userId,
quantity: req.body.quantity, // could be negative, string, or missing
productId: req.body.productId,
});
res.json(order);
});

Expected finding: High — No input validation. quantity could be negative, zero, non-numeric, or missing. Validate with schema (Zod, Joi) before processing.

Case 2: Unvalidated file upload
python
@app.route('/upload', methods=['POST'])
def upload():
file = request.files['document']
file.save(f'/uploads/{file.filename}')
return jsonify({"status": "uploaded"})

Expected finding: High — No file validation. Missing checks for file type, size limit, and filename sanitization. Also path traversal risk via file.filename.

Counter-Examples

Counter 1: Schema-validated input
javascript
const schema = z.object({
userId: z.string().uuid(),
quantity: z.number().int().positive().max(1000),
productId: z.string().uuid(),
});
app.post('/api/orders', async (req, res) => {
const data = schema.parse(req.body);
const order = await Order.create(data);
res.json(order);
});

Why it's correct: Zod schema validates types, ranges, and formats before processing.

Binary Eval Assertions

  • [ ] Detects missing validation in eval case 1
  • [ ] Detects unvalidated upload in eval case 2
  • [ ] Does NOT flag counter-example 1
  • [ ] Finding suggests schema validation approach
  • [ ] Severity assigned as high

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/richgo/auto-reviewer/api-design-input-validation/badge)](https://verified-skill.com/skills/richgo/auto-reviewer/api-design-input-validation)

Something wrong with this skill or its page? Tell us.