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.
npx skills add Rohit-ATS/Airlock --skill expand-contractgit clone --depth 1 https://github.com/Rohit-ATS/AirlockWrote 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.
[](https://agentmods.dev/skills/rohit-ats/airlock/expand-contract)<a href="https://agentmods.dev/skills/rohit-ats/airlock/expand-contract"><img src="https://agentmods.dev/badge/skills/rohit-ats/airlock/expand-contract/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.
<a href="https://agentmods.dev/skills/rohit-ats/airlock/expand-contract"><img src="https://agentmods.dev/badge/skills/rohit-ats/airlock/expand-contract.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.00906 |
| Opus 5 | $0.00018 | $0.00453 |
| Sonnet 5 | $0.00007 | $0.00181 |
| Haiku 4.5 | $0.00004 | $0.00091 |
Grade A, and why
expand-contract 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.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Expand / contract
When a change cannot be proven reversible, do not argue about the risk. Restructure it into three changes that each can be.
The pattern turns one irreversible step into a sequence where every individual step is reversible and every intermediate state is deployable. That is the whole idea: at no point does a rollback of the application require a rollback of the database.
When to reach for it
Use it whenever the honest answer to "can I restore the prior bytes?" is no:
- dropping a column or a table
- renaming anything
- narrowing a type (
bigint→int,text→varchar(n)) - a lossy
UPDATE(seepostgres-safety§3) - adding a
NOT NULLcolumn to a populated table - splitting or merging columns
The three phases
1. EXPAND — add the new shape alongside the old
Additive only. Nothing is removed and nothing is rewritten. The old readers and writers keep working untouched.
ALTER TABLE users ADD COLUMN tier text; -- brief lock, no rewrite on PG 11+
Backfill in batches, then dual-write from the application so both columns stay correct.
Reversible? Yes — drop the new column. Nothing depended on it.
2. MIGRATE — move the readers
A code change, not a schema change. Readers switch to the new column one deployment at a time. Writers write both. Run a reconciliation query until the two columns agree for every row:
SELECT count(*) FROM users u
JOIN subscriptions s ON s.user_id = u.id
WHERE u.tier IS DISTINCT FROM s.plan_tier; -- must be 0 before phase 3
Reversible? Yes — point the readers back. The old column is still authoritative.
3. CONTRACT — remove the old shape
Only once nothing reads the old column. Prove it, do not assume it:
- the blast-radius scan returns zero references in any deployed branch
pg_stat_statementsshows no query touching the column over a full business cycle- the dual-write has been on long enough to cover every code path
ALTER TABLE users DROP COLUMN plan_name;
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.
- 8d ago First seen · 117 lines · 36 tokens per session scan A 613d73e2890d
expand-contract is a skill published in the GitHub repository Rohit-ATS/Airlock (1 stars, last pushed today), licensed MIT. It adds 36 tokens to every session and 906 once invoked, about $0.0002 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.
Other skills, from other repositories
reweave-operator
Operate a Reweave self-healing web-data fleet — run pipelines, triage structural-drift incidents, review repair proposals, and manage the human approval workflow. Use whenever a monitored source is broken, a heal is pending, or the operator asks about pipeline health or impact.
resonate-server-postgres
Run the Resonate protocol inside Postgres itself using resonate-pg — one SQL file of stored procedures, with no server process at all. Covers installing the schema, the pgcron timer dependency and its silent-failure mode, reaching the protocol through resonaterpc, starting workflows with resonate.invoke, the…
prisma-schema-conventions
Data modeling conventions for Prisma + PostgreSQL in multi-tenant systems — workspace isolation, numeric criticality, idempotent recurrence, document versioning by lineage and decoupled audit via a queue in Postgres itself. Use whenever creating or changing schema.prisma, designing new entities, planning migrations or…
postgres-patterns
Provides PostgreSQL patterns for query optimization, schema design, indexing strategies, RLS, and security. Use when working with PostgreSQL SQL files or when the user mentions PostgreSQL, Postgres, pgvector, Supabase, or database optimization.
postgres-patterns
PostgreSQL database patterns for query optimization, schema design, indexing, and security. Quick reference for common patterns, index types, data types, and anti-pattern detection. Based on Supabase best practices.
agent-harness-fault-injection
Use when an agent workflow needs deterministic recovery evidence for sandbox, MCP/tool, worker, checkpoint, memory, or orchestration failures.