security-guidance
Use when installing or tuning the PreToolUse security hook that warns before Claude writes command injection, XSS, SQL injection, unsafe deserialization, eval or GitHub Actions injection. Warns once per file and rule; ENABLE_SECURITY_REMINDER=0 turns it off.
Target: Cloud, operations & security. Automatically collected · unverified.
Excerpt from the author’s documentation
Extracted from a fixed version of SKILL.md in its original language. This is the author’s documentation; installation, compatibility and runtime results have not been verified by this site.
Read the original English text
Topics in the source
- Security Guidance Hook
- What It Catches
- How It Works
- Installation
- Configuration
- Per-File Override Pattern
- Why The Patterns Are Substring-Based (Not AST-Based)
- State Files
A PreToolUse hook that blocks 12 common security anti-patterns before Claude Code writes them. This skill is a hook, not a slash command. Once installed, it runs automatically before every Edit, Write, or MultiEdit operation and warns + blocks if it detects a known dangerous pattern. The hook scans both: The file path being edited — flags GitHub Actions workflow files with risky ${{ }} patterns The content being written — substring matches against 11 anti-patterns | Pattern | Category | Risk | |---|---|---| | GitHub Actions workflow expressions | Path-based | Workflow command injection via untrusted inputs | | childprocess.exec, exec(, execSync( | Substring | Node.js command injection | | new Function | Substring | JS code injection | | eval( | Substring | JS code injection | | dangerouslySetInnerHTML | Substring | React XSS | | document.write | Substring | DOM XSS | | .innerHTML = | Substring | DOM XSS | | pickle | Substring | Python deserialization RCE | | os.system, from os import system | Substring | Python command injection | | shell=True (subprocess) | Substring | Python command injection | | f-string SQL or .format SQL | Substring | SQL injection | | yaml.load(, yaml.unsafel
This is an excerpt. Refer to the complete source and its current requirements.
- Source repository
- alirezarezvani/claude-skills
- Source file
- engineering/security-guidance/skills/security-guidance/SKILL.md
- Fixed revision
- 8f082544116fc0d014188e521ca40304cdfc86b0
Requirements
- Only the author’s Skill metadata is included. Read the full instructions to check dependencies, licensing and conditions of use.
A small first task
先阅读原作者说明,再决定是否在自己的 AI 工具中使用。
Instructions for your AI tool
- Claude Desktop: resource-specific guide not available yet
- Claude Code: resource-specific guide not available yet
- Cursor: resource-specific guide not available yet
- Codex: resource-specific guide not available yet
Author documentation is not live verification by this site. Without evidence, we do not mark a resource as compatible, safe or free.
Sources and evidence
This record was collected automatically. Its documentation, suitability and runtime behavior have not been manually verified.
Author: alirezarezvani/claude-skills · original repository metadata. Documentation review: Not reviewed. Last source check: 2026-11-09T14:01:46.714Z.
Categories are inferred from names, descriptions and paths. They do not establish compatibility.
License and attribution
MIT. Third-party content and copyright remain with their authors. Refer to the original license and terms.
Original license ↗Synchronization, copying and user-reported success do not mark a resource as runtime-tested.
Limitations and notes
- Collecting metadata does not mean this site has installed, adapted, runtime-tested or security-reviewed the resource.