بنقرة واحدة
security-scan-diff
Scan for malicious code in git diff between a tag/commit and HEAD
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
Scan for malicious code in git diff between a tag/commit and HEAD
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Approve a pull request using gh pr review --approve
Batch-triage open pull requests: list PRs with prs-awaiting-maintainer, review each with review-pr, then post-review-comments when there are merge-blocker findings, or create-scrap-issue for non-blocking findings and merge-pr when there are none. Use when the user wants to review and resolve a batch of PRs in one pass.
Clean up unnecessary local branches and prune stale remote-tracking branches
Clean git worktrees created by git-worktree-runner
Commit current changes, push to remote, and create or update a pull request. Use when the user wants to commit and create a PR, push changes and open a pull request, or ship their current work as a PR.
Analyze the differences between the current branch and origin/main, and summarize the current work progress
| name | security-scan-diff |
| description | Scan for malicious code in git diff between a tag/commit and HEAD |
target_ref = $ARGUMENTS
If target_ref is not provided, ask the user which tag or commit to compare against HEAD.
Thoroughly check for malicious code in the diff between ${target_ref} and the latest commit (HEAD).
Verify the target ref exists and get the diff scope.
git log ${target_ref}..HEAD --oneline to list commits.git diff ${target_ref}..HEAD --stat to get file change statistics.Execute the following security reviews in parallel using subagents:
Call security-reviewer subagent to review CI/CD and workflow files (.github/, scripts/) for:
${{ github.event.* }} direct expansion in run:)curl | bash, eval, base64 decode execution)pull_request_target usageCall security-reviewer subagent to review source code files (src/) for:
eval, Function constructor, suspicious child_process usage)../.. directory escape)fetch, http.request, axios to external URLs)package.json changes)Call security-reviewer subagent to review config and documentation files for:
package.jsonIntegrate the results from all subagents and produce a unified report in the following format:
## Security Review Report: ${target_ref} -> HEAD
### Conclusion
- Whether malicious code was detected or not
### Check Results Summary Table
| Check Item | Result |
|------------|--------|
| ... | ... |
### Findings (if any)
| Severity | Description | File | Risk |
|----------|-------------|------|------|
| ... | ... | ... | ... |
### Recommendations (if any)
- Actionable recommendations for each finding
### Positive Observations
- Good security practices found in the diff