/skills-library:ai-code-onboarding-checklistfrom skills-library
Performs a first-pass safety and maintainability triage on AI-generated code before running or building on it. Checks line count, nesting depth, tests, hardcoded secrets, TODOs, dependency validity, and dangerous calls (eval/exec, shell=True, recursive delete, unsafe deserialization, privilege escalation, outbound network).
Ships in skills-library. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
Use this skill when someone has received code from an AI system and wants a first-pass safety and maintainability triage before deeper review.
This skill answers questions like:
It does not claim algorithmic correctness, business correctness, or production readiness.
Use this skill when the user says things like:
Do not use this skill as the main tool for:
Prefer neighboring skills for those cases:
ai-diff-review-protocol for patch-focused review;ai-generated-test-auditor for test-quality audit;ai-output-fact-checker for claims about libraries, papers, versions, or commands;ai-answer-triage to sort a mixed answer first; the code blocks it marks "test first" come back here.Ask for or infer the smallest workable set:
If one of these is missing, continue with a best-effort review but mark the missing field explicitly.
Return a compact report with these sections, in this order:
read-only OKreview before runhigh-risk before runnot enough evidenceKeep judgments evidence-based. Quote filenames, symbols, or exact snippets when possible.
Identify:
If the artifact is only a fragment, say so early. Fragments often fail checks that full projects would pass.
Check the following items in order.
Measure or estimate:
Risk signals:
Look for any of:
If no test evidence exists, say that clearly. Absence of tests is not proof of failure, but it lowers trust sharply.
Search for signs such as:
TODO, FIXME, XXX, HACK, placeholder, stub, mock;pass, return null, return None, throw new Error("not implemented"), or equivalent unfinished branches;Distinguish between harmless future work and blockers to safe execution.
Look for:
If a string merely looks secret-like but cannot be confirmed, label it suspected secret, not confirmed secret.
Check whether the code references libraries, packages, commands, or services that appear consistent with the stated stack.
Review for:
ai-output-fact-checker;If the environment is missing, downgrade confidence rather than guessing.
Extract assumptions about:
Call out any assumption that would make “just run it” unsafe or misleading.
Look for calls that can do damage the moment the code runs, whether or not the logic is right. Run these patterns over the scope (for pasted code, search the pasted text the same way), then open every hit and read it in context:
S=path/to/scope # the file or folder under review
grep -rnE '\b(eval|exec)\s*\(|new Function\s*\(|__import__\s*\(' "$S" # eval / exec
grep -rnE 'shell\s*=\s*True|os\.(system|popen)\s*\(|child_process|execSync\s*\(|\|\s*(sudo\s+)?(ba|z)?sh\b' "$S" # shell execution, curl | sh
grep -rnE 'rm\s+-[a-zA-Z]*[rR]|rmtree\s*\(|rimraf|fs\.(rm|rmdir)(Sync)?\s*\(|-delete\b|\b(DROP|TRUNCATE)\s+(TABLE|DATABASE|SCHEMA)\b' "$S" # recursive delete
grep -rnE 'pickle\.loads?\s*\(|dill\.loads?\s*\(|marshal\.loads?\s*\(|shelve\.open\s*\(|yaml\.(unsafe_)?load(_all)?\s*\(|jsonpickle|torch\.load\s*\(|joblib\.load\s*\(|allow_pickle\s*=\s*True|ObjectInputStream|unserialize\s*\(' "$S" # deserialization
grep -rnE '\bsudo\b|\bset(e|re|res)?[ug]id\b|chmod\s+(-R\s+)?0?777|chmod\s+[ugoa]*\+[rwx]*s|0o?777|--privileged' "$S" # privilege escalation
grep -rnE 'requests\.(get|post|put|patch|delete|request)\s*\(|urlopen\s*\(|http\.client|httpx\.|aiohttp|socket\.(socket|create_connection)|fetch\s*\(|axios|XMLHttpRequest|WebSocket|\bcurl\s|\bwget\s|smtplib|ftplib|paramiko' "$S" # outbound network
A hit is serious when:
+, format, template literal) from arguments, file names or input, or a download is piped into a shell (curl … | sh)./, ~ or the project root.pickle, marshal, dill, joblib, torch.load, yaml.load without Loader=yaml.SafeLoader, or Java/PHP object streams read data someone else can write: a download, an upload, a shared cache, a user-supplied file.sudo, setuid/setgid, chmod 777 or +s, --privileged containers, anything that runs with or hands out more rights than the task needs.The patterns are a net, not a verdict. They also match harmless code (JavaScript RegExp.exec, a local function named fetch, rm -r inside a README) and miss aliases (from pickle import loads). Read each hit before labelling it.
Report each hit as path:line — signal — the call with secrets redacted — where the risky argument comes from, labelled:
confirmed: you read it, it runs on the normal path (no flag, no confirmation prompt), and one of the conditions above holds;suspected: the pattern matched but you could not trace the argument or the code path;not found: the patterns ran over the whole scope and nothing matched;not checked: the patterns could not be run over the whole scope; say which part was missed.An outbound call that is the stated purpose (a scraper fetching its target) is recorded as expected, with its destination, not as a risk. Hits that appear only in comments, docs or test fixtures are listed but do not raise the verdict by themselves.
Map findings to one verdict:
read-only OK: no obvious secrets, no severe placeholders, no dangerous calls beyond expected ones, assumptions are small and visible, scope is modest.review before run: code may be salvageable, but missing tests, unclear dependencies, partial placeholders, or suspected dangerous calls make execution risky.high-risk before run: likely secrets, invented dependencies, misleading setup, obviously unfinished critical paths, or any confirmed dangerous call from G. One confirmed dangerous call is enough, even when every other row is clean.not enough evidence: scope too incomplete to judge responsibly.Give the smallest safe next step, for example:
pickle.loads no longer reads data downloaded from the settings host.”Whenever the environment allows, prefer objective checks for:
TODO / FIXME / not implemented markers;When tooling is unavailable, perform the same checklist manually and label each item as:
confirmedsuspectednot foundnot checkedBad review patterns:
Escalate after this skill when needed:
ai-diff-review-protocol if the real question is whether a change is safe relative to an existing baseline;ai-generated-test-auditor if tests exist but may be hollow;User ask: “AI 写了个 Python 小工具给我抓网页,能直接跑吗?”
Good response shape:
review before runTODO in retry branchrequests plausible; browser-cookie import unclearrequests.get to the target site only (expected, it is the purpose); no eval/exec, shell, delete, deserialization or privilege hits| 版本 | 日期 | 变更 | 类型 |
|---|---|---|---|
| 0.2.0 | 2026-09-26 | 补上 description 承诺却没有的危险调用检查:新增 G 节(六类 grep 模式、何时算严重、confirmed/suspected 标注),Findings 表加 dangerous calls 一行,确认的危险调用直接评 high-risk before run;E 步补"包名存在不等于可信";与 ai-answer-triage 互相点名 | minor |
| 0.1.0 | 2026-08-30 | 初始版本 | minor |
What SKILL.md sets; muted values are Claude Code's defaults
Other plugins' skills for the same job
npx claudepluginhub chromitecr/skills --plugin skills-library64 skills in this plugin
/activity-list-optimizer当学生说"Common App 活动栏写不下"、"这段活动描述超字数了"、"帮我把这几条压到限制内"时使用。先按官方申请表核对当季字符限额,再逐条检查;一次把所有条目量完并直接给出压缩版,只在需要砍掉实质内容时才用选择题问该保哪部分。每改一版都用工具重新数一遍字符,绝不凭感觉说"这样应该够了"。只压缩,不代写空白。/activity-profile-builder当学生说"我参加过一些活动但没整理过"、"帮我把经历录进去"、"我的活动档案是空的"时使用。让学生一口气把记得的活动说出来,直接把这段话拆成结构化的长期事项(角色、组织、起止时间、做了什么、结果、级别),说不清的字段留空标"待补"而不是编,再用一张选择题卡把级别判定与是否重复这类关键项一次问完,然后提案入库。只记录学生真正说出口的内容,级别按事实判定,绝不往高了写。/admissions-reader当学生问"招生官会怎么看我的档案"、"我的背景还差什么"、"帮我评估一下现在的申请竞争力"时使用。以顶尖大学招生官的视角通读学生的档案、长期活动与已写下的反思,不问任何前置问题直接产出一份指名道姓的坦诚点评:这份材料的亮点、招生官真实的解读方式、明显的短板与空白、以及接下来最值得做的一到两件事。只读不写,不修改学生的任何数据,也不代写任何申请材料。