Token导航 LogoToken导航TokenDH.com
运维和基础设施执行命令github未标认证来源可访问clear审计提醒

auditing-pre-release-security审核预发布安全性

Agent Skill

用于辅助安全审计、权限检查、凭据风险、认证流程和常见漏洞排查。它适合让 Agent 梳理敏感配置、检查依赖风险、分析鉴权逻辑或生成安全复核清单。使用时不能把工具输出直接当最终结论,涉及密钥、令牌、用户数据或生产系统时,应先确认最小权限、脱敏方式和操作边界。

总安装

1,435

周安装

61

GitHub Stars

2,410

下载量

503
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

3

许可证

MIT

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:auditing-pre-release-security(审核预发布安全性)
来源仓库:https://github.com/onekeyhq/app-monorepo
仓库路径:skills/auditing-pre-release-security
安装命令:
npx skills add https://github.com/onekeyhq/app-monorepo --skill auditing-pre-release-security
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。不同来源提供的安装方式可能略有差异;本站展示可直接复制的安装命令,安装前请核对来源页面。

skills.shnpx skills
npx skills add https://github.com/onekeyhq/app-monorepo --skill auditing-pre-release-security

简介

用于任意两个 Git 提交间的安全差异审计,覆盖代码、依赖与 CI/CD 变更。

  • 自动检测安全回归、依赖升级风险与工作流配置隐患,输出中文报告。
  • 适用于发布前的安全门禁与回归测试补充,防止漏洞进入生产环境。
  • 必须明确 BASE_REF 与 TARGET_REF,且仅分析差异范围,不修改源码。
  • auditing-pre-release-security 属于运维和基础设施类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Pre-Release Security Audit (Between Any Two Git Refs)

This skill compares any two git refs (tag/branch/commit SHA) and audits:

  • Source-code diffs for security regressions
  • Dependency changes (direct + transitive) and lockfile determinism
  • Newly introduced package behaviors inside node_modules
  • CI/CD workflow risks in .github/workflows and build configs (Expo/EAS)

The output is a Chinese Markdown report, with a unique title and filename containing the refs to avoid overwrites.

0) Mandatory: confirm audit range (BASE_REF, TARGET_REF)

Ref rules

  • Accepted: tag / branch / commit SHA
  • BASE_REF = starting point, TARGET_REF = ending point (release candidate)

If refs are not explicitly provided by the user

Ask exactly once before doing any work:

Which two git refs should I compare? (e.g. v5.19.0release/v5.20.0, or mainfeature/xxx)

If only one ref is provided

Ask for the missing ref. Do not assume defaults unless the user explicitly says:

  • “latest tag → HEAD”
  • or provides an equivalent instruction.

1) Output requirements (hard constraints)

  • Report language: Chinese
  • Report filename must include refs to avoid collisions:

- security-audit__${BASE_REF_SAFE}__to__${TARGET_REF_SAFE}.md - BASE_REF_SAFE/TARGET_REF_SAFE must replace / with __ (or -) for filesystem safety.

  • Report title must include refs:

- # 安全预审报告(${BASE_REF} → ${TARGET_REF})

  • Evidence must be traceable: file path + line numbers (when possible) + short snippet.

2) Safety rules (must follow)

  • Never print or paste secrets: mnemonics/seed phrases, private keys, signing payloads, API keys, tokens, cookies, session IDs.
  • If command outputs may contain secrets (env dumps, logs), redact before writing to the report.
  • Prefer short excerpts; do not paste large bundles.

3) Execution checklist

Step A — Verify refs and collect context

  • Verify both refs exist:

- git rev-parse --verify "${BASE_REF}^{commit}" - git rev-parse --verify "${TARGET_REF}^{commit}"

  • Record:

- BASE_SHA, TARGET_SHA - Working tree clean? git status --porcelain

  • List changed files:

- git diff --name-status "${BASE_REF}..${TARGET_REF}"

Step B — Collect key diffs

Focus on:

  • Source: **/*.{js,ts,tsx}
  • Dependencies: **/package.json, yarn.lock
  • CI: .github/workflows/**
  • Expo/EAS configs: eas.json, app.json, app.config.*, build scripts

Step C — Dependency delta (direct deps)

  • For each changed package.json, compute:

- Added / removed / updated deps (include workspace path)

  • Version range policy checks:

- Flag * / latest as High risk - Flag ^ / ~ as Medium risk (explain why this matters for release determinism)

  • If deps changed but yarn.lock did not, flag as High risk.

Step D — Lockfile determinism (best-effort)

  • Detect Yarn flavor: yarn -v
  • Try one:

- Yarn Berry: yarn install --immutable - Yarn Classic: yarn install --frozen-lockfile

  • Record anomalies: resolutions, patches, non-registry sources, unexpected downloads.

Step E — Known vulnerability scanning (best-effort)

  • yarn audit (if available)
  • osv-scanner against yarn.lock (if available)
  • If missing tools, note “not run + reason”.

Step F — New dependency deep inspection (node_modules)

For each newly added direct dependency:

  • Inspect <pkg>/package.json:

- preinstall, install, postinstall scripts - entry points (main, module, exports) - binary/native artifacts (bin/, .node)

  • Keyword scan (case-insensitive) in its installed code:

- Sensitive: privateKey|mnemonic|seed|keystore|passphrase - Storage: localStorage|indexedDB|AsyncStorage|keychain|keystore - Network: fetch|axios|XMLHttpRequest|http|https|WebSocket|ws - Dynamic exec: eval|new Function|child_process|spawn|exec - Install hooks: preinstall|install|postinstall

  • If hits exist: include path + line + short snippet and explain expected vs suspicious behavior.
  • Assign risk rating: Low / Medium / High.

Step G — Source diff security review (AI reasoning step)

Within ${BASE_REF}..${TARGET_REF} diffs, prioritize:

  • signing flows / key handling / mnemonic
  • network layer / RPC / telemetry
  • storage layer (local/secure storage)
  • logging / analytics / error reporting Output: suspicious changes list (each with summary, impact, evidence excerpt).

Step H — CI/CD & build pipeline risks

Inspect .github/workflows/** and build configs:

  • Flag uses:...@latest (High)
  • Flag floating tags not pinned to SHA (Medium, note risk)
  • Check permissions: for over-broad scopes
  • Flag remote script execution patterns (curl|bash, remote downloads)
  • Note install safety (--ignore-scripts, etc.)
  • Expo/EAS: flag hooks that download remote code, run arbitrary scripts, or leak env into logs

4) Report template (must follow; Chinese output)

Write the report to: security-audit__${BASE_REF_SAFE}__to__${TARGET_REF_SAFE}.md

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

04

需要参考平台分布和安装热度时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

补充不同宿主或平台的使用分布数据

能力 5

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Claude Code

29.06%
按下载量换算146

Gemini CLI

22.69%
按下载量换算114

Codex

16.61%
按下载量换算84

Antigravity

13.21%
按下载量换算66

OpenCode

7.16%
按下载量换算36

github-copilot

3.35%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

可疑

权限和风险

执行命令

安装流程涉及命令执行,可能通过 npx skills add https://github.com/onekeyhq/app-monorepo --skill auditing-pre-release-security;npx skills add onekeyhq/app-monorepo --skill "auditing-pre-release-security" 联网下载 Skill 或依赖。用户安装前应确认命令来源、仓库内容和执行环境。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。

来源信息

继续浏览同类 Skills