scope-check

Audit branch changes against main and classify files as owned, shared, or foreign.

2|1|Updated Dec 10, 2025
One-click install
npx skills add https://github.com/inernoro/prd_agent --skill scope-check-inernoro
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scope-check
Source: https://github.com/inernoro/prd_agent/tree/main/.claude/skills/scope-check
Command: npx skills add https://github.com/inernoro/prd_agent --skill scope-check-inernoro

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

分支受控检查:分析当前分支相对于 main 的改动,自动推断正在开发的 Agent,逐文件将变更归类为 owned、shared、或 foreign,并对 shared 文件执行 append-only 检查,输出结构化的审计报告。

Core Features & Use Cases

  • 自动对比分支差异并识别变更。
  • 自动推断目标 Agent,并对文件进行分类(owned、shared、foreign)。
  • 对 shared 文件执行 append-only 检查并输出结构化审计报告。

Quick Start

触发审计后,系统会对比 main 与当前分支的改动、自动推断目标 Agent,逐文件分类并输出结构化审计报告。

Frequently Asked Questions about scope-check

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I audit git branch changes against main before committing?

A branch audit analyzes your current branch diff against main, classifies changed files into owned, shared, or foreign categories, and outputs a structured report for safe handoffs.

How does append-only enforcement work for shared files in a branch audit?

Append-only enforcement for shared files in a branch audit works by inspecting git diffs to ensure changes only add content without modifying existing lines, preventing unauthorized edits in shared ownership areas.

What is file ownership classification when reviewing code diffs?

File ownership classification in code review categorizes changed files into owned, shared, or foreign groups by inferring the target Agent, ensuring changes respect ownership boundaries during branch handoffs.

Do I need git to perform an automated pre-commit boundary audit?

Yes, performing an automated pre-commit boundary audit requires git to inspect branch diffs against main, infer the target Agent, and determine file ownership classifications for the audit report.

What is the best way to ensure safe branch handoffs for multiple agents?

The best way to ensure safe branch handoffs is to run a pre-commit boundary audit that infers the target Agent, classifies changed files into owned, shared, or foreign categories, and enforces append-only rules.

Why does my branch audit report flag foreign files during a code review?

Your branch audit report flags foreign files during a code review because the diff analysis detected changes to files outside the inferred target Agent's ownership, restricting modifications to owned and append-only shared files.