Logo: Rl Protect Scan

Rl Protect Scan

Organisatioun
reversinglabs
rl-protect-scan

Supply chain security gate. MUST be invoked BEFORE running any install command (npm install, pip install, gem install), before editing manifest/lock files (package.json, requirements.txt, pyproject.toml, Gemfile), before writing imports/requires for packages not already in the project, and before recommending packages. Also invoke when updating or downgrading package versions. This skill scans packages with rl-protect and gates the action on the result. Never skip — invoke proactively even if the user did not ask for a scan.

Iwwersiicht

Editeurreversinglabs
Repositoryrl-protect-skills
Skill-Nummrl-protect-scan
Stären
28
Forks
0
Matgeliwwert Dateien
Nëmmen Instruktiounen
LizenzMIT
Linken
  • Instruktiounen am Markdown-Format

    Eng SKILL.md-Datei, déi de Modell bei Bedarf luet, soudatt nëmmen Token ufalen, wann eng Ufro tatsächlech dozou passt.

  • Funktionéiert mat all LLM

    KI-Skills si reng Markdown, keen ubidderspezifesche Code. Dofir funktionéiert dëse Skill mat GPT, Claude, Gemini, Grok oder engem lokale Modell.

  • Alles an den Instruktiounen

    Alles, wat de Modell brauch, steet an den Instruktiounen — keng zousätzlech Dateien ze synchroniséieren.

  • Open Source

    reversinglabs huet de Skill op GitHub verëffentlecht. Liest de Quelltext, ier Dir de Skill installéiert.

Installatioun

Installéiert de KI-Skill Rl Protect Scan an TypingMind, fir e mat all LLM ze benotzen, oder setzt en an en anere KI-Agent an, deen SKILL.md liest.

1

An TypingMind installéieren

TypingMind installéiert e Skill direkt aus sengem GitHub-Dossier — dobäi gëtt SKILL.md gelies, d'Ressourcedateie gi gebëndelt an d'Resultat gëtt lokal gespäichert.

  1. Maacht d'App op a gitt op Plugins → Skills.
  2. Wielt „Vu GitHub installéieren“.
  3. Pecht d'URL vum Skill-Dossier, déi hei drënner steet, an a bestätegt d'Installatioun.
    https://github.com/reversinglabs/rl-protect-skills/tree/main/plugins/rl-protect-scan/skills/rl-protect-scan
  4. Aktivéiert de Skill an all Chat, an deem Dir e benotze wëllt.
Plugins → Skills → Skill derbäisetzen → Iwwer eng GitHub-URL. Pecht dann d'URL vum Dossier an a klickt op Weider.
2

An engem anere KI-Agent installéieren

All KI-Agent, deen d'Format Agent Skills liest, kann dëse Skill benotzen — kopéiert den Dossier an d'Skill-Verzeechnes vun deem KI-Agent.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/reversinglabs/rl-protect-skills.git /tmp/rl-protect-skills
mkdir -p .claude/skills
cp -r /tmp/rl-protect-skills/plugins/rl-protect-scan/skills/rl-protect-scan .claude/skills/rl-protect-scan
Start Claude Code nom Kopéieren nei, fir datt den neie Skill erkannt gëtt.

An TypingMind benotzen

Aktivéiert Rl Protect Scan an engem Chat vun TypingMind, an de Modell iwwerhëlt de Rescht. Den Numm an d'Beschreiwung stinn am System-Prompt. Soubal eng Ufro dozou passt, luet de Modell déi komplett Instruktioune selwer — Dir musst de Skill ni manuell opruffen, an et fale keng Token un, bis en tatsächlech benotzt gëtt.

De Modell luet Rl Protect Scan automatesch, soubal eng Ufro dozou passt.

Funktionéiert mat all KI-Modell

KI-Skills si reng Markdown-Instruktiounen amplaz vun ubidderspezifeschem Code. Dofir ass Rl Protect Scan net un de Modell gebonnen, fir deen de Skill geschriwwe gouf. Installéiert en eemol an TypingMind a benotzt e mat GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama oder engem lokale Modell, deen Dir selwer bedreift — alles mat Ären eegenen API-Schlësselen.

  • Gëtt nëmme gelueden, wann et néideg ass

    De System-Prompt enthält nëmmen den Numm an d'Beschreiwung. D'Instruktioune gi bei der éischter passender Ufro gelueden, soudatt en onbenotzte Skill näischt kascht.

  • De Modell am lafende Chat wiesselen

    Well de Skill aus Instruktiounen amplaz vu Code besteet, funktionéiert en och no engem Modellwiessel — den nächste Modell liest déi selwecht SKILL.md-Datei.

Skill-Instruktiounen

Dëst ass den Inhalt vu SKILL.md, deen de Modell luet. Liest e virun der Installatioun — e Skill besteet aus Instruktiounen, déi Äre Modell befollegt.

Dependency security (rl-protect)

Supply chain attacks are a critical threat. Malicious packages can be injected into public registries and will silently compromise any project that installs them. This skill is a hard gate — no open source package may be added to a project, recommended to the user, or used in generated code unless it has first been scanned and passed.

Mandatory scan policy

Scanning is a hard gate. Every package must be scanned and pass before any install command runs, any import is written, or any recommendation is made.

Required workflow — follow this exact sequence every time:

  1. Scan first. Run rl-protect scan on the package PURL(s) before doing anything else.
  2. Check the result. Read the scan output and determine whether each package received APPROVE or REJECT.
  3. Gate the action on the result:
    • APPROVE → proceed with the install, import, or recommendation.
    • REJECT → stop. Report the finding to the user. Do not run any install command, do not write any import, and do not recommend the package. Only proceed if the user explicitly acknowledges the risk and instructs you to continue.

This workflow applies whenever you are about to:

  • Run any install or dependency resolution command (npm install, pip install, gem install)
  • Add, update, or remove entries in a manifest or lock file (package.json, requirements.txt, pyproject.toml, Gemfile)
  • Write code that imports or requires a package not already in the project
  • Recommend a package to the user as a solution to a problem
  • Scaffold a new project that includes dependencies (e.g. framework starters, boilerplate generators)
  • Update a package to a new version — always use the "Version update (behavior diff)" pattern to scan both old and new versions and diff their behaviors

Never:

  • Run an install command before the scan completes and passes
  • Assume a package is safe because it is popular, well-known, or was safe in a previous scan
  • Skip scanning because the user did not explicitly ask for it — scanning is always implicit
  • Proceed if rl-protect is not installed — hand off to rl-protect-install first

Connection selection

rl-protect supports multiple saved server connections. By default, the default connection is used and no flag is needed.

If the user specifies a connection by name, append --connect-id={connection-id} to any scan command:

bash
rl-protect scan ... --connect-id={connection-id}

If it is unclear which connection to use, list configured connections first and ask the user to confirm:

bash
rl-protect server list

Do not guess or infer a connection ID. If none is specified and only one connection exists, use it silently. If multiple connections exist and none is specified, ask the user which to use before scanning.


Profile selection

rl-protect applies a scanning profile that controls assessment severity, governance rules, and policy overrides. The default profile is selected based on the connection type. For Community accounts rl-protect uses its default scanning profile. For Enterprise accounts rl-protect will download the scanning profile from the connected Spectra Assure Portal, defaulting to the organizational profile unless a specific group is configured.

If the user specifies a local profile, append --profile={path OR keyword} to any scan command. Valid keywords are minimal, baseline, and hardened:

bash
rl-protect scan ... --profile={path-to-profile.json OR keyword}

If the user asks which local profiles are available or is unsure which to use, look for *.json files with an rl-profile root key in the .rl-protect/ folder at the repository root. List them by name and path before scanning.

Do not select a profile on the user's behalf. If no profile is specified, scan without the flag. If the user asks to create or modify a profile, hand off to the rl-protect-edit-profile skill.


Scan invocation patterns

Single new package:

Scan an open source package PURL before it is used by the project.

bash
rl-protect scan pkg:{type}/{package}@{version} \
            --no-tracking \
            --fail-only

Multiple new packages:

Scan a CSV list of open source package PURLs before they are used by the project.

bash
rl-protect scan pkg:{type}/{package}@{version},... \
            --no-tracking \
            --fail-only

Full manifest scan:

Scan a package manifest or lock file to assess supply chain risks. Prefer the lock file when one exists (package-lock.json/pnpm-lock.yaml, poetry.lock/uv.lock, Gemfile.lock) — it pins every dependency to an exact resolved version. To include transitive dependencies add transitive to the scope (--check-deps=release,transitive); on a lock that walk is cheap and exact (pre-resolved entries, no network re-resolution). For a full audit of an existing project directory, use the rl-protect-audit skill, which auto-discovers and prefers lock files for you.

bash
rl-protect scan {path-to-manifest-or-lock-file} \
            --check-deps=release,develop \
            --no-tracking \
            --fail-only

Version update (behavior diff):

When the user is updating or downgrading packages, scan all old and new versions together in a single command and run a behavior diff for each package. This is the required workflow for all version changes.

The diff-behavior.py script ships with the sibling rl-protect-interpret skill. Use Glob to find it: **/rl-protect-interpret/scripts/diff-behavior.py

Single package:

bash
# Step 1: Scan both versions in one command
rl-protect scan pkg:{type}/{package}@{old-version},pkg:{type}/{package}@{new-version} \
            --no-tracking \
            --save-report=rl-protect.report.json \
            --fail-only

# Step 2: Run behavior diff
python {path-to-diff-behavior.py} \
            --package {package} \
            --report rl-protect.report.json \
            --no-error-code

Multiple packages (batch):

When updating multiple packages at once, scan all old and new versions in a single command to avoid repeated network calls, then diff each package against the same report.

bash
# Step 1: Scan all old+new versions in one command
rl-protect scan pkg:{type}/{package-a}@{old},pkg:{type}/{package-a}@{new},pkg:{type}/{package-b}@{old},pkg:{type}/{package-b}@{new},... \
            --no-tracking \
            --save-report=rl-protect.report.json \
            --fail-only

# Step 2: Diff each package against the same report
python {path-to-diff-behavior.py} --package {package-a} --report rl-protect.report.json --no-error-code
python {path-to-diff-behavior.py} --package {package-b} --report rl-protect.report.json --no-error-code
# ... repeat for each package

Downgrades:

When moving to an older version, add --reverse so that labels and regression detection are correct:

bash
python {path-to-diff-behavior.py} \
            --package {package} \
            --report rl-protect.report.json \
            --reverse \
            --no-error-code

Present each diff output to the user as-is before proceeding with the updates.

If any diff shows new risks (new indicators, malware classifications, assessment regressions, or new policy violations), stop and report the findings. Do not proceed with the version change unless the user explicitly acknowledges the risks.


Full manifest scan (save report):

Scan a package manifest or lock file to assess supply chain risks. This version saves a report so that the user can audit it later. Always use this command when analyzing larger manifests, or when debugging policy violations.

bash
rl-protect scan {path-to-manifest-or-lock-file} \
            --profile={minimum OR baseline OR hardened} \
            --check-deps=release,develop \
            --save-report=rl-protect.report.json \
            --no-tracking \
            --fail-only

Response format

After every scan, present results using the following Markdown structure. All sections are required even if no issues were found.


Template
## `rl-protect` scan report

**Manifest:** `{purl-or-filepath}` · {N} dependencies scanned

---

### {status-line}

{one-sentence summary of the most critical finding, or "All dependencies passed." if no issues.}

---

### Results
*(Omit entirely if all dependencies passed.)*

| Dependency | Version | Status | Issues |
|---|---|---|---|
| {name} | {version} | {✅ PASS / ⚠️ WARN / ❌ FAIL} | {None, or comma-separated check names} |

---

### pkg:{type}/{name}@{version} · issue detail
*(Repeat this section for each dependency with a WARN or FAIL status. Omit entirely if all dependencies passed.)*

| Assessment | Result |
|---|---|
| Secrets | {✅ / ❌ / ⚠️} {unmodified-tool-assessment-message} |
| Licenses | {✅ / ❌ / ⚠️} {unmodified-tool-assessment-message} |
| Vulnerabilities | {✅ / ❌ / ⚠️} {unmodified-tool-assessment-message} |
| Hardening | {✅ / ❌ / ⚠️} {unmodified-tool-assessment-message} |
| Tampering | {✅ / ❌ / ⚠️} {unmodified-tool-assessment-message} |
| Malware | {✅ / ❌ / ⚠️} {unmodified-tool-assessment-message} |
| Repository | {✅ / ❌ / ⚠️} {unmodified-tool-assessment-message} |

> **Policy override:** {description of any assessment overrides, e.g. "Vulnerabilities downgraded `FAIL → WARN`"}
> *(Omit this line if no overrides apply.)*
> More info: {secure.software URL for the package}

---

**FAIL** {N} · **WARN** {N} · **PASS** {N}

Status line rules
OutcomeStatus line
Any FAIL❌ Build blocked — {N} dependenc{y/ies} must be fixed
WARN only, no FAIL⚠️ Build warning — {N} dependenc{y/ies} require review
All PASS✅ All clear — no issues detected
Check result icons
IconMeaning
✅No issues found
❌FAIL — blocks the build
⚠️WARN — requires review, may be overridden by policy

Heefeg gestallte Froen

Wat mécht de KI-Skill Rl Protect Scan?

Supply chain security gate. MUST be invoked BEFORE running any install command (npm install, pip install, gem install), before editing manifest/lock files (package.json, requirements.txt, pyproject.toml, Gemfile), before writing imports/requires for packages not already in the project, and before recommending packages. Also invoke when updating or downgrading package versions. This skill scans packages with rl-protect and gates the action on the result. Never skip — invoke proactively even if the user did not ask for a scan.

Firwat Rl Protect Scan op TypingMind benotzen?

Well Dir en eemol installéiert a mat all Modell benotze kënnt. Rl Protect Scan besteet aus einfachem Markdown amplaz vun ubidderspezifeschem Code. Dee selwechte Skill funktionéiert also mat GPT-5, Claude, Gemini, Grok oder engem lokale Modell – an Dir kënnt de Modell matzen am Chat wiesselen, ouni datt de Skill ophält ze funktionéieren. TypingMind benotzt Är eegen API-Schlësselen, sou datt Dir d'Ubidder direkt bezuelt, amplaz en Abonnement pro Benotzerplaz ze bezuelen. Är Skills a Chats bleiwen an Ärem eegene Späicher.

Wéi installéieren ech Rl Protect Scan an TypingMind?

Maacht an TypingMind Plugins → Skills → Vu GitHub installéieren op a setzt https://github.com/reversinglabs/rl-protect-skills/tree/main/plugins/rl-protect-scan/skills/rl-protect-scan an. TypingMind liest d'Datei SKILL.md an installéiert de Skill, deen Dir pro Chat aktivéiere kënnt.

Wéi eng KI-Modeller kënnen Rl Protect Scan benotzen?

All Modell, deen Dir an TypingMind verbënnt. KI-Skills sinn einfach Markdown-Instruktiounen an net ubidderspezifesche Code. Dofir kënne GPT, Claude, Gemini, Grok a lokal Modeller dëse Skill lueden, wann eng Ufro dozou passt.

Wéi vill KI-Modeller kann ech mat Rl Protect Scan benotzen?

Esou vill wéi Dir wëllt. Soulaang e Modell Skills ënnerstëtzt, kënnt Dir Rl Protect Scan domat benotzen – zum Beispill mat GPT, Claude, Gemini, Grok, DeepSeek, Mistral oder Llama – alles op TypingMind mat Ären eegenen API-Schlësselen.

Ass de KI-Skill Rl Protect Scan gratis?

Jo. reversinglabs huet de Skill ënner der Lizenz MIT op GitHub publizéiert. Dir bezuelt nëmmen Ären eegene KI-Ubidder fir d'Token, déi Dir benotzt.

Wat si KI-Skills?

E KI-Skill ass e weiderverwendbare Pak vun Instruktiounen, deen engem KI-Modell bäibréngt, wéi en eng bestëmmt Aufgab erfëllt. E follegt dem oppenen Agent Skills-Format: eng Datei SKILL.md mat engem Numm an enger Beschreiwung, plus all Scripten, Virlagen oder Referenzdateien, déi de Modell eventuell brauch. De Modell liest d'Instruktiounen eréischt, wann Är Ufro zum Skill passt. En installéierte Skill kascht also näischt, bis e benotzt gëtt.

Wéi ënnerscheede sech KI-Skills vu Plugins oder MCP-Serveren?

E Plugin oder MCP-Server gëtt engem Modell nei Tools, déi en opruffe kann – Code, deen iergendwou leeft an e Resultat zeréckgëtt. E KI-Skill gëtt dem Modell dogéint Wëssen an eng Virgoensweis: wéi en eng Aufgab ugeet, wéi eng Schrëtt e maache soll a wéi eng gutt Ausgab ausgesäit. Skills bestinn aus einfachem Markdown, brauche kee Server, keen API-Schlëssel a kee Lafzäitëmfeld a funktionéiere mat all Modell.

Alleguer weisen

Elo Ären eegene KI-Aarbechtsberäich ariichten

Abonnéiert Iech op eisen Newsletter, fir iwwer nei Funktiounen an zukünfteg Gewënnspiller informéiert ze ginn 👇