imports

imports is a command for coding agents from marcosd4h/DeepExtractRuntime. It costs 0 tokens per session (1,106 once invoked), scanned A, original, MIT.

Ett kommando för att följa relationer mellan Windows PE-modulers importer och exporter, alltså vilka DLL-funktioner som används och tillhandahålls.

In plain words
What is it for?
Att se vilka funktioner en modul importerar eller exporterar, hitta användare och leverantörer av en funktion, bygga beroendegrafer och följa forwarder-kedjor.
Why use it?
Det gör beroenden mellan moduler och kedjor av vidarebefordrade DLL-funktioner lättare att spåra.

Command

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add commands/marcosd4h/deepextractruntime/imports
Clone the repo
git clone --depth 1 https://github.com/marcosd4h/DeepExtractRuntime

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for imports

README.md
[![agentmods](https://agentmods.dev/badge/commands/marcosd4h/deepextractruntime/imports.svg)](https://agentmods.dev/commands/marcosd4h/deepextractruntime/imports)
Your own site
<a href="https://agentmods.dev/commands/marcosd4h/deepextractruntime/imports"><img src="https://agentmods.dev/badge/commands/marcosd4h/deepextractruntime/imports.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,106 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00000 $0.01106
Opus 5 $0.00000 $0.00553
Sonnet 5 $0.00000 $0.00221
Haiku 4.5 $0.00000 $0.00111

Measured 4d ago against content hash 1a165b67708c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

imports scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

commands/imports.md · 110 lines

How it starts

The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Import/Export Resolver

Overview

Query PE import/export relationships across modules: who exports a function, who imports it, inter-module dependency graphs, and DLL forwarder chain resolution.

Usage:

  • /imports appinfo.dll -- show import/export dependency summary for the module
  • /imports --function CreateProcessW -- find who exports and who imports a function
  • /imports appinfo.dll --consumers -- which modules depend on appinfo.dll's exports
  • /imports appinfo.dll --diagram -- Mermaid diagram of module dependencies
  • /imports --forwarders appinfo.dll -- resolve DLL forwarder chains
  • /imports --forwarders --function NtCreateFile -- trace a forwarder chain for a specific function

IMPORTANT: Execution Model

This is an execute-immediately command. Do NOT present anything for user confirmation. Run and write the results straight to the chat as your response. The user expects to see the completed output.

Execution Context

IMPORTANT: Any inline Python that imports helpers.* must run with cd <workspace>/.claude (so the .claude/ directory is on sys.path), not from the workspace root. Script invocations like python .claude/skills/.../script.py can be run from the workspace root because those scripts manage their own path setup.

Steps

1. Ensure the import/export index is built

The import-export-resolver skill requires an index of all modules' imports and exports. Build it if not cached:

Tip: All skill scripts support --json for machine-readable output. Use --json when parsing script output programmatically.

python .claude/skills/import-export-resolver/scripts/build_index.py --json

This scans all modules in the workspace and builds a cross-reference index. Results are cached.

2. Query the index

Function lookup (--function): Find who exports and who imports a specific function:

python .claude/skills/import-export-resolver/scripts/query_function.py --function <function_name> --json

Read the full file on GitHub · 110 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 110 lines · 0 tokens per session scan A 1a165b67708c

Subscribe to this mod's changes

imports is a command published in the GitHub repository marcosd4h/DeepExtractRuntime (19 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,106 tokens. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.