شعار Rl Protect Scan

Rl Protect Scan

مؤسسة
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.

نظرة عامة

الناشرreversinglabs
المستودعrl-protect-skills
اسم المهارةrl-protect-scan
النجوم
28
التفريعات
0
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها reversinglabs على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Rl Protect Scan في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/reversinglabs/rl-protect-skills/tree/main/plugins/rl-protect-scan/skills/rl-protect-scan
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

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
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Rl Protect Scan في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Rl Protect Scan تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Rl Protect Scan بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

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

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي 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.

لماذا تستخدم Rl Protect Scan على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Rl Protect Scan عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Rl Protect Scan في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/reversinglabs/rl-protect-skills/tree/main/plugins/rl-protect-scan/skills/rl-protect-scan. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Rl Protect Scan؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Rl Protect Scan؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Rl Protect Scan معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Rl Protect Scan مجانية؟

نعم. نشرها reversinglabs على GitHub بموجب ترخيص MIT. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇