Token导航 LogoToken导航

Agent Skill · 研究检索

staged-changes-review(阶段性变更审查)

staged-changes-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

staged-changes-review 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为接触敏感数据;许可证信息还不明确,第三方扫描有未通过项,按安装量在研究检索类的 73,675 个 Skill 里排第 50,488。

总安装 612周安装 25GitHub Stars 1下载 198核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

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

请帮我安装这个 Agent Skill:staged-changes-review(阶段性变更审查)
来源仓库:https://github.com/adonis0123/adonis-skills
仓库路径:skills/staged-changes-review
安装命令:
npx skills add https://github.com/adonis0123/adonis-skills --skill staged-changes-review
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/adonis0123/adonis-skills --skill staged-changes-review

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

staged-changes-review 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词或任务场景快速定位候选结果时使用。适用于研究检索类任务,支持基于来源线索和仓库路径进行信息聚合与过滤。

通过 npx skills add 命令从指定 GitHub 仓库安装,需结合原始 README 确认具体用法。安装前建议核实权限范围、维护状态,并注意是否涉及联网、命令执行或文件读写操作。适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/staged-changes-review

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/adonis0123/adonis-skills --skill staged-change…;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它需要接触敏感数据,先在测试目录或测试账号里跑,确认没问题再放到正式项目。

常见问题

6 条

staged-changes-review 怎么安装?

在终端执行 npx skills add https://github.com/adonis0123/adonis-skills --skill staged-changes-review。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

staged-changes-review 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

staged-changes-review 需要什么权限?

权限级别是接触敏感数据。该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

staged-changes-review 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

staged-changes-review 用的人多吗?

公开数据是累计安装 612 次,近一周安装 25 次,下载 198 次,GitHub 1 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

staged-changes-review 安全吗?

第三方扫描有未通过项,风险较高。除非你确认过源码,否则不建议直接安装到常用环境。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。

先想清楚的地方

  • 需要接触敏感数据,装到常用环境前要先评估影响面。
  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方扫描存在提醒项或未通过项,需要人工逐条确认。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。

不太适合

  • 环境里有大量密钥、凭证,不方便给第三方 Skill 读取的人。
  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
staged-changes-review

阶段性变更审查 · 本页

6121接触敏感数据未明确未通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

Staged Changes Review

Checklist-driven, deterministic review of Git staged changes. Produces reproducible findings by combining grep-based scanning with closed-question semantic analysis.

输出要求

重要:本技能必须使用中文输出所有分析结果和建议。

  • 语言: 始终使用中文回复
  • 编码: UTF-8
  • 风格: 专业、简洁,发现必须附带代码证据

Workflow (8 Steps)

Execute steps in strict order: 0 → 0.5 → 1 → 2 → 2.5 → 3 → 4 → 5. Do not skip or reorder any step.

Step 0: Collect Changes

git diff --cached
git diff --cached --stat
git diff --cached --name-status

If no staged changes exist, output "无暂存变更,审查终止。" and stop.

Step 0.5: Detect Project Profile

Detect the project type once to determine which rule categories to activate.

# Detect framework
python3 -c "
import json, sys
try:
    with open('package.json') as f:
        d = json.load(f)
    deps = {**d.get('dependencies', {}), **d.get('devDependencies', {})}
    if 'next' in deps:
        print('react-nextjs')
    elif 'react' in deps:
        print('react-app')
    else:
        print('generic')
except:
    print('generic')
" 2>/dev/null || echo "generic"

# Count staged file types
git diff --cached --name-only | grep -cE '\.(tsx|jsx)$' || echo 0
git diff --cached --name-only | grep -cE '\.py$' || echo 0

Record the detected profile — it determines active rule categories:

ProfileConditionActive Rule Categories
react-nextjsnext in dependenciesSEC + REACT + PERF + ASYNC + STR + LOGIC/BREAK + BIZ + REPO
react-appreact but no nextSEC + REACT + ASYNC + STR + LOGIC/BREAK + BIZ + REPO (001-007)
python-genericPython files majority, no package.jsonSEC + STR + LOGIC/BREAK + BIZ + REPO (001-006)
genericNo package.json or detection failedSEC + STR + LOGIC/BREAK + BIZ + REPO (001-006)

REACT-* and PERF-* rules are skipped entirely for python-generic or generic profiles. REPO-007 requires react-nextjs or react-app; REPO-008 requires react-nextjs only. If detection fails, default to generic.

Step 1: Classify Files

Classify every staged file into priority tiers using the rules in references/review-rules.md §1.

  • Assign each file exactly one priority (P0–P4).
  • Skip P4 files entirely — do not read or scan them.
  • Sort remaining files by priority (P0 first, P3 last).
  • Record the file list for the report's "审查范围" section.

Step 2: Deterministic Scan

For each file (P0 → P3 order), execute every applicable deterministic rule from references/review-rules.md §2.

Execution method:

  1. Use grep patterns from references/language-patterns.md matching the file's language.
  2. Run each grep against the staged diff (git diff --cached -- <file>) or the file itself.
  3. If a pattern matches, record a finding immediately — no subjective filtering.
  4. Use the severity from references/review-rules.md §4 — do NOT modify severity.

MANDATORY: Every rule × file combination must be executed or explicitly marked N/A (wrong file type or inactive profile). Do not skip rules because "they seem unlikely."

Step 2.5: Impact Scope Analysis

For P0/P1 files, run a one-time impact scope assessment and record results for the "影响范围" section.

# 1. New/modified exported symbols in staged diff
git diff --cached -U0 -- "*.ts" "*.tsx" | grep -E "^\+export (function|const|class|interface|type)"

# 2. API route changes
git diff --cached --name-only | grep -E "app/api/|pages/api/"

# 3. Server Action changes (security impact)
git diff --cached -- "*.ts" "*.tsx" | grep -E '^[+-].*("use server"|'"'"'use server'"'"')'

# 4. Environment variable changes
git diff --cached -- ".env*" 2>/dev/null | grep -E "^[+-][A-Z_]+" | head -10

For each exported symbol found (up to 5 symbols), check reference count:

# Replace SYMBOL_NAME with actual symbol
grep -rl "SYMBOL_NAME" --include="*.ts" --include="*.tsx" src/ 2>/dev/null | wc -l

If no impact scope items are detected, note "无显著影响范围变更" in the report.

Step 3: Semantic Review

For each file (P0 → P3 order), answer every applicable semantic question from references/review-rules.md §3 and §3b.

Execution method:

  1. Read the file's staged diff and surrounding context (use Read tool for full file when needed).
  2. For each semantic rule, answer the closed question with exactly one of:

- YES — issue found. MUST provide: file:line + evidence snippet. - NO — reviewed, no issue found. - N/A — rule does not apply to this file type or change.

  1. Only YES answers produce findings. Use the severity from §4.

BIZ 规则执行说明:

  1. 对 P1 文件,使用 git show HEAD:<path> 获取变更前版本,与暂存版本对比进行 before/after 行为分析。
  2. BIZ findings 必须包含"变更前行为"、"变更后行为"和"影响场景"字段。
  3. 纯重构(逻辑等价变换)不应报为行为变更。
  4. 采样限制: P1 文件超过 10 个时,BIZ 规则仅分析前 5 个文件,并注明"剩余 N 个文件未进行 BIZ 分析(采样限制)"。

MANDATORY: Answer every question. Do not skip questions because context seems insufficient — answer N/A with a brief reason instead.

Step 4: Merge & Deduplicate

  1. Collect all findings from Steps 2 and 3.
  2. Generate a fingerprint for each finding: {ruleId}:{file}:{line}.
  3. Deduplicate by fingerprint — if the same fingerprint appears from both a deterministic and semantic rule, keep the one with higher severity.
  4. Group findings by severity: CRITICAL → HIGH → MEDIUM → LOW.
  5. Apply output budget limits from references/report-template.md §3.

Step 5: Generate Report

Output the report using the exact structure from references/report-template.md §2.

  1. 审查范围: file counts and rule counts.
  2. 影响范围: impact scope analysis results.
  3. 业务影响分析: BIZ findings 的摘要表格(变更文件 / BIZ 规则 / 行为变更摘要)。若无 BIZ 发现,输出"未检测到用户可感知的业务行为变更"。
  4. 发现总览: severity summary table.
  5. 结论: auto-select from references/review-rules.md §5 based on highest severity found.
  6. 分级发现: findings in references/report-template.md §1 format, grouped by severity. BIZ findings 按 severity 归入对应级别。
  7. 文件审查矩阵: per-file summary table.

Execution Constraints (MANDATORY)

These constraints are non-negotiable. Violating any constraint invalidates the review.

  1. No skipping: Every rule must be evaluated against every applicable file. Document N/A explicitly.
  2. No free-form analysis: Only report findings that match a defined rule ID. Do not invent new categories.
  3. Forced answers: Every semantic question must receive YES, NO, or N/A. Leaving a question unanswered is forbidden.
  4. Evidence lock: Every YES finding must cite a specific file:line and include a code snippet. Findings without evidence are invalid.
  5. Severity is immutable: Use the severity from the mapping table. Do not upgrade or downgrade based on subjective judgment.
  6. Conclusion is templated: The conclusion must be one of the four templates in review-rules.md §5. Do not write a custom conclusion.
  7. Fingerprint required: Every finding must include a fingerprint in {ruleId}:{file}:{line} format.

Context Budget Strategy

When staged changes are large (>500 lines or >15 files):

  • P0 files: Always read full content — security-critical.
  • P1 files: Read full diff. If a single file diff >200 lines, focus on: function signatures, exported symbols, error handling blocks, and security-sensitive patterns.
  • P2 files: Read diff only. Focus on SEC rules and BREAK-003/BREAK-004.
  • P3 files: Scan diff headers only. Apply STR rules only.
  • If total context would exceed capacity, process files strictly by priority and stop at capacity with a note: "剩余 N 个低优先级文件未审查".

REACT/ASYNC rule sampling limit: For rules that require Read tool for semantic verification (REACT-001, REACT-003, ASYNC-001, ASYNC-002), if grep returns more than 5 matches, take the first 5 matches only and note "N 处未验证(采样限制)". This prevents excessive Read tool calls.

Validator Interface Contract

This skill's output is consumed by staged-review-validator. The following fields are required for compatibility:

  • Finding title must include [ruleId] prefix (e.g., [SEC-003] SQL 拼接风险)
  • Each finding must include a 指纹 (Fingerprint) field
  • Severity uses 4 levels: CRITICAL / HIGH / MEDIUM / LOW
  • Report structure follows references/report-template.md §2
  • BIZ-* findings 使用 before/after 格式(含"变更前行为"、"变更后行为"、"影响场景"字段),详见 references/report-template.md §1

References

  • references/review-rules.md — Rule definitions, file classification, severity mapping
  • references/report-template.md — Finding format, report structure, output budget
  • references/language-patterns.md — Language-specific grep patterns by rule ID

平台分布

Codex

33.35%
按下载量换算66

Claude

32.16%
按下载量换算64

Cursor

18.75%
按下载量换算37

Gemini CLI

8.74%
按下载量换算17

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

未通过

权限和风险

接触敏感数据

该 Skill 可能接触密钥、Token、环境变量或敏感配置,应进入高风险复核队列,默认不自动发布。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在提醒或未通过项,安装前请自行复核。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills