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/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/rules/ciscodevnet/essentials/ess-skill-scripts-pytest)<a href="https://agentmods.dev/rules/ciscodevnet/essentials/ess-skill-scripts-pytest"><img src="https://agentmods.dev/badge/rules/ciscodevnet/essentials/ess-skill-scripts-pytest/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/ciscodevnet/essentials/ess-skill-scripts-pytest"><img src="https://agentmods.dev/badge/rules/ciscodevnet/essentials/ess-skill-scripts-pytest.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.00576 |
| Opus 5.5 | $0.00000 | $0.00230 |
| Sonnet 5.5 | $0.00000 | $0.00115 |
| Haiku 4.5 | $0.00000 | $0.00058 |
Grade A, and why
ess-skill-scripts-pytest 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 7d 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 — 52 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing a skill's scripts/ project
A skill can carry its CLI as a uv project in scripts/. Code shared between
skills lives in one skill's scripts/ and is a non-editable path dependency
of the others, so that running a CLI never writes into an installed sibling.
Two pytest defaults break this layout.
Turn off the pytest cache
uv run pytest skills/<name>/scripts makes that scripts/ directory
pytest's root when no config file above it configures pytest, and pytest
writes .pytest_cache there. Skill installers such as APM copy every file in
the skill directory, git-ignored files included, so the cache reaches the
lock file and the deployed copy. In every scripts/pyproject.toml:
[tool.pytest.ini_options]
addopts = "-p no:cacheprovider"
Run a shared package's tests apart from its consumers
A consumer's virtualenv holds a built copy of the shared package, which
excludes test files, and pytest collects the source tree. Python loads a
package once. Under pytest's default import mode, prepend, a test module is
imported by its package name, such as shared_lib.test_main. If a
consumer's tests imported shared_lib first, pytest looks for the test
module in the built copy and fails with ModuleNotFoundError. Order decides:
with the shared tests first, both suites pass.
This applies to every consumer in the same virtualenv, skill or not.
- Run each
scripts/suite in its own pytest command, and document it that way in the skill's references. - To run a shared package's tests together with a consumer's, pass
--import-mode=importlibon the command line. - Do not put
--import-mode=importlibinscripts/pyproject.toml. Given several paths, pytest picks its root from their common ancestor and loads a config file above both skills, usually the repo root's, so the skill's setting never reaches a combined run. - Do not set it repo-wide without first collecting the whole repo in both
modes (
pytest --co -q --import-mode=<mode>) and comparing the counts. Other suites can depend on the default mode. - Keep the shared package non-editable and its tests out of its build.
Making it editable to fix collection writes
__pycache__into the installed sibling skill.
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.
- 7d ago First seen · 52 lines · 0 tokens per session scan A ba63f208a0cc
ess-skill-scripts-pytest is a cursor rule published in the GitHub repository CiscoDevNet/essentials (7 stars, last pushed 8d ago), licensed Apache-2.0. It costs nothing until one of its globs matches a file; then it loads 576 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-11-24.
ess-skill-scripts-pytest compared with cursor rules from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| ess-skill-scripts-pytestCiscoDevNet/essentials | Cursor rule | 7 | 8d ago | Apache-2.0 | A | 0 | Cursor |
| dashboard-testingAutomattic/wp-calypso | Cursor rule | 13k | yesterday | GPL-2.0 | A | 0 | Cursor |
| solarStahlwalker/framework-solar | Cursor rule | 2 | 12d ago | MIT | A | 0 | Cursor |
| no-barrel-filesprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| explicit-opt-in-over-diagnosticsprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 730 | Cursor |
| no-backward-compatibilityprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 0 | Cursor |
| test-packagesprisma/orm | Cursor rule | 48k | today | Apache-2.0 | A | 5 | Cursor |