Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsBlogPro
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges
  • Chrome Extension
  • Skill Manager

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Attack Tree

ASecurity

Build an attack tree for a stated attacker goal or asset, decomposing it into AND/OR sub-goals and leaf attack steps, then render it. Use when threat modeling, planning an engagement, or explaining how an asset could be compromised.

8 stars
0 votes
0 copies
1 views
Added 9/19/2026
ai-agentsgonodesecurity

Works with

mcp

Security Analysis

A100/100

Scanned 9/19/2026

$npx -y skills add jassics/awesome-claude-security --skill attack-tree --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Attack Tree?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Attack Tree
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/jassics-attack-tree/badge)](https://www.skillsdirectory.com/skills/jassics-attack-tree)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
Files
SKILL.md
---
name: attack-tree
description: >-
  Build an attack tree for a stated attacker goal or asset, decomposing it into
  AND/OR sub-goals and leaf attack steps, then render it. Use when threat
  modeling, planning an engagement, or explaining how an asset could be
  compromised.
---

# Goal

Produce a clear attack tree: a root attacker goal decomposed via AND/OR logic
into intermediate sub-goals and concrete leaf attacks, optionally annotated with
cost / difficulty / detectability, and rendered as a diagram.

# Steps

1. **Define the root.** Confirm the single attacker goal (e.g. "exfiltrate
   customer PII", "obtain domain admin"). One tree per goal.
2. **Decompose top-down.** Break the goal into sub-goals. Mark each node:
   - **OR** — any child achieves the parent (alternative paths).
   - **AND** — all children required together.
   Continue until leaves are concrete, actionable attack steps.
3. **Annotate leaves** (optional but recommended): cost, skill required,
   likelihood, and detectability. These drive prioritization and detection gaps.
4. **Identify cheapest/least-detectable path** to the root — that's the priority
   to mitigate and to build detections for.
5. **Render** with the `architecture-diagram` rendering approach: prefer the
   Excalidraw MCP; otherwise emit a Mermaid `flowchart TD` (root at top, AND
   nodes labeled, leaves as boxes) plus Graphviz DOT.

# Output

- The attack tree diagram (rendered or as importable Mermaid/DOT/Excalidraw JSON).
- A short table of leaf paths ranked by cost × likelihood ÷ detectability.
- A "mitigations & detections" list keyed to the highest-risk path.

# Notes

Use AND/OR semantics correctly — mislabeling changes the risk story. Keep node
labels short; put detail in the ranked table. Hand the ranked findings to
`security-reporting` if a writeup is needed.

Attribution

jassicsjassics
View sourceSee grades on GitHubMore from jassics →
SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Your tool, in front of Claude Code builders.

3 founder slots · $299/mo · GSC-verified traffic · sponsors can never buy grades.

See placements

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

696481 votes

Writing Skills

Create and manage Claude Code skills in HASH repository following Anthropic best practices. Use when creating new skills, modifying skill-rules.json, understanding trigger patterns, working with hooks, debugging skill activation, or implementing progressive disclosure. Covers skill structure, YAML frontmatter, trigger types (keywords, intent patterns), UserPromptSubmit hook, and the 500-line rule. Includes validation and debugging with SKILL_DEBUG. Examples include rust-error-stack, cargo-dep...

3931 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes
View all in ai-agents →