CtrlK
BlogDocsLog inGet started
Tessl Logo
SkillPublic

cpp-testing

仅用于编写/更新/修复C++测试、配置GoogleTest/CTest、诊断失败或不稳定的测试,或添加覆盖率/消毒器时使用。

1.27x
Quality

83%

Does it follow best practices?

Impact

93%

1.27x

Average score across 3 eval scenarios

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

67%Weight 40%Scale 1-5

Reviews the quality of instructions and guidance provided to agents. Good implementation is clear, handles edge cases, and produces reliable results.

The body is a well-structured, highly actionable C++ testing reference with executable gtest/gmock, CMake/CTest, coverage, and sanitizer examples plus clear TDD and debugging workflows. Its main weaknesses are redundant flaky-testing guidance repeated across three sections and a long single-file layout that inlines detail a reference file could hold.

Suggestions

Deduplicate flaky-test guidance: consolidate "偶发性测试防护", "不应该做", and "常见陷阱", which repeat the same sleep/condition-variable, real-time/network, unique-temp-dir, and over-mocking advice two to three times.

Remove the duplicate basic example: the Add test in "TDD 工作流" is repeated nearly verbatim in "代码示例/基础单元测试" — keep only one.

Move the coverage (GCC/lcov and Clang/llvm-cov) and sanitizer command walkthroughs into a reference file, keeping only the option toggles and one command sequence inline, and fix the malformed FetchContent URL line that embeds prose.

DimensionReasoningScore

Conciseness

Terse bullets and code dominate, but the same guidance repeats across "偶发性测试防护", "不应该做", and "常见陷阱" (sleep/condition variables, real time/network, unique temp dirs, and over-mocking each appear two to three times), and the basic Add test appears in both "TDD 工作流" and "基础单元测试". Mostly efficient but could be meaningfully tightened; not 2 because there is no padded prose re-explaining basics at length.

3 / 5

Actionability

Nearly all code is executable: complete gtest/gmock tests, a CMake/CTest setup, full lcov/llvm-cov command sequences, and sanitizer flags. Minor gaps: the FetchContent URL line embeds prose ("URL Google Test framework (official repository) https://...") and the fixture/libFuzzer examples are explicitly labeled stubs.

4 / 5

Workflow Clarity

The RED→GREEN→REFACTOR cycle and the 4-step debugging loop ("使用 gtest 过滤器重新运行单个失败的测试 ... 根本原因修复后,扩展到完整套件") are clearly sequenced with implicit re-run checkpoints. Not 5: there is no explicit validate-then-proceed feedback loop spelled out for the TDD cycle.

4 / 5

Progressive Disclosure

Well-organized single-level structure with clear section headers, an explicitly optional appendix ("可选附录:模糊测试 / 属性测试"), and no nested or buried references. Not 5: at roughly 320 lines, the coverage and sanitizer walkthroughs and the alternatives list could be split into reference files.

4 / 5

Total

15

/

20

Passed

Description

92%Weight 40%Scale 1-5

Based on the skill's description, can an agent find and select it at the right time? Clear, specific descriptions lead to better discovery.

A strong trigger-style description that fuses concrete capabilities (write/update/fix tests, configure GoogleTest/CTest, diagnose flaky failures, coverage, sanitizers) with an explicit 'use only when' clause and a clearly bounded C++-testing niche. Its only weakness is modest synonym coverage (no gmock, unit-test, or CI variants).

DimensionReasoningScore

Specificity

"编写/更新/修复C++测试、配置GoogleTest/CTest、诊断失败或不稳定的测试,或添加覆盖率/消毒剂" lists multiple concrete actions — write/update/fix tests, configure GoogleTest/CTest, diagnose failing or flaky tests, add coverage/sanitizers — comprehensively covering the skill's stated scope. Not 4: the action coverage is comprehensive rather than having minor gaps.

5 / 5

Completeness

"仅用于...时使用" is an explicit use-when clause, and the enumerated activities concretely state what the skill covers, answering both what and when with concrete trigger phrases. Not 4: the 'when' is fully explicit and specific rather than merely present.

5 / 5

Trigger Term Quality

Good natural keywords users would say: "C++测试", "GoogleTest", "CTest", "不稳定的测试" (flaky tests), "覆盖率" (coverage), "消毒剂" (sanitizers). Not 5: common synonyms and variants like "gmock", "单元测试" (unit tests), or "CI" are missing.

4 / 5

Distinctiveness Conflict Risk

"仅用于...C++测试" plus tool-specific triggers (GoogleTest/CTest, sanitizers) carves a clear C++-testing niche with minimal overlap risk against non-C++ or non-testing skills. Not 4: the 'only for' scoping leaves little ambiguity about when it applies.

5 / 5

Total

19

/

20

Passed

Validation

93%

Checks the skill against the spec for correct structure and formatting. All validation checks must pass before discovery and implementation can be scored.

Validation — 15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

frontmatter_unknown_keys

Unknown frontmatter key(s) found; consider removing or moving to metadata

Warning

Total

15

/

16

Passed

Repository

xu-xiang/everything-claude-code-zh

Path

docs/zh-CN/skills/cpp-testing/SKILL.md

Reviewed

Table of Contents

Is this your skill?

If you maintain this skill, you can claim it as your own. Once claimed, you can manage eval scenarios, bundle related skills, attach documentation or rules, and ensure cross-agent compatibility.