Apply a bundled DESIGN.md visual system to an existing HTML file while preserving its content and behavior.
71%
Does it follow best practices?
Run evals on this skill
Adds up to 20 points to the overall score
Passed
No findings from the security scan
Fix and improve this skill with Tessl
tessl review fix ./backend/super-magic/agents/skills/html-design-style/SKILL.mdUse this skill when the user asks to change the visual style of an existing HTML file and provides a bundled style_code.
style_code format.DESIGN.md from Magic Service.The request contains:
target_file: the current HTML file mention and path.style_code: the identifier of the requested design system.user_intent: the user's requested visual direction, when provided.Design documents are owned by Magic Service. Do not expect a local copy under this skill directory.
Fetch the raw DESIGN.md with the get_html_design_style_source tool. It is a Code Mode
tool, so call it through sdk.tool.call in a run_sdk_snippet code snippet. Do not start a
separate python process for this.
from sdk.tool import tool
result = tool.call("get_html_design_style_source", {"style_code": "apple"})
print(result.content)On success result.content holds the complete DESIGN.md text after a one-line header with the
style_code and sha256. Read the whole document before editing; do not print only a prefix.
Rules:
style_code only as a single identifier: lowercase ASCII letters, digits, dots, and hyphens, beginning with a letter or digit..., absolute paths, and any other malformed value before calling the tool.content as the design source of truth.result.ok is false, report the failure from result.content and leave the target file unchanged. Do not guess a fallback style.MagicAgentApi, iframe bridge protocols, or unrelated project files.If the style code is invalid, the design document cannot be fetched, the target file cannot be read, or the requested change cannot be validated, do not overwrite the target file. Explain the exact failure and leave the original file unchanged.
Report:
style_code;dtyq/magic
0f1432c
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.