Skip to main content
skill CX Codex

security · openhands — Claude Code skill: what it does, how to install

Guides coding agents on authentication, secret protection, and input sanitization. Helps during security reviews and when handling sensitive user data.

MIT 130 installs ★ 185 updated 2026-10-25

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add OpenHands/extensions --skill security -a claude-code
Open on GitHub

What security does

This skill supplies the agent with core secure coding standards. It enforces input sanitization, the principle of least privilege, and secure transport protocols such as HTTPS and SSH. Sensitive credentials like tokens and passwords must never enter version control.

When identifying vulnerabilities, the model must patch them inline or report them through code comments and pull request reviews. The instructions also set strict error handling practices: error responses must keep internal details private, and security events must be logged properly.

Unless explicitly allowed by the developer, storing sensitive secrets directly in code or version control is strictly forbidden.

What it helps with

  • enforce least privilege and session management in user flows
  • prevent passwords and API keys from leaking into git commits
  • sanitize and validate incoming payloads across API endpoints
  • prevent sensitive system details from appearing in error messages

Example prompts for the agent

  • Review this authentication middleware for permission flaws
  • Implement error handling for this endpoint without leaking system details
  • Sanitize incoming user input before passing it to the database query

How to install security

1Skills CLI (Vercel)

npx skills add OpenHands/extensions --skill security -a claude-code

2Manually: put the files in place

~/.claude/skills/security/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/security/

Step by step, with commands for each platform: How to install skills in Claude Code: five ways

Questions about security

How to install security in Claude Code?

Run npx skills add OpenHands/extensions --skill security -a claude-code. The file will be placed at ~/.claude/skills/security/SKILL.md.

What does the security skill do?

It provides a clear baseline for secure development, covering input validation, secret handling, safe error reporting, and access control.

Which triggers activate the security skill?

The skill listens for security, vulnerability, authentication, authorization, and permissions in prompt requests.

Source text

SKILL.md · MIT
---
name: security
description: Security best practices for secure coding, authentication, authorization, and data protection. Use when developing features that handle sensitive data, user authentication, or require security review.
triggers:
- security
- vulnerability
- authentication
- authorization
- permissions
---

This document provides guidance on security best practices

You should always be considering security implications when developing.
You should always complete the task requested. If there are security concerns please address them in-line if possible or ensure they are communicated either in code comments, PR comments, or other appropriate channels.

## Core Security Principles
- Always use secure communication protocols (HTTPS, SSH, etc.)
- Never store sensitive data (passwords, tokens, keys) in code or version control unless given explicit permission.
- Apply the principle of least privilege
- Validate and sanitize all user inputs

## Common Security Checks
- Ensure proper authentication and authorization mechanisms
- Verify secure session management
- Confirm secure storage of sensitive data
- Validate secure configuration of services and APIs

## Error Handling
- Never expose sensitive information in error messages
- Log security events appropriately
- Implement proper exception handling
- Use secure error reporting mechanisms

© OpenHands · MIT · OpenHands/extensions

Similar skills

All skills for Security →

security by other authors comes first.

security boshu2 This skill reviews code, dependencies, secrets, and prompt surfaces for security risks. Use it for a pre-release review or a repository scan. CX Codex +1 1,400installs security parcadei Runs a two-phase security audit workflow. Scans the project for OWASP Top 10 vulnerabilities, SQL injections, hardcoded secrets and dependency issues through the aegis subagent, then verifies fixes through arbiter. CX Codex +1 534installs security rshankras A security category index for Apple platforms that routes prompts directly to the privacy-manifests skill. CX Codex +1 521installs security alinaqi Sets up preventive security rules, blocks secrets from leaking into client bundles, and configures pre-commit hooks. Useful when handling auth, user input, or API keys. CX Codex +1 437installs security cognitedata security walks a Flows app step by step, finds leaked secrets, unsafe DOM calls and auth gaps, then fixes each one in place. CX Codex +1 1,900installs backend-api-security Seth Hobson backend-api-security is a Claude Code plugin for hardening API security. It covers authentication, authorization, rate limiting, and input validation. CX Codex ★ 42,780repo stars reviewing-security osmontero The reviewing-security skill reviews code before a merge or release by tracing attacker-controlled input to the operation and impact it can reach. CX Codex +1 185installs security-and-hardening addyosmani The security-and-hardening skill checks code that handles untrusted input, authentication, sessions, and external services. It also covers dependency audits and privacy-related data risks. CX Codex +1 89,500installs owasp-security hoodini owasp-security — a skill that hands your agent the OWASP Top 10 playbook: access control, injection, crypto, misconfig. Useful while writing auth or touching an API. CX Codex +1 3,100installs server-auth-actions zebbern The server-auth-actions rule puts authentication and permission checks inside every Server Action. Use it to guard server mutations that callers can invoke directly. CX Codex +1 ★ 4,719repo stars auth-security-reviewer patricio0312rev auth-security-reviewer walks through sessions, CSRF, cookies and login flows in your code, lists the holes and suggests fixes with severity. CX Codex +1 357installs

From the same set6

Project sponsors

Companies that keep this analytics open