codex-test
Skill1 starsChanged 4 months agoMITView on GitHub
Architects comprehensive test suites, generates property-based and edge-case test harnesses, writes integration tests with isolated dependencies, and configures performance benchmark suites. Produces timestamped test plans and execution reports in codex-drive/walkthroughs/.
In this repository24 other files it gives its agents.
- codex-architectureSkill
- codex-brainSkill
- ai-codex-c-cppSkill
- ai-codex-csharp-dotnetSkill
- codex-debugSkill
- codex-deepSkill
- codex-elixirSkill
- codex-flutter-dartSkill
- codex-goalSkill
- ai-codex-goSkill
- ai-codex-java-kotlinSkill
- ai-codex-phpSkill
- codex-plansSkill
- ai-codex-pythonSkill
- codex-reviewSkill
- ai-codex-rustSkill
- codex-skillsSkill
- codex-solidity-web3Skill
- codex-sql-databaseSkill
- codex-startSkill
- ai-codex-swiftSkill
- ai-codex-typescript-reactSkill
- ai-codex-ui-ux-designSkill
- codex-zigSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 67
All testing reports generated by codex-test MUST be Markdown (.md) files with exact date-time metadata.
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
Codex Test — Test Engineering & Benchmarking Skill
The verification and quality assurance engine of AI Codex. Ensures software correctness through rigorous unit, integration, property-based, and benchmark test suites.
Overview
codex-test applies disciplined test engineering across all layers of the testing pyramid. Rather than writing superficial tests, it targets boundary conditions, malicious payloads, concurrency race hazards, and performance degradation. It outputs timestamped test reports and test plan walkthroughs into codex-drive/walkthroughs/.
When to Trigger
- User runs
/codex-test(e.g.,/codex-test write unit tests for payment engine,/codex-test add integration tests with Testcontainers,/codex-test benchmark JSON serialization throughput) - Writing tests for a newly implemented feature or refactored component
- Setting up CI/CD test automation or establishing code coverage thresholds
Execution Workflow
┌────────────────────────────────────────────────────────┐
│ 1. ANALYZE SYSTEM CONTRACTS & FAILURE MODES │
│ Map inputs, outputs, invariants, and edge cases. │
└──────────────────────────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────────────────────────┐
│ 2. DESIGN TESTING PYRAMID MATRIX │
│ Unit tests, integration tests, E2E & benchmarks. │
└──────────────────────────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────────────────────────┐
│ 3. IMPLEMENT TEST SUITES & ISOLATED HARNESSES │
│ Mock dependencies, seed test data, property tests. │
└──────────────────────────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────────────────────────┐
│ 4. EXECUTE & MEASURE (COVERAGE & PERFORMANCE) │
│ Run tests, measure execution time, check coverage. │
└──────────────────────────┬─────────────────────────────┘
│
▼
┌────────────────────────────────────────────────────────┐
│ 5. WRITE VERIFICATION REPORT IN CODEX-DRIVE │
│ Write codex-drive/walkthroughs/YYYY-MM-DD-*.test.md │
└────────────────────────────────────────────────────────┘Test Walkthrough Specification (codex-drive/walkthroughs/)
All testing reports generated by codex-test MUST be Markdown (.md) files with exact date-time metadata.
Filename Format:
codex-drive/walkthroughs/YYYY-MM-DD-<slug>.test.md
Standard Test Execution Report Template:
# [Component / Feature Name] Test Engineering & Verification Report
> **Created At**: YYYY-MM-DD HH:MM:SS (Local Time)
> **Active Codex Edition**: [`skills/codex/<edition>/`](file:///...)
> **Test Framework**: [e.g., Vitest / Jest / pytest / cargo test / xUnit / Swift Testing]
> **Total Test Count**: [e.g., 42 passed, 0 failed, 0 skipped]
> **Execution Duration**: [e.g., 1.42s]
---
## 1. Test Strategy & Scope Matrix
| Test Layer | Target Component | Coverage Focus | Tooling / Harness |
| :--- | :--- | :--- | :--- |
| **Unit** | `OrderCalculator` | Rounding, tax boundaries, empty arrays | Standard Test Runner |
| **Property-Based** | `CurrencyParser` | Fuzzing random Unicode, extreme values | `fast-check` / `proptest` / `Hypothesis` |
| **Integration** | `OrderRepository` | DB transactions, rollback integrity | Testcontainers (PostgreSQL) |
| **Benchmark** | `OrderSerializer` | Throughput (MB/s), allocations (B/op) | BenchmarkDotNet / Criterion / pytest-benchmark |
## 2. Edge Cases & Boundary Conditions Tested
- [x] **Zero / Negative Inputs**: Verified rejection of negative order quantities.
- [x] **Null / Missing Attributes**: Handled missing optional metadata gracefully.
- [x] **Concurrency & Race Conditions**: Executed 100 concurrent requests without data corruption.
- [x] **Network Disruption**: Verified exponential backoff and timeout handling.
## 3. Test Code Implementation
```typescript
describe("OrderCalculator", () => {
it("should calculate exact tax without IEEE 754 floating point drift", () => {
const result = calculateTotal({ subtotal: 19.99, taxRate: 0.0825 });
expect(result.total).toBe(21.64);
});
});4. Execution Results & Coverage Metrics
- Line Coverage: 98.4%
- Branch Coverage: 95.1%
- All Invariants Verified: YES
5. Continuous Integration (CI) Command
npm run test:coverage
---
## Response Protocol
When `codex-test` finishes:
1. Provide a direct link to `[View Test Report](file:///.../codex-drive/walkthroughs/YYYY-MM-DD-<slug>.test.md)`.
2. Summarize the number of tests added and edge cases covered.
3. Provide the exact command line to run the test suite locally.Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

