Логотип Bc Stencil

Bc Stencil

Організація
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.

Огляд

ВидавецьOrcaQubits
Репозиторійagentic-commerce-skills-plugins
Назва навичкиbc-stencil
Зірки
40
Форки
17
Файли в пакеті
Лише інструкції
ЛіцензіяMIT
Посилання
  • Інструкції у форматі Markdown

    Файл SKILL.md, який модель завантажує за потреби, тож токени витрачаються лише тоді, коли запит справді відповідає навичці.

  • Працює з будь-якою LLM

    Навички ШІ — це звичайний Markdown, а не код для певного постачальника, тому вони працюють із GPT, Claude, Gemini, Grok або локальною моделлю.

  • Усе необхідне — в інструкціях

    Усе потрібне моделі міститься в інструкціях — жодних додаткових файлів для синхронізації.

  • Відкритий вихідний код

    Опубліковано на GitHub користувачем OrcaQubits. Перегляньте вихідний вміст перед установленням.

Встановлення

Установіть навичку ШІ Bc Stencil у TypingMind, щоб використовувати її з будь-якою LLM, або додайте її до іншого агента, що читає SKILL.md.

1

Встановити в TypingMind

TypingMind встановлює навичку безпосередньо з її папки GitHub — читає SKILL.md, збирає файли ресурсів у пакет і зберігає результат локально.

  1. Відкрийте застосунок і перейдіть до Плагіни → Навички.
  2. Виберіть «Встановити з GitHub».
  3. Вставте наведений нижче URL папки навички та підтвердьте встановлення.
    https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/bigcommerce-commerce/skills/bc-stencil
  4. Увімкніть навичку в кожному чаті, де хочете її використовувати.
Плагіни → Навички → Нова навичка → За URL GitHub, потім вставте URL папки й натисніть «Продовжити».
2

Встановити в іншому агенті

Будь-який агент, що підтримує формат Agent Skills, може використовувати цю навичку — скопіюйте папку до каталогу навичок цього агента.

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
Після копіювання перезапустіть Claude Code, щоб завантажити нову навичку.

Використовуйте навичку в TypingMind

Увімкніть навичку Bc Stencil в будь-якому чаті TypingMind, і далі модель усе зробить сама. Назва й опис навички містяться в системному промпті, а щойно надходить відповідний запит, модель самостійно завантажує повні інструкції — вам не потрібно викликати навичку вручну, і до фактичного використання вона не витрачає токенів.

Модель самостійно завантажує навичку Bc Stencil, щойно надходить відповідний запит.

Працює з будь-якою моделлю ШІ

Навички ШІ — це звичайні інструкції Markdown, а не код для певного постачальника, тому навичка Bc Stencil не прив’язана до моделі, для якої її створено. Установіть її один раз у TypingMind і використовуйте з GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama або локальною моделлю, яку ви запускаєте самостійно, — усе з вашими власними ключами API.

  • Завантажується лише за потреби

    Системний промпт містить лише назву й опис. Інструкції завантажуються за першого відповідного запиту, тож невикористана навичка нічого не коштує.

  • Змінюйте моделі під час чату

    Оскільки навичка — це інструкції, а не код, зміна моделі не порушує її роботу: наступна модель читає той самий файл SKILL.md.

Інструкції навички

Це вміст файлу SKILL.md, який завантажує модель. Прочитайте його перед установленням — навичка містить інструкції, яких дотримуватиметься ваша модель.

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.

Поширені запитання

Що робить навичка ШІ 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.

Навіщо використовувати Bc Stencil у TypingMind?

Тому що ви встановлюєте її один раз і використовуєте з будь-якою моделлю. Bc Stencil — це звичайний Markdown, а не код для конкретного постачальника, тому та сама навичка працює з GPT-5, Claude, Gemini, Grok або локальною моделлю. Ви можете змінити модель навіть посеред чату, і навичка продовжить працювати. TypingMind використовує ваші власні ключі API, тож ви платите безпосередньо постачальникам замість передплати за кожне місце користувача, а ваші навички й чати залишаються у вашому сховищі.

Як встановити Bc Stencil у TypingMind?

Відкрийте в TypingMind Плагіни → Навички → Встановити з GitHub і вставте https://github.com/OrcaQubits/agentic-commerce-skills-plugins/tree/main/bigcommerce-commerce/skills/bc-stencil. TypingMind прочитає файл SKILL.md і встановить навичку, яку можна вмикати окремо для кожного чату.

Які моделі ШІ можуть використовувати Bc Stencil?

Будь-яка модель, яку ви підключите в TypingMind. Навички ШІ — це звичайні інструкції у форматі Markdown, а не код для конкретного постачальника, тому GPT, Claude, Gemini, Grok і локальні моделі можуть завантажувати цю навичку, коли запит їй відповідає.

Зі скількома моделями ШІ можна використовувати Bc Stencil?

Зі скількома забажаєте. Якщо модель підтримує навички, ви можете використовувати з нею Bc Stencil — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama та інші — усе в TypingMind із власними ключами API.

Чи безкоштовна навичка ШІ Bc Stencil?

Так. Навичку опубліковано на GitHub: OrcaQubits, за ліцензією MIT. Ви платите лише своєму постачальнику ШІ за використані токени.

Що таке навички ШІ?

Навичка ШІ — це багаторазовий набір інструкцій, який навчає модель ШІ виконувати одне конкретне завдання. Він відповідає відкритому формату Agent Skills: файл SKILL.md із назвою та описом, а також скрипти, шаблони чи довідкові файли, які можуть знадобитися моделі. Модель читає інструкції лише тоді, коли ваш запит відповідає навичці, тому встановлена навичка нічого не коштує, доки її не використано.

Чим навички ШІ відрізняються від плагінів або серверів MCP?

Плагін або сервер MCP надає моделі нові інструменти для виклику — код, який десь виконується й повертає результат. Натомість навичка ШІ надає моделі знання та порядок дій: як підійти до завдання, яких кроків дотримуватися та яким має бути якісний результат. Навички — це звичайний Markdown, тож їм не потрібні ні сервер, ні ключ API, ні середовище виконання, і вони працюють із будь-якою моделлю.

Усі

Створіть власний ШІ-простір уже зараз

Підпишіться на нашу розсилку, щоб дізнаватися про нові функції та майбутні розіграші 👇