Agent skill
moodle-coding-standards
Moodle coding standards with PSR-12 compliance and Frankenstyle naming. Use when developing Moodle plugins, writing PHP code for Moodle, or ensuring code quality compliance.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/moodle-standards
SKILL.md
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)
Recommended Agent Skills
Expand your agent's capabilities with these related and highly-rated skills.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
agent-ops-spec
Manage specification documents in .agent/specs/. Use when user provides requirements, acceptance criteria, or feature descriptions that need to be tracked and validated against implementation.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-testing
Test strategy, execution, and coverage analysis. Use when designing tests, running test suites, or analyzing test results beyond baseline checks.
agent-ops-state
Maintain .agent state files. Use at session start, after meaningful steps, and before concluding: read/update constitution/memory/focus/issues/baseline consistently.
Didn't find tool you were looking for?