agentleFS
abipalliabipalli/agent-skills/skills/stage-scope/SKILL.md

stage-scope

Skill1 starsChanged 18 days agoApache-2.0View on GitHub

Pipeline stage 2: read-only scoping verdict (proceed, rescoped, spike, need_more_information, defer). Loaded by a pipeline conductor such as feature-pipeline.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 3 are distinctive, and 5 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈3

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 5

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Before deciding, check whether other work already owns these files or this goal:

    line 15
  2. Very specific:

    every scope_sources entry in .feature-pipeline.json

    line 19
  3. Very specific:

    If another lane, PR, plan or run owns the work, the verdict is defer, with align_with naming that work.

    line 22
  4. Very specific:

    If the task needs no PR, touches one file outside any sensitive path, and its acceptance criteria are clear, it does not need the pipeline.

    line 27
  5. Very specific:

    proceed: all five are answered from the item plus the code, and no load-bearing assumption is untested.

    line 57
  6. Distinctive:

    Ask a person when they can answer faster or more reliably than an experiment: an owner's intent, a policy, which credential to use, whether …

    line 72
  7. Distinctive:

    Keep each spike to one question and the cheapest experiment that answers it.

    line 82
  8. Very specific:

    Use the third only when nothing cheaper answers the question, and say why in why_not_cheaper.

    line 89

≈ “Common” is an estimate: at least 1 in 5 of the 408,460 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

stage-scope

Send the intake record to the same scoper session. The scoper reads the code it needs, read-only, and returns the verdict. Record it as the scope stage record.

Look for overlap first

Before deciding, check whether other work already owns these files or this goal:

  • open worktrees: git -C <checkout> worktree list
  • open PRs: gh pr list --repo <github>
  • every scope_sources entry in .feature-pipeline.json
  • other open pipeline runs for this repo: $FP list

If another lane, PR, plan or run owns the work, the verdict is defer, with align_with naming that work.

Trivial tasks

If the task needs no PR, touches one file outside any sensitive path, and its acceptance criteria are clear, it does not need the pipeline. Say so in reasoning and let the conductor demote the run (fp route RUN_ID direct). The verdict is still proceed.

The bar for proceed

The brief must answer all five:

  1. What to change: the observable behaviour after the change.
  2. Where to look: files, modules or entry points, confirmed in the code.
  3. What pattern to copy: an existing implementation of something similar.
  4. How success is checked: the tests or commands that prove it.
  5. Which approach: 2–3 viable approaches, each with its trade-off, and the one picked with the reason. One obvious approach is fine; say why the others don't fit. When the choice turns on intent, policy or ownership, it is a need_more_information question, not your call. These become the PR's "alternatives considered".

A brief also rests on assumptions about the world outside the code:

  • which configuration is live in an environment;
  • which version a client talks to;
  • whether a key, role or permission exists;
  • whether an approach works at all.

List each assumption the plan depends on. If one is wrong, the build fails late, after real work or real side effects.

Verdicts

  • proceed: all five are answered from the item plus the code, and no load-bearing assumption is untested.
  • rescoped: the ask is valid but the wrong size or shape: too big for one change, or it hides a prerequisite. Give the smallest coherent slice that ships value, and put the rest in deferred_remainder.
  • spike: the brief is otherwise clear, but one or more assumptions can only be settled by an experiment. List them as spikes; stage-spike runs them.
  • need_more_information: a gap only a person can close. Each question offers options and a recommendation.
  • defer: the work should not happen now. It is blocked by another change, a duplicate, already done, or out of scope for this repo. Name the blocker in blocked_by, or the overlapping work in align_with.

Spike or ask?

Ask a person when they can answer faster or more reliably than an experiment: an owner's intent, a policy, which credential to use, whether a cost is acceptable.

Spike when the answer lives in the system and anyone's memory of it may be stale: what a service actually enforces, what a client actually parses, whether a flow actually works end to end. A claim from a ticket or a chat that the plan depends on ("X isn't enabled there yet") is a spike, not a fact.

Writing spikes

Keep each spike to one question and the cheapest experiment that answers it. Prefer, in order:

  1. a read-only probe;
  2. a local run;
  3. a run against shared or paid infrastructure.

Use the third only when nothing cheaper answers the question, and say why in why_not_cheaper. Allow at most 3 spikes. If more are needed, the work is not understood yet, so the verdict is need_more_information.

A rerun of scope after the spike stage cannot return spike.

Record

{"scope": {"status": "ok", "verdict": "proceed", "summary": "", "reasoning": "",
  "brief": {"what": "", "where": [], "pattern": "", "success_check": [],
            "approaches": [{"approach": "", "tradeoff": ""}], "chosen": "", "why": ""},
  "assumptions": [{"assumption": "", "tested": "yes|no|n/a", "evidence": ""}],
  "risk": "low|medium|high",
  "sensitive_areas": [],
  "questions": [{"question": "", "options": [], "recommendation": ""}],
  "spikes": [
    {"spike_id": "", "assumption": "", "why_it_matters": "",
     "experiment": "", "class": "read_only|local|side_effects",
     "why_not_cheaper": "", "timebox_minutes": 30,
     "pass_signal": "", "fail_signal": "", "if_pass": "", "if_fail": ""}
  ],
  "rescope_delta": "",
  "deferred_remainder": [],
  "blocked_by": "",
  "align_with": "",
  "next": "build"}}
  • sensitive_areas lists anything touching security, auth, money, data migrations, public APIs, CI or dependencies. Auto-approval refuses any run where this list is not empty.
  • if_pass and if_fail say what the brief or verdict becomes for each result, so the rerun after spikes is mechanical.
  • risk must be low for auto-approval. When in doubt, pick the higher risk.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.