claude-code-plugin-ref…
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
Defines testing quality metrics, coverage thresholds, and anti-patterns. Use when establishing test gates or validating a test suite's coverage targets.
$ npx -y skills add athola/claude-night-market --skill testing-quality-standards --agent claude-codeHow it fires
How this skill gets triggered: by you, by Claude, or both.
/testing-quality-standardsContext preview
The summary Claude sees to decide when to auto-load this skill.
Defines testing quality metrics, coverage thresholds, and anti-patterns. Use when establishing test gates or validating a test suite's coverage targets.
name: testing-quality-standards description: Defines testing quality metrics, coverage thresholds, and anti-patterns. Use when establishing test gates or validating a test suite's coverage targets. globs: "**/test_*.py" alwaysApply: false category: infrastructure tags: - testing - quality - standards - metrics dependencies: [] estimated_tokens: 400 provides: patterns: - coverage-thresholds - quality-metrics - anti-patterns - content-assertion-levels modules: - modules/anti-patterns.md - modules/best-practices.md - modules/content-assertion-levels.md model_hint: standard
Shared quality standards and metrics for testing across all plugins in the Claude Night Market ecosystem.
1. [Coverage Thresholds](#coverage-thresholds) 2. [Quality Metrics](#quality-metrics) 3. [Detailed Topics](#detailed-topics)
| Level | Coverage | Use Case | |-------|----------|----------| | Minimum | 60% | Legacy code | | Standard | 80% | Normal development | | High | 90% | Critical systems | | detailed | 95%+ | Safety-critical |
For implementation patterns and examples:
This skill provides foundational standards referenced by:
Reference in your skill's frontmatter:
dependencies: [leyline:testing-quality-standards]
**Verification:** Run `pytest -v` to verify tests pass.
**Tests not discovered** Ensure test files match pattern `test_*.py` or `*_test.py`. Run `pytest --collect-only` to verify.
**Import errors** Check that the module being tested is in `PYTHONPATH` or install with `pip install -e .`
**Async tests failing** Install pytest-asyncio and decorate test functions with `@pytest.mark.asyncio`
legacy code, 80% for normal development, 90% for critical systems, 95%+ for safety-critical; measured with `pytest --cov` and threshold enforced in `pyproject.toml`
organization, meaningful names, setup/teardown, isolation), Coverage (critical paths, edge cases, error conditions, integration points), Maintainability (DRY fixtures, clear assertions, minimal mocking), Reliability (no flaky tests, deterministic execution, no order dependencies)
confirmed by `pytest --collect-only` returning no errors
maps, timestamps, UUIDs); any found flagged as anti-patterns per `modules/anti-patterns.md`
A plugin marketplace for Claude Code. Install only the plugins you need to run git workflows, code review, spec-driven development, and autonomous agents from inside your Claude Code session.
Explain plugin, skill, command, agent, and hook mechanics used here. Use when authoring or debugging plugins. Do not use for ops; use night-market-operations.
States load-bearing decisions, invariants, and weak points. Use when judging a design change. Do not use for gating; use night-market-change-control.
Rebuild the dev environment: uv, Python tiers, pins, traps. Use when onboarding or toolchain breaks. Do not use for daily commands; use night-market-operations.
Classify, gate, and review changes. Use when landing a PR, releasing, or amending rules. Do not use for failure triage; use night-market-debugging-playbook.
Search and record project memory (Discussions, journal, ADRs). Use before re-investigating anything. Do not use for settled battles; see failure-archaeology.
Bind loop 'done' to unfakeable gates. Use to harden egregore/herald loops or promote completion_integrity. Not for QA gates; use night-market-validation-and-qa.