← スキル一覧に戻る

howdy-structure
by dreamworks2050
RetroLogin WordPress plugin - A retro-themed login experience for WordPress
⭐ 0🍴 0📅 2025年12月29日
SKILL.md
name: howdy-structure description: Create PHP classes following Howdy framework conventions. Use when creating new classes or files in the plugin.
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
スコア
総合スコア
60/100
リポジトリの品質指標に基づく評価
✓SKILL.md
SKILL.mdファイルが含まれている
+20
✓LICENSE
ライセンスが設定されている
+10
○説明文
100文字以上の説明がある
0/10
○人気
GitHub Stars 100以上
0/15
○最近の活動
3ヶ月以内に更新がある
0/10
○フォーク
10回以上フォークされている
0/5
✓Issue管理
オープンIssueが50未満
+5
✓言語
プログラミング言語が設定されている
+5
○タグ
1つ以上のタグが設定されている
0/5
レビュー
💬
レビュー機能は近日公開予定です