跳转到正文
报告库
用途分类 / 其他用途

Shipping And Launch Skill 安全审计

作者说它能做什么(原文)

Prepares production launches. Use when preparing to deploy to production. Use when you need a pre-launch checklist, when setting up monitoring, when planning a staged rollout, or when you need a rollback strategy.

第三方安全检查结论

发现安全风险

已检查文件
1
发现的风险
4
会不会运行危险命令?检查是否下载程序后直接运行、让他人远程控制电脑,或藏起要运行的命令。未发现风险
会不会泄露文件和密钥?检查是否发送含密码或密钥的文件,以及代码里是否直接写了密钥。发现 1 项风险
中风险

错误上报示例可能向外部监控服务披露用户标识和请求 URL

原文依据:2 处
发现了什么

客户端示例上报用户 ID 和页面路径;服务端示例上报用户 ID 与 `req.url`。请求 URL 可能包含查询参数中的令牌、邮箱、搜索词或其他个人数据。文档没有要求脱敏、过滤查询参数或取得适当授权。

为什么需要注意

若直接采用,错误跟踪供应商、其员工或获得监控访问权的人可能接触用户标识和 URL 中的敏感内容,并造成隐私、合规或凭据泄露风险。

示例明确把页面路径和用户 ID 交给错误跟踪函数,服务端还提交原始 `req.url`。若 `reportError` 连接第三方服务,或 URL 含查询参数,这些值可能把标识符、令牌或用户输入发送到外部监控账户。文档未在示例附近要求删除查询串、脱敏或限制采集。用户可要求作者说明接收方、保留期限和访问权限,并默认过滤 URL 参数及对用户标识做最小化处理。

SKILL.md:193来自说明文档打开原文件
class ErrorBoundary extends React.Component {  componentDidCatch(error: Error, info: React.ErrorInfo) {    // Report to error tracking service    reportError(error, {      componentStack: info.componentStack,      userId: getCurrentUser()?.id,      page: window.location.pathname,    });  }
查看另外 1 个位置
SKILL.md:210来自说明文档打开原文件
// Server-side error reportingapp.use((err: Error, req: Request, res: Response, next: NextFunction) => {  reportError(err, {    method: req.method,    url: req.url,    userId: req.user?.id,  });
会不会删除文件或一直在后台运行?检查是否大范围删除文件、改写磁盘,或设置自动启动。发现 1 项风险
中风险

回滚模板会创建并推送 Git 反向提交,可能永久改变错误的远程分支

原文依据:1 处
发现了什么

模板把 `git revert <commit> && git push` 描述为“部署旧版本”。该命令实际会在当前分支创建反向提交,并用当前 Git 凭据推送;它没有确认仓库、分支、提交范围、保护规则或审批。它也不保证运行中的服务已回滚。

为什么需要注意

在错误分支或错误提交上运行可能撤销无关代码并改变共享远程历史;团队还可能误以为生产已恢复,而部署系统并未使用该提交。

回滚模板把 `git revert <commit> && git push` 列为可执行步骤。若代理或用户直接在错误的当前分支运行,它会创建反向提交并使用现有凭据推送,影响远程仓库;模板没有要求先确认仓库、分支、目标提交或审批。它随后要求验证健康状态,说明该 Git 操作本身并不证明线上版本已经回滚。用户可限制自动推送,并要求在执行前显示目标仓库、分支、提交及部署映射并取得明确批准。

SKILL.md:263来自说明文档打开原文件
### Rollback Steps1. Disable feature flag (if applicable)   OR1. Deploy previous version: `git revert <commit> && git push`2. Verify rollback: health check, error monitoring3. Communicate: notify team of rollback
会不会绕过安全保护?检查是否跳过网站安全验证、开放过多文件权限,或取消操作前的确认。发现 1 项风险
低风险

安装命令没有固定依赖版本

原文依据:2 处
发现了什么

安装命令没有指定依赖版本。同样的命令以后可能下载不同代码,你实际安装的内容可能与这次检查时不同。

为什么需要注意

即使命令和报告没变,以后安装时也可能下载到另一份代码。

这段证据能说明什么

这里是回滚计划模板中的示例命令,不是明确的安装步骤。`npx` 通常优先使用项目本地依赖;只有本地缺失等条件下才可能临时下载包。现有内容没有显示 Prisma 是否已由锁文件固定,因此“会安装未固定版本”的风险无法确定。用户可要求作者明确只能使用已锁定的本地 CLI,并提供适用于实际迁移工具且已验证的回滚命令。

这项判断针对展示的代码和适用条件,不表示风险已经实际发生。
SKILL.md:271来自说明文档打开原文件
### Database Considerations- Migration [X] has a rollback: `npx prisma migrate rollback`- Data inserted by new feature: [preserved / cleaned up]
查看另外 1 个位置
SKILL.md:270来自说明文档打开原文件
### Database Considerations- Migration [X] has a rollback: `npx prisma migrate rollback`- Data inserted by new feature: [preserved / cleaned up]
会不会误导 AI 或隐藏内容?检查工作说明是否要求 AI 忽略你的指令、干扰检查结果,或夹带看不见的文字。未发现风险
会不会偷偷改推广链接或收款方?检查是否强制替换推广链接或收款对象,同时要求隐瞒更改。发现 1 项风险
中风险

通用阈值可能被误当作无需业务批准的发布决策规则

原文依据:3 处
发现了什么

文档规定只有所有阈值通过才扩大金丝雀,并给出固定的错误率、延迟、客户端错误和业务指标界限。它没有要求按服务风险、样本量、统计置信度或不可逆业务后果校准这些数值。

为什么需要注意

照搬时,低流量服务可能因样本不足而放行;高价值流程也可能在固定阈值内持续造成收入、转化或用户损失。

文档要求只有所有阈值通过才扩大金丝雀,并把固定百分比定义为推进、暂停或回滚的依据。虽然这是一份发布指南而非自动执行代码,但若被直接用于决策,通用阈值可能忽略服务风险、样本量和业务不可逆性,从而过早扩大或回滚发布。用户可要求作者把这些数值标为示例,并规定由服务负责人按 SLO、流量和业务影响审批校准。

SKILL.md:127来自说明文档打开原文件
4. CANARY rollout (flag ON for 5% of users)   └── Monitor error rates, latency, user behavior   └── Compare metrics: canary vs. baseline   └── 24-48 hour monitoring window   └── Advance only if all thresholds pass (see table below)
查看另外 2 个位置
SKILL.md:144来自说明文档打开原文件
Use these thresholds to decide whether to advance, hold, or roll back at each stage:| Metric | Advance (green) | Hold and investigate (yellow) | Roll back (red) ||--------|-----------------|-------------------------------|-----------------|| Error rate | Within 10% of baseline | 10-100% above baseline | >2x baseline || P95 latency | Within 20% of baseline | 20-50% above baseline | >50% above baseline || Client JS errors | No new error types | New errors at <0.1% of sessions | New errors at >0.1% of sessions || Business metrics | Neutral or positive | Decline <5% (may be noise) | Decline >5% |
SKILL.md:142来自说明文档打开原文件
### Rollout Decision ThresholdsUse these thresholds to decide whether to advance, hold, or roll back at each stage:| Metric | Advance (green) | Hold and investigate (yellow) | Roll back (red) ||--------|-----------------|-------------------------------|-----------------|| Error rate | Within 10% of baseline | 10-100% above baseline | >2x baseline || P95 latency | Within 20% of baseline | 20-50% above baseline | >50% above baseline || Client JS errors | No new error types | New errors at <0.1% of sessions | New errors at >0.1% of sessions || Business metrics | Neutral or positive | Decline <5% (may be noise) | Decline >5% |

Skill 逻辑拆解

8 个说明模块

该 Skill 是一份生产发布操作指南,要求发布前检查测试、安全、基础设施、监控和回滚准备;提供的是清单与示例,没有随附可自动执行的脚本。

查看原文
SKILL.md:10来自说明文档打开原文件
Ship with confidence. The goal is not just to deploy — it's to deploy safely, with monitoring in place, a rollback plan ready, and a clear understanding of what success looks like. Every launch should be reversible, observable, and incremental.
SKILL.md:311来自说明文档打开原文件
Before deploying:- [ ] Pre-launch checklist completed (all sections green)- [ ] Feature flag configured (if applicable)- [ ] Rollback plan documented- [ ] Monitoring dashboards set up- [ ] Team notified of deployment

它建议先在预发布环境验证,再以关闭的功能开关部署生产环境,随后从内部用户和 5% 金丝雀逐步扩大,并在各阶段观察指标。

查看原文
SKILL.md:115来自说明文档打开原文件
```1. DEPLOY to staging   └── Full test suite in staging environment   └── Manual smoke test of critical flows2. DEPLOY to production (feature flag OFF)   └── Verify deployment succeeded (health check)   └── Check error monitoring (no new errors)3. ENABLE for team (flag ON for internal users)   └── Team uses the feature in production   └── 24-hour monitoring window
SKILL.md:127来自说明文档打开原文件
4. CANARY rollout (flag ON for 5% of users)   └── Monitor error rates, latency, user behavior   └── Compare metrics: canary vs. baseline   └── 24-48 hour monitoring window   └── Advance only if all thresholds pass (see table below)5. GRADUAL increase (25% -> 50% -> 100%)   └── Same monitoring at each step   └── Ability to roll back to previous percentage at any point6. FULL rollout (flag ON for all users)   └── Monitor for 1 week   └── Clean up feature flag```

文档中的 TypeScript 和命令位于代码块或回滚计划模板中。它们是供采用者集成或运行的示例,不是此文件自身执行的代码。

查看原文
SKILL.md:190来自说明文档打开原文件
```typescript// Set up error boundary with reportingclass ErrorBoundary extends React.Component {  componentDidCatch(error: Error, info: React.ErrorInfo) {    // Report to error tracking service    reportError(error, {      componentStack: info.componentStack,
SKILL.md:255来自说明文档打开原文件
```markdown## Rollback Plan for [Feature/Release]### Trigger Conditions- Error rate > 2x baseline- P95 latency > [X]ms- User reports of [specific issue]### Rollback Steps1. Disable feature flag (if applicable)   OR1. Deploy previous version: `git revert <commit> && git push`2. Verify rollback: health check, error monitoring
从这里开始 · 工作说明SKILL.md
shipping-and-launch
连线表示工作说明包含的模块,不是实际运行顺序。点击模块可查看原文。 另有 4 个章节,可在原文件中查看。
文件与检查记录1 个文件

检查范围与遗漏

逐文件查看涉及的内容

下方列出本次涉及的原文范围;纳入检查不代表已查清所有问题。

  • SKILL.md已纳入全文

这份报告只针对上方版本。我们看了拿到的代码和说明文件,没有实际运行 Skill,也没有检查它另外安装的软件包。因此,这不是“保证安全”的承诺;换了版本或使用环境,结果也可能不同。

  • SKILL.md工作说明

代码和说明中提到的操作

安装其他软件包
SKILL.md:271来自说明文档打开原文件
### Database Considerations- Migration [X] has a rollback: `npx prisma migrate rollback`- Data inserted by new feature: [preserved / cleaned up]
读取了多少行
331
文件校验值(用于核对版本)
b22708533783e2e8e9ecb283c133e11c826acad81e4a0aa6651ee18eaf4427db