kirby-twig-best-practices

Provides best practices for Kirby CMS projects with Twig templates and site structure.

Updated May 7, 2026
One-click install
npx skills add https://github.com/cubachatou/kirby-twig-ui-lib --skill kirby-twig-best-practices
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: kirby-twig-best-practices
Source: https://github.com/cubachatou/kirby-twig-ui-lib/tree/main/skills/kirby-twig-best-practices
Command: npx skills add https://github.com/cubachatou/kirby-twig-ui-lib --skill kirby-twig-best-practices

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides comprehensive guidelines for building and maintaining Kirby CMS projects using Twig templating, streamlining development and ensuring best practices.

Core Features & Use Cases

  • Project Structuring: Offers detailed project setup for Kirby and Twig integration.
  • Template and Snippet Usage: Demonstrates how to write modular, inheritance-based Twig templates.
  • Development Workflow: Guides plugin installation, controller writing, and content organization.
  • Use Case: A developer setting up a new Kirby site can follow this guide to establish a clean, scalable template system and avoid common pitfalls.

Quick Start

Review the project structure in the documentation and set up your Kirby environment accordingly.

Frequently Asked Questions about kirby-twig-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I structure a Kirby CMS project using Twig templates?

To structure a Kirby CMS project using Twig templates, follow guidelines for project setup, template inheritance, and snippet usage to ensure a clean and scalable directory organization. This approach streamlines development and maintains adherence to Kirby conventions.

What is the best way to use Twig snippets and controllers in Kirby CMS?

The best way to use Twig snippets and controllers in Kirby CMS involves writing modular templates and integrating controllers to separate logic from presentation. This ensures secure, maintainable, and scalable professional development workflows.

Can I use Twig template inheritance for scalable Kirby CMS development?

Yes, you can use Twig template inheritance for scalable Kirby CMS development by creating modular, inheritance-based templates. This approach focuses on clean template organization and adherence to Twig standards for optimal site performance.

How does Twig plugin integration work with Kirby CMS?

Twig plugin integration with Kirby CMS works by guiding plugin installation and content organization within your development workflow. This ensures templates adhere to Kirby conventions and Twig standards for maintainable site performance.

When do I need Twig best practices for professional Kirby CMS workflows?

You need Twig best practices for professional Kirby CMS workflows when setting up a new site or maintaining existing scalable template systems. Following these guidelines helps avoid common pitfalls and ensures secure, clean template development.

What are the limitations of using Twig templates instead of native Kirby PHP templates?

Using Twig templates instead of native Kirby PHP templates requires ensuring adherence to Twig standards and Kirby conventions simultaneously. Developers must manage template inheritance and controller integration carefully to maintain optimal site performance and avoid structural pitfalls.