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 skills add besoeasy/open-skills --skill debug-order-sensitive-pytestgit clone --depth 1 https://github.com/besoeasy/open-skillsWrote 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/skills/besoeasy/open-skills/debug-order-sensitive-pytest)<a href="https://agentmods.dev/skills/besoeasy/open-skills/debug-order-sensitive-pytest"><img src="https://agentmods.dev/badge/skills/besoeasy/open-skills/debug-order-sensitive-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/skills/besoeasy/open-skills/debug-order-sensitive-pytest"><img src="https://agentmods.dev/badge/skills/besoeasy/open-skills/debug-order-sensitive-pytest.svg" alt="Reviewed on agentmods" width="80" height="20"></a>- NVIDIA SkillSpector pass
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.00083 | $0.02192 |
| Opus 5.5 | $0.00033 | $0.00877 |
| Sonnet 5.5 | $0.00017 | $0.00438 |
| Haiku 4.5 | $0.00008 | $0.00219 |
Grade A, and why
debug-order-sensitive-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 2mo 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 — 179 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Debug Order-Sensitive Pytest Failures
Find and fix tests that pass on their own but fail when pytest runs in a different order. The suite is green again only after every leaked-global-state polluter is fixed and both the shuffled and the normal runs pass.
Quick quality checklist
- Repro order is pinned with a fixed seed and printed so any failure is reproducible
- Always bisect with the failing target test appended to every slice (a failing window can contain multiple polluters)
- Instrumented runs are only hints — always confirm on clean runs
- No private data, paths, or project-specific test names in this skill
When to use
- A test fails only in the full suite but passes standalone with
pytest <file>orpytest <nodeid> - A CI job that randomizes test order (pytest-randomly, custom shuffle) is flaky
- You suspect a test mutates
sys.modules, reloads a module, or mutates a shared module-level singleton without restoring it
Required tools / APIs
- Python 3.8+ and pytest (no external API)
- Optional: a shuffling runner (pytest-randomly, or a local seeded-shuffle plugin, described below)
Steps
1. Reproduce with a fixed-seed shuffle
Pin the order so every bisection uses the exact same failing sequence. Use pytest-randomly:
pip install pytest-randomly
python -m pytest -q --randomly-seed=42 -p no:cacheprovider --tb=no | tee order.log
Or, for a repo that already has a seeded-shuffle runner (e.g. tests/run_order_report.py --seed 42), use it. If neither exists, add a tiny local plugin that shuffles collection with a fixed seed:
# shuffle42.py (load with: python -m pytest -p shuffle42 ...)
import random
def pytest_collection_modifyitems(items):
random.Random(42).shuffle(items)
Record the failing nodeids from the log. The seed must be printed/stored so the order is reproducible.
2. Dump the shuffled order to a file
Every bisection slice must come from the same shuffled order. The shuffle must be re-applied deterministically to the same collected list, so dump the exact order once:
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.
- 2mo ago First seen · 179 lines · 83 tokens per session scan A 14d8627fb74a
debug-order-sensitive-pytest is a skill published in the GitHub repository besoeasy/open-skills (132 stars, last pushed 2mo ago), licensed MIT. It adds 83 tokens to every session and 2,192 once invoked, about $0.0003 per session on Opus 5.5. 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-05.
debug-order-sensitive-pytest compared with skills from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| debug-order-sensitive-pytestbesoeasy/open-skills | Skill | 132 | 2mo ago | MIT | A | 83 | Claude Code, Codex |
| langbot-plugin-devlangbot-app/LangBot | Skill | 19k | today | Apache-2.0 | A | 140 | Claude Code, Codex |
| credit-note-fixeropenai/openai-agents-python | Skill | 31k | today | MIT | A | 21 | Claude Code, Codex |
| merge-queue-recoverylangchain-ai/open-swe | Skill | 11k | today | MIT | A | 31 | Claude Code, Codex |
| oraclesteipete/oracle | Skill | 4.1k | 5d ago | MIT | A | 18 | Claude Code, Codex |
| ax-cpp-agent-observabilityax-llm/ax | Skill | 3.0k | yesterday | Apache-2.0 | A | 44 | Claude Code, Codex |
| ax-go-agent-observabilityax-llm/ax | Skill | 3.0k | yesterday | Apache-2.0 | A | 50 | Claude Code, Codex |