delivery-gate
Skill by affaan-m
Delivery-gate is a Stop hook for Claude Code that blocks a session from finishing until deterministic quality and learning checks pass. It suits Claude Code users who want mechanical checks on learning capture and disk space.
Install delivery-gate
Built from the published package, never by AI.
git clone --depth 1 https://github.com/affaan-m/ECC /tmp/ECC && mkdir -p ~/.claude/skills && cp -r /tmp/ECC/skills/delivery-gate ~/.claude/skills/delivery-gateRun in your terminal. Claude Code loads skills from ~/.claude/skills automatically.
git clone --depth 1 https://github.com/affaan-m/ECC /tmp/ECC && mkdir -p ~/.gemini/antigravity-cli/skills && cp -r /tmp/ECC/skills/delivery-gate ~/.gemini/antigravity-cli/skills/delivery-gateAntigravity CLI loads skills from ~/.gemini/antigravity-cli/skills, or .agents/skills for one project.
Skills can run scripts on your machine. Some need an API key: check the README.
About
Delivery-gate is a Stop hook for Claude Code. Before a session can finish, it runs deterministic checks without AI inference. It reads file modification times on five configurable learning-library paths, measures free disk space, and applies regex patterns to the end of the transcript to flag rationalization phrases such as skipping tests for now.
Blocking is limited to specific conditions. Disk space below 15GB blocks every Stop. On a complex task, defined as three or more Edit or Write calls, it blocks when three or more learning libraries are stale or when growth-log is stale. Rationalization patterns only produce warnings. The hook blocks a given Stop at most once. It is intended for users who want to enforce learning capture habits alongside the self-audit skill.
Written from the project's SKILL.md and checked against it.
What it can do
- Learning library staleness checkChecks modification times on five configurable learning-library paths and warns or blocks on complex tasks.
- Disk space checkReminds below 50GB, warns below 30GB, and blocks below 15GB free space.
- Rationalization detectionUses regex on the transcript tail to warn about phrases that may signal cut-short thinking.
- Complex task classificationTreats a session with three or more Edit or Write calls as complex.
- Loop guardExits cleanly when stop_hook_active is true, so an unfixable condition cannot trap the session.
What you need
- Claude Code with hook support configured in ~/.claude/settings.json
- Python 3.8 or later
Try asking
- Before you finish, check whether my learning libraries were updated today.
- Run the delivery gate checks and tell me what is blocking this session.
- Finish this refactor, then confirm disk space and growth-log are current.
Good to know
- Rationalization checks only warn and never block.
- Checks the habit of touching learning libraries, not the quality of what was recorded.
- Without a project memory directory, learning checks only produce a warning.
- Libraries and thresholds are set by editing quality-gate.py directly.
Security check
ANo download-and-run commands, hidden instructions or signs of sending keys out were found.
Checked automatically: skills/delivery-gate/SKILL.md, skills/delivery-gate/hooks/quality-gate.py. This looks for known risky patterns and is not a full audit. How grades work
Inside the skill
-
SKILL.md6 KB -
hooks/quality-gate.py8 KB
Alternatives to delivery-gate
All alternatives →Runs a 7-stage workflow for auditing, cleaning up and reviewing GitHub repositories, plus competitor analysis. Written for developers who want a repo checked for secrets, junk files and documentation gaps.
Teaches an AI assistant to build, debug and explain Gradio web UIs and ML demos in Python. It covers the core API, components, event listeners, layouts and the MCP server option. Aimed at Python developers who work with Gradio.
Recommends menus, buttons, toolbars and disclosure controls for Apple platforms using Human Interface Guidelines conventions. Built for developers and designers making iOS, iPadOS, macOS or visionOS interfaces. Checks existing project design context before asking questions.
Creates production-ready FastAPI project structures with async patterns, dependency injection, and error handling. It is for developers starting new FastAPI applications or backend API projects.
Analyzes Android apps to find user workflows to expose as AppFunctions, so AI agents and system shortcuts can run them without opening the app UI. Generates Kotlin code and refines KDoc for Android developers.
Creates, edits, validates and runs Agent QA tests, suites and hooks through MCP or CLI. It keeps canonical IDs and schema contracts intact, for developers and QA teams using Agent QA.
Compare with openclaw-github-repo-commander, gradio or hig-components-menus
delivery-gate: common questions
Does delivery-gate use AI to judge my work?
No. The source says it uses only deterministic checks: file timestamps, disk usage, and regex patterns on transcript text. For content quality, the source recommends pairing it with self-audit.
Will it block every session?
No. Learning-library blocks only apply to complex tasks with three or more Edit or Write calls. Disk space below 15GB blocks any session.
What happens if the project memory directory is missing?
The learning-library checks are skipped and the hook only warns that it cannot verify learning capture. Disk checks still apply.
How do I install delivery-gate?
Run the command above to copy the skill into ~/.claude/skills/. Claude Code picks it up automatically.
Is delivery-gate free?
The code is published under the MIT licence. The service it connects to may have its own pricing.
Is delivery-gate safe to use?
It scores 94 of 100. Grades: maintenance A, licence A, quality A. Security check: grade A, no risky patterns found in the files checked. Review the code before you install. How grades work.
What are alternatives to delivery-gate?
Similar skills: openclaw-github-repo-commander, gradio, hig-components-menus, fastapi-templates.
