BC rag-memory
Vector memory search and RAG skill for OpenClaw. Provides vector_search tool backed by Qdrant, auto-syncs memory .md files and Postgres records via nomic-embed-text embeddings. Triggers on "search memory", "vector search", "resync memory", "RAG", "qdrant".
As a process C 60/100 · Has gaps — weak spots: result and completion, inputs and preconditions, running it twice
What is at stake
Medium-severity findings: the skill is probably honest, but read what alarmed the scanner.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The skill contains commands that delete files, rewrite disks or execute code fetched from the network. The agent may run them without asking if it believes the instructions require it.
Replace destructive commands with safe equivalents that ask for confirmation, scope them to one folder, and stop piping curl into a shell: pin a version and a checksum.
Below is the worst case for this category. The finding here is medium: the guard saw a sign, not a proof.
The instructions or scripts send data out: environment variables, keys, file contents, chat history. You may never notice, because the agent performs the upload as "part of the task".
If the upload is not needed for the task, remove it: catalogs flag such skills and delist them. If it is needed, name the destination explicitly, say what leaves the machine, and give the user a switch.
How to improve
- Your own cases (evals/evals.json, 4–6 real requests with expected answers): the full check would then run those instead of a model-drafted suite.
- A spec.yaml with trigger phrases and assertions — a behaviour contract for CI; `skilltest init` writes a template.
Guard findings · 12
✓ No critical or high findings
Medium and low: 12
-
medium Dangerous commands
cmd-privilegeSKILL.md:101Privilege escalation / world-writable permissions| sudo tee /etc/systemd/system/sysclaw-rag-{sync,watch}.service > /dev/null -
medium Dangerous commands
cmd-privilegeSKILL.md:102Privilege escalation / world-writable permissionssudo cp ~/.openclaw/skills/rag-memory/systemd/sysclaw-rag-sync.timer /etc/systemd/system/
-
medium Dangerous commands
cmd-privilegeSKILL.md:103Privilege escalation / world-writable permissionssudo cp ~/.openclaw/skills/rag-memory/systemd/sysclaw-rag-watch.path /etc/systemd/system/
-
medium Exfiltration
net-redirectable-api-keysync_to_qdrant.py:54Helper sends the API key to a host configured by an environment variable — the key can be redirected to another serverAPI key + configurable base URL from environment
-
low Secrets in code
secret-high-entropy-tokenplugin/package-lock.json:46High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…3wH+jfWB…yfN+lFri…oov+PzfnxxD5g==",
detector -
low Secrets in code
secret-high-entropy-tokenplugin/package-lock.json:137High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…wIN//F77/IADDSs58i+MDaO…jeo+YFg==",
detector -
low Secrets in code
secret-high-entropy-tokenplugin/package-lock.json:735High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…8tJ++Ku97…8Zu+xfBP…2pf+8SGN5/NoytfKgYPIw==",
detector -
low Secrets in code
secret-high-entropy-tokenplugin/package-lock.json:815High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…x9D+4jKA…w7A==",
detector -
low Secrets in code
secret-high-entropy-tokenplugin/package-lock.json:829High-entropy token-like string (may be an id, hash or a credential) (detector / deny-list definition)"integrity": "sha5…rQc+GZ14…I4P/jsSo…7rC/hms+WclQQ==",
detector -
low Dangerous commands
cmd-privilegereferences/config-paths.example.md:14Privilege escalation / world-writable permissions (detector / deny-list definition; documentation table row; test fixture / example file)| `~/.openclaw/skills/rag-memory/systemd/` | Systemd unit source copies — edit here, then `sudo cp` to deploy |
detectortablefixture -
low Dangerous commands
cmd-privilegeSKILL.md:41Privilege escalation / world-writable permissions (detector / deny-list definition; documentation table row)| `systemd/` | Source-of-truth copies of systemd units (deploy with `sudo cp` + `daemon-reload`) |
detectortable -
low Dangerous commands
cmd-background-processsystemd/deploy.sh:23Starts a background / autostarted processsystemctl enable --now sysclaw-rag-sync.timer sysclaw-rag-watch.path
Files scanned: 15. Evidence is masked. Grey chips explain why severity was lowered.
Against the Agent Skills spec
✓ No remarks against the Agent Skills spec
Process rating: all ten parameters 60/100
- 0Result and completion. Does not say what the result is
- 0Inputs and preconditions. Does not say what the process needs to start
- 30Running it twice. 4 mutating operations with no state check
- 50Failures and branches. 0 branches, has a failure section
- 60Tools and files. Uses tools (web, python) that frontmatter does not declare
- 100Steps. 29 steps
- 100When it triggers. States when to use and when not to
- 100Consistency. Name and required fields are in place
- 100Execution cost. Instruction body is 1739 tokens
- 100Progress reporting. Reports progress
- medium Safety rules and hard prohibitions inside a skill: they belong in the system prompt, here they protect nothing
- low 13 top-level sections: this looks like several domains in one skill
Everything here is measured from the skill text rather than judged by a model, so the numbers are checkable. A parameter weighs more when it is a more common reason for the process to stall.
Quality signals
- +4Description does not say when NOT to use the skill (false activations)
- +3Output format is not stated: the model decides each time
- -33 of 3 scripts are never mentioned in SKILL.md
- +1No license
- +2Single-language instructions
- +5Description quotes 4 example trigger phrases
- +3Description length 256: enough signal without eating the budget
- +4Structure: 14 headings
- +3Step-by-step instructions: 29 items
- +4Has examples (3 code blocks)
- +4Reference files are cited in the instructions (2 of 2)
Quality base 70; lint remarks subtract, signals add up to 100. Result: 90.