state-diff

Compares two state snapshots to identify changes in registers and memory between two points in time.

Last repository push
GitHub Stars
217
Forks
22
Issues / PRs
0

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "state-diff" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-dce683511d325d614c558e3a9c2346df2f62186d018af3b8532a89a298292380. Verify the upstream source and version against https://github.com/dariushoule/x64dbg-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

github.com

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

Compares two state snapshots to identify changes in registers and memory between two points in time.

0 Downloads

Introduction source: third_party · dariushoule · 0.0.1 Reference

SkillPi interpretation

Tasks
Compare two state snapshots to identify register and memory changes between two points in time
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
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.

Current listing version

0.0.1

Verify the source revision ↗

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 针对开发者调试场景,具有明确的实用价值
  • 功能定位清晰,解决状态变化分析的具体需求
Trigger Precision85/100

Highlights

  • 触发描述准确完整,覆盖核心功能关键词
  • 边界清晰,不易与其他技能混淆
Structure and Standards90/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档中缺少明确的使用场景说明章节

    Recommendation: 建议添加 When to Use 章节,说明适用场景和使用时机

  • 缺少端到端完整示例 Reported severity: Minor

    虽然有步骤说明,但缺少完整的端到端使用示例

    Recommendation: 建议添加一个完整的使用示例,展示从快照选择到结果分析的完整流程

Highlights

  • 步骤划分清晰,逻辑完整
  • frontmatter 信息完整,包含必要的元数据
Execution Reliability75/100

Areas to improve

  • 脚本执行失败未处理 Reported severity: Minor

    未处理 state_diff.py 脚本执行失败的情况

    Recommendation: 建议添加脚本执行失败的处理逻辑,如检查返回码、文件是否存在等

Highlights

  • 覆盖了快照数量不足的主要异常情况
  • 使用了合理的变量和参数传递方式
Evidence Verifiability (mean of the first four)81/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

These common operations were not identified in the main document. This does not mean no permissions or risks exist.

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.