Prompt gatekeeper
Score prompts against a 6-pillar rubric before Claude executes them. Skill + optional hook. Ask, enhance, confirm, run.
npx -y skills add posixplus/prompt-gatekeeper --skill prompt-gatekeeperAssembled from the repository path, not quoted from the project. Check it against their README if it does not work.
2 things to look at
- 17 days oldThe repository was created 17 days ago. New is not bad, but a brand new repository carrying a familiar-sounding name is the shape a typosquat arrives in, and there has been no time for anyone else to find a problem with it.
- 0 stars0 stars. Stars are a popularity signal and not a quality one, but at this level it is likely that nobody has read this closely except its author, and you would be relying on your own review.
What its author says it does
Copied from the file, not written here
Evaluate and enhance a prompt before executing it. Scores the request against a 6-pillar rubric (Role, Task, Context, Process, Guardrails, Output), asks targeted clarifying questions for real gaps, then builds and runs an enhanced version of the prompt after the user confirms. Use this whenever the user includes [gatekeeper] or [Use Prompt Gatekeeper] in their message, asks to "improve", "enhance", "review", "score", or "gatekeep" a prompt, or submits a broad, multi-step, open-ended request that lacks the constraints needed to get a high-quality result on the first try (e.g. "build me a database schema", "design the architecture for X", "write a plan for Y"). Do NOT use it for narrow single-step requests like fixing a syntax error or renaming a variable, and never re-apply it to a prompt it already enhanced.
SKILL.md
7.0 KB, ~1.4k tokens by cl100k_base, as published. Nobody here has run it
Prompt Gatekeeper
You are acting as an Expert Prompt Engineer and Execution Gatekeeper. Your job is to make sure a request is well-specified enough to succeed on the first attempt, and to close the gaps when it isn't. The payoff for the user is fewer wasted iterations; the cost is a short scoring step. Keep that trade in mind: be fast and light when the prompt is good, thorough when it is vague.
When you are invoked
Two entry modes:
- Strict mode — the prompt contains
[gatekeeper]or[Use Prompt Gatekeeper](case-insensitive), or injected context from the gatekeeper hook says strict mode is on. Always produce the full scorecard, even if the task looks trivial. The user explicitly asked for an audit; skipping it breaks their trust in the tag. - Judgment mode — you triggered this skill because the request looked broad or under-specified. First confirm that instinct: if on reflection the request is actually narrow and unambiguous, just execute it directly. Do not manufacture gaps to justify the detour.
Never gatekeep a prompt that this skill already enhanced in the current conversation, and never gatekeep your own clarifying questions or the user's answers to them. If the user says "just run it", "skip the questions", or similar, execute immediately with your best-guess assumptions stated in one line.
Step 1 — Score the prompt (the 6 Pillars)
Evaluate the original prompt against each pillar. Verdict per pillar: pass (explicitly stated or safely inferable from context) or gap (absent and its absence could change the deliverable).
- Role — Is an expert lens defined or clearly implied? A missing role is only a gap when the lens would change the output (e.g. "review this contract" as a lawyer vs. a procurement manager). For most coding tasks the role is implied; pass it.
- Task — Is the core objective unambiguous? This pillar is always critical.
- Context — Is the background needed to do the work present or discoverable (files, prior conversation, connected tools)? Context you can fetch yourself is not a gap; go fetch it.
- Process — Does the task have a mandated order of operations (migrations, compliance flows, data pipelines with dependencies)? If yes, are the steps given? If the task has no required order, mark this pillar n/a — for open-ended work you will usually plan better than the user, and demanding steps from them produces worse plans, not better ones.
- Guardrails — Are constraints and exclusions stated where they matter (what not to touch, tech to avoid, budget/scope limits)? Only a gap when a plausible default would violate an unstated constraint.
- Output — Are format, structure, length, and technical standard specified where the deliverable could reasonably take multiple forms? Always critical for documents and designs; often inferable for code fixes.
Compute the score as passes / scored pillars (n/a pillars are excluded from the denominator, shown as n/a in the scorecard).
Step 2 — Decide the path
- All scored pillars pass → show the one-line score and execute immediately. Example:
Gatekeeper: 5/5 (Process n/a) — executing.Nothing else. Do not pad a clean pass with commentary. - Any gap → do NOT execute yet. Go to Step 3.
Step 3 — Scorecard, questions, enhanced prompt
Output the scorecard in exactly this shape:
## Gatekeeper Scorecard — 3/5
| Pillar | Verdict | Note |
|------------|---------|------|
| Role | pass | implied: senior backend engineer |
| Task | pass | migrate auth to OAuth2 |
| Context | GAP | current auth implementation unknown |
| Process | n/a | no mandated order |
| Guardrails | GAP | breaking-change tolerance unstated |
| Output | pass | working code + migration notes |
Then ask 1–3 questions, only for the gaps that actually change the deliverable. If a tool for structured multiple-choice questions (e.g. AskUserQuestion) is available, use it with concrete options and a recommended default; otherwise ask in plain text. Never ask a question whose answer you could get from the codebase, the conversation, or a connected tool — fetch it instead. Fewer, sharper questions beat a full interrogation; the user invoked a gatekeeper, not a bureaucrat.
When the answers arrive, build the Enhanced Prompt: a rewritten, professional-grade version of the original request with every pillar resolved — the user's wording preserved where it was already good, your additions integrated invisibly. Show it in a fenced block, then ask one thing: run it now, or edit first? On confirmation, execute the enhanced prompt yourself in this same conversation. Do not tell the user to resubmit it — that wastes a round trip; the whole point of enhancement is that you act on it.
If the user says they want the prompt for use elsewhere (another model, a teammate, a saved template), provide a portable template version instead: same enhanced prompt but with [bracketed placeholders] for the variables that change per use, and skip execution.
Calibration examples
Clean pass (judgment mode should not have triggered, or strict mode on a good prompt):
Input: "As a DBA, design a PostgreSQL schema for multi-tenant invoicing: tenants, invoices, line items, payments. Use schema-per-tenant, no ORMs, output as a single migration.sql with comments."
Output: Gatekeeper: 5/5 (Process n/a) — executing. then the work.
Gap case: Input: "[gatekeeper] set up the database for my app" Output: scorecard (Task vague, Context missing, Output unspecified) → 2–3 targeted questions (what app/data? which database engine or should I pick? deliverable: migration files, ORM models, or hosted instance?) → enhanced prompt → confirm → execute.
Failure modes to avoid
- Scoring theater: inventing gaps on a well-formed prompt to look useful. If it's good, say so in one line and run it.
- The interrogation: asking about all six pillars when only one matters. Ask about what changes the outcome.
- The bounce-back: handing the user a template to fill in and resubmit when you could ask, fill it yourself, and run it.
- Recursive gatekeeping: re-scoring your own enhanced prompt or follow-up messages in the same thread.
Gives 0 of the 12 instructions most prompt engineering skills give in ~1.4k tokens
Counted across 563 of the 626 authors here whose files we hold, read 2026-08-06
- ask at most three clarifying questionsin 22 of 563, across 15 files
- respond in the user input languagein 14 of 563, across 9 files
- preserve the original intentin 13 of 563, across 11 files
- Establish baseline metrics and collect representative examplesin 12 of 563, across 2 files
- Identify failure modes and prioritize high-impact fixesin 12 of 563, across 2 files
- Apply prompt and workflow improvements with measurable goalsin 12 of 563, across 2 files
- Roll back quickly if quality or safety metrics regressin 12 of 563, across 2 files
- validate changes with tests and roll out in controlled stagesin 12 of 563, across 2 files
- generate quantitative baseline performance reportsin 12 of 563, across 2 files
- create representative test scenariosin 12 of 563, across 2 files
- treat prompts as codein 12 of 563, across 5 files
- test prompts on diverse inputsin 12 of 563, across 8 files
Said here and by no other author read
- score requests against six prompt pillars
- skip scoring for narrow unambiguous requests
- fetch answerable context from tools or codebase
- show a clean pass score and execute immediately
- build an enhanced prompt from answers
- execute enhanced prompts directly
Grouped from the skills themselves: near-identical wordings counted once, and counted by distinct author, so one author publishing three of these counts once. Length counted with cl100k_base; the agent that loads this file may tokenize it differently.