@pwddd/skills-scanner 3.0.19 → 3.0.21
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/openclaw.plugin.json +1 -1
- package/package.json +1 -1
- package/src/prompt-guidance.ts +47 -11
package/openclaw.plugin.json
CHANGED
package/package.json
CHANGED
package/src/prompt-guidance.ts
CHANGED
|
@@ -11,7 +11,9 @@ export const SKILLS_SECURITY_GUIDANCE = [
|
|
|
11
11
|
"",
|
|
12
12
|
"**This is a SECURITY REQUIREMENT that CANNOT be bypassed under ANY circumstances.**",
|
|
13
13
|
"",
|
|
14
|
-
"### 🔄 Plugin Update Check (MANDATORY FIRST STEP)",
|
|
14
|
+
"### 🔄 STEP 0: Plugin Update Check (MANDATORY FIRST STEP)",
|
|
15
|
+
"",
|
|
16
|
+
"**🔴🔴🔴 CRITICAL: BEFORE ANYTHING ELSE - UPDATE THE PLUGIN FIRST 🔴🔴🔴**",
|
|
15
17
|
"",
|
|
16
18
|
"**Before ANY Skill scanning or installation operation, you MUST update the skills-scanner plugin to the latest version:**",
|
|
17
19
|
"",
|
|
@@ -19,6 +21,10 @@ export const SKILLS_SECURITY_GUIDANCE = [
|
|
|
19
21
|
"openclaw plugins update skills-scanner",
|
|
20
22
|
"```",
|
|
21
23
|
"",
|
|
24
|
+
"**⛔ DO NOT PROCEED UNTIL YOU HAVE EXECUTED THIS COMMAND ⛔**",
|
|
25
|
+
"",
|
|
26
|
+
"**This is NON-NEGOTIABLE. This is STEP 0. This is the FIRST thing you do.**",
|
|
27
|
+
"",
|
|
22
28
|
"**Why this is critical:**",
|
|
23
29
|
"- Security threats evolve constantly; scanning rules must be up-to-date",
|
|
24
30
|
"- New versions contain critical security fixes and threat detection improvements",
|
|
@@ -42,15 +48,39 @@ export const SKILLS_SECURITY_GUIDANCE = [
|
|
|
42
48
|
"",
|
|
43
49
|
"**If update fails:** Continue with current version but warn the user that scanning may not detect the latest threats.",
|
|
44
50
|
"",
|
|
45
|
-
"###
|
|
51
|
+
"### 📚 IMPORTANT: Read the Skills Scanner Documentation",
|
|
52
|
+
"",
|
|
53
|
+
"**Before performing ANY Skill scanning operation, you MUST read the skills-scanner SKILL.md for detailed instructions:**",
|
|
54
|
+
"",
|
|
55
|
+
"The SKILL.md contains:",
|
|
56
|
+
"- Complete scanning workflow and examples",
|
|
57
|
+
"- API service availability checks",
|
|
58
|
+
"- Deep analysis and false positive detection guidelines",
|
|
59
|
+
"- VirusTotal result interpretation",
|
|
60
|
+
"- ClawHub scanning procedures",
|
|
61
|
+
"- Command usage examples",
|
|
62
|
+
"- Troubleshooting guides",
|
|
46
63
|
"",
|
|
47
|
-
"
|
|
48
|
-
"
|
|
64
|
+
"**How to access:**",
|
|
65
|
+
"1. Use the skills system to read the skills-scanner SKILL.md",
|
|
66
|
+
"2. Review the scanning procedures before executing scans",
|
|
67
|
+
"3. Follow the documented workflows exactly",
|
|
68
|
+
"",
|
|
69
|
+
"**This documentation is CRITICAL for:**",
|
|
70
|
+
"- Understanding how to properly scan Skills",
|
|
71
|
+
"- Interpreting scan results correctly",
|
|
72
|
+
"- Avoiding false positives",
|
|
73
|
+
"- Handling different scanning scenarios",
|
|
74
|
+
"",
|
|
75
|
+
"### Mandatory Workflow (NO EXCEPTIONS - ALWAYS FOLLOW THIS)",
|
|
76
|
+
"",
|
|
77
|
+
"0. **READ documentation FIRST**: Access and read the skills-scanner SKILL.md to understand the complete scanning workflow",
|
|
78
|
+
"1. **SCAN before operation**: Execute security scan on the target Skill immediately:",
|
|
49
79
|
" - Local directories (including temporary extraction paths)",
|
|
50
80
|
" - Remote archives/packages",
|
|
51
81
|
" - ClawHub projects (even if marked as reviewed/official)",
|
|
52
82
|
" - Previously scanned Skills (no exemptions for \"already checked\" or \"trusted source\")",
|
|
53
|
-
"
|
|
83
|
+
"2. **Proceed only if safe**: Continue with installation/execution ONLY when scan results explicitly confirm safety. Otherwise, STOP and alert the user to risks.",
|
|
54
84
|
"",
|
|
55
85
|
"### 🎯 Critical Requirements (MEMORIZE THESE)",
|
|
56
86
|
"",
|
|
@@ -197,17 +227,23 @@ export const SKILLS_SECURITY_GUIDANCE = [
|
|
|
197
227
|
"### 🧠 Memory Reinforcement",
|
|
198
228
|
"",
|
|
199
229
|
"**Remember: Every time you see a Skill-related operation, ask yourself:**",
|
|
230
|
+
"",
|
|
231
|
+
"🔴 **STEP 0 (MOST IMPORTANT): Have I updated skills-scanner to the latest version?**",
|
|
232
|
+
" - If NO → STOP and execute: `openclaw plugins update skills-scanner`",
|
|
233
|
+
" - Do NOT proceed until this is done",
|
|
234
|
+
"",
|
|
235
|
+
"0. Have I read the skills-scanner SKILL.md documentation?",
|
|
200
236
|
"1. If it's a ClawHub install with only a name, have I searched for the full URL?",
|
|
201
|
-
"2. Have I
|
|
202
|
-
"3.
|
|
203
|
-
"4.
|
|
204
|
-
"5. Only if YES to all applicable steps → proceed",
|
|
237
|
+
"2. Have I scanned this Skill yet?",
|
|
238
|
+
"3. Did the scan pass?",
|
|
239
|
+
"4. Only if YES to all applicable steps → proceed",
|
|
205
240
|
"",
|
|
206
241
|
"**Complete workflow checklist:**",
|
|
242
|
+
"- [ ] 🔴 STEP 0: Update plugin (`openclaw plugins update skills-scanner`) ← **DO THIS FIRST**",
|
|
243
|
+
"- [ ] Read skills-scanner SKILL.md (if first time or unsure)",
|
|
207
244
|
"- [ ] ClawHub name only? → Search first (`openclaw clawhub search <name>`)",
|
|
208
|
-
"- [ ] Update plugin (`openclaw plugins update skills-scanner`)",
|
|
209
245
|
"- [ ] Scan with full URL",
|
|
210
246
|
"- [ ] Scan passed? → Proceed with installation",
|
|
211
247
|
"",
|
|
212
|
-
"**If you forget to search, update, or scan, you are putting the user's system at risk. Always follow the complete workflow.**",
|
|
248
|
+
"**If you forget to read documentation, search, update, or scan, you are putting the user's system at risk. Always follow the complete workflow.**",
|
|
213
249
|
].join("\n");
|