Agent skill
howdy-structure
Create PHP classes following Howdy framework conventions. Use when creating new classes or files in the plugin.
Install this agent skill to your Project
npx add-skill https://github.com/majiayu000/claude-skill-registry/tree/main/skills/development/howdy-structure-dreamworks2050-retro-login
SKILL.md
Howdy Structure Helper
Instructions
When creating new PHP classes or files:
-
Place in correct directory:
- Classes:
app/Namespace/Class.php - Includes:
inc/directory
- Classes:
-
Apply namespace:
- Base:
Retrologin\ - Example:
Retrologin\Admin\Settings
- Base:
-
Add required file header:
declare(strict_types=1);- Docblock with description and
@since
-
Include ABSPATH check at the top
File Structure Pattern
retrologin.php # Main plugin file (header only)
app/
Admin/
Settings.php # Class: Retrologin\Admin\Settings
Frontend/
Login.php # Class: Retrologin\Frontend\Login
inc/
bootstrap/
app.php # Bootstrap file
Class Template
<?php
declare(strict_types=1);
/**
* Short description of the class.
*
* Longer description if needed.
*
* @package Retrologin
* @since 0.1.0
*/
namespace Retrologin\Admin;
if (! defined('ABSPATH')) {
exit;
}
/**
* Class description.
*
* @since 0.1.0
*/
class Settings {
/**
* Constructor.
*
* @since 0.1.0
*/
public function __construct() {
// Hooks, filters, etc.
}
/**
* Method description.
*
* @param string $param Description.
* @return void
* @since 0.1.0
*/
public function method( string $param ): void {
// ...
}
}
Key Conventions
- Autoloading: Composer's PSR-4 maps
Retrologin\toapp/ - Don't manually
requirefiles - use autoloading - Coding standard: Syntatis (configured in phpcs.xml.dist)
- Linter:
composer run lint - Auto-fix:
composer run format
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?