AGENT SKILL
scope-guard
Detect repository restructuring, unrelated refactors, test weakening, and incidental changes.
- License 许可
- MIT
- 所属仓库
- syr-cn/PluginRSI
- 最近更新
- 2026-10-18
- Stars
- ★ 61
- Forks
- 1
01 前言 Front Matter
- name
- scope-guard
- description
- Detect repository restructuring, unrelated refactors, test weakening, and incidental changes.
03 SKILL.md 正文
Scope Guard
Internal ID: S19
Category: review
Tier: core
Output: ScopeAssessment
Activate when
- The workflow reaches the
reviewstage and the required inputs are present.
Applicable roles
- Verifier
- Critic
- Finalizer
Required inputs
issue_profilegit_diffrepository_rules
Optional inputs
git_status
Procedure
- Map each changed file and hunk to an acceptance criterion or required validation.
- Flag top-level additions, moves, broad renames, formatting churn, generated files, and unrelated cleanup.
- Check tests and configuration for weakening or unjustified changes.
- Recommend precise reverts for incidental edits.
Verification
- Every retained hunk has a causal justification.
- Untracked and generated artifacts are accounted for.
Stop conditions
- The diff is bounded to the issue and necessary validation.
Constraints
- Do not create a new top-level directory unless the issue explicitly requires it.
- Do not reorganize the repository or refactor unrelated code.
- Do not modify tests merely to hide a failure.
- Do not change dependencies, lockfiles, build files, or CI configuration unless causally necessary.
- Prefer the smallest coherent source patch that satisfies the issue and preserves public behavior.
Allowed tools
git_statusgit_diffread_file
Provenance
Synthesized from design patterns in mini-swe-agent, superpowers, addy-agent-skills.
This file is a normalized reusable abstraction, not a verbatim copy of an upstream skill.
04 同仓库更多 Skills
v0001
暂无简介
★ 61
v0001
暂无简介
★ 61
v0001
暂无简介
★ 61
trajectory-to-lesson
Extract a bounded transferable procedure or anti-pattern from a completed trajectory.
★ 61
test-output-interpretation
Turn noisy command output into a localized failure signature without overclaiming.
★ 61
symbol-localization
Rank functions, classes, methods, or configuration blocks inside selected files.
★ 61