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.
curl -O https://raw.githubusercontent.com/CiscoDevNet/essentials/main/.cursor/commands/add-python-dependencies.mdgit clone --depth 1 https://github.com/CiscoDevNet/essentialsWrote 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/commands/ciscodevnet/essentials/add-python-dependencies)<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.
<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>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.00473 |
| Opus 5.5 | $0.00000 | $0.00189 |
| Sonnet 5.5 | $0.00000 | $0.00095 |
| Haiku 4.5 | $0.00000 | $0.00047 |
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.
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.tomlfile is located
Behavior
-
If
package_diris not provided, check for apyproject.tomlfile in the current directory. If nopyproject.tomlis found, ask the user: "What is the package directory location?" -
Navigate to the package directory (use current directory if
pyproject.tomlexists there, otherwise use the provided or asked-for directory) -
Add regular dependencies:
python-dotenv- For loading environment variables from .env filespython-decouple- For managing settings and configuration
-
Add development dependencies:
black- Code formatterpre-commit- Git hooks frameworkpylint- Linter for Python codeperflint- Performance linterruff- Fast Python linter and formatterbandit- Security linter for Pythonpytest- Testing frameworkdetect-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.tomlfile - The directory location can be absolute or relative to the workspace root
- The dev dependencies will be added to the
[dependency-groups]dev section inpyproject.toml - Regular dependencies will be added to the
[project]dependencies section
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.
- 1mo ago First seen · 58 lines · 0 tokens per session scan A ed9f61505b88
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.
Other commands, from other repositories
python-audit
Run ruff, mypy/pyright, vulture, complexipy/radon and pytest, then report prioritized fixes. TRIGGER WHEN: the user asks to audit a Python codebase across lint, types, complexity, dead code and coverage, or to prepare a codebase for release review. DO NOT TRIGGER WHEN: only one dimension is in scope: restructuring…
python-scaffold
Generate a fresh project skeleton, tests and lint config included. TRIGGER WHEN: the user asks to start a new Python project, bootstrap FastAPI/Django/CLI/library structure, or set up uv+pytest+ruff from scratch. DO NOT TRIGGER WHEN: adding to an existing project (use python-engineer).
validate-content
Run all content validators locally — same gates the CI workflow pack-content.yml enforces.
pytest-coverage
Analyze pytest coverage and add tests to reach full code coverage.
comprehensive-unit-testing-with-pytest
Aims for high test coverage using pytest, testing both common and edge cases.
CLAUDE_CODE_F090_SDK_ONLY
A software-maintenance task covering JavaScript and Python software development kits, or SDKs. An SDK is a package that helps developers use a service from their own code.