hatch3r-dependency-management

hatch3r-dependency-management is a cursor rule for Cursor from hatch3r/hatch3r. It costs 0 tokens per session (2,962 once invoked), scanned A, original, MIT.

Rules for managing third-party packages and their lockfiles, including vulnerability scans, version upgrades, dependency audits, and GitHub Action pinning.

In plain words
What is it for?
Use it when adding, upgrading, auditing, removing, or installing application dependencies and CI actions.
Why use it?
It reduces the risk of known security flaws, unexpected dependency changes, duplicate packages, and unnecessary bundle growth.

Cursor rule for Cursor

Written for Cursor: a Cursor rule (.mdc).

Good fit Use it when adding, upgrading, auditing, removing, or installing application dependencies and CI actions.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/hatch3r/hatch3r/hatch3r-dependency-management
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.

Clone the repo
git clone --depth 1 https://github.com/hatch3r/hatch3r

Made for: Cursor.

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 hatch3r-dependency-management

README.md
[![agentmods](https://agentmods.dev/badge/rules/hatch3r/hatch3r/hatch3r-dependency-management/github.svg)](https://agentmods.dev/rules/hatch3r/hatch3r/hatch3r-dependency-management)
Your own site
<a href="https://agentmods.dev/rules/hatch3r/hatch3r/hatch3r-dependency-management"><img src="https://agentmods.dev/badge/rules/hatch3r/hatch3r/hatch3r-dependency-management/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 hatch3r-dependency-management

Your own site · 80×15
<a href="https://agentmods.dev/rules/hatch3r/hatch3r/hatch3r-dependency-management"><img src="https://agentmods.dev/badge/rules/hatch3r/hatch3r/hatch3r-dependency-management.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 2,962 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.
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.00000 $0.02962
Opus 5.5 $0.00000 $0.01185
Sonnet 5.5 $0.00000 $0.00592
Haiku 4.5 $0.00000 $0.00296

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

Security

Grade A, and why

hatch3r-dependency-management 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 1mo 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.

rules/hatch3r-dependency-management.mdc · 115 lines

How it starts

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

Dependency Management

  • Always commit the lockfile. Never install without saving.
  • Justify new dependencies in PR description: what it does, why needed, alternatives considered, bundle size impact.
  • Prefer well-maintained packages: recent commits, active issues, no known CVEs.
  • Pin exact versions for production deps. Use clean install (e.g., npm ci, pip install -r, cargo build) in CI. hatch3r dogfoods this: the framework's own runtime dependencies in package.json -> dependencies are pinned to exact versions (no ^ or ~), with dev-only deps free to float per ecosystem convention. See D15-M9 for the originating finding; .github/workflows/ci.yml step npm ci enforces lockfile-only installs.
  • Run a dependency security scanner (e.g., npm audit, pip-audit, cargo audit) before merging dependency changes. Fix high/critical before merge.
  • No duplicate packages serving the same purpose. Consolidate on one.
  • Remove unused dependencies on every cleanup pass.
  • Security patches (CVEs) are P0/P1 priority. Patch within 48h for critical.
  • Check bundle size impact against budget. Reject deps that exceed.

Transitive Dependency Hygiene

  • Audit transitive dependencies, not just direct ones. A direct dependency with a compromised transitive dep is still a vulnerability. Use npm ls, pip show, or cargo tree to inspect the full dependency graph.
  • When a transitive dependency has a known CVE, determine whether the vulnerable code path is reachable from your project. If reachable, override or patch the transitive dep. If unreachable, document the finding with justification for deferral.
  • Avoid dependencies that pull in excessively large transitive trees for minimal functionality. If a package adds 50+ transitive deps for a single utility function, write the utility inline or find a lighter alternative.

Version Upgrade Strategy

  • Review changelogs and migration guides before upgrading major versions. Never blindly bump major versions and assume backward compatibility.
  • Run the full test suite after any dependency upgrade, including integration tests. A passing unit test suite does not guarantee compatibility with upgraded peer dependencies.
  • When upgrading a shared dependency used across multiple modules, upgrade all consumers in the same PR to avoid version skew within the monorepo or project.

Read the full file on GitHub · 115 lines

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. 1mo ago First seen · 115 lines · 0 tokens per session scan A e7475a770f26

Subscribe to this mod's changes

hatch3r-dependency-management is a cursor rule published in the GitHub repository hatch3r/hatch3r (26 stars, last pushed 21d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 2,962 tokens. 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-09-03.