Claude-skill-registry Liquid Render Skill
Locally render Liquid templates using a virtual lab (Node.js engine).
install
source · Clone the upstream repo
git clone https://github.com/majiayu000/claude-skill-registry
Claude Code · Install into ~/.claude/skills/
T=$(mktemp -d) && git clone --depth=1 https://github.com/majiayu000/claude-skill-registry "$T" && mkdir -p ~/.claude/skills && cp -r "$T/skills/data/liquid-render" ~/.claude/skills/majiayu000-claude-skill-registry-liquid-render-skill && rm -rf "$T"
manifest:
skills/data/liquid-render/SKILL.mdsource content
Capabilities
This skill allows you to "compile" Liquid logic instantly without waiting for Shopify. You can check if your logic (loops, filters, math) is correct. It also allows you to render a snippet into an HTML file (
save_preview) so you can open it with Playwright and see the result.
Dependencies
- Local MCP Server: This skill comes with a built-in Node.js server.
- Node.js: Required to run the server.
Tools Usage Guide
1. render_liquid
render_liquidRender a piece of code and get the HTML string back.
- Param
:template{% if products.size > 0 %}...{% endif %} - Param
:data{ "products": [{"title": "Shirt"}] }
2. save_preview
(Best for UI Testing)
save_previewRender liquid code into a real
.html file that you can inspect visually.
- Param
: The code.template - Param
: Mock data.data - Param
: (Optional) e.g.,filename
.my_test.html
Workflow: Virtual Lab
- Mock Data: Agent invents JSON data describing a scenario (e.g.
).product_with_50_variants.json - Render: Agent calls
.save_preview - Verify: Agent calls
to see the result.playwright_navigate(url="file:///path/to/my_test.html")
Limitations
- This uses
(Node.js), not the official Shopify Ruby engine.liquidjs - Standard filters like
are mocked to return strings, so CSS/Images might not load if they rely on CDN.| asset_url - Use this for LOGIC testing mainly.