add-python-dependencies

add-python-dependencies is a command for Cursor from CiscoDevNet/essentials. It costs 0 tokens per session (473 once invoked), scanned A, original, Apache-2.0.

Add helpful Python dependencies to the current uv project.

Command 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 commands/ciscodevnet/essentials/add-python-dependencies
Clone the repo
git clone --depth 1 https://github.com/CiscoDevNet/essentials

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 add-python-dependencies

README.md
[![agentmods](https://agentmods.dev/badge/commands/ciscodevnet/essentials/add-python-dependencies.svg)](https://agentmods.dev/commands/ciscodevnet/essentials/add-python-dependencies)
Your own site
<a href="https://agentmods.dev/commands/ciscodevnet/essentials/add-python-dependencies"><img src="https://agentmods.dev/badge/commands/ciscodevnet/essentials/add-python-dependencies.svg" alt="Measured on agentmods" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 473 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.00473
Opus 5 $0.00000 $0.00236
Sonnet 5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00047

Measured today against content hash ed9f61505b88, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

add-python-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 today.

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/commands/add-python-dependencies.md · 58 lines

What it actually says

Add helpful Python dependencies to the current uv project.

Parameters

  • package_dir: The directory path where the Python package's pyproject.toml file is located

Behavior

  1. If package_dir is not provided, check for a pyproject.toml file in the current directory. If no pyproject.toml is found, ask the user: "What is the package directory location?"

  2. Navigate to the package directory (use current directory if pyproject.toml exists there, otherwise use the provided or asked-for directory)

  3. Add regular dependencies:

    • python-dotenv - For loading environment variables from .env files
    • python-decouple - For managing settings and configuration
  4. Add development dependencies:

    • black - Code formatter
    • pre-commit - Git hooks framework
    • pylint - Linter for Python code
    • perflint - Performance linter
    • ruff - Fast Python linter and formatter
    • bandit - Security linter for Python
    • pytest - Testing framework
    • detect-secrets - Tool to detect secrets in code

Commands

Run these commands in the package directory (where pyproject.toml exists):

uv add python-dotenv python-decouple
uv add --group dev black pre-commit pylint perflint ruff bandit pytest detect-secrets

Example Usage

With parameter:

  • package_dir: tools/python/my_package
  • This will navigate to tools/python/my_package/ and run the uv add commands there

Without parameter:

  • Check current directory for pyproject.toml
  • If found, use current directory
  • If not found, prompt user for package directory location
  • Then proceed with adding dependencies

Notes

  • The package directory must contain a pyproject.toml file
  • The directory location can be absolute or relative to the workspace root
  • The dev dependencies will be added to the [dependency-groups] dev section in pyproject.toml
  • Regular dependencies will be added to the [project] dependencies section
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. today First seen · 58 lines · 0 tokens per session scan A ed9f61505b88

Subscribe to this mod's changes

add-python-dependencies is a command published in the GitHub repository CiscoDevNet/essentials (7 stars, last pushed 16d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 473 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-04.