Agent skill

State Diff

by dariushoule in dariushoule/x64dbg-skills

Compare two state snapshots to identify register and memory changes between two points in time

MITAuto-check: notes

Install State Diff

skills CLI
$ npx skills add dariushoule/x64dbg-skills --skill state-diff -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install dariushoule/x64dbg-skills state-diff --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/dariushoule/x64dbg-skills.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/state-diff .claude/skills/state-diff && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
state-diff
GitHub stars
209
Token cost
~594 tokens
SKILL.md length
281 words
Files
2
Skills in repo
7
Repo updated
First seen
Licence
MIT

At a glance

Compare two state snapshots to identify register and memory changes between two points in time

  • Works in 4 steps: Identify snapshots → Run the diff script → Read the report → …
  • Runs Python scripts from its folder; calls python

What it does

State Diff is an agent skill from dariushoule/x64dbg-skills. Compare two state snapshots to identify register and memory changes between two points in time

Its SKILL.md is about 590 tokens, which your agent loads only when the skill is triggered. The skill folder holds 1 other file (for example `state_diff.py`).

The repository describes itself as: Claude Code plugin providing skills for x64dbg debugger automation. The licence is MIT.

Example prompts

  • “/state-diff”

Requirements

  • Python 3
  • Pre-approved tools (allowed-tools): Bash, Read

Workflow steps

4 steps, taken from the step headings in SKILL.md.

  1. Identify snapshots
  2. Run the diff script
  3. Read the report
  4. Analyze and reason

What it can do on your machine

Read from SKILL.md and the folder at commit 0409f53. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves these tools, so the agent can use them without asking each time:

    • Bash
    • Read

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Ships script files (Python), which the agent can run.

    Shell commands in SKILL.md call:

    • python

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

State Diff loads about 594 tokens when it runs. Until then it costs about 26 tokens; SKILL.md has 281 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~26
When it runs · the whole SKILL.md, loaded when a task matches
~594

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NotePre-approves every shell command (allowed-tools: Bash)SKILL.md
    allowed-tools: Bash, Read

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

The full file from dariushoule/x64dbg-skills at commit 0409f53, republished under its MIT licence (© dariushoule). 281 words, ~594 tokens.

Download SKILL.mdSave it as .claude/skills/state-diff/SKILL.md (or your agent's skills folder). This skill also uses 1 other file; get the full folder from GitHub.
name
state-diff
description
Compare two state snapshots to identify register and memory changes between two points in time
allowed-tools
Bash, Read

state-diff

Compare two debuggee state snapshots and produce a detailed change analysis — which registers changed, which memory regions were modified, and what the changes mean.

Instructions

Follow these steps exactly:

1. Identify snapshots

List the available snapshots:

dir "${CLAUDE_PLUGIN_ROOT}\snapshots"

If there are fewer than two snapshots, tell the user they need at least two snapshots (captured via /state-snapshot) and stop.

If the user specified two snapshot paths, use those directly. Otherwise, present the available snapshots and ask the user to pick the before (earlier) and after (later) snapshots.

2. Run the diff script

Execute the diff engine:

python "${CLAUDE_PLUGIN_ROOT}\skills\state-diff\state_diff.py" --before <before_snapshot_dir> --after <after_snapshot_dir>

The script writes diff_report.json into the after-snapshot directory by default. If the user specified a custom output path, pass --output <path>.

3. Read the report

Use Read to load the generated diff_report.json.

4. Analyze and reason

Interpret the diff report for the user:

  • Register changes: Explain what each changed register suggests. For example:

    • RIP/EIP advanced → instructions were executed
    • RSP/ESP changed → stack grew or shrank (function calls, local variables)
    • RAX/EAX changed → likely a return value or computation result
    • Flag changes → comparison or arithmetic results
  • Memory changes: Explain what modified regions likely represent:

    • Stack region modifications → local variables written, function arguments pushed
    • Heap regions → dynamic allocations or object mutations
    • Image/module regions → self-modifying code or relocations
    • Look at the actual byte patterns for clues (string data, pointers, counters)
  • Synthesize a narrative: Combine register and memory observations into a coherent explanation of what the program did between the two snapshots. For example: "The program called function X, which allocated Y bytes on the stack and wrote a string to a heap buffer."

Present the analysis in a clear, structured format with the raw evidence (hex values, addresses) supporting each conclusion.

© dariushoule, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file

Files

SKILL.md and 1 other file in skills/state-diff of dariushoule/x64dbg-skills.

  • SKILL.md
  • state_diff.py

Open the folder on GitHubat commit 0409f53

Compare with similar skills

State Diff next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

State Diff compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
State Diff this skilldariushoule/x64dbg-skills209—~594Automated safety check: NotesMIT
Diffsopenclaw/openclaw392k4 repos~461Automated safety check: PassMIT
Accesslint Diffsickn33/agentic-awesome-skills47k1 repos~1.2kAutomated safety check: PassMIT
Diff Reviewnexu-io/open-design100k—~508Automated safety check: PassApache-2.0
Iot Registerruvnet/ruflo74k—~263Automated safety check: PassMIT
Diff Analyzeruvnet/ruflo74k—~450Automated safety check: NotesMIT

Similar skills

  • Diffs

    openclaw/openclaw

    Use the diffs tool to produce real, shareable diffs (viewer URL, file artifact, or both) instead of manual edit summaries.

    392k GitHub starsUsed in 4 repos~461 tokens
    Auto-check passed
  • Accesslint Diff

    sickn33/agentic-awesome-skills

    Diff a live page's accessibility violations against a baseline — by default compares uncommitted changes (stash-based), or pass --branch [<name] to diff against a branch.

    47k GitHub starsUsed in 1 repo~1.2k tokens
    Frontend & DesignAuto-check passed
  • Diff Review

    nexu-io/open-design

    Render the patch-edit run's accumulated changes as a reviewable diff, surface it through a GenUI choice surface, and persist the user's accept / reject decision into the artifact manifest.

    100k GitHub stars~508 tokensUpdated today
    Frontend & DesignAuto-check passed
  • Iot Register

    ruvnet/ruflo

    Register a Cognitum Seed device by endpoint and establish agent bridge

    74k GitHub stars~263 tokensUpdated today
    Auto-check passed
  • Diff Analyze

    ruvnet/ruflo

    Analyze git diffs for risk scoring, reviewer recommendations, and change classification.

    74k GitHub stars~450 tokensUpdated today
    DevelopmentAuto-check: notes
  • Cost Diff

    ruvnet/ruflo

    Snapshot delta between two cost-summary JSON outputs. An agent skill from ruvnet/ruflo.

    74k GitHub stars~1.3k tokensUpdated today
    Auto-check: notes

More from dariushoule/x64dbg-skills

  • Decompile

    dariushoule/x64dbg-skills

    Decompile a function to C-like pseudocode using angr. An agent skill from dariushoule/x64dbg-skills.

    209 GitHub stars~626 tokensUpdated 6 mo ago
    Auto-check: notes
  • State Snapshot

    dariushoule/x64dbg-skills

    Capture a full debuggee state snapshot (all committed memory regions + processor state) to disk for offline analysis

    209 GitHub stars~526 tokensUpdated 6 mo ago
    Auto-check: notes
  • Tracealyzer

    dariushoule/x64dbg-skills

    Trace execution (into or over calls) for N steps or until a condition, then analyze the recorded instruction log

    209 GitHub stars~1k tokensUpdated 6 mo ago
    Auto-check: notes
  • Vuln Hunter

    dariushoule/x64dbg-skills

    Hunt for vulnerabilities in a running debuggee by analyzing imports/exports, triaging attack surface, and iteratively testing for bugs with PoC generation.

    209 GitHub stars~3.9k tokensUpdated 6 mo ago
    Auto-check: notes
  • Yara Sigs

    dariushoule/x64dbg-skills

    Scan a state snapshot's memory dumps with YARA signatures to detect packers, crypto constants, malware, and more

    209 GitHub stars~1.1k tokensUpdated 6 mo ago
    Auto-check: notes
  • Find Oep

    dariushoule/x64dbg-skills

    Smart trace-based OEP finder for packed/protected PE executables.

    209 GitHub stars~2.5k tokensUpdated 6 mo ago
    Auto-check: notes

Questions about State Diff

What does State Diff do?

Compare two state snapshots to identify register and memory changes between two points in time. State Diff is an agent skill from dariushoule/x64dbg-skills.

How do I install State Diff in Claude Code?

Run `npx skills add dariushoule/x64dbg-skills --skill state-diff -a claude-code`. Or copy the skill folder (skills/state-diff in dariushoule/x64dbg-skills) into .claude/skills/state-diff in your project. Claude Code loads it when a task matches its description.

How do I install State Diff in Codex?

Run `npx skills add dariushoule/x64dbg-skills --skill state-diff -a codex`. Or copy the skill folder (skills/state-diff in dariushoule/x64dbg-skills) into .agents/skills/state-diff in your project. Codex loads it when a task matches its description.

Can I use State Diff in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add dariushoule/x64dbg-skills --skill state-diff -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/state-diff, .gemini/skills/state-diff, .github/skills/state-diff and .opencode/skills/state-diff in your project.

What does State Diff need to run?

Going by SKILL.md and its folder, State Diff needs Python for the scripts in its folder and the command-line tools its instructions call (python). Our summary lists: Python 3. Its frontmatter pre-approves these tools: Bash, Read.

Does State Diff access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is State Diff safe to install?

Our automated static check of SKILL.md found notes only (pre-approves every shell command (allowed-tools: bash)), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does State Diff use?

State Diff is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.

How many tokens does State Diff use?

About 594 tokens (SKILL.md is roughly 2.4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.

What are the alternatives to State Diff?

Skills that share tags, products or a category with State Diff: Diffs (openclaw/openclaw, 392k stars), Accesslint Diff (sickn33/agentic-awesome-skills, 47k stars), Diff Review (nexu-io/open-design, 100k stars) and Iot Register (ruvnet/ruflo, 74k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains State Diff?

dariushoule (a GitHub user) maintains it in dariushoule/x64dbg-skills, which has 209 GitHub stars. The repository holds 7 skills in this directory. The repository was last updated on March 13, 2026.

Source: dariushoule/x64dbg-skills on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.