grunty-templates

Enforce Grunty PHP template authoring rules for g:if, g:foreach, and layouts.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/TrollHeap/dotfiles --skill grunty-templates
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: grunty-templates
Source: https://github.com/TrollHeap/dotfiles/tree/main/ai-config/.claude/templates/php-native/.claude/skills/grunty-templates
Command: npx skills add https://github.com/TrollHeap/dotfiles --skill grunty-templates

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Grunty-templates codifies authoring rules for Grunty PHP templates, helping teams enforce consistency and reduce errors across template files.

Core Features & Use Cases

  • Enforces output conventions and directive rules for Grunty templates (g:if, g:foreach, g:extends, g:block, g:slot, etc.).
  • Documents layout, component, and slot patterns to standardize Grunty-powered projects.
  • Provides safe, predictable template authoring workflows for templates/ and grunt-ui/ in PHP-based applications.

Quick Start

Create a new Grunty template that extends a base layout and applies g directives according to the defined rules.

Frequently Asked Questions about grunty-templates

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

FAQPage Schema
How do I enforce consistent PHP template authoring rules across a team?

You can enforce consistent PHP template authoring rules by codifying conventions for directives, layouts, and components in templates/ and grunt-ui/ directories. This ensures standardized output conventions and reduces template errors across Grunty-powered projects.

What are g:if and g:foreach directives in PHP template engines?

g:if and g:foreach are Grunty PHP template directives used for control flow and iteration. They are part of a directive system that also includes g:extends, g:block, and g:slot for structuring layouts and components within templates.

How do I create a Grunty template that extends a base layout?

To create a Grunty template extending a base layout, you apply g directives like g:extends and g:block according to defined rules. The template requires YAML frontmatter with name and description in SKILL.md, and supports optional resources folders.

Does the Grunty template system require YAML frontmatter in SKILL.md files?

Yes, Grunty template rules require YAML frontmatter containing name and description fields in SKILL.md files. This metadata codifies template conventions and supports optional resources folders including scripts, references, and assets for organized template management.

What is the best way to standardize layouts and slots in Grunty-powered projects?

The best way to standardize layouts and slots in Grunty-powered projects is documenting layout, component, and slot patterns using g:extends, g:block, and g:slot directives. This provides safe, predictable template authoring workflows for PHP-based applications.

Why are my Grunty template components not rendering correctly in the grunt-ui directory?

Grunty template components may not render correctly if directive rules for g:if, g:foreach, g:extends, g:block, or g:slot are misapplied. Enforcing output conventions and safety rules across templates/ and grunt-ui/ directories ensures correct rendering.