mantis-history

Analyze VCS commit logs and diffs to extract past vulnerabilities and security fixes.

731|84|Updated Jun 15, 2026
One-click install
npx skills add https://github.com/google/mantis --skill mantis-history
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: mantis-history
Source: https://github.com/google/mantis/tree/main/mantis-history
Command: npx skills add https://github.com/google/mantis --skill mantis-history

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This Skill automates the identification of past security vulnerabilities and patches by analyzing version control history, preventing the repetition of historical security mistakes.

Core Features & Use Cases

  • VCS History Mining: Automatically scans commit logs and diffs to extract security-relevant changes.
  • Historical Learnings Database: Builds a structured JSONL database of past vulnerabilities, mitigations, and affected components.
  • Use Case: Before starting a new security review, use this Skill to generate a historical context report that highlights which parts of the codebase have historically been prone to specific vulnerability types like buffer overflows or authentication bypasses.

Quick Start

Run the mantis-history command to analyze the repository version control logs and generate a historical learnings database in the workspace.

Frequently Asked Questions about mantis-history

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

FAQPage Schema
How do I extract past security vulnerabilities from version control history?

You can extract past security vulnerabilities from VCS by analyzing repository commit logs and diffs to identify security fixes and recurring patterns. This builds a structured JSONL database of historical learnings for security-focused coding agents.

What is VCS history mining for security analysis?

VCS history mining for security analysis is the process of scanning version control commit logs and diffs to automatically extract past vulnerabilities, security patches, and recurring vulnerability patterns. It builds a structured database to prevent repeating historical security mistakes.

How do I generate a historical security context report before a code review?

Generate a historical security context report by running batch-processed LLM analysis on your repository's version control history. This highlights which parts of your codebase have historically been prone to specific vulnerability types like buffer overflows or authentication bypasses.

Does this security analysis approach require access to live VCS metadata?

Yes, extracting historical security insights from VCS requires access to live version control system metadata. The tool operates directly on repository commit logs and diffs to build its historical learnings database.

How does batch-processed LLM analysis optimize vulnerability extraction from commit logs?

Batch-processed LLM analysis optimizes vulnerability extraction from commit logs by grouping commits for cost-effective processing. This approach balances performance and cost when analyzing large volumes of version control history to identify security fixes.

What format does the historical learnings database use for extracted vulnerabilities?

The historical learnings database uses a structured JSONL format to store past vulnerabilities, mitigations, and affected components. This format allows security-focused coding agents to easily parse and utilize the extracted historical security data.