CtrlK
BlogDocsLog inGet started
Tessl Logo

cpp-modernize

Load when modernizing, migrating, or upgrading C++ code from older standards (C++98/03/11/14) to modern C++ (17/20/23), or when applying systematic code improvements that preserve behavior.

70

Quality

86%

Does it follow best practices?

Run evals on this skill

Adds up to 20 points to the overall score

View guide

SecuritybySnyk

Passed

No findings from the security scan

SKILL.md
Quality
Evals
Security

Quality

Content

72%

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

A concise, well-organized instruction skill that assumes Claude's intelligence and structures its guidance cleanly. Its weak points are actionability (no concrete code examples for the transformation paths) and workflow clarity (no explicit re-validation feedback loop during the refactor).

Suggestions

Add one short before/after code snippet per high-risk path (e.g. raw new/delete to std::unique_ptr, C-style array to std::array) to lift actionability from guidance to executable examples.

Insert an explicit validation checkpoint in the workflow — 'after each refactor, rebuild and re-run the test suite; do not proceed until green' — to provide the validate->fix->retry feedback loop the rubric expects for destructive/batch operations.

Show the concrete compiler-flag/ABI checks as runnable commands (e.g. how to detect -fno-exceptions or query the active standard) rather than only listing them as items to check.

DimensionReasoningScore

Conciseness

The body is lean throughout — a compact table, short numbered lists, and terse gotchas — assuming Claude's competence without explaining basic C++ concepts, so every token earns its place.

3 / 3

Actionability

The modernization-paths table gives concrete direction (raw new/delete to RAII/smart pointers, check sizeof/pointer arithmetic) but provides no executable code or copy-paste before/after examples, leaving it 'some concrete guidance but incomplete' rather than fully executable.

2 / 3

Workflow Clarity

A clear sequencing exists (safety fixes first, then refactors, then style, then performance) and a Before-Starting checklist that verifies tests pass, but there is no explicit re-run-tests/re-validate feedback loop after each refactor step; for a behavior-changing refactor workflow the rubric caps this at 2.

2 / 3

Progressive Disclosure

The skill is under 50 lines with no external references needed, and the content is well-organized into clearly labeled sections (Critical Rule, Before Starting, Common Modernization Paths, Gotchas), satisfying the simple-skill allowance for a top score.

3 / 3

Total

10

/

12

Passed

Description

100%

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, specific description that names concrete actions, exact source/target C++ standards, and an explicit 'Load when' trigger covering both what and when. It is concise, third-person, and unlikely to conflict with other skills.

DimensionReasoningScore

Specificity

Lists multiple concrete actions ('modernizing, migrating, or upgrading') with explicit source/target standards ('C++98/03/11/14' to 'C++ 17/20/23') plus 'systematic code improvements that preserve behavior', matching the 'multiple specific concrete actions' anchor.

3 / 3

Completeness

Explicitly answers both what (modernize/migrate/upgrade C++ between named standards) and when via the 'Load when ...' trigger clause, which is an equivalent explicit trigger guidance so completeness is not capped at 2.

3 / 3

Trigger Term Quality

Uses natural terms a user would actually say ('modernizing', 'migrating', 'upgrading C++ code', 'C++98/03/11/14', 'modern C++ 17/20/23'), giving good coverage of common phrasings rather than jargon.

3 / 3

Distinctiveness Conflict Risk

The C++ standards-migration niche with named source/target standards is a clear, distinct trigger unlikely to fire for unrelated skills.

3 / 3

Total

12

/

12

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.

Validation15 / 16 Passed

Validation for skill structure

CriteriaDescriptionResult

metadata_version

'metadata.version' is missing

Warning

Total

15

/

16

Passed

Repository
zhxc372/cpp-ai-constitution
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.