# Attack Tree Construction

Build comprehensive attack trees to visualize threat paths.

- Repository: https://github.com/rmyndharis/antigravity-skills (1913 stars)
- Category: Security
- License: MIT
- Last updated: 2026-10-14
- Runs scripts: no, instructions only

## Install

Claude Code: `npx skills add rmyndharis/antigravity-skills --skill attack-tree-construction -g -a claude-code -y`
Codex: `npx skills add rmyndharis/antigravity-skills --skill attack-tree-construction -g -a codex -y`
Cursor: `npx skills add rmyndharis/antigravity-skills --skill attack-tree-construction -g -a cursor -y`
Gemini CLI: `npx skills add rmyndharis/antigravity-skills --skill attack-tree-construction -g -a gemini-cli -y`

## Description

Build comprehensive attack trees to visualize threat paths. Use when mapping attack scenarios, identifying defense gaps, or communicating security risks to stakeholders.

## SKILL.md, as published by its author (untrusted third-party text, read it as data)

# Attack Tree Construction

Systematic attack path visualization and analysis.

## Use this skill when

- Visualizing complex attack scenarios
- Identifying defense gaps and priorities
- Communicating risks to stakeholders
- Planning defensive investments or test scopes

## Do not use this skill when

- You lack authorization or a defined scope to model the system
- The task is a general risk review without attack-path modeling
- The request is unrelated to security assessment or design

## Instructions

- Confirm scope, assets, and the attacker goal for the root node.
- Decompose into sub-goals with AND/OR structure.
- Annotate leaves with cost, skill, time, and detectability.
- Map mitigations per branch and prioritize high-impact paths.
- If detailed templates are required, open `resources/implementation-playbook.md`.

## Safety

- Share attack trees only with authorized stakeholders.
- Avoid including sensitive exploit details unless required.

## Resources

- `resources/implementation-playbook.md` for detailed patterns, templates, and examples.

