AGENT SKILL

yao-doctor-skill

Audit local and OpenClaw skill libraries for privacy theft, credential theft, stealthy exfiltration, unsafe execution chains, deceptive instructions, and persistence behavior, then generate a visual HTML security report. Use when Codex needs to security-review one skill or a full skill library before install, enablement, or execution. Do not use for generic cleanup, usage estimation, or app-level security review outside skill packages.

License 许可
MIT
最近更新
2026-10-14
Stars
★ 1.3k
Forks
145

01 前言 Front Matter

name
yao-doctor-skill
description
Audit local and OpenClaw skill libraries for privacy theft, credential theft, stealthy exfiltration, unsafe execution chains, deceptive instructions, and persistence behavior, then generate a visual HTML security report. Use when Codex needs to security-review one skill or a full skill library before install, enablement, or execution. Do not use for generic cleanup, usage estimation, or app-level security review outside skill packages.

02 资源文件 29

03 SKILL.md 正文

Yao Doctor Skill

Boundary

Own this recurring job: security-review skill packages as untrusted code and untrusted instructions, separate broad capability risk from actual unsafe behavior, and produce evidence-backed recommendations before the skills are installed or executed.

Do not route here for:

  • generic code security reviews outside skill folders
  • skill cleanup, archival, deduplication, or stale-usage analysis
  • privacy policy writing without scanning files
  • creating a brand-new skill with no security audit need

Default Workflow

  1. Run scripts/run_yao_doctor_skill.py [root] [more-roots]. If no roots are provided, auto-discover the current workspace, OpenClaw skill roots, Codex and Claude local skill roots, Codex plugin-cache skills, supported local workbench configuration surfaces, and project-level workbench surfaces such as repo AGENTS.md, CLAUDE.md, or selected .claude/.codex files.
  2. Scan every discovered skill directory containing SKILL.md, plus recognized workbench surfaces such as local Codex and Claude configuration bundles and project-local agent configuration areas.
  3. For each skill, score two separate layers:
    • capability risk: what the skill can access or execute
    • unsafe behavior: what the skill appears to do with sensitive data or hidden actions
  4. Reuse the incremental cache when possible, and surface per-target diffs plus evidence type and confidence in the final report.
  5. Generate _yao_doctor_skill_reports/<timestamp>/report.html, report.json, and report.md. Also update the stable entry:
    • full scans -> _yao_doctor_skill_reports/full-library-latest/report.html
    • changed-only scans -> _yao_doctor_skill_reports/changed-only-latest/report.html
  6. Summarize the highest-severity findings first, with exact paths, lines, evidence type, confidence, and the reason a finding is merely risky, suspicious, unsafe, or critical.

Security Principles

  • Do not equate broad permissions with automatic compromise.
  • Treat a skill as unsafe only when there is evidence of privacy theft, credential theft, stealthy exfiltration, deceptive behavior, remote execution, or persistence abuse.
  • Distinguish capability from intent. A skill may be powerful without being malicious.
  • Escalate hard when a sensitive source and an external sink appear in the same execution path or file.
  • Favor precise path-level evidence over generic suspicion.
  • Stay read-only unless the user explicitly authorizes destructive or quarantine actions.

Outputs

Primary artifact:

  • visual HTML security report with the fixed section order:
    • overview
    • data analysis
    • definitions
    • module guide
    • skill modules
    • footer credit

Current interactive contract:

  • sticky top navigation
  • Chinese default with English toggle
  • linked type filters between data analysis and module list
  • module cards with audit opinion, findings, and capability evidence
  • stable latest report entry for in-app browsing and reuse

Per skill, include:

  • absolute path
  • declared skill name and one-line summary
  • capability risk score and level
  • unsafe behavior score and level
  • final disposition: safe, risky, suspicious, unsafe, or critical
  • top capabilities discovered
  • concrete findings with file path, line, category, severity, rationale, and recommended action

Resources

04 同仓库更多 Skills

yaojingang
yaojingang/yao-open-skills

yao-weread-skill

当用户需要分析微信读书阅读历史、生成读书报告、可视化阅读统计、笔记、书架、词云、热力图、雷达图,或导出精排 HTML 报告时使用。也适用于创建 AI 创业者示例阅读报告。不用于通用图书推荐,或不生成报告的原始微信读书 API 查询。

Skill与智能体开发
★ 1.3k
yaojingang
yaojingang/yao-open-skills

yao-websecurity-skill

Use when auditing an authorized website, SaaS, API, AI app, local code path, GitHub repo, staging URL, or owned runtime for security risks, vulnerability checklist scoring, static review, dynamic review, active validation, or Chinese security reports.

Skill与智能体开发
★ 1.3k
yaojingang
yaojingang/yao-open-skills

yao-tutorial-skill

Create standalone beginner tutorial packages from a topic or supplied references, with adaptive research, course-style outline design, chapter visuals, and Markdown/DOCX/PDF/HTML exports. Use for textbook-like tutorials, course guides, teaching documents, or long beginner guides; not for quick answers, link summaries, pure diagrams, or file conversion.

文档处理资料检索与研究
★ 1.3k
yaojingang
yaojingang/yao-open-skills

yao-positioning-skill

Generate evidence-aware positioning reports for personal IPs, courses, products, services, brands, or companies by combining positioning theory, course-marketing analysis, user intent, competitor research, market demand, and verifiable advantages. Use when users ask for 定位、差异化分析、优势分析、心智定位、品类定位、竞品定位研究、定位报告或再定位建议. Do not use for slogan-only copywriting, generic marketing ideas, standalone market research without a positioning recommendation, or brand knowledge-base construction.

市场营销营销推广资料检索与研究
★ 1.3k
yaojingang
yaojingang/yao-open-skills

yao-open-skills-sync

Manage the yao-open-skills public collection. Use this skill whenever the user wants to evaluate whether a local skill should be open sourced, import a local skill into the yao-open-skills repository, register which skills are already public, track GitHub sync status, or update the collection README and catalog after adding or refreshing a skill.

Skill与智能体开发
★ 1.3k
yaojingang
yaojingang/yao-open-skills

yao-naval-almanack-skill

Improve career choices, service/productization, reusable income/ownership, long-term partnerships, attention allocation, and desire/social-comparison tradeoffs using Naval principles, even without naming Naval. 中文:工作选择、找专长、重复交付产品化、长期合作、忙却无积累、目标取舍、同龄人比较。Also explain, verify, and apply 《纳瓦尔宝典》, Naval Ravikant, or quotes. Use for substantive advice; skip generic planning/editing, coding, arithmetic, vague anxiety, trading, clinical care, and passing name mentions. Honor explicit opt-outs.

★ 1.3k