plugins/compact-reviewer/skills/testing-review/SKILL.md
Use when reviewing test coverage for Compact contracts, identifying missing edge cases, evaluating testing strategies, or assessing test quality and completeness.
npx skillsauth add aaronbassett/midnight-knowledgebase compact-reviewer:testing-reviewInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
4 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Evaluate test coverage, quality, and testing strategy for Compact contracts.
This skill activates for queries about:
Trigger words: test, coverage, edge case, testing strategy, unit test, integration test
| Category | Items to Test | |----------|--------------| | Happy path | Normal operations succeed | | Authorization | Only authorized callers succeed | | Validation | Invalid inputs are rejected | | Boundaries | Edge cases at limits | | State | State changes correctly | | Errors | Proper failures on errors |
| Priority | Coverage Target | |----------|-----------------| | Critical (security) | 100% | | High (core logic) | 90%+ | | Medium (features) | 80%+ | | Low (utilities) | 70%+ |
For each exported circuit:
Evaluate test characteristics:
Check for coverage of:
tools
Use when setting up Midnight development environment, installing Compact compiler and developer tools, configuring proof server, verifying prerequisites, or getting started with Midnight development.
tools
--- name: midnight-tooling:midnight-debugging description: Use when encountering Midnight errors like "compact: command not found", "ERR_UNSUPPORTED_DIR_IMPORT", version mismatches, proof server failures, "@midnight-ntwrk" package errors, or compilation failures. --- # Midnight Environment Debugging Expert knowledge for identifying and resolving common Midnight development toolchain issues. ## Diagnostic Approach When encountering Midnight-related errors, follow this systematic approach: 1.
tools
Use when checking Midnight version compatibility, understanding pragma language_version, verifying compiler and runtime version relationships, or troubleshooting version mismatch errors between Midnight components.
tools
Use when setting up CI/CD for Midnight projects, configuring GitHub Actions for Compact contract compilation, running TypeScript tests in CI, validating version consistency, or automating contract builds.