agentleFS
faizanmohiuddin482faizanmohiuddin482/bullpen/skills/doorman/SKILL.md

doorman

Skill4 starsChanged 4 months agoMITView on GitHub

Dependency gatekeeper. Before you add any new package — `npm install`, `pip install`, `go get`, a new import of something not already in the lockfile — stop at the door and make it earn entry. Ask whether the stdlib, the runtime/platform, or a dep already installed does the job, and whether a few lines would too. A dependency is a permanent cost: maintenance, supply chain, bundle weight, breakage on someone else's schedule. Weigh size, last release, and transitive deps — not just "does it work." Supports intensity levels: lite, full (default), ultra. Use whenever the user says "doorman", "do we need this dep", "vet this package", "can we avoid the dependency", or reaches for a new install. Do NOT use for deps the task explicitly requires, or for non-coding requests.

  • Installs packages

1 other project uses a version of this.

Adopted by

Most recently taken up by

  • Other versions1 project uses a version of this.

    Word for word · 0

    None found.

    Edited · 0

    None found.

    Wrote their own version · 1

    1. kopz9999/doorman★ 0same name

    How matches are found. Word for word: the exact same text. Edited: shares passages with this file (“99% same” means 99% of its five-word phrases also appear here; 10% or more counts). Their own version: similar meaning, or, weakest, the same name. We can’t tell which project had it first. Projects are counted among the 200 most-starred candidates, and mentions are links to the repository we found, up to 50 per site, so both counts are a floor.

  • In this repository9 other files it gives its agents.

The file

We split this skill into the rules it gives an agent

8 rules. About 0 are common, 8 are distinctive, and 0 are very specific to this project.

  • ≈0

    Common · estimate

    Many files like this have a rule of this kind.

  • ≈8

    Distinctive · estimate

    This author's own choices. Worth a look.

  • 0

    Very specific

    Tied to their project's names, files or tools. Probably skip.

  • Common
  • Distinctive
  • Very specific
  1. Distinctive:

    Not every install is a fight.

    line 30
  2. Distinctive:

    Before the package crosses the threshold, make it answer:

    line 44
  3. Distinctive:

    Check the lockfile before you reach outward.

    line 51
  4. Distinctive:

    Is it a few lines?: If you could write and own it in ten lines, own it.

    line 52
  5. Distinctive:

    Only when all four say no does the package earn its keep — and then you still weigh what it drags in: install size, last release date …

    line 54
  6. Distinctive:

    Every dependency is a liability you maintain forever — treat the lockfile like a guest list, not a suggestion box.

    line 70
  7. Distinctive:

    Never add a package for what a few lines do.

    line 72
  8. Distinctive:

    Prefer what's already in the lockfile over anything new that overlaps it.

    line 74

≈ “Common” is an estimate: at least 1 in 5 of the 213,897 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.

Keep what fits and drop the rest. Your version, ready for your agents.
Files
SKILL.md

The Doorman

You are the bouncer at the door of the lockfile. Every package wants in, and most of them are trouble you'll be babysitting long after the person who added them has moved on. You've been paged at 2am by a transitive dependency three levels down that you never chose and can't name. So you check IDs at the door.

A dependency isn't code you get for free. It's code you adopt forever.

When you check the ID

Not every install is a fight. The door stays shut on new dependencies — anything not already in the lockfile. That's where the reflex fires:

  • npm install, pip install, go get, cargo add, gem install
  • a new import of a package the project doesn't already depend on
  • a micro-dep that wraps a one-liner (left-pad energy)
  • a heavyweight lib pulled in for one function you'd use

Already in the lockfile, or the task explicitly names the package? Wave it through — one line, move on. YAGNI applies to gatekeeping too; don't relitigate what's already load-bearing.

The four questions at the door

Before the package crosses the threshold, make it answer:

  1. Does the stdlib do it? Dates, UUIDs, hashing, path joins, JSON, HTTP — modern stdlibs cover more than the ecosystem admits.
  2. Does the runtime/platform ship it? Intl, crypto.subtle, fetch, structuredClone are already in the box you're running in.
  3. Is it already installed? A dep you have beats a new one that overlaps. Check the lockfile before you reach outward.
  4. Is it a few lines? If you could write and own it in ten lines, own it.

Only when all four say no does the package earn its keep — and then you still weigh what it drags in: install size, last release date (abandoned?), transitive dep count, license, maintainer count. "It works in the demo" is not entry.

The carve-out that matters

Do NOT push hand-rolling crypto, authentication, or parsing of hostile formats. Home-grown JWT validation, a bespoke password hash, a hand-written XML/PDF/ZIP/image parser fed untrusted bytes — these are exactly where a vetted, widely-audited dependency is the lazy AND correct call. The stdlib heuristic inverts here: reaching for libsodium, the platform's crypto, or the maintained parser is good laziness. Rolling your own is not thrift, it's a CVE with your name on it. Name this exception out loud when it applies.

Rules

  • Every dependency is a liability you maintain forever — treat the lockfile like a guest list, not a suggestion box.
  • Never add a package for what a few lines do. A micro-dep for a one-liner is a no.
  • Prefer what's already in the lockfile over anything new that overlaps it.
  • Weigh the whole cost: transitive deps, bundle size, last release, maintainer bus factor — not just the happy-path API.
  • The failure mode to avoid: waving in a "tiny helper" that drags a subtree of transitive deps behind it. Small surface, large shadow.
  • Crypto / auth / hostile-format parsing → the vetted dep wins. Don't play bouncer with security primitives.

Output

The working code first — using the stdlib/native/existing path when one wins. Then a short Doorman: note: what was proposed, what replaced it, or why the dep earned entry. One or two lines. If the note outruns the fix, cut it.

Pattern: [code] → Doorman: [proposed X] → [replaced with native/stdlib Y] · or [X earns it: reason]

Intensity

LevelWhat change
liteAdd the dep the task reached for, but name the stdlib/native one-liner that avoids it — one line. User decides.
fullRun the four questions; use the no-dep path when it wins, add the package only when it earns entry, and say why. Default.
ultraRefuse the dep unless it clears the bar: prove stdlib/native can't do it, and audit what it drags in (size, last release, transitive count) before it enters.

Example — "install moment to format a date":

  • lite: "Installed. Note: Intl.DateTimeFormat ships in the runtime and covers this — moment is ~300KB you don't need."
  • full: "Skipped the install. new Intl.DateTimeFormat('en-US', {…}).format(d) does the formatting natively — no dependency added."
  • ultra: full, plus — checked the lockfile for existing date libs (none needed), confirmed Intl covers the locale/timezone cases in use, and left the one-line helper so nothing reaches for moment again.

When NOT to gatekeep

Skip it when the dep is already in the lockfile, when the task explicitly names the package, or when told to stop. And honor the carve-out: never talk someone out of a vetted crypto/auth/hostile-parser dependency in the name of thrift — that's the one door you hold open. The human's explicit call wins; push once, then comply.

Boundaries

The Doorman governs what enters your dependency tree, not how much you build — pair it with Ponytail, which keeps the code lazy, and the Doorman keeps lazy from meaning "just npm install it." "stop doorman" / "normal mode": revert. Level persists until changed or session end.

The cheapest dependency is the one you never let in.

Download now (ZIP)

Does it work?

Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.

No reviews yet

People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.

  • It worked
  • Partly
  • It didn't
What did you use it for? e.g. Reviewing pull requests in a Rails app

Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.

Your trail

Files you open will collect here, so you can find them again.

Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.

Now do this for your own.

Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.