Skip to main content
skill Claude Code CX Codex Cursor GitHub Copilot

graph-evolution — Claude Code skill: what it does, how to install

Compares Trailmark code graphs across two code snapshots to spot structural security changes. It catches attack path expansion and privilege shifts that text diffs overlook.

Install into Claude Code · Skills CLI (Vercel) All methods and platforms ↓
npx skills add trailofbits/skills --skill graph-evolution -a claude-code
Open on GitHub

What graph-evolution does

This skill builds Trailmark structural graphs for two git commits, tags, or directories to evaluate architectural evolution. Plain text diffs only surface modified lines. In contrast, this approach tracks changes in taint propagation, privilege boundaries, and function blast radius across revisions.

The workflow relies on trailmark, which must be installed using uv tool install trailmark. It isolates each revision with temporary git worktrees, runs pre-analysis on both graphs, and runs trailmark diff alongside graph_diff.py to inspect subgraph membership changes.

Pay close attention to the target language flag. The trailmark diff command assumes Python by default. On codebases in other languages, it exits cleanly with empty arrays without warning you. Always specify the --language flag explicitly to prevent silent false negatives.

What it helps with

  • identify new attack paths introduced between git revisions
  • spot untracked blast radius growth in modified functions
  • detect taint propagation shifts caused by refactoring
  • audit privilege boundary modifications across release tags

Example prompts for the agent

  • Compare structural graphs between main and the release tag using graph-evolution.
  • Check for new attack paths and blast radius growth across the last two commits.
  • Run a structural diff between these two worktree directories.

How to install graph-evolution

1Skills CLI (Vercel)

npx skills add trailofbits/skills --skill graph-evolution -a claude-code

2Manually: put the files in place

~/.claude/skills/graph-evolution/SKILL.md

Copy the whole skill folder; for one project use .claude/skills/graph-evolution/

From the same set35

The whole set →
semgrep trailofbits Runs a Semgrep static security audit on your codebase. It presents a plan for user confirmation and merges all findings into SARIF. Claude Code CX Codex Cursor +1 9,500installs differential-review trailofbits Reviews code changes for security issues using Git history and test coverage. Use it for commits, diffs, and pull requests that need a written review report. Claude Code CX Codex Cursor +1 8,800installs modern-python trailofbits Configures Python projects with a modern tooling stack: uv for dependency management, ruff for linting and formatting, ty for type checking. Use when starting new projects, writing scripts, or migrating from legacy tools. Claude Code CX Codex Cursor +1 8,700installs secure-workflow-guide trailofbits Guides smart contracts through Trail of Bits' 5-step security audit on check-in or before deployment. It runs static analysis, generates visual charts, and prepares fuzzing tests. Claude Code CX Codex Cursor +1 7,400installs sharp-edges trailofbits Audits API designs and configuration schemas for developer footguns. Flags dangerous defaults and fragile interfaces where the easiest path causes security vulnerabilities. Claude Code CX Codex Cursor +1 6,900installs agentic-actions-auditor trailofbits Inspects GitHub Actions workflows for prompt injection risks and insecure AI agent setups. Catches attacker inputs leaking into prompts via event contexts or environment variables. Claude Code CX Codex Cursor +1 6,700installs gh-cli trailofbits A skill that redirects GitHub requests from curl and fetch to authenticated gh CLI for repositories, pull requests, and issues. Use it for private repos and higher API limits. Claude Code CX Codex Cursor +1 6,600installs variant-analysis trailofbits Finds related occurrences of an already identified defect across a repository. Use it after a vulnerability or logic issue turns up and similar code needs checking. Claude Code CX Codex Cursor +1 6,400installs

Similar

browser-login ruvnet Authenticates against a site once, sanitizes cookies through AIDefence, vaults the session handle, and lets other skills reuse it without re-logging in. Claude Code CX Codex Cursor +1 729installs iot-witness-verify ruvnet Verifies witness chain integrity for Cognitum Seed devices and detects provenance gaps. Useful for uncovering broken hash chains and missing epochs. Claude Code CX Codex Cursor +1 728installs computer-use-agents sickn33 Guides the architecture of AI agents that control screens, cursors, and keystrokes using Anthropic Computer Use or OpenAI Operator. Useful for sandboxed desktop and GUI automation. Claude Code CX Codex Cursor +1 959installs plaid-fintech sickn33 Provides integration patterns for the Plaid API, covering Link tokens, ACH Auth, transaction sync, balance checks, and webhook handling. Claude Code CX Codex Cursor +1 956installs browser-form-fill ruvnet Fills web forms using a structured JSON field map and saved selector templates. It automates data entry and form submission directly in browser sessions. Claude Code CX Codex Cursor +1 717installs salesforce-component-standards official github Guides Salesforce UI development across LWC, Aura, and Visualforce. Enforces SLDS 2 compliance, accessibility, and platform security. GitHub Copilot 770installs git-guardrails-claude-code Matt Pocock This skill adds a Claude Code hook that stops risky Git commands before they run. Use it when an agent must not push or discard working-tree changes. Claude Code 499,069installs ponytail-review DietrichGebert ponytail-review reviews a change beyond the diff, checking connected code, bugs, risks, load, tests, speed, and unnecessary code. Use it for PRs and commits. Claude Code CX Codex Cursor +1 56,300installs

Questions about graph-evolution

How to install graph-evolution in Claude Code?

Run npx skills add trailofbits/skills --skill graph-evolution -a claude-code. You also need trailmark installed via uv tool install trailmark.

What does graph-evolution do?

It builds and contrasts Trailmark graphs between two code snapshots. This exposes architectural security shifts that regular line diffs miss, like taint propagation changes.

Why did graph-evolution produce an empty diff?

The underlying trailmark diff tool targets Python by default. If your project uses another language, pass the --language parameter explicitly to avoid getting empty result arrays.

See also

Project sponsors

Companies that keep this analytics open
Gold sponsor

Impressions, clicks and code copies — open statistics. We keep the numbers public for the same reason NeBlask itself is public. Become a sponsor