five-gate-method

five-gate-method is a skill for Claude Code, Codex from AdityaVasireddy/agent-skills. It costs 220 tokens per session (3,110 once invoked), scanned A, original, MIT.

A five-step working method for difficult, multi-step tasks such as debugging, building software, or analyzing unfamiliar data.

In plain words
What is it for?
Use it to define the task, gather evidence, test competing explanations, verify the outcome, and report what is known with appropriate confidence.
Why use it?
It helps prevent solving the wrong problem, relying on false assumptions, repeating a failed approach, or claiming success without checking the result.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions AGENTS.md.

Good fit Use it to define the task, gather evidence, test competing explanations, verify the outcome, and report what is known with appropriate confidence.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/adityavasireddy/agent-skills/five-gate-method
Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

Any agent
npx skills add AdityaVasireddy/agent-skills --skill five-gate-method
Clone the repo
git clone --depth 1 https://github.com/AdityaVasireddy/agent-skills

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for five-gate-method

README.md
[![agentmods](https://agentmods.dev/badge/skills/adityavasireddy/agent-skills/five-gate-method.svg)](https://agentmods.dev/skills/adityavasireddy/agent-skills/five-gate-method)
Your own site
<a href="https://agentmods.dev/skills/adityavasireddy/agent-skills/five-gate-method"><img src="https://agentmods.dev/badge/skills/adityavasireddy/agent-skills/five-gate-method.svg" alt="Measured on agentmods" height="20"></a>
Per session 220 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,110 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5.1 $0.00220 $0.03110
Opus 5 $0.00110 $0.01555
Sonnet 5 $0.00044 $0.00622
Haiku 4.5 $0.00022 $0.00311

Measured 8d ago against content hash 11caf15d8971, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-08, from the pricing page.

Security

Grade A, and why

five-gate-method scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 8d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

five-gate-method/SKILL.md · 146 lines

How it starts

The opening of the file, as written. The whole thing — 146 lines — stays where its author put it; the contents beside it link to each section on GitHub.

The Five-Gate Method

An operating discipline for hard tasks, written down so any capable model can run it. It doesn't transfer intelligence; it transfers how the work is managed: how to scope, gather evidence, attack your own answers, verify, and report.

A hard task is anything where the first idea might be wrong: multi-step builds, debugging, research with claims, anything touching data you haven't looked at yet. For a one-file edit or a simple lookup, skip the gates and just do the work.

Why the gates exist

Each gate eliminates a different class of failure:

  • Gate 1 prevents solving the wrong problem.
  • Gate 2 prevents reasoning from false premises.
  • Gate 3 prevents fixation on the first explanation.
  • Gate 4 prevents confusing execution with success.
  • Gate 5 prevents overstating certainty.

The loop: five gates, in order

Every hard task passes through five gates. A gate must pass before the next one opens. When a task stalls or a result surprises you, name which gate you're at and re-run it.

Rollback goes as deep as the damage: a later gate can invalidate an earlier one. When verification contradicts the plan, return to the earliest gate whose assumptions changed — not merely the previous gate. A failed Gate 4 sometimes means Gate 2 gathered thin evidence, and sometimes means Gate 1 defined the wrong "done."

Entering mid-task. You don't have to start at Gate 1. Most of the time this discipline is needed, work is already underway and something has gone sideways. Find the earliest gate whose pass condition you cannot currently produce evidence for, and resume there. If you can't name what done looks like, you're at Gate 1 regardless of how much has been built.

Rollback is bounded. If the same gate fails twice on the same task, stop cycling — that repetition is itself a finding. Either the task as scoped is not achievable with the evidence available, or a load-bearing unknown from Gate 1 was never named. Go to Gate 5 and report the incomplete state honestly: what is verified, what is blocked, and what you would need to unblock it. Reporting an unfinished task accurately is a pass, not a failure; grinding the loop to avoid saying so is a Gate 5 violation.

Read the full file on GitHub · 146 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 8d ago First seen · 146 lines · 220 tokens per session scan A 11caf15d8971

Subscribe to this mod's changes

five-gate-method is a skill published in the GitHub repository AdityaVasireddy/agent-skills (2 stars, last pushed today), licensed MIT. It adds 220 tokens to every session and 3,110 once invoked, about $0.0011 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

prisma-client-api

Prisma Client API reference covering model queries, filters, operators, and client methods. Use when writing database queries, using CRUD operations, filtering data, or configuring Prisma Client. Triggers on "prisma query", "findMany", "create", "update", "delete", "$transaction".

nitrocloudofficial/nitrostack · 64 tokens

sns

AWS SNS notification service for pub/sub messaging. Use when creating topics, managing subscriptions, configuring message filtering, sending notifications, or setting up mobile push.

itsmostafa/aws-agent-skills · 32 tokens

cognito

AWS Cognito user authentication and authorization service. Use when setting up user pools, configuring identity pools, implementing OAuth flows, managing user attributes, or integrating with social identity providers.

itsmostafa/aws-agent-skills · 38 tokens

eventbridge

AWS EventBridge serverless event bus for event-driven architectures. Use when creating rules, configuring event patterns, setting up scheduled events, integrating with SaaS, or building cross-account event routing.

itsmostafa/aws-agent-skills · 41 tokens

iam

AWS Identity and Access Management for users, roles, policies, and permissions. Use when creating IAM policies, configuring cross-account access, setting up service roles, troubleshooting permission errors, or managing access control.

itsmostafa/aws-agent-skills · 42 tokens

agent-ready-cloudflare

Audit and improve website readiness for AI agents using the Cloudflare "Is It Agent Ready?" scanner (isitagentready.com). Covers scanning via API, interpreting results, generating implementation prompts, and fixing every check. Use when the user mentions "agent ready", "isitagentready", "AI agent scan", "agent…

fabricioctelles/skills · 158 tokens