commit-security-scan

Analyze code diffs for STRIDE-based vulnerabilities using threat-model patterns.

Updated Feb 6, 2026
One-click install
npx skills add https://github.com/lucking7/factory-plugins --skill commit-security-scan-lucking7
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: commit-security-scan
Source: https://github.com/lucking7/factory-plugins/tree/main/plugins/security-engineer/skills/commit-security-scan
Command: npx skills add https://github.com/lucking7/factory-plugins --skill commit-security-scan-lucking7

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill analyzes code changes to identify security vulnerabilities using LLM reasoning and threat model patterns. Use for PR reviews, pre-commit checks, or branch comparisons.

Core Features & Use Cases

  • Threat-model-driven analysis of diffs in PRs, commits, and branch comparisons
  • Surface STRIDE-based vulnerabilities with actionable findings
  • Auto-generate prerequisites (.factory/threat-model.md and .factory/security-config.json) if missing

Quick Start

Run a PR diff security analysis: Scan PR #123 for security vulnerabilities

Frequently Asked Questions about commit-security-scan

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

FAQPage Schema
How do I scan code changes for security vulnerabilities in a pull request?

You can scan code changes for security vulnerabilities by applying threat-model patterns to analyze PR diffs. This process surfaces STRIDE-based findings with actionable remediation steps directly within your code review workflow.

What is STRIDE-based threat modeling for code diffs?

STRIDE-based threat modeling for code diffs is an AI-powered analysis method that identifies security vulnerabilities in code changes. It applies structured threat categories to surface potential risks during pre-commit checks or branch comparisons.

Do I need a threat model file to run a security scan on my repository?

Yes, security scanning requires a threat model at .factory/threat-model.md and a security config at .factory/security-config.json to load context and severity thresholds. The skill can auto-generate these prerequisite files if they are missing.

Can I use AI security scanning for pre-commit checks and branch comparisons?

Yes, AI security scanning applies to pre-commit checks, PR reviews, and branch comparisons across any repository. It analyzes your code diffs using LLM reasoning to identify vulnerabilities before changes are merged.

What is the best way to automate vulnerability detection in CI-CD pipelines?

Automating vulnerability detection in CI-CD pipelines is best achieved by applying threat-model-driven analysis to your code diffs. This method surfaces STRIDE-based findings during automated code reviews without requiring manual security audits.

Are there limitations to using AI-powered security analysis for code review?

AI-powered security analysis relies on LLM reasoning and a predefined threat model to identify vulnerabilities. It requires a properly configured .factory/threat-model.md file to establish context and severity thresholds for accurate STRIDE-based findings.