joomla-conventions

Generates Joomla 4/5 MVC component and plugin code with security best practices.

8|Updated Feb 9, 2026
One-click install
npx skills add https://github.com/zb-ss/opencode-workflows --skill joomla-conventions
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: joomla-conventions
Source: https://github.com/zb-ss/opencode-workflows/tree/main/skill/joomla-conventions
Command: npx skills add https://github.com/zb-ss/opencode-workflows --skill joomla-conventions

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes references (resource) components.

What problem does it solve?

This Skill provides a comprehensive guide and code examples for developing Joomla 4/5 components and plugins, ensuring adherence to best practices for structure, security, and functionality.

Core Features & Use Cases

  • Component Structure: Outlines the standard directory layout for Joomla components.
  • Service Providers & MVC: Demonstrates how to implement service providers and the Model-View-Controller pattern.
  • Security Best Practices: Includes examples for secure database queries, CSRF token handling, and permission checks.
  • Language Handling & Forms: Shows how to manage language strings and define forms using XML.
  • Plugin Development: Provides a basic structure for creating system plugins.
  • Use Case: A developer starting a new Joomla component can use this Skill to quickly set up the correct file structure, implement core MVC patterns, and ensure security measures are in place from the beginning.

Quick Start

Generate a standard Joomla 4 component structure with example service provider and model code.

Frequently Asked Questions about joomla-conventions

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

FAQPage Schema
How do I structure a Joomla 4 component using MVC and service providers?

To structure a Joomla 4 component, you need a standard directory layout implementing the Model-View-Controller pattern alongside service providers. This involves organizing your code into specific directories for models, views, and controllers, and registering services to manage dependency injection and core functionality.

What's the best way to implement secure database queries in Joomla plugin development?

The best way to implement secure database queries in Joomla plugin development is by enforcing best practices for secure database interactions. This includes using Joomla's built-in database query builder to prevent SQL injection and properly validating user input before execution.

How do I add CSRF token validation and permission checks to a Joomla component?

To add CSRF token validation and permission checks to a Joomla component, implement security measures using Joomla's built-in token handling functions. You must verify CSRF tokens on form submissions and enforce permission checks to ensure only authorized users access specific actions.

Can I use XML to define forms and manage language strings in Joomla 4?

Yes, you can use XML to define forms and manage language strings in Joomla 4. Joomla's form API allows you to structure form fields within XML files, while site language strings are handled using standard language override files to ensure proper localization.

Does this guide cover both component and system plugin development for Joomla 5?

Yes, this guide covers both component and system plugin development for Joomla 5. It provides structural outlines, code examples for the MVC pattern, and basic structures for creating system plugins within the Joomla CMS framework.

Why do I need a service provider when building a Joomla component?

You need a service provider when building a Joomla component to manage dependency injection and replace the legacy singleton patterns. Service providers define how classes are instantiated and resolved, centralizing core functionality and ensuring your extension adheres to modern Joomla architecture.