Inventory Third-Party Scripts
Added 2026-10
Inventory Third-Party Scripts — Chinese original prompt
请盘点 [站点或应用] 加载的所有第三方脚本,包括统计、客服、AB 测试、广告,逐项记录来源域名、用途、负责人、是否可延迟加载、是否能做完整性校验。输出:清单表、可以移除或合并的候选、需要加完整性校验的项、以及一个防止随意新增的审批约定。
Site original
Chinese original
Example
Sample input
盘点官网加载的所有第三方脚本,包括统计、客服和 AB 测试,帮我记录来源和负责人。
The output should include
- 清单表含来源用途与负责人
- 标可移除合并与需完整性校验
- 给防止随意新增的审批约定
Replace these placeholders 1
Swap the bracketed parts for your own details before sending.
[站点或应用]
How to use
第三方脚本等于把页面执行权交出去,新增前要明确它到底读什么。
Try tweaking it
- Have it restate requirements and constraints before writing code.
- Ask for the smallest change plus a rollback path, not a full-file rewrite.
What you should get
- A minimal, runnable change with copy-ready code
- Impact list: which files and call sites must follow
Common mistakes
- Asking it to touch ten files at once, then losing track of what broke what.
- Pasting only the error, with no code or version, and getting an unfixable answer.
How to check the output
- The change runs, can be rolled back, and touches nothing unrelated.
- Edge cases (empty, oversized, concurrent) are covered or explained.
Where it works
- Good for: having it restate requirements and constraints, then propose the smallest runnable change.
- Watch out: include versions and a minimal reproduction with the error, or the fix may look plausible but not fit.