/rl-protect-interpret:rl-protect-interpretfrom rl-protect-interpret
Interprets rl-protect JSON security reports by running pre-built Python scripts for vulnerability analysis, dependency trees, and behavior diffs. Use when a user asks about scan findings, malware, policy violations, or governance.
Ships in rl-protect-interpret. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them; scripts run unread.
Use this skill when the user asks questions about a saved rl-protect.report.json file.
This skill uses pre-built Python scripts to extract and format report data. You must always run the appropriate script and present its output to the user. Never read the report file directly, never write your own parsing code, and never summarize report content from memory or context.
rl-protect reports can be large. Reading them directly is slow, wastes context, and produces inconsistent results. The scripts exist specifically to solve this — use them.
Before responding to any question about a report:
If you find yourself reading the JSON file, writing parsing code, or interpreting report content without having run a script first — stop and run the correct script instead.
Scripts are in ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/:
${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/
summarize.py — full report overview, all packages
interpret.py — targeted extraction by task
deptree.py — dependency tree visualization
diff-behavior.py — behavior diff between package versions
Default report path: rl-protect.report.json in the working directory. Pass a custom path with --report={path} if the user specifies one.
All scripts support --json to output structured JSON instead of formatted terminal tables. When --json is passed, the script writes a single JSON object to stdout. The JSON output contains the same data as the terminal output but in a machine-readable format suitable for MCP servers and other programmatic consumers.
Prints a compact Markdown summary of every package in the report: recommendation, all six assessment statuses, override flags, and scan errors. Use this when the user wants an overview or has not asked for a specific task.
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/summarize.py [report.json] [--json] --no-error-code
Extracts a specific slice of the report. Use this for all targeted tasks. Always prefer this over summarize.py when the user asks a specific question.
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/interpret.py <task> [--package <purl>] [--report <path>] [--json] --no-error-code
Use --package to filter output to a specific package when the user names one.
Renders package dependency relationships as an indented Unicode tree. Each node shows the package PURL, recommendation, and worst assessment status. Cycles are detected and marked. Unscanned dependencies are flagged. Use this when the user asks to see, visualize, or explore the dependency tree.
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/deptree.py [--package <purl>] [--report <path>] [--depth <n>] [--reverse] [--json] --no-error-code
--package roots the tree at a specific package (PURL substring match). Without it, trees are printed for all top-level packages (those not listed as a dependency of another).--depth limits how deep the tree is rendered. Default: unlimited.--reverse shows the reverse dependency tree — who depends on this package, walking upward to find all ancestors. Requires --package. Use this when the user asks "who uses this?", "how did this get into my tree?", or "what depends on X?".--no-error-code suppresses non-zero exit codes from REJECT findings (exit code 2 for actual errors is unaffected). Always pass this flag when running scripts from within Claude Code.--json outputs structured JSON instead of formatted terminal tables.Compares behaviors between two versions of the same package to detect suspicious changes that may indicate supply chain tampering. Diffs indicators, file classifications, vulnerabilities, and assessment statuses. Use this when the user is updating a package version and wants to understand what changed, or when investigating potential tampering between releases.
# Two versions in one report (scanned together):
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/diff-behavior.py --package <name> [--report <path>] [--json] --no-error-code
# Two separate reports (old version vs new version):
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/diff-behavior.py --package <name> --old-report <old_path> --new-report <new_path> [--json] --no-error-code
--package is required. Matches by package name (substring match, case-insensitive).--report single report containing both versions (e.g. when both were scanned together). Default: rl-protect.report.json.--old-report / --new-report separate report files for each version.--old-version / --new-version pin specific versions when more than two are present in the report.--reverse swaps old and new. Use this when downgrading to an older version so that labels and regression detection are correct.--no-error-code suppresses exit code 1 (new risks found). Always pass this flag.Workflow for version updates: When a user is updating a dependency, scan both the current and new versions, then run diff-behavior.py to compare. This is the recommended way to detect malicious tampering between releases.
# 1. Scan both versions together into one report
rl-protect scan pkg:npm/[email protected],pkg:npm/[email protected] --no-tracking --save-report=rl-protect.report.json
# 2. Compare behaviors
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/diff-behavior.py --package example --report rl-protect.report.json --no-error-code
Map every user request to a script invocation using this table. There are no exceptions.
| User asks about | Script invocation |
|---|---|
| CVEs, CVSS scores, exploitability, package safety | interpret.py vulnerabilities |
| Suspicious behavior, indicators, unusual code patterns | interpret.py indicators |
| Malware, supply chain attacks, malicious files, tampering | interpret.py malware |
| Who approved something, override audit trail | interpret.py overrides |
| Governance allow/block decisions, AI code review rejections | interpret.py governance |
| Both overrides and governance | run both interpret.py overrides and interpret.py governance |
| Overview, risk rating, deciding whether to use a package | summarize.py |
| Dependencies, what a package depends on, dependency list | interpret.py dependencies |
| Dependency tree visualization, show me the tree, explore transitive deps | deptree.py |
| Who uses this package, what depends on X, how did this get in my tree | deptree.py --reverse |
| Behavior diff, what changed between versions, version update risk, tampering between releases | diff-behavior.py |
| Missing packages, scan failures | interpret.py errors |
| Scan warnings, dependency confusion, a private package found on the public registry | interpret.py warnings |
For a specific package risk summary, run all three:
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/interpret.py vulnerabilities --package <purl> [--report <path>] --no-error-code
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/interpret.py malware --package <purl> [--report <path>] --no-error-code
python ${CLAUDE_PLUGIN_ROOT}/skills/rl-protect-interpret/scripts/interpret.py overrides --package <purl> [--report <path>] --no-error-code
Always pass
--no-error-codewhen invoking scripts. This suppresses non-zero exit codes from REJECT findings so the terminal does not color the output as an error. Exit code 2 (file not found, invalid JSON) is never suppressed.
> ⚠ One or more packages have a REJECT recommendation.Listed here for reference only. Do not use this to read or interpret the report directly — run the scripts.
analysis.report.packages[]
.purl — package identifier (type/name@version)
.downloads — total download count (popularity signal)
.dependents — number of packages that depend on this one
.dependencies[] — list of direct dependency PURLs
.scenarios[] — (1.2.0) dependency scopes the package was found in
(release, develop, ...); ["develop"] = development only
.analysis.recommendation — APPROVE | REJECT
.analysis.report — URL to full report on secure.software
.analysis.ai_code_intent — (1.2.0) AI code review verdict; REJECT is reported by
interpret.py governance as "Package rejected by AI code review"
.analysis.assessment{} — one entry per check (see checks below)
.status — pass | warning | fail
.label — human-readable finding summary
.count — number of findings (0 = clean)
.override — present when a policy override was applied
.to_status — the status after override
.audit.author — who approved the override
.audit.timestamp — when the override was approved
.audit.reason — stated justification
.analysis.vulnerabilities{} — keyed by vulnerability identifier (CVE or GHSA)
.summary — plain-language description
.cvss.baseScore — CVSS score (0–10)
.exploit[] — exploit flags: EXISTS, MALWARE, MANDATE, FIXABLE
.affects[] — (1.2.0) components the CVE applies to: a purl, or
non-manifest-component, which names nothing
.analysis.indicators{} — keyed by indicator ID
.description — what the indicator detected
.occurrences — how many times it was observed
.analysis.classifications[] — file-level malware scan results
.object — type of object scanned (e.g. "file" or "dependency")
.status — Malicious | Suspicious | Known good
.result — malware family / classification string
.hashes[] — [algorithm, value] pairs for the flagged file
.analysis.policy.violations{} — keyed by policy rule ID
.status — fail | warning | pass
.description — what the rule checks
.violations — violation count
.override — same structure as assessment override above
.analysis.policy.governance[] — org-level allow/block decisions
.status — blocked | allowed
.author — who set the rule
.timestamp — when the rule was set
.reason — stated reason
analysis.report.warnings[] — (1.2.0) scan warning texts, e.g. a package declared
private that resolves on the public registry
analysis.report.errors[]
.purl — package that could not be scanned
.error.code — HTTP-style error code
.error.info — human-readable error message
rl-protect.report.json directly — not even to check if it exists or to peek at its structure.analysis.report.errors[] is non-empty, the scripts will note failed packages. Always mention them to the user.Scope: develop (development dependencies only), say so: the package is not deployed, which lowers the practical risk of its CVEs. A CVE line <id> affects <purl> means rl-protect attributes the CVE to that component; its fix is in that component.interpret.py warnings whenever you summarize a scan, and quote every warning verbatim. A dependency-confusion warning changes no recommendation, but it can mean a public package is impersonating a private one.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub reversinglabs/rl-protect-skills --plugin rl-protect-interpretOther plugins' skills for the same job