SkillLens Audit
v1.0.0Audit locally installed agent skills for security/policy issues using the SkillLens CLI (`skilllens scan`, `skilllens config`). Use when asked to scan a skills directory (Codex/Claude) and produce a risk-focused audit report based on each skill's `SKILL.md` and bundled resources.
Security Scan
OpenClaw
Benign
high confidencePurpose & Capability
Name/description match the instructions: SKILL.md tells the agent to run the SkillLens CLI to scan local skill directories. There are no unrelated environment variables, binaries, or config paths requested.
Instruction Scope
Instructions stay within the audit purpose: scan a concrete directory, inspect SKILL.md and assets, and avoid executing bundled scripts. One operational note: the SKILL.md tells users/agents to run 'npx skilllens scan' or 'pnpm add -g skilllens' — that invokes a third-party CLI (downloads and runs code from the npm registry), which is expected for this workflow but expands the runtime surface.
Install Mechanism
There is no install spec in the skill bundle itself, but the runtime instructions recommend using npx/pnpm to fetch the SkillLens CLI. Fetching code from npm is a common pattern (moderate risk compared with direct downloads from unknown URLs); users should verify package provenance/version before running or performing a global install.
Credentials
The skill requests no environment variables, credentials, or config paths. The audit workflow reads local skill files (SKILL.md and assets) which is appropriate for its stated purpose.
Persistence & Privilege
The skill does not request persistent inclusion (always:false) or system-wide changes. The instructions recommend inspecting before executing and do not direct modifications of other skills or system-wide settings.
Assessment
This instruction-only skill is coherent, but follow safe practices before running the recommended CLI: 1) Prefer running npx with an explicit version (npx skilllens@<version> scan) or inspect the package source on the npm/GitHub registry first; 2) Avoid global installs unless you trust the publisher; 3) Run scans from a least-privileged environment or isolated container if possible; 4) Do not allow automatic execution of bundled scripts — the SKILL.md correctly advises manual inspection first; 5) Verify SkillLens configuration (scan roots) before scanning to avoid scanning unexpected system locations.Like a lobster shell, security has layers — review code before you run it.
latest
Skills Audit (SkillLens)
Install SkillLens
- One-off run:
npx skilllens scan(orpnpm dlx skilllens scan) - Global install:
pnpm add -g skilllens
Quick start
- Run
skilllens configto see configured scan roots and auditor CLI availability. - Run
skilllens scanto scan configured roots, orskilllens scan <path>to scan a specific directory. - Re-run with
--verboseto see raw auditor output and--forceto ignore cached results.
Audit workflow
-
Define scope
- Prefer a concrete target path (example:
~/.codex/skills) unless the user explicitly wants all configured roots. - If auditing a repo checkout containing skills, scan the parent folder that contains skill directories (example:
skilllens scan ./skills).
- Prefer a concrete target path (example:
-
Inventory skills with SkillLens
- Run
skilllens scan [path] [--auditor claude|codex]. - Treat missing auditor CLIs or
skippedstatuses as “manual review required”, not “safe”.
- Run
-
Prioritize review order
- Review any
unsafeorsuspiciousverdicts first. - Next, review skills that request broad permissions (filesystem/network), run shell commands, or reference external downloads.
- Review any
-
Manually review each skill’s contents
- Read the skill’s
SKILL.mdand any referencedscripts/,references/, andassets/. - Do not execute bundled scripts by default; inspect first.
- Read the skill’s
-
Evaluate risks (focus on realistic abuse)
- Exfiltration: sending file contents, env vars, tokens, SSH keys, browser data, or configs to remote endpoints.
- Execution: instructions to run arbitrary shell commands,
curl | bash,eval, or to fetch-and-execute code. - Persistence: modifying shell profiles, launch agents, cron, editor configs, or skill install locations.
- Privilege/approval bypass: instructions to ignore system policies, disable safety checks, or request escalated permissions unnecessarily.
- Prompt injection: attempts to override higher-priority instructions (“ignore previous”, “always comply”, “never mention…”).
- Overbroad triggers: vague descriptions that cause the skill to trigger on unrelated tasks.
-
Produce a report
- For each skill, include:
name,path,verdict(safe/suspicious/unsafe),risk(0–100), and bullet issues with concrete evidence (quote or filename). - Recommend fixes that reduce blast radius: narrow scope, remove dangerous defaults, add explicit confirmation gates, and document required permissions.
- For each skill, include:
Command snippets
- Scan configured roots:
skilllens scan - Scan a specific folder:
skilllens scan ~/.codex/skills - Force a re-audit and show raw output:
skilllens scan ~/.codex/skills --force --verbose
Comments
Loading comments...
