scope

GitHub

审查写入范围提案的完整性与歧义性,基于公理推导包含/排除模式,识别遗漏路径和生成伴侣,并提供字节级恢复仪式指导。

images/gemini/skills/scope/SKILL.md boshu2/agentops

Trigger Scenarios

review write scope check scope boundaries scope this change

Install

npx skills add boshu2/agentops --skill scope -g -y
More Options

Non-standard path

npx skills add https://github.com/boshu2/agentops/tree/main/images/gemini/skills/scope -g -y

Use without installing

npx skills use boshu2/agentops@scope

指定 Agent (Claude Code)

npx skills add boshu2/agentops --skill scope -a claude-code -g -y

安装 repo 全部 skill

npx skills add boshu2/agentops --all -g -y

预览 repo 内 skill

npx skills add boshu2/agentops --list

SKILL.md

Frontmatter
{
    "name": "scope",
    "context": {
        "intent": {
            "mode": "none"
        },
        "window": "isolated",
        "sections": {
            "exclude": [
                "HISTORY",
                "INTEL",
                "TASK"
            ]
        },
        "intel_scope": "none"
    },
    "consumes": [
        "proposed-write-scope"
    ],
    "metadata": {
        "tier": "meta",
        "effects": [],
        "disposition": "keep_specialist",
        "capabilities": [
            "scope_review"
        ],
        "dependencies": [],
        "canonical_status": "canonical"
    },
    "produces": [
        "scope-review"
    ],
    "practices": [
        "ddd-bounded-context",
        "design-by-contract"
    ],
    "context_rel": [
        {
            "kind": "supplier-to",
            "with": "plan"
        }
    ],
    "description": "Review the bead or caller intent write scope for completeness and ambiguity. Triggers: \"review write scope\", \"check scope boundaries\", \"scope this change\".",
    "hexagonal_role": "supporting",
    "output_contract": "response: proposed write_scope.include\/exclude plus gaps and ambiguities",
    "skill_api_version": 1
}

Scope — Review a proposed write scope

Review the write scope in the existing bead or caller intent. This skill is advisory: it does not create a second planning artifact, write a lock, install a hook, block an edit, or claim paths.

Inputs

  • One active behavior and its acceptance scenarios.
  • Proposed include and exclude patterns.
  • Known generated companions and fixture/projection paths.
  • Explicit non-goals.

Procedure

  1. Map each acceptance criterion to the smallest source paths that may change.
  2. Add owned generated companions that must move with those sources.
  3. Check whether any include/exclude patterns overlap or are too broad to prove.
  4. Identify likely paths the proposal omitted.
  5. Return a corrected proposal and the reasons for each change, then stop.

The caller decides whether to adopt the proposal in the original intent source, and Validate independently compares runtime-derived changed paths with that scope.

Axiom-kernel framing

Derive the scope from axioms, not enumeration instinct. State the small set of facts the acceptance makes true — "behavior X lives in root A", "projection B is generated from A", "history under C is frozen" — and derive every include and exclude pattern from exactly one axiom. A pattern with no supporting axiom is unjustified breadth; an axiom with no pattern is a gap. Both go in the review output. Scopes assembled by listing directories that feel related are the vibes perimeter failure mode: they cannot be defended when Validate finds a path on the boundary, because nobody can say why the line is where it is. Stop condition: the review is complete when the axiom-to-pattern mapping has no unmapped members on either side.

Byte-verified recovery ceremony

When the review finds that protected paths were already touched — or the caller asks how a scope violation should be unwound — the advisory answer is a ceremony, not a hand-wave: identify the known-good source for each affected path (committed state, snapshot, or generated-from-source), restore, then verify byte-for-byte that restored content matches the known-good bytes (content hash comparison, not visual diff or "looks right"). Recovery declared on inspection alone is the eyeballed restore failure mode: a file that looks restored can still differ in bytes that matter. The ceremony's stop condition is a hash match for every affected path; any path with no known-good source to verify against is reported as unrecoverable-as-scoped, and the caller decides.

Output

write_scope:
  include: ["bounded/source/**"]
  exclude: ["bounded/source/generated-by-other-owner/**"]
generated_companions: ["bounded/generated/**"]
gaps: []
ambiguities: []

Checks

  • Patterns are normalized repository-relative paths.
  • Includes cover the behavior without granting unrelated directories.
  • Excludes do not contradict required changes.
  • Generated companions are explicit.
  • No ownership, scheduling, Git, hook, retry, release, or delivery state is introduced.

Failure behavior

If the scope cannot be made unambiguous from the supplied acceptance, report the missing facts and stop. The caller may revise the intent in a new action.

Version History

  • 3f402e5 Current 2026-07-24 22:08

Same Skill Collection

images/gemini/skills/account-rotation/SKILL.md
images/gemini/skills/agent-mail/SKILL.md
images/gemini/skills/agent-native/SKILL.md
images/gemini/skills/agy-native/SKILL.md
images/gemini/skills/anti-ceremony/SKILL.md
images/gemini/skills/automation-shape-routing/SKILL.md
images/gemini/skills/bootstrap/SKILL.md
images/gemini/skills/cass/SKILL.md
images/gemini/skills/cc-hooks/SKILL.md
images/gemini/skills/codebase-recon/SKILL.md
images/gemini/skills/codex-exec/SKILL.md
images/gemini/skills/converter/SKILL.md
images/gemini/skills/council/SKILL.md
images/gemini/skills/craft-goal/SKILL.md
images/gemini/skills/dcg/SKILL.md
images/gemini/skills/doc/SKILL.md
images/gemini/skills/domain/SKILL.md
images/gemini/skills/fitness/SKILL.md
images/gemini/skills/goals/SKILL.md
images/gemini/skills/handoff/SKILL.md
images/gemini/skills/idea-genie/SKILL.md
images/gemini/skills/implement/SKILL.md
images/gemini/skills/learn/SKILL.md
images/gemini/skills/ms/SKILL.md
images/gemini/skills/ntm/SKILL.md
images/gemini/skills/operationalize/SKILL.md
images/gemini/skills/pattern-mining/SKILL.md
images/gemini/skills/plan/SKILL.md
images/gemini/skills/postmortem/SKILL.md
images/gemini/skills/premortem/SKILL.md
images/gemini/skills/product/SKILL.md
images/gemini/skills/rch/SKILL.md
images/gemini/skills/reality-check/SKILL.md
images/gemini/skills/refactor/SKILL.md
images/gemini/skills/research/SKILL.md
images/gemini/skills/reverse-engineer/SKILL.md
images/gemini/skills/rpi/SKILL.md
images/gemini/skills/sbh/SKILL.md
images/gemini/skills/scaffold/SKILL.md
images/gemini/skills/security/SKILL.md
images/gemini/skills/shared/SKILL.md
images/gemini/skills/skill-builder/SKILL.md
images/gemini/skills/standards/SKILL.md
images/gemini/skills/status/SKILL.md
images/gemini/skills/swarm/SKILL.md
images/gemini/skills/test/SKILL.md
images/gemini/skills/toil-mining/SKILL.md
images/gemini/skills/using-flywheel/SKILL.md
images/gemini/skills/using-gc/SKILL.md

Metadata

Files
0
Version
7b07a7d
Hash
ff943beb
Indexed
2026-07-24 22:08

inicio - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-08-20 05:27
浙ICP备14020137号-1 $mapa de visitantes$