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/other/moodle-standards-astoeffer-plugin-marketplace
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.
riot-games
Manage Riot Games account, track stats across League, Valorant, and more
parcel
Provides comprehensive guidance for Parcel bundler including zero-configuration setup, asset handling, hot module replacement, and production builds. Use when the user asks about Parcel, needs to set up a build tool quickly, or work with Parcel's automatic configuration.
bbs
Manage issues with The Fold's CAS-native BBS (Bulletin Board System). Use for creating, updating, searching, and tracking issues. Invoke when the user wants to create tickets, find work, check issue status, or manage dependencies.
jito-bundles-and-priority-fees
Master Jito bundles for MEV protection and priority fee optimization on Solana - bundle submission, tip strategies, and transaction landing. Use for trading bots, high-priority transactions, and MEV-aware applications.
observability-monitoring-monitor-setup
You are a monitoring and observability expert specializing in implementing comprehensive monitoring solutions. Set up metrics collection, distributed tracing, log aggregation, and create insightful da
makefile-review
Didn't find tool you were looking for?