aiskillstore/marketplace / skills/0xdarkmatter/testing-patterns
testing-patterns
VerifiedCross-language testing strategies and patterns. Triggers on: test pyramid, unit test, integration test, e2e test, TDD, BDD, test coverage, mocking strategy, test doubles, test isolation.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 4.1 KB |
| references/ci-testing.md | markdown | 6.9 KB |
| references/mocking-strategies.md | markdown | 7.0 KB |
| references/tdd-workflow.md | markdown | 5.2 KB |
| references/test-data-patterns.md | markdown | 6.4 KB |
| scripts/coverage-check.sh | script | 762 B |
| skill-report.json | config | 39.5 KB |
skill-report.json
View on GitHub{
"schema_version": "2.0",
"meta": {
"generated_at": "2026-07-06T00:51:33.442Z",
"slug": "0xdarkmatter-testing-patterns",
"source_url": "https://github.com/0xDarkMatter/claude-mods/tree/main/skills/testing-patterns",
"source_ref": "main",
"model": "codex",
"analysis_version": "3.0.0",
"source_type": "community",
"content_hash": "cd9f8b7b21e9b73db41b54de2653b14b12d25ac10d48791c716409dee79b3676",
"tree_hash": "ce544fafef669800d92bf575221de7ffe6318140b68f2066c6af2cb119b8e145",
"provenance": {
"model_requested": "gpt-5.5:high",
"model_effective": "codex:gpt-5.5:high",
"fallback_chain": [
{
"agent": "codex",
"model": "gpt-5.5",
"effort": "high",
"outcome": "success"
}
],
"analysis_version": "3.0.0"
}
},
"skill": {
"name": "testing-patterns",
"description": "Cross-language guidance for designing unit, integration, end-to-end, TDD, mocking, test data, coverage, and CI testing patterns.",
"summary": "Plan reliable tests with patterns for test scope, TDD, mocks, fixtures, coverage, and CI pipelines.",
"icon": "📦",
"version": "1.0.0",
"author": "0xDarkMatter",
"license": "MIT",
"tags": [
"testing",
"tdd",
"mocking",
"ci-cd",
"coverage"
],
"supported_tools": [
"claude",
"codex",
"claude-code"
],
"risk_factors": [
"filesystem",
"env_access",
"network",
"external_commands"
],
"category": "coding"
},
"security_audit": {
"risk_level": "safe",
"is_blocked": false,
"safe_to_publish": true,
"analysis_status": "ok",
"summary": "The static alerts are false positives from documentation examples and one visible coverage helper script. I found no evidence of credential theft, filesystem abuse, network exfiltration, command injection, or prompt injection.",
"remediation": [],
"risk_factor_evidence": [
{
"factor": "filesystem",
"evidence": [
{
"file": "references/ci-testing.md",
"line_start": 144,
"line_end": 144
},
{
"file": "references/ci-testing.md",
"line_start": 144,
"line_end": 144
}
]
},
{
"factor": "env_access",
"evidence": [
{
"file": "references/ci-testing.md",
"line_start": 81,
"line_end": 81
},
{
"file": "references/ci-testing.md",
"line_start": 273,
"line_end": 273
},
{
"file": "references/ci-testing.md",
"line_start": 272,
"line_end": 272
}
]
},
{
"factor": "network",
"evidence": [
{
"file": "references/mocking-strategies.md",
"line_start": 232,
"line_end": 232
}
]
},
{
"factor": "external_commands",
"evidence": [
{
"file": "scripts/coverage-check.sh",
"line_start": 1,
"line_end": 1
},
{
"file": "SKILL.md",
"line_start": 14,
"line_end": 27
},
{
"file": "SKILL.md",
"line_start": 27,
"line_end": 32
},
{
"file": "SKILL.md",
"line_start": 32,
"line_end": 38
},
{
"file": "SKILL.md",
"line_start": 38,
"line_end": 41
},
{
"file": "SKILL.md",
"line_start": 41,
"line_end": 47
},
{
"file": "SKILL.md",
"line_start": 47,
"line_end": 50
},
{
"file": "SKILL.md",
"line_start": 50,
"line_end": 56
},
{
"file": "SKILL.md",
"line_start": 56,
"line_end": 60
},
{
"file": "SKILL.md",
"line_start": 60,
"line_end": 67
},
{
"file": "SKILL.md",
"line_start": 67,
"line_end": 71
},
{
"file": "SKILL.md",
"line_start": 71,
"line_end": 83
},
{
"file": "SKILL.md",
"line_start": 83,
"line_end": 89
},
{
"file": "SKILL.md",
"line_start": 89,
"line_end": 90
},
{
"file": "SKILL.md",
"line_start": 90,
"line_end": 91
},
{
"file": "SKILL.md",
"line_start": 91,
"line_end": 92
},
{
"file": "SKILL.md",
"line_start": 92,
"line_end": 93
},
{
"file": "SKILL.md",
"line_start": 93,
"line_end": 98
},
{
"file": "SKILL.md",
"line_start": 98,
"line_end": 108
},
{
"file": "SKILL.md",
"line_start": 108,
"line_end": 111
},
{
"file": "SKILL.md",
"line_start": 111,
"line_end": 120
},
{
"file": "SKILL.md",
"line_start": 120,
"line_end": 153
},
{
"file": "SKILL.md",
"line_start": 153,
"line_end": 154
},
{
"file": "SKILL.md",
"line_start": 154,
"line_end": 155
},
{
"file": "SKILL.md",
"line_start": 155,
"line_end": 156
},
{
"file": "SKILL.md",
"line_start": 156,
"line_end": 160
}
]
}
],
"static_findings": [
{
"id": "filesystem:references/ci-testing.md:144:hidden-file-in-home-directory",
"category": "filesystem",
"severity": "high",
"pattern": "Hidden file in home directory",
"file": "references/ci-testing.md",
"line_start": 144,
"line_end": 144,
"snippet": "path: ~/.cache/pip"
},
{
"id": "filesystem:references/ci-testing.md:144:hidden-file-access",
"category": "filesystem",
"severity": "medium",
"pattern": "Hidden file access",
"file": "references/ci-testing.md",
"line_start": 144,
"line_end": 144,
"snippet": "path: ~/.cache/pip"
},
{
"id": "env_access:references/ci-testing.md:81:database-connection-strings",
"category": "env_access",
"severity": "high",
"pattern": "Database connection strings",
"file": "references/ci-testing.md",
"line_start": 81,
"line_end": 81,
"snippet": "DATABASE_URL: postgres://postgres:postgres@localhost:5432/test"
},
{
"id": "env_access:references/ci-testing.md:273:database-connection-strings",
"category": "env_access",
"severity": "high",
"pattern": "Database connection strings",
"file": "references/ci-testing.md",
"line_start": 273,
"line_end": 273,
"snippet": "DATABASE_URL: ${{ secrets.TEST_DATABASE_URL }}"
},
{
"id": "env_access:references/ci-testing.md:272:generic-api-secret-keys",
"category": "env_access",
"severity": "high",
"pattern": "Generic API/secret keys",
"file": "references/ci-testing.md",
"line_start": 272,
"line_end": 272,
"snippet": "API_KEY: ${{ secrets.TEST_API_KEY }}"
},
{
"id": "network:references/mocking-strategies.md:232:http-client-library",
"category": "network",
"severity": "low",
"pattern": "HTTP client library",
"file": "references/mocking-strategies.md",
"line_start": 232,
"line_end": 232,
"snippet": ").with_request("
},
{
"id": "sensitive:references/mocking-strategies.md:168:sqlite-database-file",
"category": "sensitive",
"severity": "medium",
"pattern": "SQLite database file",
"file": "references/mocking-strategies.md",
"line_start": 168,
"line_end": 168,
"snippet": "mock_db = mocker.patch(\"app.db\")"
},
{
"id": "sensitive:references/mocking-strategies.md:197:sqlite-database-file",
"category": "sensitive",
"severity": "medium",
"pattern": "SQLite database file",
"file": "references/mocking-strategies.md",
"line_start": 197,
"line_end": 197,
"snippet": "self.db = Database() # Can't mock!"
},
{
"id": "sensitive:references/mocking-strategies.md:203:sqlite-database-file",
"category": "sensitive",
"severity": "medium",
"pattern": "SQLite database file",
"file": "references/mocking-strategies.md",
"line_start": 203,
"line_end": 203,
"snippet": "self.db = db"
},
{
"id": "blocker:references/test-data-patterns.md:100:system-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "System reconnaissance",
"file": "references/test-data-patterns.md",
"line_start": 100,
"line_end": 100,
"snippet": "id = factory.Sequence(lambda n: n + 1)"
},
{
"id": "blocker:references/test-data-patterns.md:162:system-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "System reconnaissance",
"file": "references/test-data-patterns.md",
"line_start": 162,
"line_end": 162,
"snippet": "name=\"Valid User\","
},
{
"id": "blocker:references/test-data-patterns.md:259:system-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "System reconnaissance",
"file": "references/test-data-patterns.md",
"line_start": 259,
"line_end": 259,
"snippet": "# Random but valid email"
},
{
"id": "blocker:references/test-data-patterns.md:312:system-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "System reconnaissance",
"file": "references/test-data-patterns.md",
"line_start": 312,
"line_end": 312,
"snippet": "### 4. Avoid Test Data Dependencies"
},
{
"id": "external_commands:scripts/coverage-check.sh:1:unix-shell-invocation",
"category": "external_commands",
"severity": "medium",
"pattern": "Unix shell invocation",
"file": "scripts/coverage-check.sh",
"line_start": 1,
"line_end": 1,
"snippet": "#!/bin/bash"
},
{
"id": "external_commands:SKILL.md:14:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 14,
"line_end": 27,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:27:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 27,
"line_end": 32,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:32:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 32,
"line_end": 38,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:38:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 38,
"line_end": 41,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:41:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 41,
"line_end": 47,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:47:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 47,
"line_end": 50,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:50:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 50,
"line_end": 56,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:56:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 56,
"line_end": 60,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:60:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 60,
"line_end": 67,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:67:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 67,
"line_end": 71,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:71:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 71,
"line_end": 83,
"snippet": "```python"
},
{
"id": "external_commands:SKILL.md:83:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 83,
"line_end": 89,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:89:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 89,
"line_end": 90,
"snippet": "| **Stub** | Returns canned data | `stub.get_user.returns(fake_user)` |"
},
{
"id": "external_commands:SKILL.md:90:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 90,
"line_end": 91,
"snippet": "| **Mock** | Verifies interactions | `mock.send_email.assert_called_once()` |"
},
{
"id": "external_commands:SKILL.md:91:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 91,
"line_end": 92,
"snippet": "| **Spy** | Records calls, uses real impl | `spy.on(service, 'save')` |"
},
{
"id": "external_commands:SKILL.md:92:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 92,
"line_end": 93,
"snippet": "| **Fake** | Working simplified impl | `FakeDatabase()` instead of real DB |"
},
{
"id": "external_commands:SKILL.md:93:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 93,
"line_end": 98,
"snippet": "| **Dummy** | Placeholder, never used | `null` object for required param |"
},
{
"id": "external_commands:SKILL.md:98:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 98,
"line_end": 108,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:108:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 108,
"line_end": 111,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:111:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 111,
"line_end": 120,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:120:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 120,
"line_end": 153,
"snippet": "```"
},
{
"id": "external_commands:SKILL.md:153:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 153,
"line_end": 154,
"snippet": "- `./references/tdd-workflow.md` - Test-Driven Development cycle"
},
{
"id": "external_commands:SKILL.md:154:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 154,
"line_end": 155,
"snippet": "- `./references/mocking-strategies.md` - When and how to mock"
},
{
"id": "external_commands:SKILL.md:155:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 155,
"line_end": 156,
"snippet": "- `./references/test-data-patterns.md` - Fixtures, factories, builders"
},
{
"id": "external_commands:SKILL.md:156:ruby-shell-backtick-execution",
"category": "external_commands",
"severity": "medium",
"pattern": "Ruby/shell backtick execution",
"file": "SKILL.md",
"line_start": 156,
"line_end": 160,
"snippet": "- `./references/ci-testing.md` - Testing in CI/CD pipelines"
},
{
"id": "blocker:SKILL.md:12:system-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "System reconnaissance",
"file": "SKILL.md",
"line_start": 12,
"line_end": 14,
"snippet": "## The Test Pyramid"
},
{
"id": "blocker:SKILL.md:25:network-reconnaissance",
"category": "blocker",
"severity": "low",
"pattern": "Network reconnaissance",
"file": "SKILL.md",
"line_start": 25,
"line_end": 26,
"snippet": "------------------ - Single function/class"
}
],
"finding_verdicts": [
{
"id": "filesystem:references/ci-testing.md:144:hidden-file-in-home-directory",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "This line is a GitHub Actions cache path for pip packages, not hidden file collection or reading user home files. It is documentation for CI caching."
},
{
"id": "filesystem:references/ci-testing.md:144:hidden-file-access",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "This line configures actions/cache for pip packages in a CI example. It does not access or exfiltrate hidden files from a user home directory."
},
{
"id": "env_access:references/ci-testing.md:81:database-connection-strings",
"verdict": "false_positive",
"confidence": 0.94,
"reason": "The connection string is a local Postgres test service credential inside a CI example. It is not an extracted secret or live production credential."
},
{
"id": "env_access:references/ci-testing.md:273:database-connection-strings",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "The line references a GitHub Actions secret placeholder for test database access. It demonstrates secret injection and does not expose a value."
},
{
"id": "env_access:references/ci-testing.md:272:generic-api-secret-keys",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "The API key is a GitHub Actions secrets placeholder for tests. No concrete key or unauthorized environment access is present."
},
{
"id": "network:references/mocking-strategies.md:232:http-client-library",
"verdict": "false_positive",
"confidence": 0.95,
"reason": "This is Pact contract testing DSL that declares an expected request. It does not make a live network call or name an external endpoint."
},
{
"id": "sensitive:references/mocking-strategies.md:168:sqlite-database-file",
"verdict": "false_positive",
"confidence": 0.96,
"reason": "The snippet patches app.db in a mocking anti-pattern example. It does not reference a SQLite file or disclose sensitive database contents."
},
{
"id": "sensitive:references/mocking-strategies.md:197:sqlite-database-file",
"verdict": "false_positive",
"confidence": 0.95,
"reason": "The code shows a dependency construction example using a Database class. There is no SQLite file path, file read, or sensitive data access."
},
{
"id": "sensitive:references/mocking-strategies.md:203:sqlite-database-file",
"verdict": "false_positive",
"confidence": 0.95,
"reason": "The line assigns an injected db dependency for testability. It is not a database file access or sensitive data operation."
},
{
"id": "blocker:references/test-data-patterns.md:100:system-reconnaissance",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The id field is generated by a test data factory sequence. It is unrelated to system identity commands or reconnaissance."
},
{
"id": "blocker:references/test-data-patterns.md:162:system-reconnaissance",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The text is a sample user name in an object mother pattern. It does not inspect system users or host information."
},
{
"id": "blocker:references/test-data-patterns.md:259:system-reconnaissance",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The line describes random test email data created by Faker. It is not network, host, or account reconnaissance."
},
{
"id": "blocker:references/test-data-patterns.md:312:system-reconnaissance",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "This is a heading about avoiding test data dependencies. It contains no system discovery behavior."
},
{
"id": "external_commands:scripts/coverage-check.sh:1:unix-shell-invocation",
"verdict": "false_positive",
"confidence": 0.82,
"reason": "The file is a visible coverage helper that runs pytest when explicitly invoked. I found no hidden download, persistence, credential access, or exfiltration behavior."
},
{
"id": "external_commands:SKILL.md:14:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks open a Markdown diagram for the test pyramid. They are not Ruby backticks or executable shell syntax."
},
{
"id": "external_commands:SKILL.md:27:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks close a Markdown diagram for the test pyramid. No command execution is present."
},
{
"id": "external_commands:SKILL.md:32:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks start a Markdown block describing unit test attributes. This is documentation, not executable Ruby or shell code."
},
{
"id": "external_commands:SKILL.md:38:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks close a documentation block about unit test attributes. No command is executed."
},
{
"id": "external_commands:SKILL.md:41:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks start a Markdown block describing integration test attributes. This is prose documentation, not Ruby shell execution."
},
{
"id": "external_commands:SKILL.md:47:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks close a documentation block about integration tests. They are not executable syntax."
},
{
"id": "external_commands:SKILL.md:50:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks start a Markdown block describing end-to-end test attributes. No shell or Ruby execution is present."
},
{
"id": "external_commands:SKILL.md:56:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks close a documentation block about end-to-end tests. No command is executed."
},
{
"id": "external_commands:SKILL.md:60:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks start a Markdown block with a test naming pattern. It is static documentation, not executable code."
},
{
"id": "external_commands:SKILL.md:67:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks close a Markdown block with test name examples. No command execution exists."
},
{
"id": "external_commands:SKILL.md:71:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The line starts a fenced Python test example for Arrange-Act-Assert. It is not Ruby backtick execution or a shell command."
},
{
"id": "external_commands:SKILL.md:83:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks close a fenced Python example. This is Markdown syntax only."
},
{
"id": "external_commands:SKILL.md:89:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a stub method example in a Markdown table. They are not shell execution syntax."
},
{
"id": "external_commands:SKILL.md:90:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a mock assertion example in a Markdown table. No command execution occurs."
},
{
"id": "external_commands:SKILL.md:91:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a spy example in a Markdown table. It is documentation, not executable shell or Ruby code."
},
{
"id": "external_commands:SKILL.md:92:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a fake database example in a Markdown table. It does not execute commands."
},
{
"id": "external_commands:SKILL.md:93:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a dummy value example in a Markdown table. No shell execution is present."
},
{
"id": "external_commands:SKILL.md:98:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks start a Markdown block that compares database isolation strategies. It is documentation only."
},
{
"id": "external_commands:SKILL.md:108:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks close a database isolation documentation block. They do not execute Ruby or shell code."
},
{
"id": "external_commands:SKILL.md:111:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks start a Markdown block about external service isolation options. It is static guidance, not executable code."
},
{
"id": "external_commands:SKILL.md:120:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The backticks close an external service isolation documentation block. No command execution exists."
},
{
"id": "external_commands:SKILL.md:153:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a relative reference path. This is a documentation link, not command execution."
},
{
"id": "external_commands:SKILL.md:154:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a relative reference path. It is not a shell command or Ruby backtick operation."
},
{
"id": "external_commands:SKILL.md:155:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a relative reference path. It does not execute anything."
},
{
"id": "external_commands:SKILL.md:156:ruby-shell-backtick-execution",
"verdict": "false_positive",
"confidence": 0.98,
"reason": "The inline backticks format a relative reference path for CI guidance. It is documentation, not executable code."
},
{
"id": "blocker:SKILL.md:12:system-reconnaissance",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The line is the Test Pyramid section heading. It contains no system discovery command or reconnaissance intent."
},
{
"id": "blocker:SKILL.md:25:network-reconnaissance",
"verdict": "false_positive",
"confidence": 0.99,
"reason": "The line is part of an ASCII test pyramid diagram. It does not perform network scanning or reconnaissance."
}
],
"semantic_findings": [],
"critical_findings": [],
"high_findings": [],
"medium_findings": [],
"low_findings": [],
"dangerous_patterns": [],
"files_scanned": 6,
"total_lines": 1282,
"audit_model": "codex",
"audited_at": "2026-07-06T00:51:33.442Z",
"agent_auto_install_policy": "allowed",
"manual_install_policy": "allowed"
},
"content": {
"user_title": "Plan Reliable Tests Across Your Codebase",
"value_statement": "This skill helps teams choose test strategies, mocks, data fixtures, coverage gates, and CI patterns without mixing test scopes. It gives Claude, Codex, and Claude Code structured guidance for unit, integration, end-to-end, TDD, and pipeline testing.",
"seo_keywords": [
"Claude",
"Codex",
"Claude Code",
"testing patterns",
"test pyramid",
"TDD workflow",
"mocking strategy",
"test data factories",
"CI testing",
"coverage checks"
],
"actual_capabilities": [
"Explains unit, integration, and end-to-end test boundaries with a test pyramid model.",
"Provides TDD cycle guidance, naming conventions, and Arrange-Act-Assert examples.",
"Compares stubs, mocks, spies, fakes, and dummies for dependency isolation.",
"Recommends fixture, factory, builder, and object mother patterns for test data.",
"Shows CI testing patterns for sharding, caching, reports, branch protection, and secrets.",
"Includes a Bash coverage helper for pytest projects."
],
"limitations": [
"Framework-specific syntax is limited to short examples, mostly Python and GitHub Actions.",
"The coverage helper assumes pytest, coverage.py, and a src package layout.",
"It does not replace project-specific test architecture decisions.",
"It does not execute tests unless a user or agent runs the included script."
],
"use_cases": [
{
"title": "Refactor Tests Around Boundaries",
"description": "Map an existing test suite into unit, integration, and end-to-end layers before refactoring.",
"target_user": "Backend developer"
},
{
"title": "Design CI Test Gates",
"description": "Plan pipeline stages, caching, sharding, reports, and branch protection for faster feedback.",
"target_user": "QA engineer"
},
{
"title": "Standardize Team Testing Practices",
"description": "Create shared guidance for naming, mocks, fixtures, TDD flow, and coverage expectations.",
"target_user": "Engineering lead"
}
],
"prompt_templates": [
{
"title": "Identify Test Types",
"scenario": "Beginner planning for a new feature.",
"prompt": "Review this feature and classify needed unit, integration, and end-to-end tests. Explain the boundary for each test type."
},
{
"title": "Design Test Data",
"scenario": "Intermediate setup for repeatable tests.",
"prompt": "Suggest fixtures, factories, or builders for this domain model. Keep each test independent and explain cleanup needs."
},
{
"title": "Improve Mocking Strategy",
"scenario": "Intermediate review of fragile tests.",
"prompt": "Review these tests for over-mocking, deep mocking, and long setup. Recommend simpler boundaries and test doubles."
},
{
"title": "Audit CI Testing Pipeline",
"scenario": "Advanced review of release confidence.",
"prompt": "Evaluate this CI testing pipeline for stage order, parallelization, flaky test handling, coverage reporting, branch protection, and secret usage."
}
],
"output_examples": [
{
"input": "A checkout service depends on tax, inventory, payment, and email systems.",
"output": [
"Unit tests cover price rules, validation, and state transitions with service boundaries mocked.",
"Integration tests use a real database and fake external payment and email providers.",
"End-to-end tests cover only the successful purchase and the most important failure path."
]
},
{
"input": "A team has slow tests, unclear fixtures, and many flaky pipeline failures.",
"output": [
"Move deterministic business logic tests closer to unit level.",
"Replace shared mutable fixtures with factories or builders.",
"Shard long test groups and quarantine flaky tests with visible tracking."
]
},
{
"input": "A developer wants to use TDD for a discount calculation feature.",
"output": [
"List expected behaviors before implementation.",
"Start with the simplest failing case and write minimal production logic.",
"Refactor names and structure only after the test passes."
]
}
],
"best_practices": [
"Keep most tests at the unit level and reserve end-to-end tests for critical journeys.",
"Mock only external boundaries, such as databases, queues, payment providers, and email services.",
"Use deterministic fixtures and seed random data when randomness is useful."
],
"anti_patterns": [
"Testing private implementation details instead of observable behavior.",
"Building mocks that duplicate production logic or make setup longer than the test.",
"Sharing mutable test data across tests and creating order dependencies."
],
"faq": [
{
"question": "Does this skill support only Python?",
"answer": "No. The principles are language-agnostic, but several examples use Python and GitHub Actions."
},
{
"question": "Can it write complete tests for my project?",
"answer": "It guides test design and examples. Project-specific assertions still need your code context."
},
{
"question": "Does it run the coverage script automatically?",
"answer": "No. The included script runs only when a user or agent explicitly executes it."
},
{
"question": "How should I use it with Claude Code or Codex?",
"answer": "Ask for a test plan, mock review, fixture strategy, or CI pipeline audit for your repository."
},
{
"question": "Can it help with CI pipelines?",
"answer": "Yes. It covers pipeline stages, caching, sharding, reports, branch protection, and test secrets."
},
{
"question": "Does it cover security tests?",
"answer": "It marks auth and permission checks as important. It is not a full security testing methodology."
}
]
},
"file_structure": [
{
"name": "references",
"type": "dir",
"path": "references",
"children": [
{
"name": "ci-testing.md",
"type": "file",
"path": "references/ci-testing.md",
"lines": 294
},
{
"name": "mocking-strategies.md",
"type": "file",
"path": "references/mocking-strategies.md",
"lines": 240
},
{
"name": "tdd-workflow.md",
"type": "file",
"path": "references/tdd-workflow.md",
"lines": 215
},
{
"name": "test-data-patterns.md",
"type": "file",
"path": "references/test-data-patterns.md",
"lines": 333
}
]
},
{
"name": "scripts",
"type": "dir",
"path": "scripts",
"children": [
{
"name": "coverage-check.sh",
"type": "file",
"path": "scripts/coverage-check.sh",
"lines": 39
}
]
},
{
"name": "SKILL.md",
"type": "file",
"path": "SKILL.md",
"lines": 161
}
]
}
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| finishing-a-development-branchobra/superpowersUse when implementation is complete, all tests pass, and you need to decide how to integrate the work | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| systematic-debuggingobra/superpowersUse when encountering any bug, test failure, or unexpected behavior, before proposing fixes | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| test-driven-developmentobra/superpowersUse when implementing any feature or bugfix, before writing implementation code | Stars: 322k | Updated | Claude CodeCodex | Verified | Install |
| skill-creatoranthropics/skillsCreate new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy. | Stars: 198k | Updated | Claude CodeCodex | Verified | Install |