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.
git clone --depth 1 https://github.com/bernierllc/agents-environment-configWrote 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/rules/bernierllc/agents-environment-config/package-management)<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.
<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>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.00000 | $0.00684 |
| Opus 5.5 | $0.00000 | $0.00274 |
| Sonnet 5.5 | $0.00000 | $0.00137 |
| Haiku 4.5 | $0.00000 | $0.00068 |
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.
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:
- Look for project scripts first:
package.jsonscripts, aMakefile, ascripts/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. - Identify the workspace tool: npm/pnpm/yarn workspaces, Turborepo, Nx, Lerna, Changesets. Run commands through it so the whole workspace stays consistent.
- Never publish by hand (
npm publishstraight from a package directory) when the repo defines a release flow; hand publishing skips its version, changelog and validation steps. - 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
tsconfigstrictness; 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
- Search existing packages: Check if functionality already exists (see
package-reuse.mdc) - Evaluate partial matches: Consider extending existing packages
- Use composition: Combine existing packages rather than recreating
- 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
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.
- 2mo ago Changed · -37 lines 4b47569c95d5
- 3mo ago First seen · 92 lines · 0 tokens per session scan A 077161a82608
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.
package-management compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| package-managementbernierllc/agents-environment-config | Cursor rule | 11 | yesterday | MIT | A | 0 | Cursor |
| no-mvn-compiletheonedev/onedev | Cursor rule | 15k | yesterday | MIT | A | 131 | Cursor |
| ponytailDietrichGebert/ponytail | Cursor rule | 201k | 8d ago | MIT | A | 604 | Cursor |
| angular-20angular/angular | Cursor rule | 102k | 5d ago | MIT | A | 0 | Cursor |
| dev-standardapache/superset | Cursor rule | 76k | today | Apache-2.0 | A | 1,147 | Cursor |
| prefer-assertions-over-defensive-checksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| prefer-direct-imports-over-module-mocksprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |