w-security
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseFind security defects relative to repository security docs and existing scanners. Do not invent CORS, encryption, password, or header policy. Stay report-only unless the user asked to fix.
- Read the repository security docs. If missing, stop and ask; do not invent a bar.
- Check authn/authz, input validation, secret handling, and data exposure on the changed paths.
- Validate each suspected issue with a trigger and consequence. Skip invented CVEs and timings.
- If authorized, run existing security scripts or CI jobs from the docs or package.json. Record passed, failed, or not run.
- If fixes are authorized, change the owning cause. Policy changes need a human. Docs: if behavior or commands changed.
/w-docs
对照仓库安全文档和现有扫描器,查找安全缺陷。不要臆造 CORS、加密、密码或标头策略。除非用户要求修复,否则仅输出报告。
- 阅读仓库安全文档。如果文档缺失,则停止并询问;不要自行设定安全标准。
- 检查变更路径中的 authn/authz、输入验证、密钥处理和数据暴露问题。
- 使用触发条件和后果验证每个疑似问题。跳过臆造的 CVE 和时序问题。
- 如果获得授权,运行文档或 package.json 中已有的安全脚本或 CI 任务,并记录通过、失败或未运行状态。
- 如果已授权修复,应修改问题的根因。策略变更需要人工确认。如果行为或命令发生变化,请更新 中的文档。
/w-docs