SkillHub

skill-audit

v1.0.0

Audit 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.

Sourced from ClawHub, Authored by morozRed

Installation

Please help me install the skill `skill-audit` from SkillHub official store. npx skills add morozRed/skill-audit

Skills Audit (SkillLens)

Install SkillLens

  • One-off run: npx skilllens scan (or pnpm dlx skilllens scan)
  • Global install: pnpm add -g skilllens

Quick start

  • Run skilllens config to see configured scan roots and auditor CLI availability.
  • Run skilllens scan to scan configured roots, or skilllens scan <path> to scan a specific directory.
  • Re-run with --verbose to see raw auditor output and --force to ignore cached results.

Audit workflow

  1. Define scope
  2. Prefer a concrete target path (example: ~/.codex/skills) unless the user explicitly wants all configured roots.
  3. If auditing a repo checkout containing skills, scan the parent folder that contains skill directories (example: skilllens scan ./skills).

  4. Inventory skills with SkillLens

  5. Run skilllens scan [path] [--auditor claude|codex].
  6. Treat missing auditor CLIs or skipped statuses as “manual review required”, not “safe”.

  7. Prioritize review order

  8. Review any unsafe or suspicious verdicts first.
  9. Next, review skills that request broad permissions (filesystem/network), run shell commands, or reference external downloads.

  10. Manually review each skill’s contents

  11. Read the skill’s SKILL.md and any referenced scripts/, references/, and assets/.
  12. Do not execute bundled scripts by default; inspect first.

  13. Evaluate risks (focus on realistic abuse)

  14. Exfiltration: sending file contents, env vars, tokens, SSH keys, browser data, or configs to remote endpoints.
  15. Execution: instructions to run arbitrary shell commands, curl | bash, eval, or to fetch-and-execute code.
  16. Persistence: modifying shell profiles, launch agents, cron, editor configs, or skill install locations.
  17. Privilege/approval bypass: instructions to ignore system policies, disable safety checks, or request escalated permissions unnecessarily.
  18. Prompt injection: attempts to override higher-priority instructions (“ignore previous”, “always comply”, “never mention…”).
  19. Overbroad triggers: vague descriptions that cause the skill to trigger on unrelated tasks.

  20. Produce a report

  21. For each skill, include: name, path, verdict (safe/suspicious/unsafe), risk (0–100), and bullet issues with concrete evidence (quote or filename).
  22. Recommend fixes that reduce blast radius: narrow scope, remove dangerous defaults, add explicit confirmation gates, and document required permissions.

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