Sandbox
@Cecilapp/Cecil

Static site generator for Markdown and Twig

Cecil builds static websites from Markdown content, front matter, images, and Twig templates. It handles common site features like pagination, sitemap, RSS, redirections, and asset processing while staying file-based and easy to deploy.

295 starsβ€’32 forksβ€’PHPβ€’Updated 7d ago
Who it's for

Builders who want a file-based static site workflow for blogs, docs, or small websites.

What it delivers

You can build and publish a static site from plain files without running a database or server.

What it does

Markdown and Twig site building

Combines Markdown content, YAML front matter, images, and Twig templates into static pages.

Automatic site features

Generates pagination, sitemap, redirects, robots.txt, taxonomies, and RSS feeds.

Asset handling

Processes and optimizes site assets during the build.

Single-file install

Runs from the downloaded `cecil.phar` binary.

Agent skill support

Includes `skills/cecil/SKILL.md` for GitHub Copilot, Claude Code, Cursor, and other supported agents.

How to get it

  1. 1Download cecil.phar from your terminal
    curl -LO https://github.com/Cecilapp/Cecil/releases/latest/download/cecil.phar
  2. 2Common commands
    php cecil.phar help      # Get help
    php cecil.phar new:site  # Create a new website
    php cecil.phar build     # Build your website
    php cecil.phar serve     # Preview your website locally

README

Cecil's logo, created by CΓ©cile Ricordeau

A simple and powerful content-driven static site generator.

Latest stable version License

Cecil is a CLI application that merges plain text files (written in Markdown), images and Twig templates to generate a static website.

πŸ“„Documentation Β· πŸ’»Demo Β· πŸ›Issues tracker Β· πŸ’¬Discussions

Cecil CLI animated demo

Continuous Integration status Release status Documentation status
Scrutinizer score Codacy badge Coverage score StyleCI status

Quick Start

Read the Quick Start documentation page.

Create and deploy a blog site:
Deploy to Netlify Deploy with Vercel

Features

  • No database, no server, no dependency: performance and security
  • Your pages are stored in Markdown flat files with a YAML front matter
  • Powered by Twig, a flexible template engine, with themes support
  • Pagination, sitemap, redirections, robots.txt, taxonomies, RSS are generated automatically
  • Handles and optimizes assets for you
  • Download one file and run it
  • Easy to deploy

Requirements

Installation

Download cecil.phar from your terminal:

curl -LO https://github.com/Cecilapp/Cecil/releases/latest/download/cecil.phar

Other installation methods:

Usage

Common commands:

php cecil.phar help      # Get help
php cecil.phar new:site  # Create a new website
php cecil.phar build     # Build your website
php cecil.phar serve     # Preview your website locally

Contributing

See Contributing.

Thanks goes to these wonderful people:

Arnaud Ligny
Arnaud Ligny

πŸ› πŸ“– πŸ€” 🚧 πŸ“£ πŸ’¬ πŸ‘€ 🌍 πŸ“’
Frank Taillandier
Frank Taillandier

πŸ“– πŸ€” πŸ“£ 🌍 πŸ§‘β€πŸ«
Martin Szulecki
Martin Szulecki

πŸ› πŸ’» πŸ€”
Matthieu Vion
Matthieu Vion

πŸ› πŸ’»
Chun-Sheng, Li
Chun-Sheng, Li

πŸ’» πŸ›‘οΈ
Benjamin Hirsch
Benjamin Hirsch

πŸ› πŸ’»
Pete Favelle
Pete Favelle

πŸ› πŸ’» πŸ€”
Gert de Pagter
Gert de Pagter

πŸ› πŸš‡
Joe Vallender
Joe Vallender

πŸ›
Jawira Portugal
Jawira Portugal

πŸ›
Yufan You
Yufan You

πŸ›‘οΈ
Mathieu Santostefano
Mathieu Santostefano

πŸ“– πŸ›
Max
Max

πŸ“–
Progi1984
Progi1984

πŸ’» πŸ€”
Franck Matsos
Franck Matsos

πŸ’»

This project follows the all-contributors specification (emoji key). Contributions of any kind welcome!

npm install -g all-contributors-cli
npx all-contributors add
npx all-contributors generate

Development

Install dependencies:

composer install

Run all quality checks:

composer code

Run individual checks:

composer code:analyse
composer code:style
composer test
composer test:cli

Build binaries

Build binaries with Box and phpacker:

# Install Box and phpacker globally
composer global require humbug/box
composer global require phpacker/phpacker
export PATH=~/.composer/vendor/bin:$PATH
# Build the PHAR file and the package
composer run build:phar
composer run build:package

Build API documentation

Build the API documentation with phpDocumentor:

# Download phpDocumentor PHAR
curl -Lo phpdoc https://phpdoc.org/phpDocumentor.phar
# Build the API documentation
php phpdoc

Release

To release a new version, create a new Git tag with the version number (e.g. 1.0.0), push it to GitHub and the release will be automatically published by GitHub Actions.

git tag 1.0.0
git push origin 1.0.0

[!TIP] To create a pre-release, add a suffix to the version number (e.g. 1.0.0-beta.1).

The automated workflow also will publish the release to the website, update the Homebrew formula and the Scoop manifest.

AI agent skill

Cecil ships with an agent skill that teaches AI coding agents (GitHub Copilot, Claude Code, Cursor, etc.) how to build and configure Cecil sites.

Install it with the GitHub CLI using the gh skill install command:

gh skill install Cecilapp/Cecil cecil

By default the skill is installed at project scope for GitHub Copilot. Use --scope user to make it available everywhere, and --agent to target another agent:

gh skill install Cecilapp/Cecil cecil --scope user --agent claude-code

Once installed, ask your agent to create, build, configure, or deploy a Cecil site and it will use the skill automatically.

Sponsors

Aperture LabΒ Β Β Β Β Β Β Β  studio cecilliestudio cecillieΒ Β Β Β Β Β Β Β NetlifyNetlify

License

Cecil is a free software licensed under the EUPL-1.2 license.

The Cecil documentation is available under the Creative Commons Attribution 4.0 license.

Libraries used by Cecil are subject to their respective licenses (run composer licenses).

Cecil Β© Arnaud Ligny
Logo Β© CΓ©cile Ricordeau

Files in the repo

Repository payloadβ€’42 top-level entries
  • .circleci
  • .github
  • .phpdoc
  • .vscode
  • bin
  • config
  • dist
  • docs
  • resources
  • scripts
  • skills
  • src
  • tests
  • .all-contributorsrc
  • .auto-changelog
  • .codacy.yml
  • .editorconfig
  • .gitattributes
  • .gitignore
  • .markdownlint.yaml
  • .php-cs-fixer.php
  • .phpcs.xml
  • .phpmd-rules.xml
  • .scrutinizer.yml
  • .styleci.yml
  • .symfony.insight.yaml
  • .twig-cs-fixer.php
  • AGENTS.md
  • box.json
  • cecil.yml
  • CHANGELOG.md
  • CODE_OF_CONDUCT.md
  • composer.json
  • composer.lock
  • CONTRIBUTING.md
  • LICENSE
  • phpacker.ini
  • phpacker.json
  • phpdoc.xml
  • phpunit.xml.dist
  • README.md
  • SECURITY.md

Discussion (0)

Ask about usage, or say what you built with it

Sign in to join the discussion.

No comments yet. Be the first to say what this is good for.

More tools

MemPalace/
mempalace

The best-benchmarked open-source AI memory system. And it's free.

59k
virgiliojr94/
book-to-skill

Turn any technical book PDF into a Claude Code skill β€” ready to study, reference, and use while you work.

30k
sickn33/
agentic-awesome-skills

AAS Core is the local, agent-first control plane for complete catalog discovery, agent-owned selection, stack validation, and planning, backed by 2,115+ agentic skills. Includes CLI, local MCP, catalog, plugins, and Workbench.

46k
iOfficeAI/
OfficeCLI

OfficeCLI is the first and best Office suite purpose-built for AI agents to read, edit, and automate Word, Excel, and PowerPoint files. Free, open-source, single binary, no Office installation required.

30k
googleworkspace/
cli

Google Workspace CLI β€” one command-line tool for Drive, Gmail, Calendar, Sheets, Docs, Chat, Admin, and more. Dynamically built from Google Discovery Service. Includes AI agent skills.

31k

Build Agentic workflows, RAG pipelines, with rich AI model and tool support on one collaborative workspace. Deploy on cloud, VPC, or self-hosted, so teams move from prototype to production without rebuilding the stack.

155k