Habilidades global-validation
📦

global-validation

Seguro

Implement Secure Input Validation Standards

Também disponível em: EIS-ITS

Poor input validation leads to security vulnerabilities like SQL injection and XSS attacks. This skill guides Claude Code to implement server-side validation with allowlists, type checking, and proper sanitization.

Suporta: Claude Codex Code(CC)
📊 70 Adequado
1

Baixar o ZIP da skill

2

Upload no Claude

Vá em Configurações → Capacidades → Skills → Upload skill

3

Ative e comece a usar

Testar

A utilizar "global-validation". Create validation for a user profile update endpoint with email and phone number

Resultado esperado:

I will implement server-side validation for the profile update endpoint using your validation library. The schema will include email format validation using RFC 5322 standard, phone number format validation with international support, allowlist-based field validation to prevent unexpected fields, and specific error messages for each validation failure. I will also add type checking to ensure email is string and properly sanitized against XSS.

A utilizar "global-validation". Add validation for a search query parameter

Resultado esperado:

I will add allowlist-based validation for the search query parameter. The validation will check maximum length of 200 characters, sanitize against SQL injection using parameterized queries, trim whitespace, validate allowed characters using regex pattern, and return a specific error message if validation fails. This prevents injection attacks while allowing legitimate search queries.

Auditoria de Segurança

Seguro
v6 • 1/21/2026

This skill contains only documentation and guidance for implementing validation patterns. All 19 static findings are false positives triggered by documentation text containing keywords like validation, input, and command. No executable code, network operations, or file system access present. Safe for publication.

2
Arquivos analisados
325
Linhas analisadas
0
achados
6
Total de auditorias
Nenhum problema de segurança encontrado
Auditado por: claude Ver Histórico de Auditoria →

Pontuação de qualidade

38
Arquitetura
100
Manutenibilidade
87
Conteúdo
22
Comunidade
100
Segurança
91
Conformidade com especificações

O Que Você Pode Construir

API Input Validation

Backend engineers implementing REST or GraphQL APIs need to validate user input to prevent injection attacks and ensure data integrity. This skill guides proper validation schema implementation.

Form Request Validation

Full-stack developers creating web forms need to implement both client-side and server-side validation. This skill ensures server-side validation is never skipped and follows security best practices.

Business Rule Enforcement

Application developers implementing domain logic need to validate business rules like sufficient account balance or valid date ranges. This skill guides consistent validation across all entry points.

Tente Estes Prompts

Basic Form Validation
Create a validation schema for a user registration form with email, password, and username fields
API Endpoint Validation
Implement server-side validation for a POST endpoint that creates orders with product ID, quantity, and shipping address
File Upload Validation
Add validation for a file upload endpoint that only accepts PDF and PNG files under 5MB with proper sanitization
Complex Business Rules
Implement validation for a payment transaction that checks account balance, validates amount format, ensures positive value, and confirms payee exists

Melhores Práticas

  • Always implement server-side validation even when client-side validation exists, as client-side validation can be bypassed
  • Use allowlist validation that defines what is allowed rather than blocklists that try to block malicious patterns
  • Provide specific and actionable error messages that help users correct their input without revealing system internals

Evitar

  • Relying only on client-side validation without server-side verification, which allows attackers to bypass validation entirely
  • Using blocklists to filter malicious input instead of allowlists, which can be circumvented with encoding or edge cases
  • Implementing validation inconsistently across different entry points like web forms, APIs, and background jobs

Perguntas Frequentes

Does this skill automatically detect validation vulnerabilities in my code?
No, this skill provides guidance to Claude Code for implementing proper validation patterns. It does not scan existing code for vulnerabilities.
What validation libraries does this skill support?
This skill provides guidance for established validation libraries including Zod, Yup, Pydantic, Joi, and similar schema-based validation tools across different languages.
Does this skill replace security auditing tools?
No, this skill focuses on validation implementation guidance. You should still use security auditing tools and penetration testing for comprehensive security assessment.
Can this skill help with both client and server validation?
Yes, but the skill emphasizes that server-side validation is mandatory and client-side validation is only for user experience. Never trust client-side validation alone.
How does this skill prevent SQL injection?
The skill guides implementation of input sanitization, parameterized queries, and allowlist-based validation that prevents malicious SQL from being constructed from user input.
Does this skill work with file upload validation?
Yes, the skill includes guidance for validating file uploads including size limits, allowed file types, and content validation to prevent malicious file uploads.

Detalhes do Desenvolvedor

Estrutura de arquivos

📄 SKILL.md