Security Analysis
Testing & Qualitysecurity-analysisSecurity Analysis is an Agent Skill for testing & quality published in the majiayu000/claude-skill-registry repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Perform static security review of modified code, identifying vulnerabilities and recommending mitigations
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/majiayu000/claude-skill-registry/blob/HEAD/skills/data/security-analysis/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/security-analysis, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
Security Analysis
Inspect the repository for code changes and recommend changes specializing in secure software design and vulnerability mitigations. Perform a static security review.
Procedure
Phase 1 - Get the Changes
- Get all changes in this branch compared to the default branch since it diverged
- Scoped from those changes, analyze code from modified and added code (functions, configuration, etc.)
- Identify vulnerabilities or risky patterns:
- Reentrancy
- Unchecked inputs
- Unsafe deserialization
- Race conditions
- Privilege escalation
- Misuse of cryptography
- Injection vulnerabilities (SQL, command, etc.)
- Path traversal
- XSS/CSRF potential
- Detect non-compliance with internal security policies or coding standards
- Highlight dependency or permission risks introduced by new imports or external calls
- Suggest minimal, safe code-level remediations that preserve logic
Phase 2 - Return Recommendations
Return Markdown structured as follows:
# Recommendations
High-level explanation of risk and next steps
## Risk Level Critical
**functionName**
location: src/path/to/file.ts `functionName`
type: Type of issue (e.g., injection, privilege escalation)
description: Detailed explanation of the issue
recommendation: Specific mitigation with code-level detail
## Risk Level High
...
## Risk Level Medium
...
## Risk Level Low
...
Constraints
- Never invent context or external data
- Assume principle of least privilege and functional immutability
- Focus on verifiable, code-level evidence
- Prioritize actionable recommendations over theoretical concerns