CtrlK
BlogDocsLog inGet started
Tessl Logo

android-dimen-dp-sp

将布局与代码中的硬编码 dp、sp 改为引用 @dimen/dp_*、@dimen/sp_* 与 R.dimen.*; 资源名规则为整数部分与一位小数部分用下划线连接(如 12.5 → dp_12_5)。 在用户要求去掉魔法数、统一 dimen、替换 dp/sp 字面量或规范化尺寸引用时使用。

71

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

80%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.

A focused, well-structured single-purpose skill with concrete naming rules and examples for both XML and code. Its main gap is the absence of an explicit validation/verification checkpoint for the XML and source edits it prescribes.

Suggestions

Add an explicit verification step after substitution (e.g. confirm referenced @dimen/R.dimen entries resolve or that the module still builds) to lift the workflow_clarity cap that applies to XML/batch edits.

Merge the '命名规则' and '从字面量到资源名的算法' sections — the truncation rule and the 12.5555 → dp_12_5 example are currently stated twice — to tighten conciseness.

Provide a brief fallback for the rare case where a dimen entry does not already exist (the skill assumes it does), so the agent has a checkpoint instead of silently emitting an unresolved reference.

DimensionReasoningScore

Conciseness

Mostly lean and assumes Claude knows Android basics, but the truncation rule and 12.5555 → dp_12_5 example are restated across both '命名规则' and '从字面量到资源名的算法', a minor redundancy that could be trimmed.

4 / 5

Actionability

Provides an explicit naming algorithm, a worked example table, and concrete XML (@dimen/dp_12_5) and Kotlin/Java (R.dimen.dp_12_5) reference forms that are directly applicable.

5 / 5

Workflow Clarity

The transformation sequence is clear and edge cases are flagged in '注意', but for an XML/code-editing skill there is no explicit validation or verification step (e.g. confirm references resolve / build passes), which caps the score per the batch/XML-manipulation rule.

3 / 5

Progressive Disclosure

Under 50 lines with no external references needed; content is organized into clearly labeled sections (何时用, 命名规则, 算法, XML/Kotlin 写法, 注意) that are easy to navigate.

5 / 5

Total

17

/

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 precise, third-person description that names the domain, lists concrete actions, states the naming convention, and gives explicit 'use when' triggers. It is concise without fluff and clearly distinguishable from sibling skills.

DimensionReasoningScore

Specificity

Lists multiple concrete actions — replacing hardcoded dp/sp with @dimen/dp_*, @dimen/sp_* and R.dimen.* — plus an explicit naming rule, giving comprehensive coverage of the transformation.

5 / 5

Completeness

Explicitly answers both 'what' (rewrite hardcoded dp/sp to dimen references with a stated naming rule) and 'when' (使用当用户要求…) with concrete trigger phrases.

5 / 5

Trigger Term Quality

Includes natural trigger phrases users would say ('去掉魔法数', '统一 dimen', '替换 dp/sp 字面量', '规范化尺寸引用'), with good synonym coverage, though a few common phrasings (e.g. '抽取/复用尺寸') are absent.

4 / 5

Distinctiveness Conflict Risk

Occupies a clear niche (Android hardcoded dp/sp → @dimen/R.dimen) with distinct triggers and minimal overlap with other skills.

5 / 5

Total

19

/

20

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
afkT/DevUtils
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.