gateflow

gateflow is a skill for Codex from noho/code-is-cheap. It costs 89 tokens per session (4,593 once invoked), scanned A, original, Apache-2.0.

A gated development workflow for one defined unit of work, such as a feature, bug fix, migration, refactor, or public interface change.

In plain words
What is it for?
Use it to take one work item from code inspection and goal confirmation through planning, implementation, review, deeper review, and a draft pull-request handoff. It does not merge changes or modify external project discussions without permission.
Why use it?
It makes the goal, boundaries, design, implementation, reviews, and acceptance explicit before work is considered finished. A gate is a required checkpoint with an artifact, decision, or validation result.

Skill for Codex

Written for Codex: agents/openai.yaml present.

Good fit Use it to take one work item from code inspection and goal confirmation through planning, implementation, review, deeper review, and a draft pull-request handoff. It does not merge changes or modify external project discussions without permission.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/noho/code-is-cheap/gateflow
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 noho/code-is-cheap --skill gateflow
Clone the repo
git clone --depth 1 https://github.com/noho/code-is-cheap

Made for: 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 gateflow

README.md
[![agentmods](https://agentmods.dev/badge/skills/noho/code-is-cheap/gateflow/github.svg)](https://agentmods.dev/skills/noho/code-is-cheap/gateflow)
Your own site
<a href="https://agentmods.dev/skills/noho/code-is-cheap/gateflow"><img src="https://agentmods.dev/badge/skills/noho/code-is-cheap/gateflow/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for gateflow

Your own site · 80×15
<a href="https://agentmods.dev/skills/noho/code-is-cheap/gateflow"><img src="https://agentmods.dev/badge/skills/noho/code-is-cheap/gateflow.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 89 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 4,593 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. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.00089 $0.04593
Opus 5.5 $0.00036 $0.01837
Sonnet 5.5 $0.00018 $0.00919
Haiku 4.5 $0.00009 $0.00459

Measured 16d ago against content hash a89544cc5a84, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

gateflow 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 16d 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.

skills/gateflow/SKILL.md · 305 lines

How it starts

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

Gateflow

Gateflow 只定义单个 work unit 的流程和 gate。work unit 可以是 feature、issue、bug fix、migration、refactor、 schema/public contract change 或 architecture-sensitive task。

Core Principles

  • 先看代码和事实,再判断 work unit 是否成立。
  • 进入 plan 前,先用通俗语言向用户确认目标、非目标、边界和成功信号。
  • Goal confirmation 是 binding scope contract。改变目标、公共契约、兼容性承诺、验收标准或未获授权的重大架构边界, 先让用户重新确认;已确认目标内、保持对外承诺的必要实现选择和内部重构由总控继续处理,不重复请示已授权的变化。
  • 最小必要设计是减少不必要的机制,不是减少修改行数。基于代码与事实明确目标行为和正确职责 owner,优先复用适用机制; 对已证实的缺陷或结构性问题解决根因,允许范围明确的内部重构或旧机制替换,不靠特例、旁路、重复判断或兜底保留错误模型。 最佳实践须有当前需求、具体风险和收益依据,不为假设未来需求引入框架、抽象或基础设施。
  • 保留可追踪的计划、实现/验证、审核/裁决和交付事实;可同文件维护或引用已有记录,不要求每个 gate 独立文件或 commit。 conversation-only 结果不足以通过 gate。
  • draft PR gate 自动推进到 draft-PR-pass;merge、approve、mark ready for review、request reviewers、delete branch、 对外 comment、创建/修改外部 issue 仍需用户额外授权。

Invocation

典型调用:

使用 $gateflow 开发 <work-unit>。

可选参数:

使用 $gateflow design_doc=<path> base_ref=<ref> 开发 <work-unit>。

如果传入 design_doc,它是当前 work unit 的设计依据之一。若未传入,则以用户需求和代码事实为准。

Preflight

任何 discussion、plan 或文件修改前,先检查:

git branch --show-current
git status --short

如果当前 branch 是 main、master、develop、release/* 或项目定义的 protected trunk branch,先停下来让用户确认创建 工作分支。若 branch、dirty changes 或 scope ownership 不清,也先停下来问用户。

Gate: goal confirmation

进入 plan 前必须完成 goal confirmation:

  • 读取需求、design document(如有)和相关代码;
  • 从第一性原理判断 work unit 是否成立;
  • 复述目标、动机、成功信号、非目标、scope boundary;
  • 说明直接代码证据;
  • 说明本轮不会做的过度设计;
  • 列出 blocking open questions(如有)。

用户确认后才能进入 plan。如果目标不成立、范围过大、动机不足或关键约束缺失,先 discussion,不进入 implementation。

Gate Order

按以下顺序执行适用步骤;fix/re-review 仅在有实际修复时执行:

goal confirmation
-> plan
   (总控核对;重要决策执行 plan review)
-> [fix -> 受影响面 re-review]
-> implementation / validation(按必要 slices)
-> code review
   (一轮完整审核,含整体目标与多 slice 交互)
-> [fix -> 受影响面 re-review]
-> ready-to-open-draft-PR
-> 必要提交 / push
-> create draft PR
-> 总控交付核对
-> draft-PR-pass
-> final closeout

简单计划由总控核对;重要契约、架构、迁移或状态机决策执行 planreview,用户或项目显式要求的计划审核仍执行。 最终组合版本的 code review 使用 deepreview,包含原 aggregate 职责,不再另设 aggregate 轮次或强制逐 slice 审核。 PR 交付核对由总控完成,相同内容不重复派完整代码审核。

Read the full file on GitHub · 305 lines

Files

What ships with it

1 file 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. 16d ago Changed · -64 lines · +2 tokens per session a89544cc5a84
  2. 17d ago Changed · +25 lines 09d35c263864
  3. 29d ago Changed · +3 lines e1228941de4b
  4. 2mo ago First seen · 341 lines · 87 tokens per session scan A 05b41c97a4e5

Subscribe to this mod's changes

gateflow is a skill published in the GitHub repository noho/code-is-cheap (94 stars, last pushed 7d ago), licensed Apache-2.0. It adds 89 tokens to every session and 4,593 once invoked, about $0.0004 per session on Opus 5.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-30.

Related

Other skills, from other repositories

local-ai-agents

Build local-first AI agents that run entirely on a developer workstation with Microsoft Foundry Local and Qwen function-calling models. Covers Small Language Models (SLMs), the OpenAI-compatible local endpoint, sandboxed local tools, local RAG with Chroma, local MCP servers, hybrid cloud/local routing, and the…

microsoft/ai-agents-for-beginners · 200 tokens

systematic-debugging

Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes.

obra/superpowers · 21 tokens

next-cache-components-adoption

Turn on Cache Components in a Next.js app and resolve the blocking routes it surfaces. Use when the user wants to enable, adopt, or migrate to Cache Components, flip the cacheComponents flag, work through a flood of blocking-prerender / instant validation errors, run the cache-components-instant-false codemod, or…

vercel/next.js · 95 tokens

chat-pet-sprite-creation

Use when creating or changing VS Code chat pet sprite art, sprite sheets, state animations, eye treatments, Stable/Insiders variants, or pet transitions under src/vs/workbench/contrib/chat/browser/widget/media/chatPet.

microsoft/vscode · 53 tokens

cpu-profile-analysis

Analyze V8/Chrome CPU profiles (.cpuprofile) and DevTools trace files (Trace-.json). Use when: profiling performance, investigating slow functions, comparing code paths, finding bottlenecks, analyzing timeToRequest, understanding call trees from sampling profiler data, analyzing layout/paint/rendering, investigating…

microsoft/vscode · 71 tokens

insight-error-page

Write or audit an insight-kind error page for the Next.js dev overlay. Use when creating a new errors/ .mdx page, auditing an existing one, or checking that a page matches the framework fix cards. Covers page structure, title alignment, FixCard cards with Copy prompt button, code snippets, terminology verification…

vercel/next.js · 83 tokens