security-scan-diff

Automate security reviews of git diffs against HEAD for malicious changes.

1.3k|142|Updated Jun 18, 2025
One-click install
npx skills add https://github.com/dyoshikawa/rulesync --skill security-scan-diff
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: security-scan-diff
Source: https://github.com/dyoshikawa/rulesync/tree/main/.rulesync/skills/security-scan-diff
Command: npx skills add https://github.com/dyoshikawa/rulesync --skill security-scan-diff

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Quickly surface security issues in diffs between a target reference and HEAD, focusing on potential malicious changes in code, configuration, and docs.

Core Features & Use Cases

  • Parallel security checks across CI/CD workflows, source code, and documentation
  • Unified reporting of risks such as secret exposure, code injection, and dependency tampering
  • Use Case: Before a release, generate a comprehensive security assessment for all changes since the last tag

Quick Start

Run Rulesync to compare a tag or commit against HEAD and generate a security report.

Frequently Asked Questions about security-scan-diff

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I scan a git diff for malicious code changes before a release?

To scan a git diff for malicious code changes, compare a target tag or commit against HEAD to analyze CI files, source code, and docs. This generates a structured security report highlighting secret exposure, code injection, and dependency tampering risks.

What security risks can be detected in CI/CD workflow and configuration file diffs?

Security risks detected in CI/CD workflow and configuration diffs include secret exposure, code injection vulnerabilities, and dependency tampering. Parallel subagents analyze these file changes between your target reference and HEAD to surface potential malicious modifications.

How does automated security review handle dependency tampering in source code diffs?

Automated security review handles dependency tampering by running parallel subagent checks across source code diffs. It identifies unauthorized dependency modifications between a commit and HEAD, returning a unified report of tampering risks.

Can I generate a comprehensive security assessment for all changes since the last git tag?

You can generate a comprehensive security assessment for all changes since the last git tag by comparing the tag against HEAD. The review processes CI/CD workflows, code, and documentation to produce a structured security report.

Does the security review work with documentation changes in a git diff?

The security review works with documentation changes by analyzing docs alongside CI files and source code. It checks diffs between a target reference and HEAD to detect malicious changes within documentation files.

What is the best way to automate malicious code detection in code review diffs?

The best way to automate malicious code detection in code review diffs is running parallel subagent checks across CI, source, and docs. This analyzes diffs between a commit and HEAD, returning a structured report of injection and exposure risks.