← 返回 Skills 市场
athola

Nm Leyline Testing Quality Standards

作者 athola · GitHub ↗ · v1.0.0 · MIT-0
cross-platform ✓ 安全检测通过
96
总下载
0
收藏
1
当前安装
1
版本数
在 OpenClaw 中安装
/install nm-leyline-testing-quality-standards
功能描述
Cross-plugin testing quality metrics, coverage thresholds, and anti-patterns
使用说明 (SKILL.md)

Night Market Skill — ported from claude-night-market/leyline. For the full experience with agents, hooks, and commands, install the Claude Code plugin.

Testing Quality Standards

Shared quality standards and metrics for testing across all plugins in the Claude Night Market ecosystem.

When To Use

  • Establishing test quality gates and coverage targets
  • Validating test suite against quality standards

When NOT To Use

  • Exploratory testing or spike work
  • Projects with established quality gates that meet requirements

Table of Contents

  1. Coverage Thresholds
  2. Quality Metrics
  3. Detailed Topics

Coverage Thresholds

Level Coverage Use Case
Minimum 60% Legacy code
Standard 80% Normal development
High 90% Critical systems
detailed 95%+ Safety-critical

Quality Metrics

Structure

  • Clear test organization
  • Meaningful test names
  • Proper setup/teardown
  • Isolated test cases

Coverage

  • Critical paths covered
  • Edge cases tested
  • Error conditions handled
  • Integration points verified

Maintainability

  • DRY test code
  • Reusable fixtures
  • Clear assertions
  • Minimal mocking

Reliability

  • No flaky tests
  • Deterministic execution
  • No order dependencies
  • Fast feedback loop

Detailed Topics

For implementation patterns and examples:

Integration with Plugin Testing

This skill provides foundational standards referenced by:

  • pensive:test-review - Uses coverage thresholds and quality metrics
  • parseltongue:python-testing - Uses anti-patterns and best practices
  • sanctum:test-* - Uses quality checklist and content assertion levels for test validation
  • imbue:proof-of-work - Uses content assertion levels to enforce Iron Law on execution markdown

Reference in your skill's frontmatter:

dependencies: [leyline:testing-quality-standards]

Verification: Run pytest -v to verify tests pass.

Troubleshooting

Common Issues

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

安全使用建议
This skill is primarily documentation and test guidance and appears coherent with its stated purpose. Before installing or running anything: 1) Note the metadata mismatch (SKILL.md version 1.8.2 vs registry 1.0.0) and confirm you have the intended release. 2) Inspect the test files and modules locally — running 'pytest -v' will execute code in the repository, so run tests in an isolated environment (container, disposable VM, or CI runner) to avoid unintended side effects. 3) Review the content-assertion examples (they parse repo files and assert on content); ensure those assertions won't read or transmit sensitive files in your environment. 4) Because the skill can be invoked by agents, limit autonomous invocation if you don't want agents to run test suites automatically. If you want stronger assurance, request the author/publisher to resolve the version metadata mismatch and provide a short changelog or provenance for this skill.
功能分析
Type: OpenClaw Skill Name: nm-leyline-testing-quality-standards Version: 1.0.0 The skill bundle provides documentation and guidelines for testing quality standards, coverage thresholds, and anti-patterns within the Claude Night Market ecosystem. The content is purely educational and defensive, including a 'Content Assertion Levels' module (content-assertion-levels.md) specifically designed to detect and prevent manipulative prompt-injection language in other skills. No malicious code, data exfiltration, or unauthorized execution patterns were found.
能力评估
Purpose & Capability
The name/description (testing quality standards) align with the content: coverage thresholds, anti-patterns, and assertion-level guidance. The skill requests no credentials, binaries, or installs, which is proportionate. Minor inconsistency: SKILL.md frontmatter claims version 1.8.2 while the registry metadata lists version 1.0.0 — this is likely a packaging/metadata mismatch rather than functional risk, but worth verifying.
Instruction Scope
SKILL.md and included modules are guidance and example tests. They reference running pytest (verification) and include example code that reads/parses skill/module files for content assertions. This is consistent with a test-quality tool, but be aware that executing 'pytest -v' will run whatever tests exist in the repository (i.e., arbitrary code execution within the test suite). The instructions do not request secrets or external endpoints beyond normal test tooling.
Install Mechanism
No install spec and no code files that would be fetched or executed at install time. Instruction-only skills are lowest-risk for install mechanism.
Credentials
The skill declares no required environment variables, credentials, or config paths. The sample validation code references paths inside the repo (skills/, agents/, modules/, commands/) which is appropriate for content assertions and consistent with the stated purpose.
Persistence & Privilege
The skill is not marked always:true and requests no system privileges. It does not modify other skills or system configuration. Autonomous invocation is enabled by default on the platform but is not combined here with broad privileges or credential access.
如何使用
  1. 确保已安装 OpenClaw(本地或 Docker 部署)
  2. 在对话框中输入安装命令:/install nm-leyline-testing-quality-standards
  3. 安装完成后,直接呼叫该 Skill 的名称或使用 /nm-leyline-testing-quality-standards 触发
  4. 根据 Skill 的参数说明提供必要输入,即可获得结构化输出
版本历史
v1.0.0
- Initial release of the "testing-quality-standards" skill, providing shared cross-plugin test quality metrics and coverage thresholds. - Documents explicit coverage thresholds (60% minimum, 80–95%+ for higher standards) and a quality metrics checklist covering structure, coverage, maintainability, and reliability. - Includes references to anti-patterns, best practices, and LLM content assertion levels for plugin testing. - Lists integration points with other Claude Night Market plugins for automated test quality evaluation. - Provides troubleshooting guidance and YAML usage instructions for quick adoption.
元数据
Slug nm-leyline-testing-quality-standards
版本 1.0.0
许可证 MIT-0
累计安装 1
当前安装数 1
历史版本数 1
常见问题

Nm Leyline Testing Quality Standards 是什么?

Cross-plugin testing quality metrics, coverage thresholds, and anti-patterns. 它是一个面向 Claude Code / OpenClaw 的 AI Agent Skill 插件,目前累计下载 96 次。

如何安装 Nm Leyline Testing Quality Standards?

在 OpenClaw 或 Claude Code 对话框中运行命令「/install nm-leyline-testing-quality-standards」即可一键安装,无需额外配置。

Nm Leyline Testing Quality Standards 是免费的吗?

是的,Nm Leyline Testing Quality Standards 完全免费,采用 MIT-0 许可证,可自由下载、安装和使用。

Nm Leyline Testing Quality Standards 支持哪些平台?

Nm Leyline Testing Quality Standards 跨平台运行,可在任意部署了 OpenClaw / Claude Code 的环境中使用(cross-platform)。

谁开发了 Nm Leyline Testing Quality Standards?

由 athola(@athola)开发并维护,当前版本 v1.0.0。

💬 留言讨论