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.
npx agentmods add skills/pretensor-ai/pretensor/testsnpx skills add pretensor-ai/pretensor --skill testsgit clone --depth 1 https://github.com/pretensor-ai/pretensorWhat 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 | $0.00000 | $0.01021 |
| Opus 5 | $0.00000 | $0.00511 |
| Sonnet 5 | $0.00000 | $0.00204 |
| Haiku 4.5 | $0.00000 | $0.00102 |
Grade A, and why
tests 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 2d 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 — 90 lines — stays where its author put it; the contents beside it link to each section on GitHub.
tests/ — test suite contract
Layout law
Test files must mirror the source tree one-for-one:
| Source | Tests |
|---|---|
src/pretensor/core/ |
tests/core/ |
src/pretensor/mcp/ |
tests/mcp/ |
src/pretensor/intelligence/ |
tests/intelligence/ |
src/pretensor/staleness/ |
tests/staleness/ |
src/pretensor/connectors/ |
tests/connectors/ |
src/pretensor/entities/ |
tests/entities/ |
src/pretensor/search/ |
tests/search/ |
src/pretensor/skills/ |
tests/skills/ |
src/pretensor/validation/ |
tests/validation/ |
src/pretensor/cli/ |
tests/cli/ |
| (no source mirror) | tests/e2e/ — Docker-backed E2E suite (layout exception) |
New source subdirectory → new matching test subdirectory. tests/e2e/ is the one exception: it tests the assembled system end-to-end against a live Docker container, not a single source module.
Shared infrastructure
| File | Role |
|---|---|
conftest.py |
Root-level fixtures; adds src/ to sys.path for bare pytest runs |
query_helpers.py |
Shared query utilities for MCP and integration tests |
Fixtures that apply to more than one subdirectory belong in the root conftest.py. Fixtures scoped to a single subdirectory belong in that subdirectory's own conftest.py.
Running tests
# Full suite
uv run pytest tests/
# Single subsystem
uv run pytest tests/core/
uv run pytest tests/mcp/
# Single file
uv run pytest tests/intelligence/test_heuristic.py
# Via Makefile
make test
Invariants
- New behavior requires new tests. A PR that changes observable behavior without touching
tests/is incomplete. - Tests must pass before a PR is opened. CI runs
pytest tests/on every PR tomain; a red suite blocks merge. - No production mutations in tests. Tests must not write to real databases,
.pretensor/state, orregistry.jsonoutside of isolated temp directories. - No real LLM calls in unit tests. Tests that exercise LLM paths must mock the provider client or be explicitly gated behind an integration marker.
- Connector tests that require a live database must be skippable when no DSN is available (use
pytest.mark.skipor environment-gated fixtures — never hard-fail in CI without the DB). conftest.pypath injection is the onlysys.pathmanipulation allowed. Do not addPYTHONPATHhacks inside individual test files.
What ships with it
60 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- __init__.py 86 B runs code
- benchmark/__init__.py 0 B runs code
- benchmark/_compare.py 960 B runs code
- benchmark/baselines/adventureworks-l1-embeddings.json 131 KB
- benchmark/baselines/adventureworks-l1.json 131 KB
- benchmark/baselines/adventureworks-l2-embeddings.json 20 KB
- benchmark/baselines/adventureworks-l2.json 11 KB
- benchmark/baselines/adversarial-l1.json 1.9 KB
- benchmark/baselines/analytics_dwh-l1.json 1.4 KB
- benchmark/baselines/messy_warehouse-l1.json 22 KB
- benchmark/baselines/pagila-l1-embeddings.json 4.3 KB
- benchmark/baselines/pagila-l1.json 2.4 KB
- benchmark/baselines/pagila-l2-embeddings.json 10 KB
- benchmark/baselines/pagila-l2.json 6.1 KB
- benchmark/baselines/saas_multitenant-l1.json 1.9 KB
- benchmark/baselines/tpch-l1-embeddings.json 2.2 KB
- benchmark/baselines/tpch-l1.json 2.0 KB
- benchmark/baselines/tpch-l2-embeddings.json 21 KB
- benchmark/baselines/tpch-l2.json 11 KB
- benchmark/fixtures/baseline.json 481 B
- benchmark/fixtures/regressed.json 481 B
- benchmark/l1/__init__.py 0 B runs code
- benchmark/l1/test_metrics.py 4.4 KB runs code
- benchmark/l1/test_runner.py 6.1 KB runs code
- benchmark/l2/__init__.py 0 B runs code
- benchmark/l2/test_gold.py 9.2 KB runs code
- benchmark/l2/test_metrics.py 6.9 KB runs code
- benchmark/l2/test_runner.py 5.5 KB runs code
- benchmark/l3/__init__.py 0 B runs code
- benchmark/l3/test_agent.py 12 KB runs code
- benchmark/l3/test_db.py 9.6 KB runs code
- benchmark/l3/test_gold.py 3.4 KB runs code
- benchmark/l3/test_llm_client.py 18 KB runs code
- benchmark/l3/test_mcp_client.py 11 KB runs code
- benchmark/l3/test_pretensor_runner.py 32 KB runs code
- benchmark/l3/test_prompt.py 5.5 KB runs code
- benchmark/l3/test_runner.py 23 KB runs code
- benchmark/l3/test_sql_equivalence.py 7.1 KB runs code
- benchmark/results/v0.1.0a3/adventureworks-l1.json 131 KB
- benchmark/results/v0.1.0a3/adventureworks-l2.json 11 KB
- benchmark/results/v0.1.0a3/pagila-l1.json 2.4 KB
- benchmark/results/v0.1.0a3/pagila-l2.json 6.1 KB
- benchmark/results/v0.1.0a3/README.md 756 B
- benchmark/results/v0.1.0a3/tpch-l1.json 2.0 KB
- benchmark/results/v0.1.0a3/tpch-l2.json 11 KB
- benchmark/results/v0.1.0a4/adventureworks-l1.json 131 KB
- benchmark/results/v0.1.0a4/adventureworks-l2.json 11 KB
- benchmark/results/v0.1.0a4/pagila-l1.json 2.4 KB
- benchmark/results/v0.1.0a4/pagila-l2.json 6.1 KB
- benchmark/results/v0.1.0a4/tpch-l1.json 2.1 KB
- benchmark/results/v0.1.0a4/tpch-l2.json 11 KB
- benchmark/test_cli.py 14 KB runs code
- benchmark/test_fixtures.py 4.7 KB runs code
- benchmark/test_release_gate.py 16 KB runs code
- benchmark/test_results.py 15 KB runs code
- cli/conftest.py 777 B runs code
- cli/test_analyze_cli.py 7.0 KB runs code
- cli/test_cli_error_handling.py 11 KB runs code
- cli/test_config_file.py 23 KB runs code
- cli/test_connections_cli.py 7.0 KB runs code
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.
- 2d ago First seen · 90 lines · 0 tokens per session scan A 816670cf828e
tests is a skill published in the GitHub repository pretensor-ai/pretensor (5 stars, last pushed 18d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,021 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-31.
Other skills, from other repositories
brain-dream
Brain maintenance -- replay conversations, fix graph quality, surface signals.
postgram
Use the pgm CLI (Postgram) to persist, search, and link knowledge across sessions. Invoke whenever the user wants to remember something across conversations, recall prior context, search their personal knowledge base, track tasks, or explore relationships between stored entities. Assumes pgm is on PATH, PGMAPIURL is…
graph-mutation-plan
Cookbook for composing an applygraphmutations plan — stable entitykey patterns, the canonical label/edge vocabulary, evidence/invalidation/confidence discipline, and a worked example. Load this when building a non-trivial mutation plan.
potpie-infra-architecture
Use for project infra and architecture context: environments, adapters, runtime configuration, deployments, service dependencies, datastores, API contracts, ownership, incidents, and dependency blast radius.
alfworld-receptacle-finder
Searches for a suitable empty or appropriately occupied receptacle (like a shelf or table) to place an object. Use when you are holding an object that needs to be stored or placed and must find a receptacle that meets the placement criteria. Examines candidate receptacles by navigating to and inspecting each one until…
alfworld-search-pattern-executor
Systematically searches a sequence of likely locations for a target object based on common sense. Use when you need to find a specific object and know which receptacles to check but not which one contains it. Takes a list of candidate receptacles, orchestrates navigation and inspection, and outputs when the target is…