scope-lock

Enforce declared file scope for pull requests during code reviews.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/MajorLift/metamask-extension-skills --skill scope-lock
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: scope-lock
Source: https://github.com/MajorLift/metamask-extension-skills/tree/main/domains/ai-collaboration/skills/scope-lock
Command: npx skills add https://github.com/MajorLift/metamask-extension-skills --skill scope-lock

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Enforces declared file scope for PRs to prevent scope creep by requiring explicit justification for changes outside the approved set.

Core Features & Use Cases

  • Declare a target set of files for a PR and automatically validate changes against that set.
  • Provide explicit guidance to reviewers when diffs touch out-of-scope files, enabling quick remediation.
  • Enable deterministic review gates and reduce review churn by codifying scope policy in the unit.

Quick Start

Declare the PR scope and let the system verify diffs against the declared set to enforce boundaries.

Frequently Asked Questions about scope-lock

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

FAQPage Schema
How do I enforce PR scope and prevent out-of-scope file changes during code review?

To enforce PR scope, you declare a target set of files and validate the diff against that set. This requires explicit justification for any changes touching out-of-scope files, providing guidance to reviewers for quick remediation.

What is PR scope creep and how do explicit change bounds help?

PR scope creep occurs when pull requests include unapproved file modifications. Explicit change bounds codify scope policy, creating deterministic review gates that validate diffs against a declared file set to reduce review churn.

How do I set up PR boundary policy using a YAML frontmatter configuration?

You set up PR boundary policy by providing a YAML frontmatter with name and description at the root. The Markdown body serves as operational guidance loaded at activation to declare and enforce your file scope.

Can I use code review automation to require justification for out-of-scope git changes?

Yes, you can use code review automation to require justification for out-of-scope git changes. The system applies this during code reviews for any PR touching files outside the declared set, triggering justification workflows.

What is the best way to define file scope boundaries for pull requests?

The best way to define file scope boundaries is declaring a target set of files for your PR and letting the system verify diffs against that set. This codifies scope policy directly within the unit to enforce boundaries.

Why does my PR scope validation fail when touching unapproved files?

PR scope validation fails when diffs touch files outside the declared set because the system enforces explicit change bounds. It flags these out-of-scope modifications during code review to prevent scope creep and ensure approved boundaries.