Judges whether proposed work is justified, needs a narrower scope or is unjustified, when the response model proposes new work or the human user asks whether to do it.
Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Necessity Gate?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/aidall-necessity-gate)
---
name: necessity-gate
description: "Judges whether proposed work is justified, needs a narrower scope or is unjustified, when the response model proposes new work or the human user asks whether to do it."
compatibility:
- "Python 3.11+ standard library"
---
# Necessity Gate
The response model applies this gate when defining a new task, skill, file, audit or verification cycle, follow-up, tool, script or reference, including an edit of a production skill. It decides whether the proposed work is justified. A delegate assigned only a specific subtask skips this gate.
## Entry and existing authority
The response model records one of the following when the proposal already belongs to work that the human user's instructions authorize:
- `user-directed: <instruction>` for work that the human user explicitly directed;
- a reference to the task that the response model judged justified under this gate and the applicable substep;
- a retry inside a loop that the response model judged justified under this gate; verification-before-completion selects that retry's checks.
The recorded reason satisfies this gate; the response model must not infer that it needs a new necessity judgment under this gate. Without one of these reasons, it performs the assessment below. Expert confidence that work is “obvious” does not replace the assessment.
## Assess the proposal
1. State one concrete proposed action and outcome.
2. Classify its basis as `reproducible` (observed failing test/command or a symptom the human user reported repeatedly), `evidenced` (a mismatch shown by logs, files, schemas or dependencies), or `speculative` (preference or possible future value).
3. Identify the harm of omitting it: system breakage, work that the human user explicitly requested and that remains unmet, or accumulated future cost. Future cost needs evidence; cleaner presentation alone is not harm.
4. Assess the regression risk to working behavior, dependents, recovery and scope. Reconsider any assertion of zero risk.
5. Select `JUSTIFIED` when supported harm outweighs regression risk, `RESCOPE` when harm is real but scope is wrong, or `UNJUSTIFIED` when the proposal is speculative, riskier than its benefit or padding. Record the reason. Speculative work defaults to rejection unless the assessment establishes exceptional justification.
For an evaluation deliverable that the human user explicitly requested, benchmarking or comparison may be the proper means. For a runtime improvement, the response model names the observed gap in behavior and the expected correction; an evaluation tool's usefulness does not justify adopting a runtime feature or replacing the repair that the human user requested with a new product.
## Output
```text
[necessity-gate] <concrete proposed task>
- classification: reproducible | evidenced | speculative
- harm: <supported harm>
- regression-risk: <risk>
- necessity_verdict: JUSTIFIED | RESCOPE | UNJUSTIFIED
- reason: <decision basis>
- escape-hatch: <human user's instruction or response model's earlier justification under this gate, when used>
```
The response model's `necessity_verdict` judges whether the proposed work is warranted; it does not supply the human user's authorization. In an older result, read `decision: APPROVE`, `MODIFY` and `REJECT` as `JUSTIFIED`, `RESCOPE` and `UNJUSTIFIED`, respectively. If the old and new fields disagree after that mapping, report the conflict and do not select work from that result.
## Failure modes
Without evidence or a directive from the human user, the response model rejects blanket checking, aesthetic cleanup, follow-ups added to fill a report, applying a pattern everywhere, and work inferred merely from a marker in a file. It must not disguise scope expansion as quality improvement.
This gate runs when work is defined or a genuinely new subtask appears. It does not run again for a substep of a task that the response model already judged justified under this gate, an ordinary improvement of an artifact or the next action after verification passes.
## Check usefulness and resources
For checks within existing work, follow verification-before-completion's [Evidence selection and stop gate](../coding-convention/verification-before-completion/SKILL.md#evidence-selection-and-stop-gate). Boundary-contract defines authorization and resource renewal; task-router selects the work.