Cart Viper 4.5.0 was released on .

Try it free for 14 days

All posts

Restyle Your Store With AI: The Cart Viper Templates Skill

Cart Viper has always let you change the look of your store without touching compiled code. The catalog, product pages, cart, search results and customer emails are all built from HTML templates with [TOKENS], plus optional Razor scripts and CSS. That flexibility is great, but there is a lot to know: which template does what, which tokens are allowed where, what HTML Cart Viper wraps around your template, and which bits of markup the store’s JavaScript depends on.

AI assistants are now very good at editing HTML and CSS. What they don’t know is how Cart Viper works. Ask one to “make the product cards the same height” and it will happily invent tokens that don’t exist or remove a class the cart needs to update its totals.

So we’ve written it all down for them. The Cart Viper Templates skill is a free download that teaches an AI assistant how Cart Viper templates work, so you can describe the change you want and let the AI do the editing.

Download the Cart Viper Templates skill (cartviper-templates-skill.zip)

What is a skill?

A skill is a small package of instructions and reference material that an AI assistant loads when it’s working on a particular kind of task. The assistant reads the skill’s summary up front and only opens the detailed reference files when it needs them, so it isn’t loaded down with information about emails when you’re asking about the cart.

Skills were introduced by Anthropic for Claude, and the format is an open standard that a growing number of AI coding tools support. Ours is just a folder of Markdown files, so you can open it and read exactly what it tells the AI.

What’s in it

The skill is built from the Cart Viper User Guide for version 4.5.0 and the templates we ship. It covers:

  • Templates and tokens. Which template renders which part of the store, the tokens each one supports, #if blocks, [RAZOR:] and [LOCALIZATION:].
  • The rendered markup. The HTML Cart Viper wraps around each template. Most “why won’t this line up?” problems come from here, so the AI knows to look at it.
  • Bootstrap versions. How to tell whether your skin uses Bootstrap 3, 4 or 5, and how classes map between them, including converting the cart templates to Bootstrap 5.
  • Recipes. Ready-made solutions for common requests: equal-height product cards, changing the number of columns, restyling buttons, making the cart work well on mobile, changing captions and more.
  • Razor scripts. How to write .cshtml scripts for when a token doesn’t exist for what you want to show.
  • Email templates. Order confirmation, order status change and newsletter emails.

It also includes the rules that stop an AI from breaking your store. It will keep every token you didn’t ask to remove, never invent tokens, leave the JavaScript hooks the cart and add-to-cart buttons rely on (such as .UpdateCart, .cvCartItemRow and .cartGrandTotal) in place, and never put API keys or other secrets into a template. It knows about the old misspelt token names from earlier versions of the guide, too.

Installing the skill

Claude Code

Claude Code works directly on files, which makes it ideal if you have a copy of your site or your templates folder on your machine.

  1. Download cartviper-templates-skill.zip.
  2. Unzip it into a folder called cartviper-templates inside your skills folder:
    • for all your projects: ~/.claude/skills/cartviper-templates/
    • for one project only: .claude/skills/cartviper-templates/ in that project
  3. Check that SKILL.md sits directly inside the cartviper-templates folder, next to the references folder.

Start Claude Code in the folder that holds your templates and ask away. Claude picks up the skill automatically when you ask about your Cart Viper store.

Claude.ai and the Claude desktop app

  1. Go to Settings > Capabilities and make sure skills are turned on.
  2. Under Skills, choose Upload skill and select the zip file.

You can then paste in a template (or attach the file), describe what you want, and Claude will give you the updated version to copy back to your site.

Other AI tools

Many other AI coding assistants now support skills in the same format; check your tool’s documentation for where it expects skills to live. If yours doesn’t, you can still get most of the benefit by adding SKILL.md and the files in references to the conversation as context.

Using it

Just describe what you want in plain English. A few examples:

  • “Make all the product cards in the category list the same height, with the add to cart buttons lined up along the bottom.”
  • “Show three products per row on desktop and two on mobile.”
  • “Our skin uses Bootstrap 5. Convert the cart templates to match.”
  • “Show the manufacturer’s logo on the product detail page.”
  • “Change the order confirmation email to use our brand colours and add our logo at the top.”
  • “The cart is too wide on a phone. Make it stack nicely.”

The skill guides the AI through the same steps we’d follow on a support ticket. It works out which templates folder is live for your store (Portal Templates or the module’s own folder, Responsive or Original), checks which version of Bootstrap your skin uses before choosing classes, makes the smallest change that does the job, and tells you how to check the result.

If a layout problem depends on exactly how the page renders, the AI may ask you to paste some HTML from your browser. In Chrome or Edge, right-click the item, choose Inspect, then right-click the highlighted element and choose Copy > Copy outerHTML.

A few sensible precautions

AI is a great assistant, but it is still your store, so:

  • Back up your templates first. Better still, try changes on a test portal before your live site.
  • Use Portal Templates (Store Admin > Store Info > Portal Templates) if you’re customising. Changes made to the templates in DesktopModules/CartViper are overwritten when you upgrade Cart Viper; Portal Templates are not.
  • Check the result yourself. After saving a template, clear the DNN cache and hard-refresh your browser. Unless you’ve shown it the page, the AI hasn’t seen your store, and the skill tells it to say so.
  • Keep your files as the source of truth. The skill is written for Cart Viper 4.5.0. If a later version changes a template or token, the AI is told to trust your installed files over the skill.

Feedback welcome

This is the first version of the skill, and we’d love to hear how you get on with it. If the AI gets something wrong, or there’s a recipe you think should be included, let us know through our support team or email mark@cartviper.com. We’ll keep the skill up to date alongside future Cart Viper releases.