๐
(Prompt) ูู ุทูุฑ Full Stack ูู PHP + WordPress + AI
๐ ุงููุงูุจ ุงูุงุญุชุฑุงูู ุงููุงู ู (Master Prompt)
text
ุฃูุช ู ุทูุฑ Full Stack ุฎุจูุฑ ูู PHP ู WordPress ู AI ุจุฎุจุฑุฉ ุชุชุฌุงูุฒ 10 ุณููุงุช. ุงุนู ู ูู Senior Developer ู ุญุชุฑู ูุชุจุน ุฃูุถู ุงูู ู ุงุฑุณุงุช (Best Practices) ูู ูุชุงุจุฉ ุงูููุฏ. ## ุงูุณูุงู (Context) - ุงูู ุดุฑูุน: [ุงุณู ุงูู ุดุฑูุน - ู ุซุงู: ุฅุถุงูุฉ WordPress ูุฅุฏุงุฑุฉ ุงูุนู ูุงุก] - ุงูุจูุฆุฉ: WordPress 6.4+ุ PHP 8.2+ุ MySQL 8 - ุงูู ุนุงููุฑ: PSR-12ุ WordPress Coding Standards - ุงููุฏู: [ุงููุฏู ู ู ุงูููุฏ] ## ุงูู ุทููุจ (Task) ุงูุชุจ [ููุน ุงูููุฏ: Plugin / Theme / REST API / Hook] ูููู ุจู: 1. [ุงูู ูุฒุฉ ุงูุฃููู] 2. [ุงูู ูุฒุฉ ุงูุซุงููุฉ] 3. [ุงูู ูุฒุฉ ุงูุซุงูุซุฉ] ## ุงูู ุชุทูุจุงุช ุงูุชูููุฉ (Technical Requirements) โ ุงุณุชุฎุฏู WordPress Hooks (actions/filters) ุจุดูู ุตุญูุญ โ ุทุจูู ู ุจุฏุฃ ุงูุฃู ุงู: sanitize, escape, validate, nonce โ ุงุณุชุฎุฏู Prepared Statements ูู ูุน SQL Injection โ ุงุชุจุน ูููู OOP ู ุน Namespaces โ ุฃุถู DocBlocks ููู ุฏุงูุฉ โ ุฏุนู ุงูุชุฑุฌู ุฉ (i18n) ุจุงุณุชุฎุฏุงู __() ู _e() โ ุงูุชุจ ููุฏ ูุงุจู ููุงุฎุชุจุงุฑ (Testable) ## ุงูู ุฎุฑุฌุงุช ุงูู ุทููุจุฉ (Output Format) 1. ๐ ูููู ุงูู ููุงุช (File Structure) 2. ๐ป ุงูููุฏ ุงููุงู ู ู ุน ุงูุชุนูููุงุช 3. ๐ง ุฎุทูุงุช ุงูุชุฑููุจ (Installation) 4. ๐งช ู ุซุงู ุนูู ุงูุงุณุชุฎุฏุงู (Usage Example) 5. โ ๏ธ ู ูุงุญุธุงุช ุงูุฃู ุงู ูุงูุฃุฏุงุก 6. ๐ ุงูุชุฑุงุญุงุช ููุชุญุณูู ## ูููุฏ (Constraints) - ูุง ุชุณุชุฎุฏู ู ูุชุจุงุช ุฎุงุฑุฌูุฉ ุฅูุง ููุถุฑูุฑุฉ - ูุง ุชูุชุจ ููุฏ ู ูุฑุฑ (DRY Principle) - ุงูููุฏ ูุฌุจ ุฃู ูุนู ู ุนูู WordPress Multisite
๐งช ู ุซุงู ุนู ูู ุญูููู (Prompt ุฌุงูุฒ ููุงุณุชุฎุฏุงู )
ุงูุชุนููู ุฉ:
text
ุฃูุช ู ุทูุฑ Full Stack ุฎุจูุฑ ูู PHP/WordPress. ุงูุชุจ ุฅุถุงูุฉ WordPress ูุงู ูุฉ ูุฅุฏุงุฑุฉ "ุงูู ูุถูุฉ" (Wishlist) ููู ุณุชุฎุฏู ูู ุงูู ุณุฌููู ูุงูุฒูุงุฑุ ู ุน ุฏุนู REST API ู AI ูุชูุตูุงุช ุงูู ูุชุฌุงุช ุงูู ุดุงุจูุฉ. ุงูู ุชุทูุจุงุช: - ุชุฎุฒูู ุงูู ูุถูุฉ ูู user_meta ููุฒูุงุฑ ุนุจุฑ session ู ููู logged-in ูู DB - REST API endpoints: POST /wishlist/add, DELETE /wishlist/remove, GET /wishlist - ุงุณุชุฎุฏุงู Nonce ููุชุญูู ุงูุฃู ูู - ุฏุนู AJAX ุจุฏูู ุฅุนุงุฏุฉ ุชุญู ูู ุงูุตูุญุฉ - Hook ูุชูุตูุงุช AI ุนูุฏ ุฅุถุงูุฉ ู ูุชุฌ - ุงุชุจุน WordPress Coding Standards
๐ป ุงููุงุชุฌ ุงูู ุชููุน (ููุฏ ูุงู ู ุฌุงูุฒ)
๐ ูููู ุงูู ููุงุช:
text
wishlist-ai/ โโโ wishlist-ai.php โโโ includes/ โ โโโ class-wishlist-db.php โ โโโ class-wishlist-rest-api.php โ โโโ class-wishlist-ai.php โโโ assets/ โ โโโ js/wishlist.js โ โโโ css/wishlist.css โโโ languages/
๐ป ุงูู
ูู ุงูุฑุฆูุณู wishlist-ai.php:
php
<?php
/**
* Plugin Name: Wishlist AI
* Plugin URI: https://example.com/wishlist-ai
* Description: ูุธุงู
ู
ูุถูุฉ ุงุญุชุฑุงูู ู
ุน ุชูุตูุงุช AI
* Version: 1.0.0
* Requires at least: 6.0
* Requires PHP: 8.0
* Author: Your Name
* License: GPL-2.0+
* Text Domain: wishlist-ai
*/
defined( 'ABSPATH' ) || exit;
define( 'WISHLIST_AI_VERSION', '1.0.0' );
define( 'WISHLIST_AI_PATH', plugin_dir_path( __FILE__ ) );
define( 'WISHLIST_AI_URL', plugin_dir_url( __FILE__ ) );
// Autoload classes
require_once WISHLIST_AI_PATH . 'includes/class-wishlist-db.php';
require_once WISHLIST_AI_PATH . 'includes/class-wishlist-rest-api.php';
require_once WISHLIST_AI_PATH . 'includes/class-wishlist-ai.php';
/**
* Initialize the plugin
*/
function wishlist_ai_init(): void {
load_plugin_textdomain( 'wishlist-ai', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
new Wishlist_REST_API();
new Wishlist_AI();
}
add_action( 'plugins_loaded', 'wishlist_ai_init' );
/**
* Activation hook
*/
register_activation_hook( __FILE__, [ 'Wishlist_DB', 'create_tables' ] );
๐ป includes/class-wishlist-db.php:
php
<?php
/**
* Database handler for Wishlist
*
* @package WishlistAI
*/
namespace WishlistAI;
defined( 'ABSPATH' ) || exit;
class Wishlist_DB {
private const TABLE = 'wishlist_items';
/**
* Create custom table on activation
*/
public static function create_tables(): void {
global $wpdb;
$table = $wpdb->prefix . self::TABLE;
$charset = $wpdb->get_charset_collate();
$sql = "CREATE TABLE {$table} (
id BIGINT UNSIGNED NOT NULL AUTO_INCREMENT,
user_id BIGINT UNSIGNED NOT NULL,
product_id BIGINT UNSIGNED NOT NULL,
created_at DATETIME DEFAULT CURRENT_TIMESTAMP,
PRIMARY KEY (id),
UNIQUE KEY user_product (user_id, product_id),
KEY user_id (user_id)
) {$charset};";
require_once ABSPATH . 'wp-admin/includes/upgrade.php';
dbDelta( $sql );
}
/**
* Add item to wishlist
*
* @param int $user_id
* @param int $product_id
* @return bool
*/
public static function add( int $user_id, int $product_id ): bool {
global $wpdb;
// Use prepared statement to prevent SQL injection
$result = $wpdb->insert(
$wpdb->prefix . self::TABLE,
[
'user_id' => absint( $user_id ),
'product_id' => absint( $product_id ),
],
[ '%d', '%d' ]
);
return false !== $result;
}
/**
* Remove item from wishlist
*/
public static function remove( int $user_id, int $product_id ): bool {
global $wpdb;
return (bool) $wpdb->delete(
$wpdb->prefix . self::TABLE,
[
'user_id' => absint( $user_id ),
'product_id' => absint( $product_id ),
],
[ '%d', '%d' ]
);
}
/**
* Get all wishlist items for a user
*/
public static function get_by_user( int $user_id ): array {
global $wpdb;
$table = $wpdb->prefix . self::TABLE;
return $wpdb->get_results(
$wpdb->prepare(
"SELECT product_id, created_at FROM {$table} WHERE user_id = %d ORDER BY created_at DESC",
$user_id
),
ARRAY_A
) ?: [];
}
}
๐ป includes/class-wishlist-rest-api.php:
php
<?php
/**
* REST API endpoints
*
* @package WishlistAI
*/
namespace WishlistAI;
defined( 'ABSPATH' ) || exit;
class Wishlist_REST_API {
private const NAMESPACE = 'wishlist-ai/v1';
public function __construct() {
add_action( 'rest_api_init', [ $this, 'register_routes' ] );
}
public function register_routes(): void {
register_rest_route( self::NAMESPACE, '/add', [
'methods' => 'POST',
'callback' => [ $this, 'add_item' ],
'permission_callback' => [ $this, 'check_permission' ],
'args' => [
'product_id' => [
'required' => true,
'validate_callback' => fn( $v ) => is_numeric( $v ) && $v > 0,
'sanitize_callback' => 'absint',
],
],
]);
register_rest_route( self::NAMESPACE, '/remove', [
'methods' => 'DELETE',
'callback' => [ $this, 'remove_item' ],
'permission_callback' => [ $this, 'check_permission' ],
]);
register_rest_route( self::NAMESPACE, '/list', [
'methods' => 'GET',
'callback' => [ $this, 'list_items' ],
'permission_callback' => [ $this, 'check_permission' ],
]);
}
/**
* Security check: Nonce + user auth
*/
public function check_permission( \WP_REST_Request $request ): bool {
$nonce = $request->get_header( 'X-WP-Nonce' );
return (bool) wp_verify_nonce( $nonce, 'wp_rest' ) && is_user_logged_in();
}
public function add_item( \WP_REST_Request $request ): \WP_REST_Response {
$product_id = $request->get_param( 'product_id' );
$user_id = get_current_user_id();
if ( ! Wishlist_DB::add( $user_id, $product_id ) ) {
return new \WP_REST_Response(
[ 'success' => false, 'message' => __( 'ูุดู ุงูุฅุถุงูุฉ', 'wishlist-ai' ) ],
400
);
}
// Trigger AI recommendations
do_action( 'wishlist_ai_item_added', $user_id, $product_id );
return new \WP_REST_Response([
'success' => true,
'message' => __( 'ุชู
ุช ุงูุฅุถุงูุฉ ุจูุฌุงุญ', 'wishlist-ai' ),
], 201 );
}
public function remove_item( \WP_REST_Request $request ): \WP_REST_Response {
$product_id = absint( $request->get_param( 'product_id' ) );
$user_id = get_current_user_id();
Wishlist_DB::remove( $user_id, $product_id );
return new \WP_REST_Response([ 'success' => true ], 200 );
}
public function list_items(): \WP_REST_Response {
$items = Wishlist_DB::get_by_user( get_current_user_id() );
return new \WP_REST_Response( $items, 200 );
}
}
๐ป includes/class-wishlist-ai.php:
php
<?php
/**
* AI Recommendations integration
*
* @package WishlistAI
*/
namespace WishlistAI;
defined( 'ABSPATH' ) || exit;
class Wishlist_AI {
public function __construct() {
add_action( 'wishlist_ai_item_added', [ $this, 'generate_recommendations' ], 10, 2 );
}
/**
* Generate AI-based recommendations (example with OpenAI API)
*/
public function generate_recommendations( int $user_id, int $product_id ): void {
$api_key = get_option( 'wishlist_ai_openai_key' );
if ( empty( $api_key ) ) {
return;
}
$product = wc_get_product( $product_id );
if ( ! $product ) {
return;
}
$response = wp_remote_post( 'https://api.openai.com/v1/chat/completions', [
'timeout' => 15,
'headers' => [
'Authorization' => 'Bearer ' . $api_key,
'Content-Type' => 'application/json',
],
'body' => wp_json_encode([
'model' => 'gpt-4o-mini',
'messages' => [[
'role' => 'user',
'content' => sprintf(
'ุงูุชุฑุญ 3 ู
ูุชุฌุงุช ู
ุดุงุจูุฉ ูู: %s. ุฃุนุฏ ุงูุฅุฌุงุจุฉ ุจุตูุบุฉ JSON ููุท.',
$product->get_name()
),
]],
'temperature' => 0.7,
]),
]);
if ( is_wp_error( $response ) ) {
error_log( 'Wishlist AI Error: ' . $response->get_error_message() );
return;
}
$body = json_decode( wp_remote_retrieve_body( $response ), true );
update_user_meta( $user_id, 'wishlist_ai_recommendations', $body['choices'][0]['message']['content'] ?? '' );
}
}
๐ป assets/js/wishlist.js:
javascript
document.addEventListener('DOMContentLoaded', () => {
const { restUrl, nonce } = window.wishlistAI || {};
document.querySelectorAll('.wishlist-add-btn').forEach(btn => {
btn.addEventListener('click', async (e) => {
e.preventDefault();
const productId = btn.dataset.productId;
btn.disabled = true;
try {
const res = await fetch(`${restUrl}add`, {
method: 'POST',
headers: {
'Content-Type': 'application/json',
'X-WP-Nonce': nonce,
},
body: JSON.stringify({ product_id: productId }),
});
const data = await res.json();
btn.textContent = data.success ? 'โ ุชู
ุช ุงูุฅุถุงูุฉ' : 'โ ุฎุทุฃ';
} catch (err) {
console.error(err);
} finally {
btn.disabled = false;
}
});
});
});
๐ง ุฎุทูุงุช ุงูุชุฑููุจ:
- ุงุฑูุน ุงูู
ุฌูุฏ ุฅููย
/wp-content/plugins/ - ูุนูู ุงูุฅุถุงูุฉ ู ู ููุญุฉ ุงูุชุญูู
- ุฃุถู ู
ูุชุงุญ OpenAI ู
ูย
Settings โ Wishlist AI - ุถุนย
class="wishlist-add-btn" data-product-id="123"ย ุนูู ุฃู ุฒุฑ
โ ๏ธ ู ูุงุญุธุงุช ุงูุฃู ุงู:
- โ
ุงุณุชุฎุฏุงู
ย
wp_verify_nonceย ูู ูุน CSRF - โ
ย
absint()ย +ยsanitize_callbackย ูู ูุน XSS/SQLi - โ
ย
$wpdb->prepare()ย ููุงุณุชุนูุงู ุงุช ุงูุฏููุงู ูููุฉ - โ
ย
permission_callbackย ูู ูู endpoint
๐ ุชุญุณููุงุช ู ูุชุฑุญุฉ:
- ุฅุถุงูุฉ Object Cache (Redis) ููุงุณุชุนูุงู ุงุช ุงูู ุชูุฑุฑุฉ
- ุงุณุชุฎุฏุงู Queue ููู AI calls (Action Scheduler)
- ุฏุนู
Multisite ุนุจุฑย
switch_to_blog() - ูุชุงุจุฉ Unit Tests ุจู PHPUnit
๐ ูุตุงุฆุญ ููุชุงุจุฉ Prompt ุงุญุชุฑุงูู:
| ุงูุนูุตุฑ | ุงูุฃูู ูุฉ | ู ุซุงู |
|---|---|---|
| ุงูุฏูุฑ | โญโญโญโญโญ | “ุฃูุช ู ุทูุฑ ุฎุจูุฑ…” |
| ุงูุณูุงู | โญโญโญโญโญ | PHP 8.2, WP 6.4 |
| ุงูู ุชุทูุจุงุช | โญโญโญโญโญ | ูุงุฆู ุฉ ูุงุถุญุฉ |
| ุตูุบุฉ ุงูู ุฎุฑุฌุงุช | โญโญโญโญ | ู ููุงุชุ ููุฏุ ุงุฎุชุจุงุฑุงุช |
| ุงููููุฏ | โญโญโญ | ู ุง ูุฌุจ ุชุฌูุจู |
| ุฃู ุซูุฉ | โญโญโญ | Input/Output |
๐ก ุงููุงุนุฏุฉ ุงูุฐูุจูุฉ: ููู ุง ูุงู ุงูู Prompt ุฃูุซุฑ ุชุญุฏูุฏุงู ูุชูุตููุงูุ ูุงู ุงูููุฏ ุงููุงุชุฌ ุฃูุซุฑ ุฏูุฉ ูุงุญุชุฑุงููุฉ ูุฌุงูุฒุงู ููุฅูุชุงุฌ ู ุจุงุดุฑุฉ.
๐ ุชูุณูุน: ููุงูุจ Prompts ุงุญุชุฑุงููุฉ ู ุชูุฏู ุฉ ูู PHP + WordPress + AI
๐ ุงูููุฑุณ
- ูุงูุจ ุฅูุดุงุก Plugin ูุงู ู (WooCommerce Add-on)
- ูุงูุจ ุจูุงุก REST API ู ุชูุฏู ู ุน Authentication
- ูุงูุจ ุชุทููุฑ Theme ู ุฎุตุต (Block Theme)
- ูุงูุจ ุชูุงู ู AI ู ุน WordPress (Chatbot / RAG)
- ูุงูุจ Gutenberg Block ู ุฎุตุต
- ูุงูุจ ุชุญุณูู ุงูุฃุฏุงุก ูุงูู Caching
- ูุงูุจ ูุชุงุจุฉ Unit Tests + CI/CD
- ูุงูุจ Debugging ูุชุญููู ุงูุฃุฎุทุงุก
- ูุงูุจ Migration ู Refactoring
- ูุงูุจ ุฅุนุฏุงุฏ Headless WordPress + Next.js
- ูุตุงุฆุญ Meta-Prompting ููุชุงุฆุฌ ุฃูุถู
- ู ูุชุจุฉ System Prompts ุฌุงูุฒุฉ ูููุณุฎ
<a name=”1″></a>
1๏ธโฃ ูุงูุจ ุฅูุดุงุก Plugin ูุงู ู (WooCommerce Add-on)
text
[ROLE] ุฃูุช Senior WordPress Plugin Developer ุจุฎุจุฑุฉ 10+ ุณููุงุช ูู WooCommerceุ ู ุชุฎุตุต ูู ูุชุงุจุฉ ุฅุถุงูุงุช ูุงุจูุฉ ููุชูุณุน (Scalable) ูู ุชูุงููุฉ ู ุน HPOS. [CONTEXT] - WordPress 6.5+, WooCommerce 8.5+, PHP 8.2 - HPOS (High-Performance Order Storage) ู ููุนูู - ุงูู ุนุงููุฑ: WordPress Coding Standards + PSR-4 Autoloading - Composer ู ุชุงุญ [TASK] ุงุจูู ุฅุถุงูุฉ "Smart Shipping Calculator" ุชููู ุจู: 1. ุญุณุงุจ ุชูููุฉ ุงูุดุญู ุฏููุงู ูููุงู ุจูุงุกู ุนูู: - ุงููุฒู + ุงูุฃุจุนุงุฏ + ุงูู ููุน ุงูุฌุบุฑุงูู - ุงูููุช ุงูุญุงูู (Peak hours = +20%) 2. ุนุฑุถ ุงูุณุนุฑ ูู ุตูุญุฉ ุงูู ูุชุฌ ูุตูุญุฉ ุงูุณูุฉ 3. ุชุฎุฒูู ุงูุฃุณุนุงุฑ ูู Transients ูู ุฏุฉ ุณุงุนุฉ 4. Integration ู ุน REST API ูุดุฑูุฉ ุดุญู ุฎุงุฑุฌูุฉ [STRUCTURE REQUIRED] wishlist-ai/ โโโ composer.json โโโ smart-shipping.php โโโ src/ โ โโโ Plugin.php โ โโโ Shipping/ โ โ โโโ Calculator.php โ โ โโโ RateProvider.php โ โ โโโ Cache.php โ โโโ API/ โ โ โโโ ExternalCarrier.php โ โโโ Admin/ โ โโโ SettingsPage.php โโโ tests/ โโโ uninstall.php [CONSTRAINTS] - โ ุงุณุชุฎุฏู Dependency Injection - โ Single Responsibility Principle - โ ูุง ุชูุชุจ ู ูุทู ูู ุงูู ูู ุงูุฑุฆูุณู - โ ุงุณุชุฎุฏู WooCommerce CRUD APIs (ููุณ post_meta ู ุจุงุดุฑุฉ) - โ ุฏุนู HPOS ุนุจุฑ wc_get_orders() - โ ูุง ุชุณุชุฎุฏู eval() ุฃู extract() - โ ูุง ุชุฎุฒู API keys ูู ุงูููุฏ [OUTPUT] 1. composer.json ูุงู ู 2. ูู ู ูู ุจู ุณุงุฑู ุงูุตุญูุญ 3. ู ุซุงู ุนูู Hook Registration 4. Unit test ูู ุซุงู Calculator 5. ุฎุทูุงุช ุงูุชุฑููุจ ูุงููุดุฑ
<a name=”2″></a>
2๏ธโฃ ูุงูุจ ุจูุงุก REST API ู ุชูุฏู ู ุน Authentication
text
[ROLE]
ุฃูุช Backend Engineer ู
ุชุฎุตุต ูู REST APIs ูุชุทุจููุงุช WordPress Headless.
[TASK]
ุตู
ู
REST API ูุงู
ู ููุธุงู
"Course Management" ู
ุน:
## Endpoints
| Method | Endpoint | Auth | Description |
|--------|----------|------|-------------|
| POST | /courses/v1/enroll | JWT | ุชุณุฌูู ุทุงูุจ ูู ุฏูุฑุฉ |
| GET | /courses/v1/my-courses | JWT | ุฏูุฑุงุช ุงูู
ุณุชุฎุฏู
|
| POST | /courses/v1/lessons/{id}/complete | JWT | ุฅูู
ุงู ุฏุฑุณ |
| DELETE | /courses/v1/enroll/{id} | JWT | ุฅูุบุงุก ุงูุชุณุฌูู |
| GET | /courses/v1/stats | Admin | ุฅุญุตุงุฆูุงุช ุนุงู
ุฉ |
## Requirements
- ๐ JWT Authentication (ุงุณุชุฎุฏู
firebase/php-jwt)
- ๐ก๏ธ Rate Limiting (5 requests/minute per user)
- ๐ Response Schema ู
ูุญุฏ:
{
"success": bool,
"data": object|array,
"meta": { "pagination": {...} },
"errors": array
}
- ๐ Versioning via namespace
- ๐ CORS support ููู Frontend
- ๐ Logging ููู request ูู custom table
- โก Object Cache ููุชูุณุน
## Deliverables
1. `class-jwt-auth.php` โ ุฅูุดุงุก ูุชุญูู JWT
2. `class-rate-limiter.php` โ ุญู
ุงูุฉ ู
ู ุงูุฅุณุงุกุฉ
3. `class-response.php` โ Schema ู
ูุญุฏ
4. `class-courses-controller.php` โ ู
ูุทู ุงูุฃุนู
ุงู
5. `.htaccess` rules ุฅู ูุฒู
6. Postman collection ููุงุฎุชุจุงุฑ
7. ู
ุซุงู Fetch ู
ู React
## Best Practices
- ุงุณุชุฎุฏู
`register_rest_route` ู
ุน `args` schema ูุงู
ู
- `permission_callback` ู
ููุตู ููู endpoint
- `sanitize_callback` + `validate_callback` ููู param
- ุงุณุชุฎุฏู
`rest_ensure_response()` ุฏุงุฆู
ุงู
- HTTP Status Codes ุตุญูุญุฉ (201, 400, 401, 403, 429, 500)
<a name=”3″></a>
3๏ธโฃ ูุงูุจ ุชุทููุฑ Theme ู ุฎุตุต (Block Theme)
text
[ROLE]
ุฃูุช ู
ุทูุฑ Block Theme ุฎุจูุฑ ูู FSE (Full Site Editing) ู theme.json.
[TASK]
ุงุจูู Block Theme ุงุญุชุฑุงูู ุจุงุณู
"Modern Business" ูู
ููุน ุดุฑูุฉ.
## ุงูู
ูุงุตูุงุช
- WordPress 6.5+ Block Theme (ุจุฏูู PHP templates)
- theme.json ูุงู
ู ุจู:
- Color Palette (8 ุฃููุงู semantic)
- Typography Scale (fluid typography)
- Spacing Scale
- Custom Templates
- ุฏุนู
RTL ูุงู
ู
- Performance: 100/100 Lighthouse Score
## ูููู ุงูู
ุทููุจ
modern-business/
โโโ style.css
โโโ theme.json โ ุงูุฅุนุฏุงุฏุงุช ุงูุฑุฆูุณูุฉ
โโโ functions.php โ Hooks ููุท
โโโ templates/
โ โโโ index.html
โ โโโ front-page.html
โ โโโ single.html
โ โโโ archive.html
โ โโโ 404.html
โโโ parts/
โ โโโ header.html
โ โโโ footer.html
โ โโโ sidebar.html
โโโ patterns/
โ โโโ hero-section.php
โ โโโ features-grid.php
โ โโโ testimonials.php
โ โโโ cta-banner.php
โโโ styles/
โ โโโ dark.json
โ โโโ warm.json
โโโ assets/
โโโ fonts/
โโโ images/
## Requirements
- โ
Block Patterns ู
ุณุฌูุฉ ุนุจุฑ `register_block_pattern()`
- โ
Block Styles ุนุจุฑ `register_block_style()`
- โ
Custom Post Types ูู plugin ู
ููุตู (ููุณ Theme)
- โ
ุฏุนู
WooCommerce templates
- โ
Font Loading ุนุจุฑ `wp_enqueue_style` ู
ุน preload
- โ
CSS: ุงุณุชุฎุฏุงู
`wp_get_global_stylesheet()` ููุท
- โ ูุง ุชุณุชุฎุฏู
jQuery
- โ ูุง ุชุฎุฒู ู
ูุทู ูู functions.php
## Output
- ู
ููุงุช ูุงู
ูุฉ ุฌุงูุฒุฉ ููุชุฑููุจ
- ุดุฑุญ ููู pattern ูููููุฉ ุงุณุชุฎุฏุงู
ู
- ููุทุงุช ู
ุชููุนุฉ ููุชุตู
ูู
(ูุตู ูุตู)
<a name=”4″></a>
4๏ธโฃ ูุงูุจ ุชูุงู ู AI ู ุน WordPress (Chatbot / RAG)
text
[ROLE]
ุฃูุช AI Engineer + WordPress Developer. ุชุฎุตุตู: ุชุทุจูู LLMs ุฏุงุฎู
ุฃูุธู
ุฉ ุฅูุชุงุฌ ู
ุน WordPress.
[TASK]
ุงุจูู Chatbot ุฐูู ูู
ููุน WordPress ููุฑุฃ ู
ุญุชูู ุงูู
ููุน ููุฌูุจ ุงูุฒูุงุฑ.
## ุงูู
ุนู
ุงุฑูุฉ (RAG - Retrieval Augmented Generation)
[User Query] โ [Embedding] โ [Vector Search in WP]
โ [Context Assembly] โ [LLM Call] โ [Streaming Response]
## ุงูู
ูููุงุช ุงูู
ุทููุจุฉ
### 1. Indexer (ุฎููู)
- CLI Command: `wp ai-chat index` ูุจูุงุก ุงูู embeddings
- ูุนู
ู ุนูู Posts, Pages, Products
- Chunking: 500 tokens + overlap 50
- ุชุฎุฒูู ูู ุฌุฏูู ู
ุฎุตุต: wp_ai_embeddings
- Batch Processing ู
ุน Action Scheduler
### 2. Vector Store
- ุงุณุชุฎุฏุงู
MySQL JSON + Cosine Similarity (ููุจุฏุงูุฉ)
- ุฃู Integration ู
ุน Pinecone/Weaviate (ุงุฎุชูุงุฑู)
- Index on: post_id, embedding_hash
### 3. Chat Endpoint
- REST: POST /ai-chat/v1/message
- Streaming via Server-Sent Events (SSE)
- Rate Limiting: 10 messages/hour ููุฒูุงุฑ
- ุญูุธ ุงูู
ุญุงุฏุซุฉ ูู session
### 4. Frontend Widget
- Floating button + Slide-up panel
- Streaming display (typing effect)
- Markdown rendering
- ุฏุนู
ุนุฑุจู/ุฅูุฌููุฒู ุชููุงุฆู
### 5. Admin Dashboard
- ุนุฑุถ ุงูุฅุญุตุงุฆูุงุช: ุนุฏุฏ ุงูุฃุณุฆูุฉุ ุฃูุซุฑ ุงูู
ูุงุถูุน
- ุฅุนุฏุงุฏุงุช: ุงุฎุชูุงุฑ Model, Temperature, System Prompt
- ุฒุฑ Re-index
## Tech Stack
- OpenAI API (gpt-4o-mini + text-embedding-3-small)
- PHP 8.2 + WP 6.5
- Vanilla JS (ุจุฏูู frameworks)
- Vanilla CSS (ุจุฏูู Tailwind)
## Deliverables
1. ูููู ุงูุฅุถุงูุฉ ูุงู
ู
2. Schema ูุงุนุฏุฉ ุงูุจูุงูุงุช + Migration
3. WP-CLI Command
4. Endpoint ู
ุน SSE Streaming
5. Widget JS + CSS
6. Admin Settings Page
7. ู
ุซุงู System Prompt ู
ุญุณูู
8. Cost Estimation ููู 10,000 ุฑุณุงูุฉ/ุดูุฑ
## Security
- Sanitize ูู input ูุจู ุฅุฑุณุงูู ููู LLM
- Guardrails: ู
ูุน Prompt Injection
- ูุง ุชุฑุณู PII ููู API
- Encrypt API keys at rest
<a name=”5″></a>
5๏ธโฃ ูุงูุจ Gutenberg Block ู ุฎุตุต
text
[ROLE] ุฃูุช Block Developer ุฎุจูุฑ ูู @wordpress/scripts ู React ุฏุงุฎู Gutenberg. [TASK] ุงุจูู Custom Gutenberg Block ุจุงุณู "Pricing Table Pro" (block name: myplugin/pricing-table). ## ุงูู ูุฒุงุช - ุฅุถุงูุฉ/ุญุฐู ุฎุทุท (plans) ุฏููุงู ูููุงู - ุชุญุฏูุฏ ุฎุทุฉ "ู ูุตู ุจูุง" (featured) - Colors ูุงุจู ููุชุฎุตูุต ู ู InspectorControls - ุชุจุฏูู ุงูุนู ูุฉ (ุฑ.ุณุ $ุ โฌ) - Responsive ุนูู Frontend - ุฏุนู Reusable Blocks - ุชุญููู ู ู/ุฅูู Shortcode ## ูููู ุงูู ููุงุช myplugin/ โโโ package.json โโโ webpack.config.js (ุฃู use wp-scripts) โโโ src/ โ โโโ blocks/ โ โ โโโ pricing-table/ โ โ โโโ block.json โ metadata โ โ โโโ index.js โ registerBlockType โ โ โโโ edit.js โ Editor UI โ โ โโโ save.js โ Frontend โ โ โโโ style.scss โ Frontend CSS โ โ โโโ editor.scss โ Editor-only CSS โ โ โโโ components/ โ โ โโโ PlanCard.js โ โ โโโ Inspector.js โ โโโ index.js โโโ build/ ## Technical Requirements - โ ุงุณุชุฎุฏุงู `@wordpress/scripts` (ุจุฏูู Webpack ูุฏูู) - โ block.json ู ุน `apiVersion: 3` - โ `useBlockProps()` ูู edit ู save - โ `useSelect` + `useDispatch` ูููุตูู ููุจูุงูุงุช - โ `RichText` ููุนููุงู ูุงููุตู - โ `InspectorControls` ู ุน `PanelColorSettings` - โ Deprecated versions ููุชูุงูู - โ `InnerBlocks` ููุฎุทุท (allowedBlocks ู ุญุฏุฏุฉ) - โ Block Variations ููุงูุจูู ุฌุงูุฒูู - โ `render_callback` ููู Server-Side Rendering (ุฅู ูุฒู ) ## Output 1. ูู ู ูู ู ุน ุงูููุฏ ุงููุงู ู 2. `block.json` schema ูุงู ู 3. ุฃูุงู ุฑ npm ููุชุทููุฑ ูุงูุจูุงุก 4. ุดุฑุญ Deprecated API ููุชูุงูู ู ุน ุงูุฅุตุฏุงุฑุงุช ุงููุฏูู ุฉ 5. ู ุซุงู block pattern ุฌุงูุฒ
<a name=”6″></a>
6๏ธโฃ ูุงูุจ ุชุญุณูู ุงูุฃุฏุงุก ูุงูู Caching
text
[ROLE] ุฃูุช Performance Engineer ู ุชุฎุตุต ูู WordPress ุนูู ูุทุงู ูุงุณุน (High-Traffic Sites). [CONTEXT] - ู ููุน WooCommerce ุจู 50,000 ู ูุชุฌ - 100,000 ุฒุงุฆุฑ/ููู - Server: Nginx + PHP-FPM + Redis + MySQL 8 - ู ุดุงูู ุญุงููุฉ: TTFB = 2.5sุ DB Queries = 120/ุตูุญุฉ [TASK] ูุฏูู ุฎุทุฉ ุชุญุณูู ุดุงู ูุฉ + ููุฏ ุชูููุฐู. ## ุงูู ุญุงูุฑ ุงูู ุทููุจุฉ ### 1. Database Layer - ุชุญููู slow queries (ุฃุนุทู ุงุณุชุนูุงู ุงุช ANALYZE) - ุฅุถุงูุฉ Indexes ู ุฎุตุตุฉ ููู wp_postmeta (ุฎุงุตุฉ ูู WooCommerce) - Object Cache ู ุน Redis (ููุฏ wp-config.php ูุงู ู) ### 2. Page Caching - Full-page cache ู ุน Nginx FastCGI (config ูุงู ู) - Cache Warming ุนุจุฑ WP-CLI - Cache Invalidation ุฐูู ุนูุฏ ุชุญุฏูุซ ุงูู ูุชุฌุงุช ### 3. Query Optimization - ุงุณุชุจุฏุงู WP_Query ุจู Custom SQL ููุงุณุชุนูุงู ุงุช ุงูุซูููุฉ - ุงุณุชุฎุฏุงู $wpdb->prepare + Index hints - ุชุฌูุจ `posts_per_page => -1` ### 4. Asset Optimization - Critical CSS inline - ุชุญู ูู ุตูุฑ Lazy + WebP/AVIF - Defer/Async ููู JavaScript - Font optimization (font-display: swap) ### 5. WooCommerce Specific - HPOS (ุชุญููู ู ู postmeta) - ุชุนุทูู Features ุบูุฑ ู ุณุชุฎุฏู ุฉ - ุชุญุณูู Cart Fragments - Batch processing ููู Orders ### 6. Monitoring - New Relic / Query Monitor - Custom dashboard ูู wp-admin - Alerts ููู TTFB > 1s ## Deliverables 1. Before/After metrics ู ุชููุนุฉ 2. ูู ุงูููุฏ ุฌุงูุฒ ูููุณุฎ 3. Nginx config ูุงู ู 4. my.cnf tuning 5. Checklist ุชูููุฐู (Priority Order) 6. Rollback plan ููู ุชุบููุฑ
<a name=”7″></a>
7๏ธโฃ ูุงูุจ ูุชุงุจุฉ Unit Tests + CI/CD
text
[ROLE]
ุฃูุช QA Engineer + DevOps ู
ุชุฎุตุต ูู WordPress Testing.
[TASK]
ุงูุชุจ ุงุฎุชุจุงุฑุงุช ุดุงู
ูุฉ + Pipeline CI/CD ูุฅุถุงูุฉ WooCommerce.
## 1. Unit Tests (PHPUnit)
- ุงุณุชุฎุฏุงู
`WP_UnitTestCase`
- Brain Monkey ููู function mocking
- ุชุบุทูุฉ: Services, Helpers, Hooks Callbacks
- Target: Coverage โฅ 80%
## 2. Integration Tests
- ุงุณุชุฎุฏุงู
`WP_UnitTestCase` ู
ุน ูุงุนุฏุฉ ุจูุงูุงุช ุงุฎุชุจุงุฑ
- ุงุฎุชุจุงุฑ REST API endpoints
- ุงุฎุชุจุงุฑ WooCommerce flows ูุงู
ูุฉ
## 3. E2E Tests (Playwright)
- ุชุณุฌูู ุงูุฏุฎูู
- ุฅุชู
ุงู
ุนู
ููุฉ ุดุฑุงุก
- ุชูุงุนู ู
ุน Widgets
## 4. Static Analysis
- PHPStan level 8
- PHP_CodeSniffer (WordPress Coding Standards)
- Psalm (ุจุฏูู)
## 5. CI/CD Pipeline (GitHub Actions)
name: CI
on: [push, pull_request]
jobs:
lint:
- PHP 8.2 setup
- composer install
- phpcs, phpstan
test:
- MySQL service
- WordPress install
- phpunit
e2e:
- wp-env start
- playwright test
deploy:
- if tag pushed
- Build & push to WordPress.org SVN
## 6. Deliverables
- phpunit.xml.dist
- .phpcs.xml.dist
- phpstan.neon
- composer.json ู
ุน dev dependencies
- .github/workflows/ci.yml ูุงู
ู
- README ู
ุน badges
- ู
ุซุงู test file ููู ููุน
- Coverage report setup (Codecov)
<a name=”8″></a>
8๏ธโฃ ูุงูุจ Debugging ูุชุญููู ุงูุฃุฎุทุงุก
text
[ROLE] ุฃูุช WordPress Debugger ุฎุจูุฑ. ุชุญููู ุงูุฃุฎุทุงุก ุจู ููุฌูุฉ ุนูู ูุฉ. [SYMPTOM] ุงูู ููุน ูุชููู ุนู ุงูุนู ู ุนูุฏ ุชูุนูู ุฅุถุงูุชูุ ูุงูู error: "Fatal error: Uncaught TypeError: Argument #1 must be of type array, string given" [CONTEXT] - WordPress 6.5, PHP 8.2 - ุงูุฅุถุงูุฉ ุชุนู ู ุนูู PHP 7.4 ููู ุชูุดู ุนูู 8.2 - Stack trace: class-cart.php:245 [TASK] 1. ุญููู ุงูุฎุทุฃ ุฎุทูุฉ ุจุฎุทูุฉ (Root Cause Analysis) 2. ุงุดุฑุญ ูู ุงุฐุง ููุดู ุนูู PHP 8.2 ููุท 3. ูุฏูู ุงูุญู ู ุน ุงูููุฏ ุงูู ูุตุญุญ 4. ุญุฏูุซ ุจุงูู ุงูู ููุงุช ูุชุฌูุจ ุฃุฎุทุงุก ู ุดุงุจูุฉ 5. ุฃูุชุจ Regression Test ูู ูุน ุงูุชูุฑุงุฑ ## Output Format ### ๐ ุงูุชุดุฎูุต - ุงูุณุจุจ ุงูุฌุฐุฑู: ... - ูู ุงุฐุง PHP 8.2ุ ... ### ๐ ๏ธ ุงูุญู [ุงูููุฏ ุงูู ูุตุญุญ] ### ๐ ุฅุตูุงุญุงุช ู ุดุงุจูุฉ ูู ู ููุงุช ุฃุฎุฑู - file1.php: [ูุจู] โ [ุจุนุฏ] - file2.php: [ูุจู] โ [ุจุนุฏ] ### ๐งช Test [PHPUnit test] ### ๐ก๏ธ Prevention - ุฅุถุงูุฉ PHPStan level 8 ููู CI - ุฅุถุงูุฉ `declare(strict_types=1)` ููู ู ูู - Checklist ููู ุฑุงุฌุนุฉ
<a name=”9″></a>
9๏ธโฃ ูุงูุจ Migration ู Refactoring
text
[ROLE] ุฃูุช Legacy Code Surgeon. ู ุชุฎุตุต ูู ุชุญููู ุงูููุฏ ุงููุฏูู ูู Modern Architecture ุจุฏูู ุชุนุทูู ุงูู ููุน. [TASK] ุญููู ุฅุถุงูุฉ WordPress ูุฏูู ุฉ (ุณุจุงุบูุชู code, 8000 ุณุทุฑ ูู ู ูู ูุงุญุฏ) ุฅูู ู ุนู ุงุฑูุฉ ูุธููุฉ. ## ุงููุฏู ุงูููุงุฆู - OOP + Namespaces (PSR-4) - ู ูู ุฑุฆูุณู < 50 ุณุทุฑ - ูู Class ู ุณุคูููุฉ ูุงุญุฏุฉ - Testable ุจุฏูู WordPress bootstrap ## ุงููููุฏ ุงูุญุฑุฌุฉ - โ ๏ธ ุงูู ููุน Live ุจุชุฑุงููู ุนุงูู โ Zero Downtime ุฅุฌุจุงุฑู - โ ๏ธ ุงูุจูุงูุงุช ุงูู ุฎุฒูุฉ (user_meta) ูุฌุจ ุฃู ุชุจูู ู ุชูุงููุฉ - โ ๏ธ Shortcodes ู ูุฌูุฏุฉ ูุฌุจ ุฃู ุชุนู ู ุจุฏูู ุชุบููุฑ - โ ๏ธ ูุง ุชุบููุฑ ูู Hooks API ุงูุฎุงุฑุฌู ## Approach ุงูู ุทููุจ 1. **Characterization Tests** ุฃููุงู (ูุจู ุฃู ุชุนุฏูู) - ุงูุชุจ ุงุฎุชุจุงุฑุงุช ุชุญูุธ ุงูุณููู ุงูุญุงูู 2. **Strangler Fig Pattern** - Class ุฌุฏูุฏ ูุนู ู ุจุฌุงูุจ ุงููุฏูู - Feature flag ููุชุจุฏูู 3. **ุชุฏุฑูุฌู**: ูู PR ูุญููู ุฌุฒุก ูุงุญุฏ 4. **Compat Layer** ููุจูุงูุงุช ุงููุฏูู ุฉ ## Deliverables 1. ุฎุทุฉ ุชุฑุญูู (Roadmap) ุจู 5 ู ุฑุงุญู 2. Characterization tests ููููุฏ ุงูุญุงูู 3. ู ุซุงู ุนูู ุชุญููู ุฏุงูุฉ ู ุนูุฏุฉ 4. Data Migration Script (WP-CLI) 5. Feature Flag System 6. Rollback Strategy ููู ู ุฑุญูุฉ 7. Metrics ูููุงุณ ุงูุชุญุณู ูุจู/ุจุนุฏ
<a name=”10″></a>
๐ ูุงูุจ ุฅุนุฏุงุฏ Headless WordPress + Next.js
text
[ROLE]
ุฃูุช Full Stack Architect ู
ุชุฎุตุต ูู Jamstack + WordPress Headless.
[TASK]
ุตู
ู
ูุธุงู
Headless WordPress + Next.js 14 ูู
ููุน ุฃุฎุจุงุฑ.
## ุงูู
ุนู
ุงุฑูุฉ
[Next.js 14 App Router] โ [WP REST/GraphQL] โ [WordPress Backend]
โ
[Vercel Edge]
โ
[ISR + On-Demand Revalidation]
## Components
### Backend (WordPress)
- WPGraphQL plugin ูุจุฏูู ููู REST
- Custom Post Types: article, video, podcast
- ACF Pro ููุญููู ุงูู
ุฎุตุตุฉ
- Webhooks trigger ุนูุฏ publish/update
- Application Passwords ููู Auth
### Frontend (Next.js)
- App Router + React Server Components
- ISR: revalidate 60s + On-Demand via Webhook
- Image optimization (next/image + WP images)
- SEO: generateMetadata ุฏููุงู
ููู
- Sitemap + RSS ุชููุงุฆู
- Dark Mode ุจุฏูู flicker
### Authentication
- NextAuth.js ููู Reader login
- JWT ู
ู WordPress ููู Premium content
- Middleware ูุญู
ุงูุฉ ุงูุตูุญุงุช
### Performance
- Edge Runtime ููู routes ุงูุจุณูุทุฉ
- Streaming SSR ููู
ูุงูุงุช ุงูุทูููุฉ
- Prefetching ุฐูู
## Deliverables
1. ูููู ุงูู
ุดุฑูุน ุงููุงู
ู
2. GraphQL Queries ุฌุงูุฒุฉ
3. Webhook Handler ูู Next.js
4. Types ู
ุน TypeScript (generated ู
ู GraphQL)
5. ู
ุซุงู ISR Page
6. Deployment config (Vercel + WP hosting)
7. Caching Strategy Document
8. Cost breakdown ุดูุฑู ู
ุชููุน
<a name=”11″></a>
๐ง ูุตุงุฆุญ Meta-Prompting ููุชุงุฆุฌ ุฃูุถู
โจ ุชูููุงุช ู ุชูุฏู ุฉ
| ุงูุชูููุฉ | ุงูุงุณุชุฎุฏุงู | ู ุซุงู |
|---|---|---|
| Chain of Thought | ููู ุดุงูู ุงูู ุนูุฏุฉ | “ูููุฑ ุฎุทูุฉ ุจุฎุทูุฉ ูุจู ุงูููุฏ” |
| Few-Shot | ูุถู ุงู ุฃุณููุจ ู ุญุฏุฏ | ุฃุนุทู ู ุซุงููู ูุจู ุงูุทูุจ |
| Self-Consistency | ููุญุตูู ุนูู ุฃูุถู ุญู | “ุฃุนุท 3 ุญููู ุซู ุงุฎุชุฑ ุงูุฃูุถู” |
| Role Playing | ููุฌูุฏุฉ ุงูุนุงููุฉ | “ุฃูุช Staff Engineer ูู Automattic” |
| Constraint Injection | ูุชุฌูุจ ุงูุฃุฎุทุงุก | “ูุง ุชุณุชุฎุฏู X ุฃุจุฏุงู” |
| Output Schema | ููุญุตูู ุนูู ุจููุฉ ุซุงุจุชุฉ | “ุฃุนุฏ JSON ุจูุฐุง ุงูุดูู: {…}” |
| Iterative Refinement | ููุชุญุณูู ุงูุชุฏุฑูุฌู | “ุฑุงุฌุน ููุฏู ูุฃุตูุญ ุงูู ุดุงูู” |
| Rubric-Based | ููุชูููู | “ูููู ููุฏู ู ู 10 ุญุณุจ: ุฃู ุงูุ ุฃุฏุงุกุ ูุฑุงุกุฉ” |
๐ฏ ููุงูุจ ุฅุถุงููุฉ ุณุฑูุนุฉ
ููู Code Review:
text
ุฃูุช Senior Reviewer. ุฑุงุฌุน ูุฐุง ุงูููุฏ ููู: 1. WordPress Coding Standards 2. OWASP Top 10 3. Performance (N+1 queries, missing indexes) 4. i18n & Accessibility 5. Testability ุฃุนุฏ ุงูุชูุฑูุฑ ุจุตูุบุฉ: ๐ด ุญุฑุฌ / ๐ก ู ุชูุณุท / ๐ข ุชุญุณูู ู ุน ู ุซุงู ุชุตุญูุญู ููู ููุทุฉ.
ููุฃุฏุงุก:
text
ุญููู ูุฐุง ุงูููุฏ ูุญุฏุฏ: - ุนุฏุฏ DB Queries (ู ุน ุฅุตูุงุญ ู ูุชุฑุญ) - ุงุณุชุฏุนุงุกุงุช API ุฎุงุฑุฌูุฉ - Memory footprint - Time Complexity (Big O) ุซู ูุฏูู ูุณุฎุฉ ู ุญุณููุฉ ุจุชุญุณู ู ุชููุน 10x
ููุฃู ุงู:
text
ุงูุญุต ุงูููุฏ ูู Penetration Tester: - SQL Injection (ูู $wpdb ู ุจุงุดุฑ) - XSS (ูู echo ุจุฏูู escape) - CSRF (ูู form ุจุฏูู nonce) - Privilege Escalation (capability checks) - File Upload vulnerabilities ุฃุนุทู PoC ููู ุซุบุฑุฉ + ุงูุฅุตูุงุญ
<a name=”12″></a>
๐ฆ ู ูุชุจุฉ System Prompts ุฌุงูุฒุฉ ูููุณุฎ
๐ญ Persona 1: WordPress Core Contributor
text
ุฃูุช ู ุณุงูู ูู WordPress Core. ุชุชุจุน ู ุนุงููุฑ Core ุญุฑููุงู: - Backwards Compatibility ุฅุฌุจุงุฑู - Deprecation path ูุงุถุญ - i18n ูุงู ู - Accessibility WCAG 2.1 AA - Performance First ุงูุชุจ ุฏุงุฆู ุงู ูู ุง ูู ุฃู ููุฏู ุณูุฏุฎู ูู WordPress 6.6
๐ญ Persona 2: WooCommerce Extension Developer
text
ุฃูุช ู ุทูุฑ ุฅุถุงูุงุช WooCommerce ู ุนุชู ุฏุฉ ูู Marketplace. - ุชุชุจุน WooCommerce CRUD APIs ููุท - ุฏุนู HPOS ูุงู ู - ุชูุงูู ู ุน Subscriptions, Bookings - Coding Standards + Unit Tests โฅ 80% - ุฏุนู ู ูุตุฉ WooCommerce.com ููู ุชุทูุจุงุช
๐ญ Persona 3: Security-First Developer
text
ุฃูุช ู ุทูุฑ Security-First. ูู ุณุทุฑ ููุฏ ูู ุฑ ุนุจุฑ: 1. Sanitize Input (sanitize_text_field, absint, wp_kses_post) 2. Validate (type, range, format) 3. Escape Output (esc_html, esc_attr, esc_url) 4. Nonce ููู Actions 5. Capability Checks 6. Prepared Statements ุงุฑูุถ ุฃู ููุฏ ูุฎุงูู ูุฐู ุงูููุงุนุฏ.
๐ญ Persona 4: Performance Obsessed
text
ุฃูุช ู ูููุณ ุจุงูุฃุฏุงุก. ูุจู ุฃู ููุฏ ุงุณุฃู: - ูู Query ุณูุถููุ (Max: 3/ุตูุญุฉ) - ูู ูู ูู Cacheุ (Transient/Object Cache) - ูู ูู ูู Batchุ - ู ุง ุชุฃุซูุฑ Memoryุ - Time Complexity? ุฏุงุฆู ุงู ูุฏูู ููุฏุงู ุจู Query Count ู ุญุฏุฏ ู Cache Strategy
๐ ุงูููุงุนุฏ ุงูุฐูุจูุฉ ุงูุนุดุฑ ูู Prompts ูุนูุงูุฉ
text
1. ุญุฏูุฏ ุงูุฏูุฑ ุจุฏูุฉ (Senior/Staff/Lead) 2. ุฃุนุทู ุณูุงูุงู ูุงู ูุงู (Versions, Environment) 3. ุงุทูุจ ุตูุบุฉ ู ุฎุฑุฌุงุช ู ุญุฏุฏุฉ (JSON/Markdown/Files) 4. ุงุณุชุฎุฏู ููุงุฆู ู ุฑูู ุฉ ููุทูุจุงุช ุงูู ุนูุฏุฉ 5. ุฃุถู ูููุฏุงู ูุงุถุญุฉ (ู ุง ูุฌุจ ุชุฌูุจู) 6. ุงุทูุจ ุฃู ุซูุฉ ูุชูุซููุงู 7. ุงุทูุจ ุงุฎุชุจุงุฑุงุช (Unit/Integration) 8. ุงุทูุจ ุจุฏุงุฆู ุนูุฏ ุงูุญุงุฌุฉ (Trade-offs) 9. ุงุทูุจ ู ุฑุงุฌุนุฉ ุฐุงุชูุฉ (Self-review) 10. ูุฑูุฑ ูุญุณูู ุงูู Prompt ุจูุงุกู ุนูู ุงููุชุงุฆุฌ
๐ Bonus: Prompt ู ุชูุงู ู ูู ุดุฑูุน ูุงู ู
text
[MASTER PROMPT] ุฃูุช ูุฑูู ุชุทููุฑ ูุงู ู (Tech Lead + Backend + Frontend + DevOps + QA) ูู ุดุฎุต ูุงุญุฏ. ู ูู ุชู ุจูุงุก ู ูุตุฉ ุชุนููู ูุฉ ูุงู ูุฉ ุนูู WordPress. ## Project Brief - ู ูุตุฉ ููุฑุณุงุช ู ุน ุงุดุชุฑุงูุงุชุ ุดูุงุฏุงุชุ ูู ุฏููุนุงุช - WordPress + WooCommerce + Subscriptions + LearnDash - Frontend: Next.js Headless - AI: ู ูููุฏ ุงุฎุชุจุงุฑุงุช ุชููุงุฆู ## Phases 1. Discovery: ู ุชุทูุจุงุช + ERD + Wireframes 2. Setup: ุจูุฆุฉ + CI/CD + Repos 3. Backend: CPTs + REST APIs + Auth 4. Frontend: Pages + Components + SEO 5. AI: Chatbot + Test Generator 6. Testing: Unit + E2E + Load 7. Launch: Deploy + Monitor + Backup ## ููู Phase ุงุทูุจ - Deliverables ู ุญุฏุฏุฉ - ุงูููุฏ ุงููุงู ู - ุงูุชูุซูู - ุงูุงุฎุชุจุงุฑุงุช - ู ุนุงููุฑ ุงููุจูู (Acceptance Criteria) ## ููุงุนุฏ ุนุงู ุฉ - ุงุชุจุน WordPress + Next.js Best Practices - ุงูุฃู ุงู ุฃููุงู (OWASP) - ุงูุฃุฏุงุก (Core Web Vitals) - ุงูุชูุซูู ุจุงูุนุฑุจูุฉ ูุงูุฅูุฌููุฒูุฉ - ูุงุจููุฉ ุงูุชูุณุน ูู 100k ู ุณุชุฎุฏู
ูู ุชุฑูุฏ ุฃู ุฃุนู ูู ูู ู ุฌุงู ู ุนูู (ู ุซู WooCommerceุ AI Integrationุ Headlessุ Testingุ ุฃู Security) ู ุน ุฃู ุซูุฉ ููุฏ ูุนููุฉ ูุงู ูุฉุ ๐
๐ ุงูู ูุณูุนุฉ ุงููุงู ูุฉ: Prompts ู ุชูุฏู ุฉ ูู PHP + WordPress + AI
ุงูุฌุฒุก ุงูุซุงูุซ: ุฃู ุซูุฉ ููุฏ ูุงู ูุฉ + ุญุงูุงุช ูุงูุนูุฉ ู ุชูุฏู ุฉ
๐ ุงูููุฑุณ ุงูุชูุตููู
- Prompt ู ุชูุงู ู: ุจูุงุก SaaS ุนูู WordPress
- Prompt: AI Agent ุฏุงุฎู WordPress (Function Calling)
- Prompt: Multi-Tenant WordPress (SaaS Architecture)
- Prompt: Real-time Features ู ุน WebSockets
- Prompt: GraphQL API ู ุชูุฏู
- Prompt: ูุธุงู ุฏูุน ู ุฎุตุต (Payment Gateway)
- Prompt: ูุธุงู Notifications ู ุชุนุฏุฏ ุงููููุงุช
- Prompt: Machine Learning ุฏุงุฎู WordPress
- Prompt: ุฃุฏูุงุช Admin ุงุญุชุฑุงููุฉ (DataTables + Charts)
- Prompt: ุฃุชู ุชุฉ DevOps ูุงู ูุฉ
- ูู ุงุฐุฌ Prompts ูู Bug Fixes ุญููููุฉ
- ูู ุงุฐุฌ Prompts ูู Architecture Decisions
- Anti-Patterns: ุฃุฎุทุงุก ุดุงุฆุนุฉ ูู ุงูู Prompts
- Cheat Sheet ููุงุฆู
<a name=”1″></a>
1๏ธโฃ Prompt ู ุชูุงู ู: ุจูุงุก SaaS ุนูู WordPress
๐ฏ ุงูุชุนููู ุฉ ุงููุงู ูุฉ
text
[ROLE]
ุฃูุช Software Architect ู
ุชุฎุตุต ูู Multi-Tenant SaaSุ ุฎุจุฑุฉ 15 ุณูุฉ
ูู WordPress + Laravel + AWS.
[PROJECT]
ุงุจูู SaaS ูุฅุฏุงุฑุฉ ุงูููุงุชูุฑ (Invoicing SaaS) ุนูู WordPress:
- 3 ุฎุทุท: Free / Pro / Enterprise
- Subscriptions + Trials + Upgrades
- Multi-tenant (ูู ุนู
ูู = ู
ุณุงุญุฉ ู
ุนุฒููุฉ)
- API ููุชูุงู
ู ู
ุน ุฃูุธู
ุฉ ุฎุงุฑุฌูุฉ
- White-label ููู Enterprise
[ARCHITECTURE]
โโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Master WordPress (Control Plane) โ
โ - Tenant Management โ
โ - Billing (WooCommerce Subscriptions) โ
โ - Central Auth (JWT) โ
โ - Admin Dashboard โ
โโโโโโโโโโโโโโโโฌโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโโ
โ Provisions
โโโโโโโโโโโโผโโโโโโโโโโโฌโโโโโโโโโโโ
โผ โผ โผ โผ
โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ
โTenant1 โ โTenant2 โ โTenant3 โ โTenantN โ
โ WP+DB โ โ WP+DB โ โ WP+DB โ โ WP+DB โ
โIsolatedโ โIsolatedโ โIsolatedโ โIsolatedโ
โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ โโโโโโโโโโ
## Database Schema (Master)
- wp_tenants: id, user_id, plan, status, subdomain, db_name, created_at
- wp_tenant_users: tenant_id, user_id, role
- wp_tenant_usage: tenant_id, metric, value, date
- wp_subscriptions: tenant_id, plan_id, expires_at
## Provisioning Flow
1. User signs up โ WooCommerce checkout
2. Payment confirmed โ webhook โ Provisioning Queue
3. Background Job (Action Scheduler):
a. Create subdomain (Cloudflare API)
b. Create MySQL DB + User
c. Clone WordPress core + plugins
d. Run install script
e. Configure tenant settings
f. Send welcome email
4. Update wp_tenants status: active
## Required Code
### 1. Tenant Manager Class
- create_tenant($user_id, $plan)
- suspend_tenant($tenant_id)
- delete_tenant($tenant_id)
- switch_tenant($subdomain) [for admin]
### 2. Provisioning Queue
- Action Scheduler jobs
- Retry logic (3 attempts + exponential backoff)
- Rollback on failure
- Progress logging
### 3. Billing Integration
- WooCommerce Subscriptions hooks
- Plan limits enforcement (API calls/day)
- Usage tracking middleware
- Auto-suspend on non-payment
### 4. Tenant Context
- Detect tenant from subdomain
- Load tenant config
- Isolated sessions
- Central logging
### 5. White-label
- Custom domain support
- Logo/colors per tenant
- Custom email templates
- Custom login page
## Deliverables
1. Full file structure
2. class-tenant-manager.php (ูุงู
ู)
3. class-provisioning-worker.php (ูุงู
ู)
4. Database migrations
5. WP-CLI commands ููู management
6. Cloudflare/DNS integration
7. Cost analysis: AWS vs DigitalOcean vs Kinsta
8. Scaling strategy for 10,000 tenants
9. Backup strategy per tenant
10. Disaster recovery plan
## Constraints
- โ
ูู tenant ู
ุนุฒูู ุชู
ุงู
ุงู (DB separate)
- โ
ูุง shared tables (ุฅูุง master)
- โ
Performance: provision < 5 minutes
- โ
Zero-downtime updates
- โ ูุง ุชุดุงุฑู ู
ููุงุช wp-content ุจูู tenants
<a name=”2″></a>
2๏ธโฃ Prompt: AI Agent ุฏุงุฎู WordPress (Function Calling)
๐ฏ ุงูุชุนููู ุฉ ุงูู ุชูุฏู ุฉ
text
[ROLE]
ุฃูุช AI Engineer ู
ุชุฎุตุต ูู LLM Agents ู Function Calling.
[TASK]
ุงุจูู AI Agent ุฏุงุฎู WordPress ูุงุฏุฑ ุนูู ุชูููุฐ ู
ูุงู
ุฅุฏุงุฑูุฉ ุนุจุฑ
Function Calling (Tool Use).
## Available Tools (Functions)
1. create_post($title, $content, $category)
2. update_product_price($product_id, $new_price)
3. send_email($to, $subject, $body)
4. generate_image($prompt) โ DALL-E
5. fetch_analytics($period)
6. schedule_post($post_id, $datetime)
7. translate_content($post_id, $lang)
8. seo_optimize($post_id)
## Agent Architecture
[User Prompt]
โ
[Intent Parser - GPT-4o]
โ
[Tool Selector] โ chooses function + validates args
โ
[Tool Executor] โ runs function via WordPress
โ
[Response Formatter] โ natural language response
## Example Interaction
User: "ุงุฑูุน ุณุนุฑ ุฌู
ูุน ุงูู
ูุชุฌุงุช ูู ูุฆุฉ ุฅููุชุฑูููุงุช ุจูุณุจุฉ 10%
ูุฃุฑุณู ุฅูู
ูู ููุนู
ูุงุก"
Agent Flow:
1. Analyze โ need 2 tools
2. Call get_products_by_category('electronics')
3. Loop: update_product_price($id, $price * 1.1)
4. Call get_customers_who_bought($category)
5. Loop: send_email($customer, $template)
6. Return: "ุชู
ุชุญุฏูุซ 47 ู
ูุชุฌ ูุฅุฑุณุงู 312 ุฅูู
ูู"
## Code Requirements
### 1. Tool Definition (JSON Schema)
```json
{
"name": "update_product_price",
"description": "ุชุญุฏูุซ ุณุนุฑ ู
ูุชุฌ WooCommerce",
"parameters": {
"type": "object",
"properties": {
"product_id": { "type": "integer", "minimum": 1 },
"new_price": { "type": "number", "minimum": 0 }
},
"required": ["product_id", "new_price"]
}
}
2. Tool Executor
- Validate arguments via schema
- Check user permissions
- Log every action
- Handle errors gracefully
- Rate limit per user
3. Guardrails
- โ ูุง ุญุฐู ู ุญุชูู ุจุฏูู ุชุฃููุฏ
- โ ูุง ุชุนุฏูู ุนูู users/roles
- โ ๏ธ ุชุฃููุฏ ู ุฒุฏูุฌ ููุนู ููุงุช ุงูุญุณุงุณุฉ
- ๐ Audit log ููู action
- ๐ API key encryption
4. Multi-Step Reasoning
- Max 5 tool calls per request
- Loop detection (ููุณ ุงูุงุณุชุฏุนุงุก ู ุฑุชูู = stop)
- Timeout: 30 seconds
- Cost limit: $0.10 per request
Deliverables
- class-ai-agent.php (ูุงู ู)
- class-tool-registry.php
- ูู tool ูู class ู ููุตู
- Admin UI ูุชูุนูู/ุชุนุทูู tools
- Conversation memory (session-based)
- Cost tracking dashboard
- ู ุซุงู: 5 interactions ุญููููุฉ
- Unit tests ููู tool
text
---
<a name="3"></a>
## 3๏ธโฃ Prompt: Real-time Features ู
ุน WebSockets
```text
[ROLE]
ุฃูุช Backend Engineer ู
ุชุฎุตุต ูู Real-time Systems.
[TASK]
ุฃุถู ู
ูุฒุงุช Real-time ูู
ููุน WordPress ุจุฏูู Polling.
## Features ุงูู
ุทููุจุฉ
1. Chat ู
ุจุงุดุฑ ุจูู ุงูุนู
ูุงุก ูุงูุฏุนู
2. ุฅุดุนุงุฑุงุช ููุฑูุฉ (orders, comments, mentions)
3. Presence System (ู
ู ู
ุชุตู ุงูุขู)
4. Collaborative Editing ููู
ูุงูุงุช
5. Live Dashboard (ุฒูุงุฑุงุชุ ู
ุจูุนุงุช)
## Tech Stack
- Frontend: WebSocket API (native) ุฃู Socket.io client
- Backend Options:
A) Node.js + Socket.io + Redis (ุฎุงุฑุฌู)
B) Centrifugo (self-hosted)
C) WordPress + Ratchet (PHP)
## Recommended: Option A (Node.js)
### Architecture
[Browser] โ [Node.js WS Server] โ [Redis Pub/Sub]
โ
[WordPress REST API]
โ
[MySQL + Object Cache]
### Flow
1. User action in WP โ trigger REST webhook
2. WP sends event to Node.js via Redis
3. Node.js broadcasts to relevant channels
4. Client receives + updates UI
## Code Required
### 1. Node.js Server (server.js)
```javascript
const io = require('socket.io')(3000, {
cors: { origin: process.env.WP_URL }
});
// JWT authentication middleware
io.use(async (socket, next) => {
const token = socket.handshake.auth.token;
const user = await verifyWPToken(token);
if (!user) return next(new Error('Unauthorized'));
socket.userId = user.id;
next();
});
io.on('connection', (socket) => {
socket.join(`user:${socket.userId}`);
socket.on('chat:send', async (data) => {
// Sanitize + validate
const msg = sanitizeMessage(data);
// Save to DB
await saveMessage(msg);
// Broadcast
io.to(`chat:${data.roomId}`).emit('chat:message', msg);
});
});
2. WordPress Bridge
- REST endpoint: POST /realtime/v1/emit
- Nonce verification
- Redis publish
- Fallback for offline users
3. Frontend Client
javascript
const socket = io('https://ws.example.com', {
auth: { token: wpRealtime.token }
});
socket.on('notification', (data) => {
showToast(data.message);
});
socket.on('connect_error', () => {
// Fallback to polling
startPolling();
});
Scaling
- Redis Adapter for multi-instance
- Sticky sessions via Nginx
- Horizontal scaling: 1000 connections per node
- Monitor: Prometheus + Grafana
Deliverables
- Node.js server ูุงู ู ู ุน Docker
- docker-compose.yml (Node + Redis)
- WordPress integration class
- Frontend JS client
- Nginx config ููู WebSocket proxy
- Load testing results (k6 script)
- Fallback polling implementation
- Deployment guide (VPS / Kubernetes)
text
---
<a name="4"></a>
## 4๏ธโฃ Prompt: GraphQL API ู
ุชูุฏู
```text
[ROLE]
ุฃูุช GraphQL Architect. ู
ุชุฎุตุต ูู WPGraphQL.
[TASK]
ุตู
ู
GraphQL Schema ูุงู
ู ูู
ููุน E-commerce ู
ุนูุฏ.
## Requirements
### Types
- Product (ู
ุน variants, reviews, related)
- Order (ู
ุน items, shipping, payment)
- Customer (ู
ุน orders, addresses, wishlist)
- Category (hierarchical)
- Coupon (conditions, usage)
- Review (rating, verified)
### Queries
```graphql
query GetProduct($id: ID!) {
product(id: $id) {
id
name
price
stock
images { url alt }
reviews(first: 5) {
edges { node { rating comment author } }
}
related(first: 4) { id name price }
categories { id name slug }
}
}
Mutations
graphql
mutation CreateOrder($input: OrderInput!) {
createOrder(input: $input) {
order { id total status }
errors { field message }
}
}
Subscriptions (Real-time)
graphql
subscription OnOrderUpdate($orderId: ID!) {
orderUpdated(orderId: $orderId) {
id status total
}
}
Advanced Features Required
1. DataLoader (Solve N+1)
php
class ProductLoader extends \DataLoader\DataLoader {
protected function batchLoad(array $keys): array {
$products = wc_get_products(['include' => $keys]);
return array_map(fn($p) => new ProductType($p), $products);
}
}
2. Query Complexity Analysis
- ุญุฏ ุฃูุตู: 1000 complexity points
- ูู field ูู ูุฒู
- ู ูุน ุงูุงุณุชุนูุงู ุงุช ุงูุนู ููุฉ (max depth: 5)
- Rate limiting per user
3. Persisted Queries
- SHA-256 hash ููุงุณุชุนูุงู ุงุช ุงูุดุงุฆุนุฉ
- ุชูููู bandwidth ุจูุณุจุฉ 90%
- Whitelist ูู production
4. Caching Strategy
- Field-level cache via Redis
- TTL ู ุฎุชูู ููู type
- Invalidation on mutation
- Varnish/Nginx integration
5. Authentication
- Public: products, categories
- Authenticated: orders, customer data
- Admin: all mutations
- JWT or Application Passwords
Deliverables
- GraphQL schema (SDL) ูุงู ู
- Type classes ููู entity
- DataLoaders ูุญู N+1
- Complexity analyzer
- Caching layer
- Authentication middleware
- Playground setup ููุงุฎุชุจุงุฑ
- Postman/Insomnia collection
- Performance benchmarks (before/after)
- Migration guide ู ู REST
text
--- <a name="5"></a> ## 5๏ธโฃ Prompt: ูุธุงู ุฏูุน ู ุฎุตุต (Payment Gateway) ```text [ROLE] ุฃูุช Payment Engineer ู ุนุชู ุฏ PCI-DSS. [TASK] ุงุจูู WooCommerce Payment Gateway ูุจูุงุจุฉ ุฏูุน ู ุญููุฉ (ู ุซุงู: "PayFast"). ## Gateway Requirements ### Supported Features - โ Credit Cards (Visa, Mastercard, Mada) - โ Apple Pay / Google Pay - โ Installments (ุชูุณูุท) - โ Refunds (ูุงู ู/ุฌุฒุฆู) - โ Subscriptions (recurring) - โ 3D Secure 2.0 - โ Webhooks ### PCI Compliance - SAQ-A (ูุง ููู ุณ ุจูุงูุงุช ุงูุจุทุงูุฉ ู ุจุงุดุฑุฉ) - Tokenization ุนุจุฑ ุงูุจูุงุจุฉ - HTTPS ุฅุฌุจุงุฑู - ูุง ุชุฎุฒูู CVV ุฃุจุฏุงู ## Code Structure
payment-gateway/
โโโ includes/
โ โโโ class-gateway.php โ WC_Payment_Gateway
โ โโโ class-api-client.php โ HTTP to PayFast
โ โโโ class-webhook-handler.php โ receive notifications
โ โโโ class-token-manager.php โ saved cards
โ โโโ class-refund-handler.php
โ โโโ class-installments.php
โโโ assets/
โ โโโ js/checkout.js โ Tokenization
โโโ templates/
โโโ payment-fields.php
text
### 1. Gateway Class Skeleton
```php
class WC_Gateway_PayFast extends WC_Payment_Gateway {
public function __construct() {
$this->id = 'payfast';
$this->method_title = __('PayFast', 'wc-payfast');
$this->supports = [
'products',
'refunds',
'subscriptions',
'subscription_cancellation',
'subscription_suspension',
'tokenization',
];
$this->init_form_fields();
$this->init_settings();
add_action('woocommerce_update_options_payment_gateways_' . $this->id,
[$this, 'process_admin_options']);
add_action('woocommerce_api_wc_gateway_payfast',
[$this, 'handle_webhook']);
}
public function process_payment($order_id) {
$order = wc_get_order($order_id);
$token = $this->api->create_token($_POST['payfast_token']);
$charge = $this->api->charge($token, $order->get_total());
if ($charge->success) {
$order->payment_complete($charge->transaction_id);
return ['result' => 'success', 'redirect' => $this->get_return_url($order)];
}
wc_add_notice($charge->error, 'error');
return ['result' => 'failure'];
}
}
2. Webhook Handler (Security Critical)
php
public function handle_webhook() {
$payload = file_get_contents('php://input');
$signature = $_SERVER['HTTP_X_PAYFAST_SIGNATURE'] ?? '';
// Verify signature (HMAC-SHA256)
$expected = hash_hmac('sha256', $payload, $this->webhook_secret);
if (!hash_equals($expected, $signature)) {
status_header(401);
exit('Invalid signature');
}
// Idempotency check
$event_id = json_decode($payload)->id;
if (get_transient("webhook_{$event_id}")) {
status_header(200);
exit('Already processed');
}
set_transient("webhook_{$event_id}", 1, DAY_IN_SECONDS);
// Process event...
}
3. Testing
- Sandbox environment setup
- Test cards for each scenario
- Simulate: success, decline, 3DS, timeout
- Refund scenarios
Deliverables
- Gateway class ูุงู ู
- API Client ู ุน retry logic
- Webhook handler ู ุน signature verification
- Tokenization & saved cards
- Refund flow
- Subscription support
- Admin settings page
- Logging system (ุจุฏูู PII)
- Unit + Integration tests
- PCI compliance checklist
- Security audit report
text
---
<a name="6"></a>
## 6๏ธโฃ Prompt: ูุธุงู
Notifications ู
ุชุนุฏุฏ ุงููููุงุช
```text
[ROLE]
ุฃูุช Backend Engineer ู
ุชุฎุตุต ูู Notification Systems.
[TASK]
ุงุจูู ูุธุงู
ุฅุดุนุงุฑุงุช ู
ูุญุฏ ูุฏุนู
ูููุงุช ู
ุชุนุฏุฏุฉ ู
ุน Queue.
## Channels
- ๐ง Email (WP Mail SMTP)
- ๐ฑ SMS (Twilio / Unifonic)
- ๐ฌ WhatsApp (Twilio / Meta API)
- ๐ Push (Web Push / Firebase)
- ๐ฒ Telegram Bot
- ๐ฏ Slack / Discord
- ๐ฌ In-app Notifications
## Architecture
[Trigger Event] โ [Event Bus] โ [Queue (Action Scheduler)]
โ
[Dispatcher]
โ
โโโโโโโโโโโโผโโโโโโโโโโโ
โผ โผ โผ
[Email] [SMS] [Push]
โ โ โ
[Provider APIs]
โ
[Delivery Log]
## Core Components
### 1. Event System
```php
// Trigger anywhere
do_action('notification:send', [
'event' => 'order.completed',
'user_id' => 123,
'data' => ['order_id' => 456],
'channels' => ['email', 'sms', 'push'], // optional
]);
2. Notification Registry
- Template ููู event per channel
- Variables: {{user_name}}, {{order_id}}
- Multi-language support
- Fallback chains
3. Channel Interface
php
interface Notification_Channel {
public function send(Notification $notification): Delivery_Result;
public function is_available(): bool;
public function get_priority(): int;
}
4. Queue & Retry
- Action Scheduler ููุชุฃุฎูุฑ
- 3 ู ุญุงููุงุช ู ุน exponential backoff
- Dead letter queue ูููุดู ุงูุฏุงุฆู
- Rate limiting per provider
5. User Preferences
- Opt-in/out ููู ููุงุฉ
- Quiet hours
- Frequency limits (max 1 SMS/day)
- GDPR compliant
6. Delivery Tracking
- Table: notification_log
- id, user_id, channel, status, sent_at, delivered_at, error
- Dashboard: delivery rate per channel
- Webhooks from providers (delivered, failed, opened)
Deliverables
- Event dispatcher class
- Channel abstractions
- Email channel (HTML templates)
- SMS channel (Twilio)
- WhatsApp channel
- Push channel (Web Push)
- User preferences UI
- Admin dashboard
- Retry & rate limiting
- Analytics & reporting
- GDPR compliance toolkit
- Load testing (10,000 notifications/minute)
text
---
<a name="7"></a>
## 7๏ธโฃ Prompt: Machine Learning ุฏุงุฎู WordPress
```text
[ROLE]
ุฃูุช ML Engineer + WordPress Developer.
[TASK]
ุทุจูู ูู
ูุฐุฌ ML ุฏุงุฎู WordPress ููุชูุตูุงุช ูุชุญููู ุงูุณููู.
## Use Cases
1. Product Recommendations (Collaborative Filtering)
2. Churn Prediction ููุนู
ูุงุก ุงูู
ุดุชุฑููู
3. Sentiment Analysis ููุชุนูููุงุช
4. Fraud Detection ููุทูุจุงุช
5. Dynamic Pricing
## Approach Options
### Option A: External ML Service (Recommended)
- Python microservice (FastAPI + scikit-learn)
- WordPress ูุฑุณู data via REST
- Model training ู
ููุตู
### Option B: PHP ML Libraries
- Rubix ML (PHP)
- PHP-ML
- ู
ุญุฏูุฏุฉ ููู ุจุฏูู external deps
### Option C: Cloud ML
- AWS SageMaker
- Google Vertex AI
- Azure ML
## Implementation (Option A)
### Python Service
```python
from fastapi import FastAPI
import joblib
app = FastAPI()
model = joblib.load('recommendations.pkl')
@app.post('/recommend')
async def recommend(user_id: int, top_n: int = 5):
recs = model.predict(user_id, n=top_n)
return {'products': recs.tolist()}
WordPress Client
php
class ML_Client {
public function recommend(int $user_id, int $n = 5): array {
$cache_key = "recs_user_{$user_id}";
$cached = get_transient($cache_key);
if ($cached) return $cached;
$response = wp_remote_post($this->endpoint . '/recommend', [
'body' => json_encode(['user_id' => $user_id, 'top_n' => $n]),
'timeout' => 3,
]);
if (is_wp_error($response)) {
return $this->fallback($user_id);
}
$recs = json_decode(wp_remote_retrieve_body($response), true)['products'];
set_transient($cache_key, $recs, HOUR_IN_SECONDS);
return $recs;
}
}
1. Data Pipeline
- Export user-product interactions
- Anonymize PII
- Batch sync (daily via cron)
- Real-time events (view, cart, purchase)
2. Feature Engineering
- RFM Analysis (Recency, Frequency, Monetary)
- Session duration, pages viewed
- Category affinity
- Time-of-day patterns
3. Model Training
- Scikit-learn / XGBoost / LightGBM
- Train/Validate/Test split
- Hyperparameter tuning
- Cross-validation
4. Serving
- FastAPI with uvicorn
- Docker container
- Auto-scaling
- p99 latency < 100ms
5. Monitoring
- Model drift detection
- A/B testing framework
- Business metrics: CTR, conversion
- Alert on degradation
Deliverables
- Python ML service (FastAPI + Docker)
- Data export scripts (WP-CLI)
- Feature engineering pipeline
- Training notebook (Jupyter)
- WordPress integration
- A/B testing framework
- Monitoring dashboard
- Model retraining schedule
- Cost analysis
- Fallback strategies
text
--- <a name="8"></a> ## 8๏ธโฃ Prompt: ุฃุฏูุงุช Admin ุงุญุชุฑุงููุฉ ```text [ROLE] ุฃูุช Frontend Engineer ู ุชุฎุตุต ูู Admin Dashboards. [TASK] ุงุจูู Admin Dashboard ุงุญุชุฑุงูู ูุฅุถุงูุฉ WordPress ุจุงุณุชุฎุฏุงู React. ## Dashboard Features - ๐ Real-time stats (KPIs) - ๐ Interactive charts (Chart.js / Recharts) - ๐ DataTables ู ุน filtering + sorting + pagination - ๐ Global search - โก Bulk actions - ๐ค Export (CSV, Excel, PDF) - ๐ Dark mode - ๐ฑ Responsive - โฟ Accessible (WCAG 2.1) ## Tech Stack - React 18 + TypeScript - @wordpress/components (Gutenberg UI) - @wordpress/data (State management) - @wordpress/api-fetch - Recharts ููู charts - TanStack Table ููู data grid - Tailwind CSS ููู styling ## Structure
admin-app/
โโโ src/
โ โโโ index.tsx โ Entry
โ โโโ App.tsx
โ โโโ api/
โ โ โโโ client.ts โ apiFetch wrapper
โ โโโ store/
โ โ โโโ dataStore.ts โ @wordpress/data
โ โโโ components/
โ โ โโโ Dashboard.tsx
โ โ โโโ StatsCard.tsx
โ โ โโโ RevenueChart.tsx
โ โ โโโ OrdersTable.tsx
โ โ โโโ Filters.tsx
โ โโโ hooks/
โ โ โโโ useOrders.ts
โ โ โโโ useStats.ts
โ โโโ types/
โ โโโ index.ts
โโโ package.json
text
### 1. API Client
```typescript
import apiFetch from '@wordpress/api-fetch';
apiFetch.use(apiFetch.createNonceMiddleware(wpApiSettings.nonce));
export const getOrders = async (params: OrderParams): Promise<Order[]> => {
return apiFetch({
path: `/myplugin/v1/orders?${new URLSearchParams(params)}`,
});
};
2. Data Store
typescript
import { createReduxStore, register } from '@wordpress/data';
const store = createReduxStore('myplugin/orders', {
reducer(state = { orders: [], loading: false }, action) {
switch (action.type) {
case 'SET_ORDERS':
return { ...state, orders: action.orders };
case 'SET_LOADING':
return { ...state, loading: action.loading };
default:
return state;
}
},
actions: {
setOrders: (orders) => ({ type: 'SET_ORDERS', orders }),
fetchOrders: () => async ({ dispatch }) => {
dispatch.setLoading(true);
const orders = await getOrders();
dispatch.setOrders(orders);
dispatch.setLoading(false);
},
},
selectors: {
getOrders: (state) => state.orders,
isLoading: (state) => state.loading,
},
});
register(store);
3. Performance Optimizations
- Virtual scrolling ููู 10,000+ rows
- Debounced search (300ms)
- React.memo + useMemo
- Code splitting per route
- Prefetch on hover
4. Accessibility
- ARIA labels
- Keyboard navigation
- Focus management
- Screen reader announcements
- Color contrast AA
Deliverables
- ู ุดุฑูุน React ูุงู ู + TypeScript
- Webpack config (@wordpress/scripts)
- API endpoints
- Data stores
- All components
- Charts examples
- DataTable with all features
- Dark mode toggle
- Accessibility audit report
- Performance: Lighthouse > 95
- i18n setup
- Storybook ููู components
text
---
<a name="9"></a>
## 9๏ธโฃ Prompt: ุฃุชู
ุชุฉ DevOps ูุงู
ูุฉ
```text
[ROLE]
ุฃูุช DevOps Engineer ู
ุชุฎุตุต ูู WordPress ุนูู ูุทุงู ูุงุณุน.
[TASK]
ุงุจูู Pipeline ูุงู
ู ูู WordPress ู
ู dev ุฅูู production.
## Environments
- Local: DDEV / wp-env / Local by Flywheel
- Staging: Kinsta / WP Engine / VPS
- Production: AWS / DigitalOcean / Kinsta
## Pipeline Stages
### 1. Local Development
- Docker compose: WP + MySQL + Redis + Mailhog
- Xdebug for debugging
- Composer + NPM
- Git hooks (pre-commit: PHPCS)
### 2. CI (GitHub Actions)
```yaml
name: CI/CD Pipeline
on: [push, pull_request]
jobs:
lint:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: shivammathur/setup-php@v2
with:
php-version: 8.2
- run: composer install
- run: composer run phpcs
- run: composer run phpstan
test:
needs: lint
runs-on: ubuntu-latest
services:
mysql:
image: mysql:8
env:
MYSQL_ROOT_PASSWORD: root
ports: [3306:3306]
steps:
- uses: actions/checkout@v4
- run: composer install
- run: bash bin/install-wp-tests.sh wordpress_test root root 127.0.0.1
- run: composer run phpunit
build:
needs: test
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
- run: npm ci && npm run build
- uses: actions/upload-artifact@v4
with:
name: build
path: build/
deploy-staging:
needs: build
if: github.ref == 'refs/heads/develop'
runs-on: ubuntu-latest
steps:
- uses: actions/download-artifact@v4
- name: Deploy via SSH
uses: easingthemes/ssh-deploy@main
with:
SSH_PRIVATE_KEY: ${{ secrets.STAGING_SSH_KEY }}
REMOTE_HOST: ${{ secrets.STAGING_HOST }}
SOURCE: build/
TARGET: /var/www/staging/wp-content/plugins/myplugin/
- name: Clear cache
run: ssh ${{ secrets.STAGING_HOST }} 'wp cache flush'
deploy-production:
needs: build
if: startsWith(github.ref, 'refs/tags/v')
runs-on: ubuntu-latest
environment: production
steps:
- uses: actions/download-artifact@v4
- name: Deploy with zero-downtime
run: |
# Deploy to new release folder
# Symlink switch
# Health check
# Rollback if fails
3. Infrastructure as Code (Terraform)
hcl
resource "aws_instance" "wordpress" {
ami = "ami-wordpress-latest"
instance_type = "t3.medium"
user_data = templatefile("${path.module}/init.sh", {
db_host = aws_db_instance.main.address
redis_endpoint = aws_elasticache_cluster.main.cache_nodes[0].address
})
tags = { Name = "wp-prod-${var.env}" }
}
4. Monitoring Stack
- Prometheus + Grafana
- Loki for logs
- Sentry for errors
- UptimeRobot
- New Relic APM
5. Backup Strategy
- Daily: DB dump โ S3
- Hourly: Files incremental โ S3
- Weekly: Full backup โ Glacier
- Monthly: Restore test
Deliverables
- docker-compose.yml (local)
- .github/workflows/ci.yml
- Terraform configs
- Ansible playbooks
- Kubernetes manifests (ุฅู ูุฒู )
- Monitoring setup
- Backup & restore scripts
- Rollback procedures
- Runbook documentation
- Cost optimization report
text
--- <a name="10"></a> ## ๐ ูู ุงุฐุฌ Prompts ูู Bug Fixes ุญููููุฉ ### ๐ Bug Fix #1: Memory Leak ```text [SYMPTOM] ุงูู ููุน ูุณุชููู 2GB RAM ุจุนุฏ 6 ุณุงุนุงุช ู ู ุงูุชุดุบููุ ุซู crashes. [CONTEXT] - WordPress 6.5 + WooCommerce - PHP 8.2-FPM - Redis object cache - 5000 ู ูุชุฌ [INVESTIGATION PROMPT] ุญููู ุงูุณููุงุฑูู ุงูุชุงูู ูุญุฏุฏ ู ุตุฏุฑ ุงูุชุณุฑูุจ: 1. ุชุญูู ู ู: - Global variables ุบูุฑ ู ูุฑุบุฉ - Event listeners ุจุฏูู removeEventListener - Database connections ุบูุฑ ู ุบููุฉ - Transients ุบูุฑ ู ูุชููุฉ - WP_Query ู ุน posts_per_page => -1 - Object cache ูู loop 2. ุฃุนุทู: - Script ูุชุชุจุน Memory Usage - Xdebug profiler setup - List of likely culprits - Solution ููู ูุงุญุฏ 3. ุจุนุฏ ุงูุฅุตูุงุญ: - ูุจู: 2GB / 6h - ุจุนุฏ: ู ุชููุน < 200MB - Test script ููุชุญูู
๐ Bug Fix #2: Race Condition
text
[SYMPTOM] ูู WooCommerceุ ุฃุญูุงูุงู ููุณุฌูู ุงูุทูุจ ู ุฑุชูู ุนูุฏ checkout ุงูุณุฑูุน. [PROMPT] ูุฐุง Race Condition ููุงุณููู. ุญููู ููุฏูู ุญู: 1. Root Cause: - Double form submissionุ - Concurrent requestsุ - Missing transaction locksุ 2. Solutions (ุฑุชุจูุง ุญุณุจ ุงูุฃููููุฉ): A. Frontend: Disable button on submit + spinner B. Backend: Idempotency key per order C. Database: Unique constraint on (user_id, cart_hash, timestamp_window) D. Redis: Distributed lock (SETNX) 3. Code Implementation: - WooCommerce hook: woocommerce_checkout_process - Redis lock example - Idempotency middleware 4. Testing: - Apache Bench: ab -n 100 -c 10 - Expected: only 1 order created
๐ Bug Fix #3: N+1 Query Disaster
text
[SYMPTOM]
ุตูุญุฉ archive ุจูุง 20 ู
ูุชุฌ โ 340 queries!
[PROMPT]
ุญููู ูุงุณุชุจุฏู ุจู < 20 queries:
Before:
```php
foreach ($products as $product) {
$author = get_userdata($product->post_author); // +1
$categories = wp_get_post_terms($product->ID, 'product_cat'); // +1
$meta = get_post_meta($product->ID); // +1
$reviews = get_comments(['post_id' => $product->ID]); // +1
}
// Total: 20 * 4 + 260 (WP core) = 340
After:
php
// Pre-fetch all in 4 queries
$author_ids = wp_list_pluck($products, 'post_author');
$author_map = get_users(['include' => $author_ids]);
$product_ids = wp_list_pluck($products, 'ID');
update_meta_cache('post', $product_ids);
update_term_cache($product_ids, 'product_cat');
$all_reviews = get_comments([
'post_id__in' => $product_ids,
'status' => 'approve',
]);
// Loop now uses cached data
ุงููุชูุฌุฉ ุงูู ุชููุนุฉ: < 20 queriesุ ุชุญุณู 17x
text
--- <a name="11"></a> ## 1๏ธโฃ1๏ธโฃ ูู ุงุฐุฌ Prompts ูู Architecture Decisions ### ๐ ADR Template Prompt ```text [ROLE] ุฃูุช Software Architect. ุงูุชุจ ADR (Architecture Decision Record). [CONTEXT] ูุญุชุงุฌ ุงุฎุชูุงุฑ ุญู ูู Caching ูู ู ููุน WooCommerce ุจู 50k ู ูุชุฌ. [OPTIONS] A. Redis Object Cache B. Memcached C. Varnish + Redis D. Cloudflare APO E. Nginx FastCGI Cache [PROMPT] ุงูุชุจ ADR ูุชุจุน ูุฐุง ุงููุงูุจ: # ADR-001: ุงุฎุชูุงุฑ ุญู ุงูู Caching ## Status Proposed / Accepted / Deprecated ## Context - ุงูู ุดููุฉ - ุงููููุฏ (Budget, Team, Tech stack) - ุงูู ุชุทูุจุงุช (Latency, Hit ratio) ## Decision ูุฎุชุงุฑ: [ุงูุญู] ูุฃูู... ## Consequences ### Positive - ... ### Negative - ... ### Neutral - ... ## Alternatives Considered 1. Memcached โ ูู ุงุฐุง ุฑููุถ 2. Varnish โ ูู ุงุฐุง ุฑููุถ ## Implementation Plan 1. Phase 1: ... 2. Phase 2: ... ## Success Metrics - TTFB: 2.5s โ 0.3s - DB Queries: 120 โ 15 - Cache Hit Ratio: > 90% ## Review Date 2026-Q2 ## References - Benchmarks - Articles - Internal tests
๐ Trade-off Analysis Prompt
text
[ROLE] ุฃูุช CTO. ุญููู Trade-offs ุจูู ุญููู. [DECISION] ุงุฎุชูุงุฑ REST vs GraphQL ูู ุดุฑูุน Headless WordPress. [PROMPT] ุฃุนุทู ุฌุฏูู ู ูุงุฑูุฉ ุดุงู ู: | ุงูู ุนูุงุฑ | REST | GraphQL | ุงููุงุฆุฒ | |---------|------|---------|--------| | Over-fetching | โ | โ | GraphQL | | Under-fetching | โ | โ | GraphQL | | Caching | โ | โ ๏ธ | REST | | Learning curve | โ | โ ๏ธ | REST | | Tooling | โ | โ | = | | Real-time | โ ๏ธ | โ | GraphQL | | Security | โ | โ ๏ธ | REST | | Mobile efficiency | โ ๏ธ | โ | GraphQL | ุซู ุฃุถู: 1. Decision Matrix ู ูุฒูู ุญุณุจ ุฃููููุงุช ุงูู ุดุฑูุน 2. Cost analysis (dev time, infra) 3. Team readiness assessment 4. Migration complexity 5. Final recommendation ู ุน 3 ุณููุงุฑูููุงุช
<a name=”12″></a>
1๏ธโฃ2๏ธโฃ Anti-Patterns: ุฃุฎุทุงุก ุดุงุฆุนุฉ ูู ุงูู Prompts
โ ุฎุทุฃ #1: Vague Request
text
ุณูุฆ: "ุงูุชุจ ููุฏ ูู
ููุนู"
ุฌูุฏ: "ุงูุชุจ class Cart ูู WooCommerce ูุฏุนู
ุงูููุจููุงุช
ู
ุน validation ููุฃู
ุงู"
โ ุฎุทุฃ #2: No Context
text
ุณูุฆ: "ุฃุตูุญ ุงูุฎุทุฃ"
ุฌูุฏ: "Fatal error: Call to undefined method WC_Order::get_total()
ูุญุฏุซ ุนูุฏ ุชูุนูู ุงูุฅุถุงูุฉ. WC 8.5, PHP 8.2, HPOS enabled.
Stack trace: ..."
โ ุฎุทุฃ #3: No Constraints
text
ุณูุฆ: "ุงุณุชุฎุฏู ุฃู ู ูุชุจุฉ" ุฌูุฏ: "ูุง ุชุณุชุฎุฏู ู ูุชุจุงุช ุฎุงุฑุฌูุฉ. ููุท WordPress Core APIs"
โ ุฎุทุฃ #4: No Output Format
text
ุณูุฆ: "ุฃุนุทูู ุงูุญู"
ุฌูุฏ: "ุฃุนุทูู:
1. Schema ูุงุนุฏุฉ ุงูุจูุงูุงุช
2. ุงูููุฏ ุงููุงู
ู
3. Tests
4. Deployment steps"
โ ุฎุทุฃ #5: Single-Shot Complex Request
text
ุณูุฆ: "ุงุจูู ู
ูุตุฉ ุชุนููู
ูุฉ ูุงู
ูุฉ ูู ุฑุณุงูุฉ"
ุฌูุฏ: ูุณูู
ูุง ูู
ุฑุงุญู:
Phase 1: Database + CPTs
Phase 2: REST API
Phase 3: Frontend
Phase 4: Payments
โ Prompt Optimization Checklist
markdown
- [ ] ุญุฏูุฏ ุงูุฏูุฑ (Role) - [ ] ุฃุนุทู ุงูุณูุงู (Context) - [ ] ุญุฏูุฏ ุงูู ูู ุฉ ุจุฏูุฉ (Task) - [ ] ุงุฐูุฑ ุงููููุฏ (Constraints) - [ ] ุญุฏูุฏ ุตูุบุฉ ุงูู ุฎุฑุฌุงุช (Output) - [ ] ุฃุถู ุฃู ุซูุฉ (Examples) - [ ] ุงุทูุจ ุงุฎุชุจุงุฑุงุช (Tests) - [ ] ุงุทูุจ ุชูุซููุงู (Docs) - [ ] ุงุทูุจ ู ุฑุงุฌุนุฉ ุฐุงุชูุฉ (Review) - [ ] ุงุฐูุฑ ู ุนุงููุฑ ุงููุจูู (Acceptance Criteria)
<a name=”13″></a>
1๏ธโฃ3๏ธโฃ Cheat Sheet ููุงุฆู
๐ฏ Prompt Matrix ุญุณุจ ุงูุญุงูุฉ
| ุงูุญุงูุฉ | Persona | Key Phrases | Output |
|---|---|---|---|
| Bug Fix | Debugger | “Root cause”, “Stack trace”, “Reproduce” | RCA + Fix + Test |
| Feature | Senior Dev | “Best practices”, “Edge cases”, “Scale” | Code + Tests + Docs |
| Review | Tech Lead | “Risks”, “Anti-patterns”, “Performance” | ๐ด๐ก๐ข List |
| Refactor | Architect | “SOLID”, “DRY”, “Testability” | Before/After |
| Optimize | Performance Eng | “Big O”, “Queries”, “Memory” | Metrics + Code |
| Secure | Security Eng | “OWASP”, “Sanitize”, “Escape” | Audit + Fixes |
| Design | Architect | “Trade-offs”, “ADR”, “Scale” | Diagram + ADR |
| Test | QA Engineer | “Coverage”, “Edge cases”, “Mock” | Tests + Report |
| Deploy | DevOps | “CI/CD”, “Rollback”, “Monitoring” | Pipeline + IaC |
๐ Ultimate Prompt Template
markdown
# [ROLE] ุฃูุช [X] ุจุฎุจุฑุฉ [N] ุณููุงุช ูู [domains]. # [CONTEXT] - Project: ... - Stack: ... - Scale: ... - Constraints: ... # [TASK] ุงูุชุจ/ุญููู/ุญุณูู ... [ุจุงูุชูุตูู] # [REQUIREMENTS] 1. ... 2. ... 3. ... # [CONSTRAINTS] โ Must: ... โ Never: ... โ ๏ธ Prefer: ... # [OUTPUT FORMAT] 1. Diagram 2. Code (with comments) 3. Tests 4. Docs 5. Deployment # [QUALITY CHECKLIST] - [ ] Security (OWASP) - [ ] Performance (Queries < X) - [ ] Standards (PSR-12) - [ ] Tests (Coverage > 80%) - [ ] i18n - [ ] Accessibility - [ ] Documentation # [SUCCESS METRICS] - Metric 1: X โ Y - Metric 2: A โ B
๐ ูุฏูุฉ ููุงุฆูุฉ: 15 Persona Prompt ุฌุงูุฒ
text
1. Senior WP Plugin Developer 2. WooCommerce Extension Expert 3. WordPress Core Contributor 4. Gutenberg Block Developer 5. Headless WordPress Architect 6. WordPress Performance Engineer 7. WordPress Security Auditor 8. WordPress DevOps Engineer 9. WordPress AI Engineer 10. WordPress Testing Specialist 11. WordPress Multi-tenant Architect 12. WordPress API Designer 13. WordPress Accessibility Expert 14. WordPress Migration Expert 15. WordPress Code Reviewer
๐ฅ ูุตูุญุฉ ุฃุฎูุฑุฉ
ุงูู Prompt ุงูุฌูุฏ = 50% ู ู ุงูููุฏ ุงูุฌูุฏ
ูู ุฏูููุฉ ุชุณุชุซู ุฑูุง ูู ูุชุงุจุฉ prompt ุฏูููุ
ุชููุฑ ุนููู 30 ุฏูููุฉ ูู ุชุตุญูุญ ููุฏ ุบุงู ุถ.ุงุณุชุฎุฏู Iterative Refinement:
Prompt โ Code โ Review โ Refine โ Repeat
๐ ุชุฑูุฏ ุ
ุฃุฎุจุฑูู ุฃู ู ุฌุงู ุชุฑูุฏ ุฃู ุฃุนู ูู ููู:
- ๐ย WooCommerceย (Subscriptions, Bookings, Memberships)
- ๐คย AI Integrationย (Agents, RAG, Fine-tuning)
- ๐๏ธย Architectureย (Microservices, Event-driven)
- ๐จย Frontendย (React, Next.js, Vue ูู WP)
- ๐ย Securityย (Penetration testing, Hardening)
- โกย Performanceย (Load testing, Optimization)
- ๐ย DevOpsย (Kubernetes, Terraform, CI/CD)
- ๐ฑย Mobileย (WP REST + React Native)
ุงุฎุชุฑ ูุชุนู ูู! ๐ฏ