Scan Report
15 /100
agent-optimize
Agent optimization diagnostic skill - analyzes OpenClaw status, identifies context bloat, skill noise, memory redundancy, and config conflicts
Agent optimization diagnostic tool with legitimate functionality. Reads .env files for config analysis but does not exfiltrate credentials. Minor documentation gaps regarding credential-adjacent file access.
Safe to install
This skill is safe for use. Consider clarifying in documentation that .env files are read only for key name analysis, not value extraction. The hardcoded admin path '/home/admin/.npm-global' should be parameterized.
Findings 2 items
| Severity | Finding | Location |
|---|---|---|
| Low | .env file access not explicitly documented Doc Mismatch | src/index.js:237 |
| Low | Hardcoded admin user path Sensitive Access | src/index.js:24 |
| Resource | Declared | Inferred | Status | Evidence |
|---|---|---|---|---|
| Filesystem | READ | READ | ✓ Aligned | src/index.js:46-49 reads ~/.openclaw/** and workspace/** |
| Shell | WRITE | WRITE | ✓ Aligned | src/index.js:58-62 uses execSync for find, grep, wc, du, ps, pgrep as declared |
| Network | NONE | NONE | — | No network calls found in src/index.js |
| Environment | NONE | READ | ✓ Aligned | src/index.js:14-19 reads OPTIMIZE_* env vars but does not exfiltrate |
3 findings
Medium External URL 外部 URL
https://docs.openclaw.ai/performance SKILL.md:503 Medium External URL 外部 URL
https://docs.openclaw.ai/context-management SKILL.md:504 Medium External URL 外部 URL
https://docs.openclaw.ai/skill-optimization SKILL.md:505 File Tree
3 files · 27.9 KB · 1122 lines Markdown 2f · 603L
JavaScript 1f · 519L
├─
▾
src
│ └─
index.js
JavaScript
├─
README.md
Markdown
└─
SKILL.md
Markdown
Security Positives
✓ No network requests or data exfiltration detected
✓ No obfuscation (no base64, eval, or anti-analysis patterns)
✓ No credential harvesting or value extraction from .env files
✓ Shell commands limited to declared safe tools (find, grep, wc, du, ps, pgrep, df)
✓ Code is readable and auditable (519 lines, no obfuscation)
✓ No remote script execution (curl|bash, wget|sh)
✓ No supply chain risks detected (no package.json, no external dependencies beyond Node.js built-ins)