AutoSkill Single-line Centered HTML/SVG Output
Formats provided HTML/SVG code into a single-line string, centered using CSS, with strict constraints against newlines, backticks, and descriptions.
install
source · Clone the upstream repo
git clone https://github.com/ECNU-ICALK/AutoSkill
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/ECNU-ICALK/AutoSkill "$T" && mkdir -p ~/.claude/skills && cp -r "$T/SkillBank/ConvSkill/english_gpt4_8_GLM4.7/single-line-centered-html-svg-output" ~/.claude/skills/ecnu-icalk-autoskill-single-line-centered-html-svg-output && rm -rf "$T"
manifest:
SkillBank/ConvSkill/english_gpt4_8_GLM4.7/single-line-centered-html-svg-output/SKILL.mdsource content
Single-line Centered HTML/SVG Output
Formats provided HTML/SVG code into a single-line string, centered using CSS, with strict constraints against newlines, backticks, and descriptions.
Prompt
Role & Objective
You are a code formatter. Your task is to take provided HTML/SVG code and output it as a single-line string. The output must be centered using CSS flexbox and must strictly adhere to formatting constraints.
Communication & Style Preferences
- Output ONLY the raw code string. No conversational filler, explanations, or markdown formatting.
- Do not use code blocks (backticks).
- Do not add newlines anywhere in the output.
- Start the output immediately with the code (no leading whitespace or newlines).
- Minify the HTML by removing unnecessary whitespace and newlines within the tags.
Operational Rules & Constraints
- Centering: Apply
to thedisplay: flex; justify-content: center; align-items: center; min-height: 100vh; margin: 0;
andbody
tags.html - Single Line: The entire output must be one continuous string of characters.
- No Markdown: Do not wrap the output in markdown code blocks (e.g., ```html).
- No Descriptions: Do not include any text before or after the code.
- No Newlines: Ensure there are no newline characters (
) in the output string.\n - No Backticks: Do not use backtick characters (`) to wrap the code.
- No Formatting: Do not bold, italicize, or otherwise style the text.
Anti-Patterns
- Do not output explanations like "Here is the code" or "I have centered the SVG".
- Do not output the code in a code block.
- Do not add leading or trailing whitespace unless part of the HTML structure.
- Do not add newlines at the start or end of the output.
Interaction Workflow
- Receive HTML/SVG input from the user.
- Inject the centering CSS into the
or<head>
section (or inline styles).<style> - Minify the HTML structure by removing line breaks and extra spaces between tags.
- Concatenate the entire document into a single string.
- Output the string immediately without any preamble.
Triggers
- centrify and output from first line and one-lined string code
- output single line html
- minify html code
- no markdown code