Skip to content
Content
Skill

/cecil

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

From plugin
cecil
3003 skills

Claude Code

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

SKILL.md

cecil.SKILL.md
name: cecil
description: Build and configure Cecil static sites, with focused guidance for content, templates, and site generation.
license: EUPL-1.2

Cecil Site Builder

You are an expert Cecil developer capable of creating and generating static websites with Cecil, a PHP-based static site generator powered by Symfony components and Twig.

When to Use This Skill

Use this skill when:

  • Creating or scaffolding a new Cecil site
  • Building and generating static websites with Cecil
  • Configuring site settings, taxonomies, and content organization
  • Creating or updating Twig templates and layouts
  • Managing assets, including images and stylesheets
  • Deploying Cecil-generated static sites
  • Troubleshooting build issues or optimizing the performance of the generated site and build process
  • Working with Cecil's plugin/extension system

Reference Files

This file covers what most tasks need. Read the matching reference **before** working on a topic it covers:

| Read | Before | |--------------------------------------------------------|--------------------------------------------------------------------------------------------------------------| | [references/content.md](references/content.md) | Writing page content: Markdown syntax (links, images, embeds, notes, table of contents, excerpt), menus and taxonomies in front matter, permalinks (`pages.paths`) | | [references/configuration.md](references/configuration.md) | Editing `cecil.yml`: menus, taxonomies, dates, environment variables and `.env`, default pages, data and static files, output formats, cache, server headers, optimization | | [references/templates.md](references/templates.md) | Creating or editing a Twig template: lookup rules, built-in templates and partials, metatags, variables (page, site, taxonomies, pagination), functions, filters, components, fragments cache | | [references/multilingual.md](references/multilingual.md) | Adding languages, translating pages, translating templates UI strings (`trans`, `translations/` files) or localizing dates | | [references/assets.md](references/assets.md) | Handling assets in templates (`asset()`, `html()`, images, resize, responsive, CDN), Sass, code highlighting, or optimizing the build | | [references/ai.md](references/ai.md) | Making the site AI-friendly: `llms.txt`, Markdown output of pages, HTTP headers, blocking AI crawlers (`robots.txt`) | | [references/extending.md](references/extending.md) | Writing PHP extensions (custom generators, Twig extensions, post-processors, build events subscribers, plugins) or using Cecil as a PHP library | | [references/deployment.md](references/deployment.md) | Deploying the generated site (GitHub Pages, GitLab Pages, Netlify, Vercel, Cloudflare Pages, etc.) | | [references/workflows.md](references/workflows.md) | Creating a blog, custom pages, dynamic content (Twig in a page body), shortcodes or a search page |

Project Structure

Directory Layout

my-site/
├── cecil.yml  # Main configuration file (or config.yml)
├── pages/     # Markdown pages
├── layouts/   # Twig templates
├── assets/    # Processed files (CSS, JS, images)
├── static/    # Static files copied as-is
├── data/      # Data collections (YAML/JSON/...)
├── schemas/   # Front matter schemas, one YAML file by section or by page (`pages.schema`)
├── translations/ # UI strings translations (messages.<locale>.yaml)
├── extensions/ # Custom PHP classes (generators, Twig extensions, post-processors, event subscribers)
├── .cache/    # Build cache (generated, `cache.dir`)
└── _site/     # Generated site (`output.dir` or `--output`)

Add `.cache/` and `_site/` to the site `.gitignore`.

Key Directories

  • **pages/** - Markdown content files organized into sections
  • **layouts/** - Twig templates and partials
  • **assets/** - Files handled by Cecil (Sass compilation, minification, image handling), published **only when used** with `asset()` in a template (or as an image in Markdown): a file linked directly (`url()` or a raw path) must be in `static/`
  • **static/** - Files copied to output without transformation (`static.mounts` copies specific files or directories of `static/` to a chosen output path)
  • **data/** - Data files (YAML, JSON, XML, CSV) exposed in templates via `site.data` (`data/authors.yml` → `site.data.authors`)
  • **schemas/** - Front matter schemas, one YAML file per key of `pages.schema` (`blog.yml` → section `blog`, `blog/index.yml` → page `blog/index`, `_all.yml` → `*`), holding the fields directly; merged field by field with `pages.schema`, see [references/configuration.md](references/configuration.md#pages)
  • **translations/** - Translation files of the templates UI strings (`messages.<locale>.<ext>`, used by the `trans` tag/filter)
  • **extensions/** - Custom PHP classes autoloaded by Cecil (file path must match the class namespace, e.g. `extensions/MyProject/Generator/CustomGenerator.php`)

Cecil Fundamentals

Architecture

Cecil follows a build pipeline:

Builder → Steps → Generators → Renderer → Output
  • **Steps** (`Step/`): Sequential build phases, in this order
  • Load: pages, data files and static files
  • Pages Create / Convert: create pages collection, convert front matter and Markdown body
  • Taxonomies Create: build vocabularies and terms
  • Pages Generate: run generators (see below)
  • Menus Create: build navigation structures
  • StaticFiles Copy: copy static files
  • Pages Render / Save: render with Twig and write output files
  • Assets Save: save processed assets
  • Optimize: HTML, CSS, JS and images
  • **Generators** (`Generator/`): Page generators executed via priority queue
  • Generators are indexed by name and ordered by priority; lower numbers execute first (e.g., `DefaultPages`
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-theme

cecil-theme

Create, structure and package themes for Cecil (visual themes and component themes), following the conventions of the official…

@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.

Which coding agents can use cecil?
cecil 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.