moodle-standards

Moodle Coding Standards

Safety Notice

This listing is imported from skills.sh public index metadata. Review upstream SKILL.md and repository scripts before running.

Copy this and send it to your AI assistant to learn

Install skill "moodle-standards" with this command: npx skills add astoeffer/plugin-marketplace/astoeffer-plugin-marketplace-moodle-standards

Moodle Coding Standards

Write compliant Moodle plugin code following PSR-12 and Moodle-specific conventions.

When to Use This Skill

  • Creating new Moodle plugins

  • Writing PHP code for Moodle

  • Code review and quality checks

  • Understanding Frankenstyle naming

See reference.md for complete standards.

Key Rules

Frankenstyle Naming

plugintype_pluginname local_mymodule mod_assignment block_myblock

File Headers

<?php // This file is part of Moodle - http://moodle.org/ // // Moodle is free software...

namespace local_mymodule;

defined('MOODLE_INTERNAL') || die();

Class Naming

// Class in local/mymodule/classes/helper.php namespace local_mymodule; class helper { // Methods use snake_case public function get_user_data() { } }

Quick Checks

  • File header with license

  • defined('MOODLE_INTERNAL') || die();

  • Proper namespace

  • PSR-12 formatting

  • No direct DB queries (use DML)

Source Transparency

This detail page is rendered from real SKILL.md content. Trust labels are metadata-based hints, not a safety guarantee.

Related Skills

Related by shared tags or category signals.

General

psr12-moodle

No summary provided by upstream source.

Repository SourceNeeds Review
General

foundry

No summary provided by upstream source.

Repository SourceNeeds Review
General

plugin-marketplace

No summary provided by upstream source.

Repository SourceNeeds Review
Automation

effect-ts

No summary provided by upstream source.

Repository SourceNeeds Review