CtrlK
BlogDocsLog inGet started
Tessl Logo

code-optimization

Optimize code performance through iterative improvements (max 2 rounds). Benchmark execution time and memory usage, compare against baseline implementations, and generate detailed optimization reports. Supports C++, Python, Java, Rust, and other languages.

67

Quality

80%

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

Fix and improve this skill with Tessl

tessl review fix ./.trae/openclaw-skills/code-optimization/SKILL.md
SKILL.md
Quality
Evals
Security

Quality

Content

77%

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

The body is highly actionable with a clear, validated multi-step workflow, but it is verbose (a duplicated full report plus generic best-practice padding) and monolithic with no progressive disclosure of reference material into bundle files.

Suggestions

Remove the duplicate worked report example or move it to a reference file, keeping only one report template inline.

Move the Optimization Strategies, Tools and Commands, and Best Practices sections into separate reference files (e.g., references/STRATEGIES.md, references/TOOLS.md) and link them one level deep from the overview.

Trim generic knowledge Claude already has (what SIMD/cache optimization/profiling tools are) down to the non-obvious specifics.

DimensionReasoningScore

Conciseness

Mostly useful but padded: the full optimization report appears twice (a worked Chinese example and a near-identical template), and the Best Practices, Common Pitfalls, and Tools sections restate knowledge Claude already has; it is not a score-1 concept-explainer but could be tightened considerably.

2 / 3

Actionability

Provides concrete, executable commands — g++/rustc/javac/go build lines, python3 runs, perf/valgrind/sanitizer invocations, diff verification, and a copy-paste report template — fully meeting the executable-guidance anchor.

3 / 3

Workflow Clarity

A clear 5-step sequence (Read → Compile/Execute → Extract Metrics → Iterate → Save) with explicit verification checkpoints (PASS checks, sanitizers, diff) and feedback loops (revert if degrading, re-validate), matching the anchor with explicit validation steps.

3 / 3

Progressive Disclosure

Well-sectioned but monolithic at ~380 lines with no bundle files; the report template, optimization strategies, and tools reference are content that should be split into separate files but are all inline, fitting the 'structure present but content that should be separate is inline' anchor.

2 / 3

Total

10

/

12

Passed

Description

82%

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

The description is specific, third-person, and distinctive with good natural trigger terms, but omits an explicit 'Use when...' clause, which caps completeness at 2. Adding an explicit trigger sentence would raise it to a top score.

Suggestions

Append an explicit 'Use when...' clause (e.g., 'Use when the user asks to speed up, optimize, or benchmark code performance against a baseline').

Add common natural variations such as 'speed up', 'make code faster', or 'profiling' to broaden trigger coverage.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — 'Optimize code performance through iterative improvements (max 2 rounds)', 'Benchmark execution time and memory usage', 'compare against baseline implementations', 'generate detailed optimization reports', plus named language support — matching the multiple-specific-actions anchor.

3 / 3

Completeness

Clearly states what the skill does but lacks an explicit 'Use when...' trigger clause, so per the guidelines completeness is capped at 2 even though the 'what' is thorough.

2 / 3

Trigger Term Quality

Good coverage of natural terms users would say: 'optimize code performance', 'benchmark execution time', 'memory usage', 'baseline', 'optimization reports', and the named languages C++/Python/Java/Rust.

3 / 3

Distinctiveness Conflict Risk

The 2-round iteration cap combined with benchmark-vs-baseline and report generation carves a clear niche unlikely to trigger for unrelated coding skills.

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.

Validation16 / 16 Passed

Validation for skill structure

No warnings or errors.

Repository
huangruiteng/CS-Notes
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.