dependencies

dependencies is a cursor rule for Cursor from Pranav-Karra-3301/tuck. It costs 0 tokens per session (469 once invoked), scanned A, original, MIT.

Rules for managing the tuck project’s software dependencies. They require pnpm instead of npm or yarn, define dependency categories and version practices, and describe security checks.

In plain words
What is it for?
Use them when installing, adding, removing, updating, auditing, or reviewing packages in the tuck project.
Why use it?
They prevent inconsistent package-manager usage, uncontrolled version changes, and missed dependency security audits.

Cursor rule for Cursor

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.

agentmods
npx agentmods add rules/pranav-karra-3301/tuck/dependencies
Clone the repo
git clone --depth 1 https://github.com/Pranav-Karra-3301/tuck

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 dependencies

README.md
[![agentmods](https://agentmods.dev/badge/rules/pranav-karra-3301/tuck/dependencies.svg)](https://agentmods.dev/rules/pranav-karra-3301/tuck/dependencies)
Your own site
<a href="https://agentmods.dev/rules/pranav-karra-3301/tuck/dependencies"><img src="https://agentmods.dev/badge/rules/pranav-karra-3301/tuck/dependencies.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Nothing until a file matches its globs; then the whole rule loads.
When invoked 469 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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 $0.00000 $0.00469
Opus 5 $0.00000 $0.00234
Sonnet 5 $0.00000 $0.00094
Haiku 4.5 $0.00000 $0.00047

Measured 5d ago against content hash 7c93e69c73ea, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

dependencies 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 5d 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/dependencies.mdc · 89 lines

What it actually says

Dependency Rules

Package Manager

ALWAYS use pnpm:

pnpm install        # Install deps
pnpm add <pkg>      # Add dependency
pnpm add -D <pkg>   # Add dev dependency
pnpm remove <pkg>   # Remove dependency
pnpm update         # Update all deps

NEVER use npm or yarn commands.

Core Dependencies

Package Purpose Version
commander CLI framework ^12.x
@clack/prompts Interactive prompts ^0.7.x
chalk Terminal colors ^5.x
boxen Terminal boxes ^8.x
ora Spinners ^8.x
simple-git Git operations ^3.x
fs-extra File operations ^11.x
zod Schema validation ^3.x

Dev Dependencies

Package Purpose
typescript Type checking
tsup Bundling
vitest Testing
eslint Linting
prettier Formatting
@types/* Type definitions

Version Pinning

  • Use caret (^) for minor updates
  • Pin major versions
  • Lock file must be committed

Security Audits

Run regularly:

pnpm audit
pnpm audit --fix  # Auto-fix if possible

CI runs pnpm audit --audit-level=high

Adding Dependencies

Before adding a new dependency:

  1. Check if existing dep can do it
  2. Verify it supports ESM
  3. Check maintenance status
  4. Review bundle size impact
  5. Prefer deps with TypeScript types

Updating Dependencies

  1. Check for breaking changes
  2. Run full test suite
  3. Test manually
  4. Update in feature branch
pnpm update --interactive  # Select updates
pnpm outdated              # Check outdated

NEVER Do

  • Use npm install
  • Commit without lock file
  • Ignore security warnings
  • Add unnecessary deps
  • Use deps without ESM support
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. 5d ago First seen · 89 lines · 0 tokens per session scan A 7c93e69c73ea

Subscribe to this mod's changes

dependencies is a cursor rule published in the GitHub repository Pranav-Karra-3301/tuck (15 stars, last pushed 1mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 469 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-30.