security

Apply secure-by-default practices to input validation, authorization, and system hardening.

Updated Feb 13, 2026
One-click install
npx skills add https://github.com/PVPha/agent_skills --skill security-pvpha
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security
Source: https://github.com/PVPha/agent_skills/tree/main/skills/security
Command: npx skills add https://github.com/PVPha/agent_skills --skill security-pvpha

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) and references (resource) components.

What problem does it solve?

This Skill helps engineers design, implement, and review code with secure-by-default practices, significantly reducing exploitable risks in application and infrastructure code.

Core Features & Use Cases

  • Input Validation: Ensures all untrusted external input is validated against defined schemas.
  • Least Privilege Enforcement: Guides the implementation of minimum necessary permissions for users and services.
  • Secure Defaults: Promotes fail-secure mechanisms and avoids leaking sensitive information in errors.
  • Injection Defense: Provides patterns for preventing SQL, NoSQL, and shell injection vulnerabilities.
  • Use Case: When developing a new API endpoint that accepts user-submitted data, use this Skill to ensure all input is validated and authorization checks are correctly implemented.

Quick Start

Apply secure-by-default engineering practices for input validation, authz, secrets, dependencies, and hardening.

Frequently Asked Questions about security

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I implement secure input validation for API endpoints accepting user-submitted data?

Secure input validation ensures untrusted external input is validated against defined schemas. This prevents malicious payloads from compromising your API endpoints by enforcing strict data conformity before processing.

What is the best way to enforce least privilege authorization for users and services?

Least privilege authorization guides the implementation of minimum necessary permissions for users and services. This reduces attack surface by ensuring entities only access resources explicitly required for their operations.

How do I prevent SQL, NoSQL, and shell injection vulnerabilities in application code?

Preventing injection vulnerabilities requires implementing specific defense patterns for SQL, NoSQL, and shell commands. This Skill provides secure coding paradigms that separate code from untrusted input to block injection attacks.

How does secure failure mode handling prevent leaking sensitive information in errors?

Secure failure modes promote fail-secure mechanisms that avoid leaking sensitive information in application errors. This ensures system hardening by defaulting to a safe state during unexpected crashes or authorization failures.

Can I use secure coding practices for both application and infrastructure code hardening?

Secure coding practices address risks across both application and infrastructure code. You can apply system hardening, dependency hygiene, and secrets management to reduce exploitable vulnerabilities throughout your entire engineering stack.