Skip to content
Content
Skill

/cecil-theme

Create, structure and package themes for Cecil (visual themes and component themes), following the conventions of the official Cecilapp/theme-* repositories.

From plugin
cecil
3003 skills

Claude Code

$ npx -y skills add Cecilapp/Cecil --skill cecil-theme --agent claude-code

SKILL.md

cecil-theme.SKILL.md
name: cecil-theme
description: Create, structure and package themes for Cecil (visual themes and component themes), following the conventions of the official Cecilapp/theme-* repositories.
license: EUPL-1.2

Cecil Theme Builder

You are an expert Cecil theme developer. You create reusable themes for [Cecil](https://cecil.app): full **visual themes** (layouts, styles, assets) and small **component themes** (a feature plugged into any site or theme), packaged for Composer like the official [Cecilapp themes](https://github.com/orgs/Cecilapp/repositories?q=theme).

For general Cecil usage (content, configuration, CLI), see the `cecil` skill.

When to Use This Skill

Use this skill when:

  • Creating a new Cecil theme from scratch, or turning a site's `layouts/` into a reusable theme
  • Creating a component theme (search, PWA, dark mode toggle, icons, redirects, headers, analytics, etc.)
  • Installing or integrating an official component theme (e.g. `flexsearch`, `pwa`, `darkmodetoggle`, `ogimage`) into a site or a visual theme; ask the user first (see "Ask the user before installing")
  • Adding theme options, translations or assets to a theme
  • Packaging and publishing a theme with Composer (`cecil/theme-<name>`)
  • Debugging theme resolution (layouts, assets, config or translations not picked up)

Reference Files

Read the matching reference **before** working on a topic it covers:

| Read | Before | |----------------------------------------------------------------|----------------------------------------------------------------------------------------------------------| | [references/component-themes.md](references/component-themes.md) | Creating a component theme, or installing, combining or pre-wiring official component themes (FlexSearch, PWA, dark mode toggle, Open Graph image, etc.) | | [references/packaging.md](references/packaging.md) | Packaging a theme for Composer: `composer.json`, `.editorconfig`, README, `.gitattributes`, demo site |

How Cecil Loads Themes

A theme is **a website without pages**, stored in `themes/<name>/` and enabled in the site configuration:

theme: hyde
# or, for several themes (the first one overrides the others)
theme:
  - pwa
  - hyde

Resolution rules (from `src/`):

| Resource | Lookup order | |----------------|----------------------------------------------------------------------------------------------------------------------------------------------------------| | Layouts | `layouts/` → `themes/<theme>/layouts/` (in `theme` list order) → Cecil internal `resources/layouts/` | | Assets | `assets/` → `themes/<theme>/assets/` → `static/` → `themes/<theme>/static/` (Sass import paths also include the theme's dirs) | | Static files | Themes' `static/` are copied first (reverse order), then site `static/`, so the site wins | | Translations | Cecil internal → `themes/<theme>/translations/` (in `theme` list order, so the **last** theme wins between themes) → site `translations/` (site wins) | | Data files | Site `data/` and each `themes/<theme>/data/` are loaded into `site.data` (theme data is loaded even if the site has no `data/` directory) | | Schemas | `themes/<theme>/schemas/` (first theme wins) → themes `pages.schema` → site `schemas/` → site `pages.schema` (site wins), field definitions replaced as a whole | | Configuration | `themes/<theme>/config.yml` overrides Cecil defaults (including default pages, generators and output formats), site config always wins (first theme wins between themes) |

Consequences:

  • The config file **must** be named `config.yml` (not `config.yaml`); it's the only one loaded.
  • A theme is considered installed when `themes/<name>/layouts/` or `themes/<name>/config.yml` exists; otherwise the build fails with `Theme "<name>" not found. Did you forgot to install it?`. A theme without `layouts/` (config, data or assets only) is supported.
  • Layouts are resolved **per candidate name**: for each name of the lookup rules, Cecil checks the site, then the themes, then the built-in templates, before trying the next name. So a built-in `_default/home`, `_default/term`, `_default/vocabulary` or `_default/404` is picked before a theme's `_default/list` or `_default/page`: ship these layouts in the theme to control them. The built-ins extend `['page.html.twig', '_default/page.html.twig']` and fill the `content` block, so the theme base layout must define a `content` block.
  • Any site file with the same relative path overrides the theme file (layout, partial, asset, translation key, static file).
  • A list of values defined by a theme (e.g. `static.exclude`, `output.pagetypeformats.<type>`) **replaces** Cecil's default list; only a site list is combined with the theme list.
  • A theme can require other themes with the `theme` option of its `config.yml` (e.g. `theme: [fontawesome]`): they are enabled with it (layouts, assets, static files, translations, extensions and `config.yml`) and added after the themes of the site, so the theme overrides the themes it requires. Required themes must be installed too: declare them in the `require` section of the theme's `composer.json`. This requires Cecil 9.29 or later: before, the `config.yml` of a required theme is not loaded (and the requirement is ignored with the string form `theme: a`), so document the full list to declare (e.g. `theme: [links, fontawesome]`) if the theme supports older versions.
  • A theme can also ship PHP classes in `themes/<name>/extensions/` (autoloaded,
Read more
@cecilapp
Ships withcecil

A simple and powerful content-driven static site generator.

Stars on GitHub

Momentum

stars in total
300
Star history of Cecilapp/Cecil on GitHub, a chart by star-history.com

Other skills on cecil.

address-pr-comments

address-pr-comments

Standard workflow to address pull request review comments in Cecil. Use when responding to review feedback, fixing requested…

@cecilapp@cecilappInstall Skill
cecil

cecil

Build and configure Cecil static sites, with focused guidance for content, templates, and site generation.

@cecilapp@cecilappInstall Skill

More skills from other plugins.

prompt-lookup

prompt-lookup

Activates when the user asks about AI prompts, needs prompt templates, wants to search for prompts, or mentions prompts.chat. Use…

@gh-f@gh-fInstall Skill
ppt-master

ppt-master

AI-driven presentation workflow for generating editable PPTX decks and slides, reconstructing page visuals, creating reusable…

@hugohe3@hugohe3Install Skill
morph-ppt

morph-ppt

Use this skill when the user wants a .pptx with smooth cross-slide animation — PowerPoint Morph transitions, Keynote-style…

@iofficeai@iofficeaiInstall Skill

Questions about cecil-theme.

Which coding agents can use cecil-theme?
cecil-theme installs in Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, OpenCode and Windsurf with the skills CLI, using each agent's flag shown on this page. Flowy's auto-invocation, which fires a skill when your prompt matches, runs in Claude Code only.