package-management

package-management is a cursor rule for Cursor from bernierllc/agents-environment-config. It costs 0 tokens per session (684 once invoked), scanned A, original, MIT.

A set of package-management rules for @bernierllc packages using the project's manager command-line tool. Package management covers installing, updating, and handling code dependencies.

In plain words
What is it for?
Managing @bernierllc package dependencies through the ./manager CLI.
Why use it?
It gives agents the required procedure for changing these packages instead of using unsupported commands.

Cursor rule for Cursor

Written for Cursor: installed under .cursor/.

Good fit Managing @bernierllc package dependencies through the ./manager CLI.

Compare 6 cursor rules from other repositories ↓
Install with agentmods
npx agentmods add rules/bernierllc/agents-environment-config/package-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/bernierllc/agents-environment-config

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 package-management

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

Your own site · 80×15
<a href="https://agentmods.dev/rules/bernierllc/agents-environment-config/package-management"><img src="https://agentmods.dev/badge/rules/bernierllc/agents-environment-config/package-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 684 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.00684
Opus 5.5 $0.00000 $0.00274
Sonnet 5.5 $0.00000 $0.00137
Haiku 4.5 $0.00000 $0.00068

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

Security

Grade A, and why

package-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 2mo 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.

.cursor/rules/packages/package-management.mdc · 55 lines

How it starts

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

Package Management Rules

Use the project's own package tooling

Before running any package command, find how this repository manages its packages and use that, not an ad-hoc command:

  1. Look for project scripts first: package.json scripts, a Makefile, a scripts/ directory, or a repo CLI (e.g. ./manager, ./scripts/release). If one exists for building, testing, versioning or publishing, it is the only supported path.
  2. Identify the workspace tool: npm/pnpm/yarn workspaces, Turborepo, Nx, Lerna, Changesets. Run commands through it so the whole workspace stays consistent.
  3. Never publish by hand (npm publish straight from a package directory) when the repo defines a release flow; hand publishing skips its version, changelog and validation steps.
  4. If there is no tooling, use the package manager the lockfile implies (package-lock.json → npm, pnpm-lock.yaml → pnpm, yarn.lock → yarn) and do not mix managers.

Package Design

Follow the architecture this repository already uses; do not impose one.

  • Read the repo's conventions first: its README, CONTRIBUTING, or package docs. If packages are layered (for example core → service → suite), keep dependencies pointing one way and put code in the layer the repo defines for it.
  • Match the language setup: in a TypeScript repo, follow its tsconfig strictness; do not add types to a JavaScript package or change strictness as a side effect.
  • Keep each package focused: one clear responsibility and a public API documented in its README.

Package Reuse Guidelines

Before Creating New Packages

  1. Search existing packages: Check if functionality already exists (see package-reuse.mdc)
  2. Evaluate partial matches: Consider extending existing packages
  3. Use composition: Combine existing packages rather than recreating
  4. Document decisions: Record the rationale where the repo keeps design notes

Quality Gates

Before Publishing

  • Validation/lint passes (the project's validate or lint script)
  • Build succeeds (the project's build script)
  • Tests pass (the project's test script)
  • Version bump and changelog follow the project's release flow
  • Documentation complete: README.md, API docs, examples

Read the full file on GitHub · 55 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. 2mo ago Changed · -37 lines 4b47569c95d5
  2. 3mo ago First seen · 92 lines · 0 tokens per session scan A 077161a82608

Subscribe to this mod's changes

package-management is a cursor rule published in the GitHub repository bernierllc/agents-environment-config (11 stars, last pushed yesterday), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 684 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-08-31.

Related

package-management compared with cursor rules from other repositories

package-management next to 6 cursor rules from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
package-managementbernierllc/agents-environment-configCursor rule11yesterdayMITA0Cursor
no-mvn-compiletheonedev/onedevCursor rule15kyesterdayMITA131Cursor
ponytailDietrichGebert/ponytailCursor rule201k8d agoMITA604Cursor
angular-20angular/angularCursor rule102k5d agoMITA0Cursor
dev-standardapache/supersetCursor rule76ktodayApache-2.0A1,147Cursor
prefer-assertions-over-defensive-checksprisma/ormCursor rule48ktodayApache-2.0A0Cursor
prefer-direct-imports-over-module-mocksprisma/ormCursor rule48ktodayApache-2.0A0Cursor