Borrowing it
Nothing to install: this file belongs to datenoio/iterabledata. 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/datenoio/iterabledata/main/.cursor/skills/testing-patterns/SKILL.mdgit clone --depth 1 https://github.com/datenoio/iterabledataWrote 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/datenoio/iterabledata/testing-patterns)<a href="https://agentmods.dev/skills/datenoio/iterabledata/testing-patterns"><img src="https://agentmods.dev/badge/skills/datenoio/iterabledata/testing-patterns/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/datenoio/iterabledata/testing-patterns"><img src="https://agentmods.dev/badge/skills/datenoio/iterabledata/testing-patterns.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.00030 | $0.01327 |
| Opus 5.5 | $0.00012 | $0.00531 |
| Sonnet 5.5 | $0.00006 | $0.00265 |
| Haiku 4.5 | $0.00003 | $0.00133 |
Grade A, and why
testing-patterns 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.
How it starts
The opening of the file, as written. The whole thing — 246 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Testing Patterns
Test Structure
File Naming
- Test files:
test_*.pyintests/directory - One test file per format/feature:
test_csv.py,test_parquet.py - Test classes:
Test*(e.g.,TestCSV,TestParquet) - Test functions:
test_*(e.g.,test_read,test_write)
Running Tests
# All tests
pytest --verbose
# Specific test file
pytest tests/test_csv.py -v
# Specific test function
pytest tests/test_csv.py::TestCSV::test_read -v
# Parallel execution
pytest -n auto
# With coverage
pytest --cov=iterable --cov-report=html
Test Patterns
Basic Read Test
def test_read(self):
with open_iterable('testdata/test.csv') as source:
rows = list(source)
assert len(rows) > 0
assert isinstance(rows[0], dict)
Basic Write Test
def test_write(self, tmp_path):
output = tmp_path / 'output.csv'
data = [{'col1': 'val1', 'col2': 'val2'}]
with open_iterable(output, 'w') as dest:
dest.write_bulk(data)
# Verify written data
with open_iterable(output) as source:
rows = list(source)
assert rows == data
Compression Tests
def test_gzip_compression(self):
with open_iterable('testdata/test.csv.gz') as source:
rows = list(source)
assert len(rows) > 0
Bulk Operations Test
def test_read_bulk(self):
with open_iterable('testdata/test.csv') as source:
chunks = list(source.read_bulk(size=100))
assert len(chunks) > 0
assert all(isinstance(chunk, list) for chunk in chunks)
Edge Cases
def test_empty_file(self):
with open_iterable('testdata/empty.csv') as source:
rows = list(source)
assert rows == []
def test_malformed_data(self):
with pytest.raises(ValueError):
with open_iterable('testdata/malformed.csv') as source:
list(source)
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 · 246 lines · 30 tokens per session scan A 4b5d5bf4609d
testing-patterns is a skill published in the GitHub repository datenoio/iterabledata (37 stars, last pushed 2mo ago), licensed MIT. It adds 30 tokens to every session and 1,327 once invoked, about $0.0001 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-08-30.
Other skills, from other repositories
hook-architecture
This skill should be used when the user asks about "how hooks work", "UserPromptSubmit", "hook-driven testing", "test wrapper", "prompt interception", "hook JSON format", "state management", or needs to understand the architecture of hook-driven automated testing.
test-authoring
This skill should be used when the user asks to "write a test", "create test cases", "add test coverage", "define test expectations", "use contains vs regex", "chain dependent tests", or needs guidance on test definition schema, expectation types, variable capture, or test organization best practices.
validation-strategies
This skill should be used when the user asks about "test validation", "assertion strategies", "regex vs contains", "handling flaky tests", "validation failures", "expected vs actual", or needs guidance on choosing validation approaches and handling edge cases.
research-engineer
An uncompromising Academic Research Engineer. Operates with absolute scientific rigor, objective criticism, and zero flair. Focuses on theoretical correctness, formal verification, and optimal implementation across any required technology.
tika-eval-compare
Compare extracts from two Tika builds over a corpus to detect regressions in content, encoding, exceptions, and embedded-document handling. Use for "compare before/after extracts", "eval this change against the corpus".
cua-driver
Use Cua Driver for desktop or browser tasks that are awkward or unavailable through Bash/APIs, or when the user explicitly wants GUI interaction: app testing, visual bug reproduction, form filling, calendar entry, screenshots, and demo recording. Also covers Cua setup; not OpenAI Codex Computer Use or web research.