essentials: Command for Claude Code

.cursor/commands/add-python-dependencies.md

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

A command for adding common runtime and development packages to a Python project managed with uv. The listed packages cover configuration, formatting, linting, testing, performance checks, and secret detection.

In plain words
What is it for?
It helps set up a Python package with environment configuration, code quality checks, pytest tests, security linting, and pre-commit hooks.
Why use it?
It removes the need to choose and install a standard set of project dependencies one by one. It also places development-only tools separately from regular dependencies.

Command for Claude CodeCursor

Written for Cursor and Claude Code: installed under .cursor/, but also a Claude Code command (commands/*.md).

This is CiscoDevNet/essentials's own configuration. It tells Claude Code and Cursor how to work on essentials itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything essentials configures →

Reuse

Borrowing it

Nothing to install: this file belongs to CiscoDevNet/essentials. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/CiscoDevNet/essentials/main/.cursor/commands/add-python-dependencies.md
Clone the repo
git clone --depth 1 https://github.com/CiscoDevNet/essentials

Made for: Claude Code, 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/github.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/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 add-python-dependencies

Your own site · 80×15
<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="Reviewed on agentmods" width="80" 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. 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.00473
Opus 5.5 $0.00000 $0.00189
Sonnet 5.5 $0.00000 $0.00095
Haiku 4.5 $0.00000 $0.00047

Measured 1mo ago against content hash ed9f61505b88, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 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.

.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. 1mo ago 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.