Bc Stencil logo

Bc Stencil

Organization
OrcaQubits
bc-stencil

Build BigCommerce Stencil themes — Handlebars templates, front matter, theme objects, SCSS, JavaScript modules, config.json, schema.json, and Stencil CLI. Use when creating or customizing BigCommerce storefront themes.

Overview

PublisherOrcaQubits
Repositoryagentic-commerce-skills-plugins
Skill namebc-stencil
Stars
40
Forks
17
Bundled files
Instructions only
LicenseMIT
Links
  • Markdown instructions

    A SKILL.md file the model loads on demand, so it only costs tokens when a request actually matches.

  • Works with any LLM

    AI skills are plain Markdown, not provider-specific code, so this works with GPT, Claude, Gemini, Grok, or a local model.

  • Self-contained

    Everything the model needs lives in the instructions — no extra files to sync.

  • Open source

    Published by OrcaQubits on GitHub. Read the source before you install it.

Installation

Install the Bc Stencil AI skill in TypingMind to use it with any LLM, or drop it into another agent that reads SKILL.md.

1

Install in TypingMind

TypingMind installs a skill straight from its GitHub folder — it reads SKILL.md, bundles the resource files, and stores the result locally.

  1. Open the app and go to Plugins → Skills.
  2. Choose "Install from GitHub".
  3. Paste the skill folder URL below and confirm.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/bigcommerce-commerce/skills/bc-stencil
  4. Enable the skill in any chat where you want it available.
Plugins → Skills → Add skill → From GitHub URL, then paste the folder URL and press Continue.
2

Install in another agent

Any agent that reads the Agent Skills format can use this skill — copy the folder into that agent's skills directory.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/OrcaQubits/agentic-commerce-skills-plugins.git /tmp/agentic-commerce-skills-plugins
mkdir -p .claude/skills
cp -r /tmp/agentic-commerce-skills-plugins/bigcommerce-commerce/skills/bc-stencil .claude/skills/bc-stencil
Restart Claude Code after copying so it picks up the new skill.

Use it in TypingMind

Enable Bc Stencil in any TypingMind chat and the model takes it from there. Its name and description sit in the system prompt, and the moment a request matches, the model loads the full instructions itself — you never invoke it by hand, and it costs no tokens until it is actually used.

The model loads Bc Stencil on its own as soon as a request matches it.

Works with any AI model

AI skills are plain Markdown instructions rather than provider-specific code, so Bc Stencil is not tied to the model it was written for. Install it once in TypingMind and use it with GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama, or a local model you run yourself — all on your own API keys.

  • Loaded only when it is needed

    The system prompt carries just the name and description. The instructions are fetched on the first matching request, so an idle skill costs nothing.

  • Switch models mid-chat

    Because the skill is instructions rather than code, changing model does not break it — the next model reads the same SKILL.md.

Skill instructions

This is the SKILL.md content the model loads. Read it before installing — a skill is instructions your model will follow.

BigCommerce Stencil Theme Development

Before writing code

Fetch live docs:

  1. Fetch https://docs.bigcommerce.com/developer/docs/storefront/stencil/overview for Stencil overview
  2. Fetch https://docs.bigcommerce.com/developer/docs/storefront/stencil/themes/context/object-reference/elements for theme object reference
  3. Web-search site:developer.bigcommerce.com stencil handlebars helpers for Handlebars helper reference

Architecture

How Stencil Works

Stencil is BigCommerce's server-rendered theme engine:

  1. Template files (Handlebars .html) define page structure
  2. Front matter (YAML) at the top of each template declares what data to fetch
  3. BigCommerce injects theme objects (product, category, cart, settings, etc.) into the template context
  4. Handlebars helpers and partials render the data
  5. SCSS compiles to CSS, JS bundles with webpack
  6. Stencil CLI provides local development with hot reload

Template Hierarchy

templates/
├── layout/
│   ├── base.html              # Master layout — header, footer, body
│   └── empty.html             # Minimal layout (checkout, etc.)
├── pages/
│   ├── home.html              # Homepage
│   ├── product.html           # Product detail page
│   ├── category.html          # Category listing
│   ├── cart.html              # Cart page
│   ├── checkout.html          # Checkout page
│   ├── account/               # Customer account pages
│   └── ...
├── components/
│   ├── common/                # Header, footer, navigation
│   ├── products/              # Product cards, options, gallery
│   ├── cart/                  # Cart items, totals
│   └── ...
└── ...

Front Matter

What It Does

YAML block at the top of template files that declares data requirements:

yaml
---
product:
  videos:
    limit: {{theme_settings.product_videos_count}}
  reviews:
    limit: {{theme_settings.product_reviews_count}}
  related_products:
    limit: {{theme_settings.related_products_count}}
  similar_by_views:
    limit: {{theme_settings.similar_by_views_count}}
---

How It Works

  • BigCommerce reads the front matter before rendering
  • Fetches the specified data from its APIs
  • Injects results into the Handlebars template context
  • Controls what data is available on each page

Common Front Matter Resources

  • product — product details, images, videos, reviews, related products
  • category — category info, products in category
  • cart — cart items, totals
  • customer — logged-in customer data
  • shop_by_brand — brand listing
  • new_products, featured_products, top_products — product collections

Theme Objects

Key Objects

ObjectAvailable OnContains
productProduct pagename, price, images, options, variants, description, reviews
categoryCategory pagename, description, products, subcategories
cartCart pageitems, subtotal, taxes, grand_total
customerWhen logged inname, email, addresses, orders
settingsAll pagesstore name, currency, logo, URLs
theme_settingsAll pagesconfig.json setting values
breadcrumbsMost pagesnavigation breadcrumbs
pageCMS pagestitle, content, URL

Accessing Data

handlebars
{{product.title}}
{{product.price.without_tax.formatted}}
{{#each product.images}}
  <img src="{{getImage this 'product_size'}}" alt="{{this.alt}}">
{{/each}}

Handlebars Helpers

Control Flow

  • {{#if condition}}...{{else}}...{{/if}} — conditional
  • {{#unless condition}}...{{/unless}} — inverse conditional
  • {{#each collection}}...{{/each}} — iteration
  • {{#with object}}...{{/with}} — context shifting

BigCommerce Custom Helpers

  • {{getImage image 'size_name'}} — generate image URL at specific size
  • {{cdn 'path/to/asset'}} — CDN-prefixed asset URL
  • {{stylesheet 'path/to/css'}} — include stylesheet
  • {{inject 'variable' value}} — pass data to JavaScript context
  • {{jsContext}} — output injected variables as JSON for JS consumption
  • {{lang 'translation_key'}} — internationalization
  • {{money price}} — format currency
  • {{truncate text length}} — truncate string
  • {{any collection}} — check if collection has items
  • {{all condition1 condition2}} — logical AND
  • {{compare a '===' b}} — comparison

Partials

Include reusable template fragments:

  • {{> components/products/card product}} — render a partial with context
  • {{> components/common/header}} — include a component
  • Partials live in templates/components/

Styling (SCSS)

Structure

assets/scss/
├── settings/               # Variables, mixins
│   ├── foundation/
│   └── citadel/
├── components/             # Component styles
├── layouts/                # Layout styles
├── tools/                  # Utility mixins
└── theme.scss              # Main entry point

Theme Settings in SCSS

Access config.json values: stencilColor("primary"), stencilNumber("font-size"), stencilString("font-family")

JavaScript

Module System

Stencil uses webpack for JS bundling:

  • ES6 module imports
  • Entry point in assets/js/app.js
  • Page-specific modules loaded conditionally
  • jQuery available globally (Cornerstone ships with it)

Accessing Theme Data in JS

Use {{inject}} in templates and {{jsContext}} to pass server data to client JS:

handlebars
{{inject 'productId' product.id}}
<script>{{jsContext}}</script>

Access in JS via this.context in PageManager subclasses.

PageManager

Cornerstone's page lifecycle manager:

  • Extend PageManager for page-specific JS
  • onReady() — DOM ready, initialize functionality
  • Registered per page type in assets/js/app.js

Configuration

config.json

Theme configuration with settings and variations:

  • settings — default values for all theme settings
  • variations — named presets (Light, Bold, Warm, etc.)
  • read_only_files — files that cannot be edited in Theme Editor

schema.json

Defines the Theme Editor UI:

  • Sections, groups, and fields that appear in the visual editor
  • Field types: color, font, select, checkbox, text, range, imageDimension
  • Maps to config.json settings keys

Best Practices

  • Fork Cornerstone as your starting point — don't start from scratch
  • Use front matter to control data loading — don't over-fetch
  • Use {{inject}} to pass data to JS — don't scrape the DOM
  • Use {{cdn}} for all asset URLs — ensures CDN delivery
  • Define schema.json entries for all customizable settings
  • Use SCSS variables linked to config.json for consistent theming
  • Escape user content: {{{sanitize html}}} for HTML, {{variable}} auto-escapes
  • Test across theme variations
  • Keep bundle size small — conditionally load JS per page

Fetch the Stencil documentation and theme object reference for exact helper syntax, front matter keys, and object structure before implementing.

Frequently asked questions

What does the Bc Stencil AI skill do?

Build BigCommerce Stencil themes — Handlebars templates, front matter, theme objects, SCSS, JavaScript modules, config.json, schema.json, and Stencil CLI. Use when creating or customizing BigCommerce storefront themes.

Why use Bc Stencil on TypingMind?

Because you install it once and use it with any model. Bc Stencil is plain Markdown rather than provider-specific code, so the same skill runs on GPT-5, Claude, Gemini, Grok, or a local model — and you can switch model mid-chat without it breaking. TypingMind runs on your own API keys, so you pay providers directly instead of a per-seat subscription, and your skills and chats stay in your own storage.

How do I install Bc Stencil in TypingMind?

Open Plugins → Skills → Install from GitHub in TypingMind and paste https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/bigcommerce-commerce/skills/bc-stencil. TypingMind reads its SKILL.md and installs it as a skill you can enable per chat.

Which AI models can use Bc Stencil?

Any model you connect in TypingMind. AI skills are plain Markdown instructions rather than provider-specific code, so GPT, Claude, Gemini, Grok, and local models can all load this skill when a request matches it.

How many AI models can I use with Bc Stencil?

As many as you like. As long as a model supports skills, you can use Bc Stencil with it — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama and more — all on TypingMind with your own API keys.

Is the Bc Stencil AI skill free?

Yes. It is published on GitHub by OrcaQubits under the MIT license. You only pay your own AI provider for the tokens you use.

What are AI skills?

An AI skill is a reusable instruction bundle that teaches an AI model how to do one specific task. It follows the open Agent Skills format: a SKILL.md file with a name and description, plus any scripts, templates or reference files the model may need. The model reads the instructions only when your request matches the skill, so an installed skill costs nothing until it is used.

How are AI skills different from plugins or MCP servers?

A plugin or MCP server gives a model new tools to call — code that runs somewhere and returns a result. An AI skill gives the model knowledge and process instead: how to approach a task, which steps to follow, what good output looks like. Skills are plain Markdown, so they need no server, no API key and no runtime, and they work with any model.

View all

Set up your own AI workspace now

Get notified about new features and future giveaways by subscribing to our newsletter 👇