security-guidance
Skill2 starsChanged 7 months agoMITView on GitHub
Security pattern awareness for code edits. Use when writing or reviewing code that touches security-sensitive patterns — shell commands, eval, innerHTML, GitHub Actions workflows, deserialization, or user-controlled input. Automatically checks for common vulnerability patterns and suggests safer alternatives.
3 other projects use a version of this.
Adopted by
Most recently taken up by
- Hassaan146/claude-skillstheir own version, first seen Jul 25, 2026
- mahiunfiltered/claude-code-skillstheir own version, first seen Jul 8, 2026
- Hussain-Elfalah/Agentic-Skillstheir own version, first seen Jun 4, 2026
Other versions3 projects use a version of this.
Word for word · 0
None found.
Edited · 0
None found.
Wrote their own version · 3
- Hassaan146/claude-skills★ 18same name
- Hussain-Elfalah/Agentic-Skills★ 2same name
- mahiunfiltered/claude-code-skills★ 1same name
How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.
In this repository26 other files it gives its agents.
- api-and-interface-designSkill
- brainstormingSkill
- ci-cd-and-automationSkill
- code-reviewSkill
- code-simplificationSkill
- context-engineeringSkill
- deprecation-and-migrationSkill
- dispatching-parallel-agentsSkill
- executing-plansSkill
- finishing-a-development-branchSkill
- grill-meSkill
- mentorSkill
- performance-optimizationSkill
- receiving-code-reviewSkill
- requesting-code-reviewSkill
- session-synthesisSkill
- shipping-and-launchSkill
- source-driven-developmentSkill
- subagent-driven-developmentSkill
- systematic-debuggingSkill
- test-driven-developmentSkill
- using-git-worktreesSkill
- verification-before-completionSkill
- verification-phaseSkill
- writing-plansSkill
- writing-skillsSkill
The file
Show its rules and text
We split this skill into the rules it gives an agent
18 rules. 0 are common, 10 are distinctive, and 8 are very specific to this project.
0
Common
Most of the 3 edited versions we read keep these.
10
Distinctive
This author's own choices. Worth a look.
8
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Distinctive: line 6
When writing or reviewing code, check for these security patterns and apply the corresponding guidance.
- Very specific: line 12
When editing .github/workflows/*.yml or *.yaml:
- Very specific: line 14
Command injection: Never use untrusted input directly in run: commands
- Distinctive: line 15
Use environment variables instead of inline expressions:
- Very specific: line 29
When code uses child_process.exec, exec(), execSync(), os.system, or subprocess.call(shell=True):
- Very specific: line 31
Prefer execFile / subprocess.run([...]) with argument arrays over shell string interpolation
- Distinctive: line 32
Never interpolate user input into shell strings
- Distinctive: line 33
If shell features are truly needed, validate and escape all inputs
- Very specific: line 37
When code uses eval(), new Function(), or equivalent:
- Distinctive: line 41
Only use these if you truly need dynamic code evaluation and input is guaranteed safe
- Very specific: line 45
When code uses dangerouslySetInnerHTML, .innerHTML =, or document.write():
- Very specific: line 53
When code uses pickle, yaml.load() (without SafeLoader), or Marshal.load:
- Very specific: line 56
Use yaml.safe_load() instead of yaml.load()
- Distinctive: line 57
Only use unsafe deserialization when the source is fully trusted
- Distinctive: line 61
When you encounter any of these patterns while writing or editing code, pause and note the security concern inline
- Distinctive: line 63
If the unsafe pattern is genuinely needed, add a comment explaining why it's safe in this context
- Distinctive: line 64
Do not block work — flag, suggest, and move on
- Distinctive: line 68
When you hear (or think) any of these, push back:
“Common” is measured: kept by at least 6 in 10 of the 3 edited versions of this file we could read. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
When writing or reviewing code, check for these security patterns and apply the corresponding guidance. Flag issues inline as you encounter them — do not wait until the end.
Security Patterns
GitHub Actions Workflows
When editing .github/workflows/*.yml or *.yaml:
- Command injection: Never use untrusted input directly in
run:commands - Use environment variables instead of inline expressions:
# UNSAFE run: echo "${{ github.event.issue.title }}" # SAFE env: TITLE: ${{ github.event.issue.title }} run: echo "$TITLE" - Risky inputs:
github.event.issue.body,github.event.pull_request.title,github.event.pull_request.body,github.event.comment.body,github.event.review.body,github.event.commits.*.message,github.event.head_commit.message,github.head_ref
Shell Command Injection
When code uses child_process.exec, exec(), execSync(), os.system, or subprocess.call(shell=True):
- Prefer
execFile/subprocess.run([...])with argument arrays over shell string interpolation - Never interpolate user input into shell strings
- If shell features are truly needed, validate and escape all inputs
Code Evaluation
When code uses eval(), new Function(), or equivalent:
eval()executes arbitrary code — useJSON.parse()for data parsingnew Function()with dynamic strings enables code injection- Only use these if you truly need dynamic code evaluation and input is guaranteed safe
XSS Vectors
When code uses dangerouslySetInnerHTML, .innerHTML =, or document.write():
dangerouslySetInnerHTML: sanitize with DOMPurify or equivalent before rendering.innerHTML: usetextContentfor plain text, or sanitize HTML contentdocument.write(): usecreateElement()/appendChild()instead
Deserialization
When code uses pickle, yaml.load() (without SafeLoader), or Marshal.load:
picklewith untrusted data enables arbitrary code execution — use JSON or safe serialization- Use
yaml.safe_load()instead ofyaml.load() - Only use unsafe deserialization when the source is fully trusted
Behaviour
- When you encounter any of these patterns while writing or editing code, pause and note the security concern inline
- Suggest the safer alternative
- If the unsafe pattern is genuinely needed, add a comment explaining why it's safe in this context
- Do not block work — flag, suggest, and move on
Anti-Rationalization Table
When you hear (or think) any of these, push back:
| Rationalization | Reality |
| "It's an internal tool" | Internal tools get compromised. Attackers move laterally. |
| "We'll add security later" | Security debt compounds. Retrofitting auth is 10x harder than building it in. |
| "The input is trusted" | All input is untrusted until validated. Trust boundaries shift. |
| "It's behind a VPN" | VPNs get breached. Defense in depth means every layer validates. |
| "Nobody would exploit this" | Automated scanners don't care about your threat model. Secure by default. |
| "The framework handles it" | Frameworks provide tools, not guarantees. Verify the framework's security is configured correctly. |
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

