Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guidelines to refactor legacy PHP codebases into clean, modern, and scalable MVC-structured projects / Pedoman ahli untuk merefaktor codebase PHP lama menjadi proyek terstruktur MVC yang bersih, modern, dan skalabel.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
<a name="english"></a>
Connects and orchestrates with relevant domain skills like brainstorming, zero-to-prod-orchestrator, and session-memory-manager to ensure cohesive execution.
This skill provides the agent with structured protocols, coding patterns, and architectural guidelines to audit, refactor, and modernize legacy/obsolete PHP codebases (plain spaghetti PHP) into a clean, modern, secure, and scalable Model-View-Controller (MVC) structure adhering to PSR standards and modern PHP (v8.2+) capabilities.
Before writing new structures, run a detailed audit on the legacy files to map out:
.php files acting as endpoints (e.g., about.php, contact.php, process.php).mysqli or mysql_* usages.$_SESSION), raw cookies, and unchecked global variables ($_GET, $_POST, $_REQUEST).Apply a standard project directory structure and initialize dependency management:
composer.json file and define namespace mappings:
{
"autoload": {
"psr-4": {
"App\\": "src/"
}
}
}
public/: Single entry point containing index.php (Front Controller), assets (CSS, JS), and uploaded files.src/: Root namespace for MVC structure (src/Models/, src/Controllers/, src/Views/, src/Core/).config/: Database configurations, router configurations, and app configurations..env & .env.example: Store environment configurations.Refactor the spaghetti code into distinct MVC layers:
public/index.php. Map all requests through a single file using .htaccess or server redirects:
// public/index.php
require_once __DIR__ . '/../vendor/autoload.php';
$router = new App\Core\Router();
$router->add('GET', '/', 'HomeController@index');
$router->add('GET', '/users', 'UserController@index');
$router->dispatch($_SERVER['REQUEST_URI'], $_SERVER['REQUEST_METHOD']);
namespace App\Models;
use App\Core\Database;
use PDO;
class User {
private PDO $db;
public function __construct() {
$this->db = Database::getInstance()->getConnection();
}
public function getAll(): array {
$stmt = $this->db->prepare("SELECT id, name, email FROM users ORDER BY name ASC");
$stmt->execute();
return $stmt->fetchAll(PDO::FETCH_ASSOC);
}
}
namespace App\Controllers;
use App\Models\User;
class UserController {
public function index(): void {
$model = new User();
$users = $model->getAll();
render_view('users/index', ['users' => $users]);
}
}
Integrate the following standard security gates during refactoring:
htmlspecialchars($str, ENT_QUOTES, 'UTF-8')) for all dynamic view output.POST, PUT, DELETE)..env files using vlucas/phpdotenv.Refactor old PHP logic to use modern constructs:
declare(strict_types=1); to all class files.When organizing a project as a Multi-Page Application within a single repository, adhere to the following guidelines:
public/index.php) to handle all page requests. Route each request to its respective controller and view, ensuring each page load is fully processed on the server side.src/Views/layouts/ directory for base templates and a src/Views/partials/ directory for reusable UI components. Controllers should inject page-specific content into the base layout.public/ directory. Use cache-busting techniques (e.g., appending file modification time ?v=123) when linking assets in the views.Active whenever the user requests to:
<a name="bahasa-indonesia"></a>
Terhubung dan mengorkestrasi skill domain yang relevan seperti brainstorming, zero-to-prod-orchestrator, dan session-memory-manager untuk memastikan eksekusi yang kohesif.
Skill ini memberikan protokol terstruktur, pola penulisan kode, dan panduan arsitektur bagi agen untuk melakukan audit, refaktorisasi, dan modernisasi terhadap codebase PHP lama yang usang (Plain Spaghetti PHP) menjadi struktur Model-View-Controller (MVC) yang bersih, modern, aman, dan skalabel yang mematuhi standar PSR serta kemampuan PHP modern (v8.2+).
Sebelum membuat struktur baru, jalankan langkah audit terperinci pada file-file proyek lama untuk memetakan:
.php mentah yang bertindak langsung sebagai endpoint (misal about.php, contact.php, process.php).mysqli atau mysql_*.$_SESSION), cookie mentah, dan variabel global yang tidak divalidasi ($_GET, $_POST, $_REQUEST).Terapkan struktur direktori proyek standar dan inisialisasi manajemen dependensi:
composer.json dan definisikan pemetaan namespace:
{
"autoload": {
"psr-4": {
"App\\": "src/"
}
}
}
public/: Titik entri tunggal yang berisi index.php (Front Controller), aset (CSS, JS), serta file upload.src/: Namespace root untuk struktur MVC (src/Models/, src/Controllers/, src/Views/, src/Core/).config/: Konfigurasi database, konfigurasi router, dan konfigurasi aplikasi..env & .env.example: Menyimpan konfigurasi environment.Refaktorkan kode spageti ke dalam lapisan MVC yang terpisah:
public/index.php. Arahkan semua request melalui satu file menggunakan .htaccess atau pengalihan server:
// public/index.php
require_once __DIR__ . '/../vendor/autoload.php';
$router = new App\Core\Router();
$router->add('GET', '/', 'HomeController@index');
$router->add('GET', '/users', 'UserController@index');
$router->dispatch($_SERVER['REQUEST_URI'], $_SERVER['REQUEST_METHOD']);
namespace App\Models;
use App\Core\Database;
use PDO;
class User {
private PDO $db;
public function __construct() {
$this->db = Database::getInstance()->getConnection();
}
public function getAll(): array {
$stmt = $this->db->prepare("SELECT id, name, email FROM users ORDER BY name ASC");
$stmt->execute();
return $stmt->fetchAll(PDO::FETCH_ASSOC);
}
}
namespace App\Controllers;
use App\Models\User;
class UserController {
public function index(): void {
$model = new User();
$users = $model->getAll();
render_view('users/index', ['users' => $users]);
}
}
echo HTML langsung di dalam controller. Terapkan render template PHP yang bersih atau gunakan template engine ringan seperti Twig. Pastikan semua output HTML divalidasi dan lolos proses escaping.Integrasikan filter keamanan standar berikut selama refaktorisasi:
htmlspecialchars($str, ENT_QUOTES, 'UTF-8')) pada setiap output dinamis pada view.POST, PUT, DELETE)..env menggunakan library vlucas/phpdotenv.Refaktorkan logika PHP lama agar menggunakan fitur modern:
declare(strict_types=1); di bagian paling atas setiap file kelas.Saat mengatur proyek sebagai Multi-Page Application di dalam satu repositori, ikuti panduan berikut:
public/index.php) untuk menangani semua permintaan halaman. Arahkan setiap permintaan ke controller dan view masing-masing, memastikan setiap pemuatan halaman diproses sepenuhnya di sisi server.src/Views/layouts/ untuk template dasar dan direktori src/Views/partials/ untuk komponen UI yang dapat digunakan kembali. Controller harus menyuntikkan konten spesifik halaman ke dalam layout dasar.public/. Gunakan teknik cache-busting (misalnya, menambahkan waktu modifikasi file ?v=123) saat menautkan aset di dalam view.Aktif setiap kali pengguna meminta untuk:
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Expert guide for automated and manual Web Accessibility (a11y) testing — axe-core, Pa11y, Playwright a11y, screen reader testing, and WCAG 2.2 Level AA/AAA compliance / Panduan ahli pengujian aksesibilitas web.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for intelligent model cascading and routing — complexity-scored task routing from Flash/Haiku to Sonnet/Opus/Astra, dynamic escalation with quality gates, 40-60% token cost reduction while maintaining output quality / Panduan ahli untuk kaskade dan routing model cerdas — routing tugas berbasis skor kompleksitas dari Flash/Haiku ke Sonnet/Opus/Astra, eskalasi dinamis dengan gerbang kualitas, pengurangan biaya token 40-60% dengan kualitas output terjaga.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for Affective Computing, emotional AI, and real-time sentiment analysis through native multimodal tokens (voice intonation and facial micro-expressions) / Panduan ahli komputasi afektif, AI emosional, dan analisis sentimen real-time melalui token multimodal native.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for AI-assisted coding workflows — agentic code generation, multi-agent code swarms, self-healing CI/CD, automated PR review, spec-to-code pipelines, codebase knowledge graphs, and human-in-the-loop approval gates / Panduan ahli untuk workflow pengkodean berbasis AI — generasi kode agentic, code swarm multi-agen, CI/CD self-healing, review PR otomatis, pipeline spec-to-code, knowledge graph codebase, dan gate persetujuan human-in-the-loop.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for long-term episodic memory integration (Mem0 v2, Letta/MemGPT, Zep v2), memory tier architecture, pgvector HNSW storage, and unified context management for autonomous AI agents / Panduan ahli untuk integrasi memori episodik jangka panjang (Mem0 v2, Letta/MemGPT, Zep v2), arsitektur tier memori, penyimpanan pgvector HNSW, dan manajemen konteks terpadu untuk agen AI otonom.
日本語の概要は準備中です。原文の説明を表示しています。
Expert guide for designing Machine-to-Machine (M2M) micro-economies, autonomous agent wallets, and swarm budget allocation / Panduan ahli merancang ekonomi mikro antar-agen (M2M), dompet agen otonom, dan alokasi anggaran swarm.
日本語の概要は準備中です。原文の説明を表示しています。