Skill / SKILL.md

Craft Php Guidelines

michtio/craftcms-claude-skills

Craft CMS 5 PHP coding standards and conventions. ALWAYS load when writing, editing, reviewing, or discussing any PHP in a Craft plugin or module, even small edits, and when running ECS, PHPStan, or ddev craft make. Covers PHPDoc blocks (@author, @since, @throws chains), section headers (=========), class organization, naming (services, jobs, records, events, enums), defineRules(), beforePrepare() and addSelect(), MemoizableArray, DateTimeHelper vs Carbon, declare(strict_types=1), ?string nullables, early returns, CP Twig templates, form macros, Craft::t, ECS/PHPStan config, and the verification checklist.
1 views 90 repository starsUpdated Nov 27, 2026
Overview

Craft CMS 5 PHP coding standards and conventions. ALWAYS load when writing, editing, reviewing, or discussing any PHP in a Craft plugin or module, even small edits, and when running ECS, PHPStan, or ddev craft make. Covers PHPDoc blocks (@author, @since, @throws chains), section headers (=========), class organization, naming (services, jobs, records, events, enums), defineRules(), beforePrepare() and addSelect(), MemoizableArray, DateTimeHelper vs Carbon, declare(strict_types=1), ?string nullables, early returns, CP Twig templates, form macros, Craft::t, ECS/PHPStan config, and the verification checklist.

Installation & variants

Download the repository, including the skill’s supporting files.

git clone -- 'https://github.com/michtio/craftcms-claude-skills' skill-source

Use the complete skill-source/skills/craft-php-guidelines directory with your client’s skill installer.

  • skills/craft-php-guidelines

    main · SKILL.md

    Open installation source

    Source directory recorded from the imported repository path

Source directory skills/craft-php-guidelines

Compatibility & requirements

Declared tools

Bash(sh ${CLAUDE_SKILL_DIR}/scripts/craft-version.sh)

Source instructions
Read source instructions

Open to load source instructions

Original SKILL.md

Open to load the original file

Source & validation
Source status
Awaiting source check
Format validation
Format valid
Checked at
Pending source check
Content SHA-256
446c614941a18dc07c5199e20a733934a32150d9a0177f91ecd170ac6204a991
Discussion
Comments Be the First to Comment

Please log in to comment

    No comments yet

Related skills