
Delivery gate
Blocks Claude Code from finishing a session until learning logs and disk checks pass
Delivery gate is an open-source agent skill for developer tools. It is available on Claude Code.
- Scripts
- Python
- Platforms
- Claude Code
- GitHub stars
- 66
- Last commit
- License
- MIT
- Listing updated
Similar skills
About Delivery gate
Delivery Gate is a Stop hook for Claude Code. Before a session can end, a Python script runs a set of deterministic checks: it looks at file modification times for a handful of learning-log paths in the project memory directory, measures free disk space, and scans the end of the transcript for phrases that suggest a shortcut was rationalized. Rationalization matches only produce a warning, while disk space below a critical threshold or a stale learning log on a complex task (three or more edit or write calls) blocks the stop.
The hook is meant to sit alongside a reasoning-focused quality skill rather than replace it. It does not judge whether the content of a recorded note is correct; it only verifies that the habit of updating the files happened on the current day. Each stop is blocked at most once, so a condition the agent cannot fix will not trap the session in a loop.
Setup involves copying the script into a local scripts folder and registering it under the Stop hook in Claude Code settings. The thresholds, regex patterns and tracked libraries are edited directly in the script. It uses only the Python standard library and targets Python 3.8 or later on Windows, macOS and Linux.
When your agent uses it
Stop hook that blocks Claude from finishing until quality checks pass. Detects rationalization patterns (surface text heuristics), stale learning logs (filesystem mtime), and low disk space. Complements self-audit by mechanically enforcing learning capture habits. Use when Claude should be mechanically blocked from declaring work finished before quality checks and learning capture actually pass.
From the skill's SKILL.md. Your agent reads this description to decide when to load the skill.
What it can access
- Runs Python scripts(see the files on GitHub)
- No network calls found in its scripts(see the files on GitHub)
- License: MIT(see the files on GitHub)
From a static check of its 3 files (14 KB) on GitHub on 1 December 2026. Nothing was run. Read the files before you install a skill: it can tell your agent to run anything its tools allow.
Check another skill before you install it.
Install
This skill ships in the rea-skills plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):
/plugin marketplace add smartworldarafath/REA_Skill
/plugin install rea-skills@smartworldarafathOr copy only this skill to ~/.claude/skills/delivery-gate:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/delivery-gate &&
cp -R "$tmp/.agents/skills/delivery-gate" ~/.claude/skills/delivery-gate &&
rm -rf "$tmp"For one project only, put the folder in .claude/skills/delivery-gate inside it instead.
Copy the skill folder to ~/.agents/skills/delivery-gate to use it in every repository:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/delivery-gate &&
cp -R "$tmp/.agents/skills/delivery-gate" ~/.agents/skills/delivery-gate &&
rm -rf "$tmp"For one repository only, put the folder in .agents/skills/delivery-gate inside it instead.
Copy the skill folder to ~/.cursor/skills/delivery-gate to use it in every project:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/delivery-gate &&
cp -R "$tmp/.agents/skills/delivery-gate" ~/.cursor/skills/delivery-gate &&
rm -rf "$tmp"For one project only, put the folder in .cursor/skills/delivery-gate inside it instead.
Run in a terminal (add --scope workspace to install it for the current workspace only):
gemini skills install https://github.com/smartworldarafath/REA_Skill.git --path .agents/skills/delivery-gateOr copy the folder to ~/.gemini/skills/delivery-gate yourself.
For GitHub Copilot in VS Code, copy the skill folder to ~/.copilot/skills/delivery-gate:
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/delivery-gate &&
cp -R "$tmp/.agents/skills/delivery-gate" ~/.copilot/skills/delivery-gate &&
rm -rf "$tmp"For one project only, put the folder in .github/skills/delivery-gate inside it instead.
Get the folder:
git clone --depth 1 https://github.com/smartworldarafath/REA_Skill.gitThen copy REA_Skill/.agents/skills/delivery-gate into your agent's skills folder as delivery-gate. Agents that support SKILL.md read one folder per skill.
What it does
- Stop hook integration
- Runs as a Claude Code Stop hook that can block a session from ending.
- Learning log freshness
- Checks modification times on configured memory files to confirm they were updated today.
- Disk space thresholds
- Reminds, warns or blocks based on free disk space at 50, 30 and 15 GB levels.
- Rationalization detection
- Flags phrases like skipping tests for now, as warnings only, using regex on the transcript tail.
- Configurable rules
- Patterns, tracked libraries, complexity threshold and disk limits are set in the script.
Good for
- Make sure the session's learning notes were updated before finishing a complex change
- Stop the agent from ending work when disk space is critically low
- Get a warning when the transcript contains shortcut phrases like skipping tests
- Enforce a daily memory-log habit across long coding sessions
Delivery gate FAQ
What does the hook need to run?
Python 3.8 or later, registered as a Stop command in ~/.claude/settings.json. It uses only the standard library.
When does Delivery gate block a session?
It blocks when free disk space is below 15 GB on any stop, or on a complex task with at least three edit or write calls when three or more learning libraries are stale or the growth-log is stale.
What happens if the project memory directory does not exist?
The learning-library checks are skipped. The hook only warns that it cannot verify learning capture and does not block a complex task; disk checks still apply.
Does Delivery gate check the quality of the notes?
No. It only checks that the files were modified today, and it uses regex heuristics for rationalization phrases, which only produce warnings.
How do I install Delivery gate in Claude Code?
Copy the skill folder from GitHub to ~/.claude/skills/delivery-gate to use it in all your projects, or to .claude/skills/delivery-gate in one project. Or install the rea-skills plugin, which includes it: /plugin marketplace add smartworldarafath/REA_Skill, then /plugin install rea-skills@smartworldarafath.
Does Delivery gate run scripts?
Yes. It runs Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.
Which AI agents can use Delivery gate?
Claude Code. It reads skills in the SKILL.md format; the install steps on this page show where to put the folder.
What are the best alternatives to Delivery gate?
The closest alternatives to Delivery gate are Writing hooks, Config health, Ghm gate check, Lifecycle audit and Config gc.
Where this comes from
- Description: from the skill's own SKILL.md.
More from smartworldarafath/REA_Skill

Guides building and auditing UI to WCAG 2.2 AA across web, iOS and Android
- Open source
- 66 GitHub stars
- Developer tools

Diagnoses agent and LLM stacks for hidden failures and ranks the fixes by severity
- Open source
- 66 GitHub stars
- Developer tools

Compare coding agents head-to-head on your own tasks by pass rate, cost and time
- Open source
- 66 GitHub stars
- Developer tools

Guides an agent to design tool sets, observations and error recovery for better completion
- Open source
- 66 GitHub stars
- Developer tools

Gives an agent a structured capture-diagnose-recover loop for failing runs
- Open source
- 66 GitHub stars
- Developer tools

Lets an AI agent make x402 payments within per-task budgets and spending policies
- Open source
- 66 GitHub stars
- Finance and payments




