No slash command · from helix
Evaluates design-to-code fidelity by comparing design screenshots, DSL, source code, and rendered output. Produces a fidelity percentage and actionable report for D2C optimization.
Ships in helix. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
Score how faithfully a code-generated page restores its design source, then produce an optimization-oriented report that another D2C skill can use to improve the implementation in the next pass.
This skill evaluates visible output fidelity. Source code is used to locate likely causes and suggest implementation changes; source quality is not scored unless it creates visible design mismatch.
Expect these inputs from the user or surrounding task context:
If the overlay is available, use it primarily to diagnose layout, size, edge, and alignment drift. Do not use the overlay as the main evidence for color or typography, because the colors are blended.
For v1, assume the screenshots are comparable and the page has rendered successfully. Do not perform viewport, DPR, asset-loading, or blank-page comparability checks unless the user explicitly asks for that.
App, WebView, and mini-program container chrome is not part of the page fidelity target. Do not score system status bars, WebView title bars, mini-program capsule controls, native back controls, or bottom gesture bars as implementation omissions or extra elements.
If the design screenshot includes host chrome but the rendered screenshot represents only the H5/business page, evaluate the business page content boundary. When the surrounding workflow provides design_crop_top, treat that top crop as the intended material alignment and do not deduct for the removed host chrome.
If the overlay appears vertically shifted because host chrome was not cropped from the design side, report this as a material alignment issue before assigning implementation deductions. In that case, avoid turning the whole-page offset caused by host chrome into code optimization advice such as adding fake status bars or drawing mini-program capsules.
When no design screenshot (image-source.png) is available, the evaluator operates in dsl-only mode:
D2C_FIDELITY_MODE=dsl-only or pass --mode dsl-onlyreferences/scoring-rubric.md.references/report-schema.md.d2c/temp/d2c-fidelity-evaluator-report/ folder. Create the folder if needed.Every evaluation must create a new Markdown report file on disk.
Determine the target workspace root as follows:
Save reports under:
<target-workspace-root>/d2c/temp/d2c-fidelity-evaluator-report/
Use this filename pattern:
d2c-fidelity-evaluator-r{round}.md
Round selection:
r6, use that number.d2c/temp/d2c-fidelity-evaluator-report/d2c-fidelity-evaluator-r*.md files and use the next integer round.-run-{n} before .md, where n is the next available integer.The chat response should include the report path and a concise score summary. The full Markdown report file should include both the human-readable report and the JSON report block.
Use these weights:
Overall score:
overallScore =
layoutStructure * 0.40 +
visualStyle * 0.25 +
contentAssets * 0.15 +
perceptualSimilarity * 0.20
Scores are percentages from 0 to 100. Round the final score to the nearest whole number unless precise measurements justify one decimal place.
The report must be useful as input to a subsequent D2C optimization skill. Avoid generic comments such as "spacing is off" or "style differs". Each important finding must include:
Prefer fewer high-signal findings over a long list of vague observations. Findings should be actionable, localizable, and re-checkable.
Return both:
references/report-schema.md for downstream automation.The Markdown should summarize the score, dimension breakdown, top optimization plan, and key findings. The JSON should preserve the detailed structure for machine consumption.
When the user or surrounding workflow is Chinese, write the human-readable Markdown report in Chinese. Keep JSON field names in English for automation, but prefer Chinese for descriptive JSON string values such as summary, notes, action, rationale, evidence, suggestedChange, and acceptanceCriteria.
What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
8 skills in this plugin
/brainstorming用户独立调用的方案探索工具。澄清问题与约束,比较可行方案并给出推荐方向,不由研发命令自动触发。/code-review为 HelixHarness Apply 评审固定比较点之后的代码变化;并行执行 Standards 与 Spec 两个独立评审轴,分轴报告结果,并按 HelixHarness 合同完成修复和复审。/d-d2c用户提到 d-d2c、设计稿还原、MasterGo、贴图比对、design-to-code、页面开发,或使用 d-d2c --create-page / --update-page / --component 时,按这个 skill 要求执行;支持新建整页、更新已有页、组件/弹层/卡片三种流程入口,后两者分别读取 rules/d-d2c-update-page.md / rules/d-d2c-component.md 作为流程覆盖层/feedbackHelixHarness 使用问题反馈通道。当用户在 /helix:* 命令与工作流中遇到问题并表现出困扰时主动使用:命令反复失败或报错无法推进、生成的文档/字段/结构与用户预期不符、流程在某一步卡住不动、用户对 HelixHarness 表达不满困惑或抱怨、放弃工作流改用手工方式,或明确要求提交反馈。此时向用户建议提交反馈,发送前必须经用户确认。不触发:用户业务代码的问题、与 HelixHarness 无关的报错、一般使用咨询、模型已自行修复的故障。npx claudepluginhub didi/helixharness --plugin helixOther plugins' skills for the same job