Token导航 LogoToken导航

Agent Skill · 研究检索

theme-skill(主题技巧)

theme-skill 用于查找、检索和筛选相关信息,适合在 Codex、Claude、Cursor、Gemini CLI 中需要根据关键词、任务场景或来源线索快速定位候选结果时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

theme-skill 是研究检索类 Agent Skill,可用宿主为 Codex、Claude、Cursor、Gemini CLI,通过GitHub 仓库获取,权限为只读;许可证信息还不明确,第三方扫描已通过,按安装量在研究检索类的 73,675 个 Skill 里排第 68,166。

总安装 235周安装 10GitHub Stars 8下载 82核验 2026-05-01

安装说明

本站只整理中文说明,不托管安装包,也不代用户安装。
GitHub
许可证
unknown

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:theme-skill(主题技巧)
来源仓库:https://github.com/brickspacelab/theme-skill
仓库路径:skills/theme-skill
安装命令:
npx skills add https://github.com/brickspacelab/theme-skill --skill theme-skill
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/brickspacelab/theme-skill --skill theme-skill

这个 Skill 是做什么的

研究检索类 Skill 主要解决「找资料、核对事实、把来源整理清楚」的问题,通常会让助手先检索再总结。

theme-skill 用于查找、检索和筛选相关信息,适合快速定位候选结果。适用于根据关键词或任务场景从来源线索中获取信息,提升研究效率。通过 npx skills add 命令从 GitHub 仓库安装,需结合原始 README 确认具体用法。安装前建议确认权限范围和维护状态,注意是否触发联网或文件读写操作。

适用宿主包括 Codex、Claude、Cursor、Gemini CLI,接入前应确认版本、权限和运行环境要求。

来源仓库内路径:skills/theme-skill

上手步骤

4 步
  1. 1

    确认自己的宿主工具

    公开资料标注支持 Codex、Claude、Cursor、Gemini CLI;先确认自己用的是其中之一,再按对应工具的 Skills 目录放置。

  2. 2

    拿到安装命令

    可以直接复制的命令是 npx skills add https://github.com/brickspacelab/theme-skill --skill theme-skill;命令里的占位符换成自己的路径或密钥再执行。

  3. 3

    安装后重启宿主

    命令执行完要完全退出宿主工具再打开,让新装的 Skill 被重新扫描到,否则列表里可能看不到。

  4. 4

    按最小权限试用

    它标注为只读,先用只读任务试一次,确认行为符合预期再扩大使用范围。

常见问题

6 条

theme-skill 怎么安装?

在终端执行 npx skills add https://github.com/brickspacelab/theme-skill --skill theme-skill。装完完全退出宿主工具再打开,让它重新扫描本地 Skill。

theme-skill 支持哪些 AI 工具?

公开资料标注支持 Codex、Claude、Cursor、Gemini CLI。其他工具只要能读取本地 Skill 目录,一般也能手动放进去,但要自己确认触发方式是否一致。

theme-skill 需要什么权限?

权限级别是只读。该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

theme-skill 是免费的吗?

公开资料没有标注明确许可证,收费和商用限制都无法确认。正式使用前请到来源仓库核对授权说明。

theme-skill 用的人多吗?

公开数据是累计安装 235 次,近一周安装 10 次,下载 82 次,GitHub 8 星。这些数字来自第三方目录统计,只能当作热度参考,不代表质量或安全性。

theme-skill 安全吗?

第三方扫描结果为通过,但这只覆盖已知的静态检查项,不能替代自己读一遍源码和安装命令。

值得选的地方和要先想清楚的地方

值得选的地方

  • 同时适配 4 种工具,换客户端不用重新找替代品。
  • 第三方扫描已通过,常见的高风险行为没有命中。
  • 标注为只读权限,试用阶段不容易误改本地文件。

先想清楚的地方

  • 许可证没有明确标注,能不能商用、能不能再分发都不确定。
  • 第三方目录整理,版本更新和行为细节以来源仓库为准。

适不适合你

更适合

  • 已经在用 Codex,想直接扩展它能力的人。
  • 需要处理研究检索类任务、又不想每次都手写提示词的人。
  • 只想先试试效果、不希望它改动本地文件的人。

不太适合

  • 需要明确授权才能用到公司项目里的场景。
  • 需要厂商级技术支持和 SLA 的生产系统。

研究检索类 Skill 对比

6 个同类
Skill总安装GitHub 星权限许可证扫描
find-skills

寻找技能 · Codex、Claude

31,199,81316,486操作浏览器MIT有提醒
self-improving-agent

自我改进 Agent · OpenClaw

16,464,0023,396接触敏感数据MIT-0通过
soultrace

灵魂追踪 · Codex、Claude

7,588,94412需要联网未明确有提醒
self-improving

自我完善 · OpenClaw

6,829,2841,046需要联网MIT-0通过
microsoft-foundry

微软代工厂 · Codex、Claude

6,614,144764调用外部服务未明确有提醒
theme-skill

主题技巧 · 本页

2358只读未明确通过

按安装量取同分类前几名;数字来自第三方目录统计,只作热度参考,不代表质量结论。

SKILL.md 原文

When to use

Use when the task involves Shopify JSON templates under templates/ (e.g. product.json, index.json, alternates like page.contact.json), or section JSON that references theme blocks from blocks/ in block-based themes.

This skill alone does not fully cover:

  • config/settings_schema.json or config/settings_data.json (global theme settings)
  • Checkout branding or Checkout UI extensions
  • Theme app extension code under extensions/
  • Replacing Liquid .liquid templates where the theme has not adopted JSON for that route

If the theme uses a build step that generates sections/ or blocks/, read that theme’s README and follow its source-of-truth paths before editing compiled output.

Quick start

  1. Understand requirements — Parse prompts or images for layout, columns/rows, content types, and styling (see Design images and mockups when the input is visual).
  2. Discover allowed block types — List blocks/ and read parent {% schema %} so every type you use exists in this theme (required; see below).
  3. (Optional) Check bundled examples — If examples/ is present, follow Choosing the best example to reference in examples/README.md: compare the workspace theme to each indexed example and open at most one best-matched file. If nothing fits, copy patterns from existing templates/*.json in the workspace theme instead. Never emit type strings from a bundled example until they appear in the target theme’s allowed set.
  4. Map to real blocks — Choose types only from that allowed set; resolve section type from sections/*.liquid for template-level JSON.
  5. Analyze schemas — Read each block or section {% schema %} for allowed children, setting IDs, types, defaults, and presets.
  6. Compile JSON — Build valid sections, nested blocks, and order / block_order arrays per Shopify’s template structure.
  7. Validate — Run the checklist below before finishing.

Workflow

Step 1 — Understand user requirements

From text:

  • Layout: grid, flex, slider, inline, etc.
  • Column/row counts
  • Content: images, buttons, text, product cards, etc.
  • Styling: spacing, colors, responsive behavior

From images:

  • Visual layout, columns and rows, elements and relationships, spacing and alignment
  • Visual hierarchy (headline vs body vs CTAs), approximate alignment (left/center/right), and content categories (hero, cards, logos, footer, etc.)
  • What is ambiguous — Exact breakpoints, font sizes, and pixel spacing are not reliably readable from a static image; call that out instead of guessing.

Design images and mockups

When the user provides a screenshot, Figma export, or design mockup:

  • Extract: structure (sections, columns, stacking order), content types, and qualitative spacing rhythm (tight vs airy), not exact pixel values unless provided separately.
  • Do not infer concrete Shopify type strings, setting keys, or enum values from the image alone. Always reconcile with Discover allowed block types on the target theme.
  • Limits: JSON templates do not express every visual detail. Arbitrary typography, one-off CSS, or global palette changes may require theme settings, section settings, or custom CSS outside the core JSON-template workflow—say so when the design cannot be matched with schema-defined settings only.
  • If the design cannot be built with the theme’s available blocks and settings, state the gap and offer the closest achievable structure.

Step 2 — Discover allowed block types

Do this before naming or emitting any type in JSON. This is the operational way to satisfy the validation rule that every type exists in the theme.

  1. List files in blocks/ — For themes using theme blocks, the basename of blocks/<name>.liquid is typically a valid block type (confirm in schema).
  2. Read {% schema %} on each section you add or edit in the template, and on each block file you nest. Collect every block type the parent allows (specific types, @theme, @app, etc., per Shopify rules for that parent). _-prefix caveat: Blocks whose filename starts with _ (e.g. _stat-bar.liquid) may not be matched by @theme in a parent schema, even if they have presets. Shopify theme check treats _-prefixed blocks as private/static and may require them to be explicitly listed in the parent’s blocks array. Before nesting a _-prefixed block inside a parent that only declares @theme, verify by checking existing templates or presets for a precedent. If none exists, the parent schema needs a new {"type": "_block-name"} entry—which is a Liquid edit, not a JSON-only change.
  3. Build the allowed set — Union of: types from blocks/ that the parent schema permits, types declared in the parent’s blocks array, and section type values from sections/<type>.liquid for template-level sections.
  4. Only use types in that set. If the user asks for a layout that no block provides, propose the closest real types, copy a working template in the same theme, or note that adding a new block is theme development work outside JSON-only edits.

Step 3 — Check bundled examples (optional)

If examples/ is present in this skill package, follow Choosing the best example to reference in examples/README.md:

  • Compare the workspace theme to each indexed example (theme name, README, overlap between blocks/ basenames and the example’s described types).
  • Open at most one best-matched file for patterns and sample JSON.
  • If nothing fits, copy patterns from existing templates/*.json in the workspace theme instead.
  • Never emit type strings from a bundled example until they appear in the target theme’s allowed set.

Step 4 — Map requirements to real blocks

Within the allowed type set from Step 2:

  • Search the theme’s blocks/ directory and section schemas for blocks that match the layout and content needs.
  • For template-level sections, list sections/ and map JSON type to section files (usually basename of sections/<type>.liquid).

Step 5 — Analyze block and section schemas

For each block or section, read {% schema %}:

  1. Nested blocks — "blocks": [{"type": "@theme"}] vs specific types vs "blocks": [].
  2. Settings — Required vs optional, defaults, types. Pay attention to:

- range — Values must land on min + (N * step). A range with min: 10, max: 48, step: 2 rejects 13 (use 14). - select — Values must exactly match one of the options[].value strings. Do not invent values even if they look like valid CSS—only the listed options pass validation. - visible_if — Settings gated by visible_if may still be validated even when hidden. Prefer omitting them entirely rather than setting values that won't take effect (e.g. don't set font_size when type_preset!= 'custom').

  1. Presets — Recommended configurations.

Step 6 — Compile JSON structure

Follow Shopify’s JSON template shape. If the theme ships Cursor rules (e.g. .cursor/rules/templates.mdc, blocks.mdc, schemas.mdc), follow those for the project you are editing.

Template structure:

{
  "sections": {
    "<sectionId>": {
      "type": "<sectionType>",
      "settings": {},
      "blocks": {
        "<blockId>": {
          "type": "<blockType>",
          "name": "t:blocks.block_name",
          "settings": {},
          "blocks": {},
          "block_order": []
        }
      },
      "block_order": ["<blockId>"]
    }
  },
  "order": ["<sectionId>"]
}

Block instance IDs:

  • Use descriptive prefixes that reflect role (e.g. layout, container, item, image, text)—match conventions you see in the theme’s existing JSON.
  • Append a short unique suffix if needed.
  • Keep IDs unique within the template (and within each nested blocks scope per schema rules).

Settings (block-based themes):

  • Grids often use row_desktop, row_mobile, gap_size, enable_x_padding — only if those keys exist in the target schema.
  • Prefer translation keys for block name when the theme does: e.g. "t:blocks.image".
  • Align color_scheme and spacing with the theme’s design system.

Richtext content rules:

Shopify sanitizes HTML in richtext and text (rich) settings. Only a limited set of tags and attributes are allowed:

  • Allowed tags: p, h1–h6, ul, ol, li, a, br, strong, em, span
  • No style attributes — <span style="color: red"> will be stripped. Use <em> or <strong> tags instead, then add CSS rules in the section/block stylesheet targeting those tags (e.g. .my-section em {color: var(--accent); font-style: normal;}).
  • No class attributes on inline elements in richtext.
  • If the design requires colored text within a single text block, this is a CSS customization gap—note it and add a stylesheet rule rather than using inline styles.

Step 7 — Validate

Run the Validation checklist below before finishing.

  • JSON is valid
  • Section and block instance IDs are unique in scope
  • Every block_order matches the keys in its sibling blocks object
  • Top-level order lists every section key to render
  • Each type exists in sections/ or blocks/ and is allowed by the parent schema
  • Nested block types are valid for the parent
  • Setting keys and value types match {% schema %}
  • Range values land on valid steps (min + N*step)
  • Select values match an options[].value exactly
  • No style or class attributes in richtext content strings
  • _-prefixed blocks are explicitly listed (not just @theme) in every parent they nest inside

Error handling

ProblemWhat to do
Block/section not foundSearch blocks/ and sections/; suggest close matches
Invalid nestingRe-read parent {% schema %} blocks array
_ block not allowedBlock has _ prefix; add it explicitly to parent schema blocks array—@theme won't match it
style attr strippedShopify sanitizes richtext; use <em>/<strong> + CSS instead of inline styles
Range step violationRead the schema step value; round your value to the nearest valid step
Invalid select valueOnly use values from the schema options array; don't invent CSS expressions
Schema too largeCopy patterns from a working template in the same theme
Ambiguous requestAsk which template file and which section/block instances change
Generated theme outputEdit source per theme docs, then build

Further reading

FilePurpose
reference/shopify.mdOfficial docs links, filenames, platform limits
examples/README.mdHow to pick a bundled theme example; index of files
docs/adding-theme-support.mdTheme partners: add bundled block standards under examples/

In a theme repository, also use project rules such as templates.mdc, blocks.mdc, and schemas.mdc when present under .agent/rules/.

Sources

These are the Shopify documentation pages this skill's content is derived from. When Shopify updates these pages, review the corresponding sections above (indicated by <!-- source:... --> comments).

Shopify docSections in this file
Theme architectureWhen to use this skill
JSON templatesStep 4 — Compile JSON structure, Validation checklist
SectionsDiscover allowed block types, Step 3 — Analyze schemas
Section schemaDiscover allowed block types, Step 3 — Analyze schemas
BlocksDiscover allowed block types
Theme blocksDiscover allowed block types, Step 3 — Analyze schemas

平台分布

Codex

34.63%
按下载量换算28

Claude

31.78%
按下载量换算26

Cursor

17.54%
按下载量换算14

Gemini CLI

10.21%
按下载量换算8

安全审计

Gen Agent Trust Hub

通过

Socket

通过

Snyk

通过

权限和风险

只读

该 Skill 主要提供规则、说明或参考内容,本身偏只读;真正读写文件、联网或执行命令仍取决于宿主 Agent 的任务。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。目前只有一个公开来源,建议同时核对源仓库。

继续浏览同类 Skills