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
npx skills add OpenHands/extensions --skill security -a claude-codeWhat 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-code2Manually: put the files in place
~/.claude/skills/security/SKILL.mdCopy the whole skill folder; for one project use .claude/skills/security/
1Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill security -a codex2Manually: put the files in place
.agents/skills/security/SKILL.mdFor all projects use ~/.agents/skills/
1Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill security -a cursor2Manually: put the files in place
.cursor/skills/security/SKILL.mdCursor also reads .agents/skills/ and .claude/skills/
1GitHub CLI
gh skill install OpenHands/extensions skills/security2Manually: put the files in place
.github/skills/security/SKILL.md1Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill security -a gemini-cli2Platform CLI
gemini skills install https://github.com/OpenHands/extensions --path skills/securityManually: put the files in place
.devin/skills/security/SKILL.mdThe legacy .windsurf/skills/ path still works
Skills CLI (Vercel)
npx skills add OpenHands/extensions --skill security -a opencodeClaude.ai
Zip the folder and upload it in Settings → Capabilities → Skills
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.