security-prompts

Automate secure feature implementation using security prompt templates.

15|1|Updated Oct 20, 2025
One-click install
npx skills add https://github.com/harperaa/secure-claude-skills --skill security-prompts
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-prompts
Source: https://github.com/harperaa/secure-claude-skills/tree/main/security-prompts
Command: npx skills add https://github.com/harperaa/secure-claude-skills --skill security-prompts

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill provides a library of ready-to-use security prompt templates, guiding you to implement features with robust security controls from the start. It helps you avoid common security pitfalls and ensures your AI-generated code adheres to the Secure Vibe Coding methodology.

Core Features & Use Cases

  • Comprehensive Templates: Offers prompts for secure forms, authenticated endpoints, admin actions, file uploads, and more, covering a wide range of implementation scenarios.
  • Threat Modeling & Review: Includes templates for STRIDE analysis, code reviews, and OWASP compliance checks to proactively identify and mitigate risks.
  • Auth & Authorization: Provides specific prompts for implementing RBAC, granular permissions, and ownership verification.
  • Use Case: When building a new contact form, activate this skill to get a pre-configured prompt that includes CSRF protection, rate limiting, and XSS sanitization, ensuring your form is secure without manual effort.

Quick Start

Example: Ask Claude to build a secure contact form

User: "I need to add a secure contact form"

Claude will suggest: built-in-controls/01_contact_form.md

This template includes CSRF, rate limiting, XSS prevention, and secure error handling.

Frequently Asked Questions about security-prompts

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

FAQPage Schema
How do I implement secure coding practices with AI-generated code?

Secure coding with AI uses pre-built prompt templates that embed threat modeling, OWASP compliance, and authorization checks into code generation workflows. This Skill provides ready-to-use prompts for forms, endpoints, and admin actions, ensuring generated code includes CSRF protection, rate limiting, and XSS sanitization automatically.

What prompts should I use for RBAC and permission implementation?

Role-based access control (RBAC) prompts guide implementation of granular permissions and ownership verification. This Skill includes specific templates for authenticated endpoints, admin actions, and authorization logic that integrate with middleware and authentication systems like Clerk.

How do I perform threat modeling and OWASP compliance checks?

Threat modeling prompts apply STRIDE analysis and code review templates to identify and mitigate security risks proactively. This Skill provides prompts for OWASP compliance checks, enabling systematic security validation across contact forms, file uploads, and other implementation scenarios.

Can I use these security prompts with code generation workflows?

Yes. Security prompt templates integrate directly with code generation and AI tools, specifying activation triggers and directory structures for automatic skill activation. They guide secure feature implementation across RBAC, permissions, threat modeling, and security testing.

What common security pitfalls do these prompts help avoid?

Security prompts prevent vulnerabilities like missing CSRF protection, inadequate rate limiting, and XSS exposure by embedding controls into feature templates from the start. They follow Secure Vibe Coding methodology to ensure consistent security hardening across new implementations.