CtrlK
BlogDocsLog inGet started
Tessl Logo

add-npm-pass

Add a New Pass Manager (NPM) pass to an LLVM 22 in-tree or out-of-tree project. Covers FunctionPass, ModulePass, LoopPass, and CGSCCPass kinds, registration, pipeline wiring, CMake, and lit testing.

72

Quality

87%

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

92%Scale 1-3

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

This is a high-quality, actionable skill that provides a complete, step-by-step guide for adding an NPM pass in LLVM 22. Its greatest strengths are the executable code templates covering all pass kinds, both in-tree and out-of-tree scenarios, and the inclusion of testing/validation steps. The only minor weakness is that all content lives in a single file, though for this topic the length is reasonable and the section headers provide adequate navigation.

DimensionReasoningScore

Conciseness

The content is lean and efficient throughout. It assumes Claude knows C++, LLVM basics, and CMake. The table format for pass kinds is compact, code examples are minimal but complete, and the cheat sheet avoids redundant explanation. No unnecessary preamble or concept explanations.

3 / 3

Actionability

Every step provides fully executable, copy-paste-ready code: complete header files, implementation files, CMakeLists.txt entries, PassRegistry.def lines, lit test templates, and shell commands for smoke testing. Both in-tree and out-of-tree paths are covered with concrete examples.

3 / 3

Workflow Clarity

The 7-step workflow (Step 0 through Step 6) is clearly sequenced from decision-making through implementation, registration, build configuration, and testing. Steps 5 and 6 serve as explicit validation checkpoints (lit tests and manual smoke tests), and the common mistakes section acts as a verification checklist.

3 / 3

Progressive Disclosure

The content is well-structured with clear sections and a logical flow, but it's a single monolithic file (~200 lines) with no references to external files. The cheat sheet and common mistakes sections could potentially be split out, and the in-tree vs out-of-tree paths could benefit from separate reference files to reduce cognitive load.

2 / 3

Total

11

/

12

Passed

Description

82%Scale 1-3

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

This is a strong, highly specific description for a niche LLVM compiler development skill. It excels at listing concrete actions and using domain-appropriate trigger terms that developers would naturally use. The main weakness is the absence of an explicit 'Use when...' clause, which would help Claude know exactly when to select this skill.

Suggestions

Add an explicit 'Use when...' clause, e.g., 'Use when the user wants to create, add, or register a new LLVM pass, or asks about pass manager pipeline integration.'

DimensionReasoningScore

Specificity

Lists multiple specific concrete actions: adding NPM passes to LLVM, covering FunctionPass/ModulePass/LoopPass/CGSCCPass kinds, registration, pipeline wiring, CMake configuration, and lit testing.

3 / 3

Completeness

Clearly answers 'what does this do' (add NPM passes with specific pass kinds, registration, CMake, testing), but lacks an explicit 'Use when...' clause specifying when Claude should select this skill. The 'when' is only implied by the description of capabilities.

2 / 3

Trigger Term Quality

Includes highly specific natural keywords a user would use: 'LLVM', 'pass', 'New Pass Manager', 'NPM', 'FunctionPass', 'ModulePass', 'LoopPass', 'CGSCCPass', 'pipeline', 'CMake', 'lit testing', 'in-tree', 'out-of-tree'. These are exactly the terms an LLVM developer would mention.

3 / 3

Distinctiveness Conflict Risk

Extremely specific niche — LLVM 22 New Pass Manager passes. This is unlikely to conflict with any other skill given the highly specialized domain and precise terminology.

3 / 3

Total

11

/

12

Passed

Validation

100%

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

Validation11 / 11 Passed

Validation for skill structure

No warnings or errors.

Repository
hbarve1/tessl-llvm
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.