[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M79AQMR66B1H1CESVXYR8GDF":3,"skill-same:01M79AQMR66B1H1CESVXYR8GDF":211},{"skillNo":4,"name":5,"nameZh":6,"description":7,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":16,"categories":17,"keywords":18,"publishedAt":19,"linkOnly":20,"markdownContent":21,"markdownBody":22,"frontMatter":23,"refName":48,"commitSha":49,"skillDirectory":50,"forksCount":14,"repositoryHtmlUrl":51,"repositoryHomepageUrl":6,"ownerHtmlUrl":52,"ownerBlogUrl":6,"ownerDescription":6,"updatedAt":53,"install":54,"resources":67},"01M79AQMR66B1H1CESVXYR8GDF","wordpress-plugin-core",null,"WordPress plugin development with hooks, security, REST API, custom post types. Use for plugin creation, $wpdb queries, Settings API, or encountering SQL injection, XSS, CSRF, nonce errors.","Elogic360\u002Fsoftware-factory","Elogic360","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F156535519?v=4","01M74NH3F0RB13PWB7JZDE2V80","elogic360","01M74NH3FPC65082MDZVMFHDM3",0,"MIT","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002FSKILL.md",[],[],"2026-11-15 14:19:17",false,"---\nname: wordpress-plugin-core\ndescription: \"WordPress plugin development with hooks, security, REST API, custom post types. Use for plugin creation, $wpdb queries, Settings API, or encountering SQL injection, XSS, CSRF, nonce errors.\"\n\nmetadata:\n  keywords:\n    - wordpress plugin development\n    - wordpress security\n    - wordpress hooks\n    - wordpress filters\n    - wordpress database\n    - wpdb prepare\n    - sanitize_text_field\n    - esc_html\n    - wp_nonce\n    - custom post type\n    - register_post_type\n    - settings api\n    - rest api\n    - admin-ajax\n    - wordpress sql injection\n    - wordpress xss\n    - wordpress csrf\n    - plugin header\n    - activation hook\n    - deactivation hook\n    - wordpress coding standards\n    - wordpress plugin architecture\n\nlicense: MIT\n---\n# WordPress Plugin Development (Core)\n\n**Status**: Production Ready\n**Last Updated**: 2025-11-27\n**Dependencies**: None (WordPress 5.9+, PHP 7.4+)\n**Latest Versions**: WordPress 6.7+, PHP 8.0+ recommended\n\n---\n\n## Quick Start (10 Minutes)\n\n### 1. Choose Plugin Structure\n\nThree architecture patterns available (see `references\u002Fplugin-architectures.md` for detailed examples):\n- **Simple** (functions only) - Small plugins \u003C5 functions\n- **OOP** - Medium plugins with related functionality\n- **PSR-4** (Namespaced + Composer) - Modern standard (2025), most maintainable\n\n### 2. Create Plugin Header\n\nEvery plugin MUST have a header comment in the main file:\n\n```php\n\u003C?php\n\u002F**\n * Plugin Name:       My Awesome Plugin\n * Description:       Brief description.\n * Version:           1.0.0\n * Requires at least: 5.9\n * Requires PHP:      7.4\n * Text Domain:       my-plugin\n *\u002F\n\nif ( ! defined( 'ABSPATH' ) ) exit;\n```\n\n**CRITICAL**: Plugin Name is required, Text Domain must match plugin slug exactly.\n\n### 3. Security Foundation (5 Essentials)\n\n```php\n\u002F\u002F 1. Unique Prefix (4-5 chars)\nfunction mypl_init() { \u002F* code *\u002F }\nadd_action( 'init', 'mypl_init' );\n\n\u002F\u002F 2. ABSPATH Check (every file)\nif ( ! defined( 'ABSPATH' ) ) exit;\n\n\u002F\u002F 3. Nonces for Forms\nwp_nonce_field( 'mypl_action', 'mypl_nonce' );\n\n\u002F\u002F 4. Sanitize Input, Escape Output\n$clean = sanitize_text_field( $_POST['input'] );\necho esc_html( $output );\n\n\u002F\u002F 5. Prepared Statements\n$wpdb->get_results( $wpdb->prepare( \"SELECT * FROM {$wpdb->prefix}table WHERE id = %d\", $id ) );\n```\n\n---\n\n## The 5-Step Security Foundation\n\n### Step 1: Use Unique Prefix for Everything\n\n**Rules**: 4-5 chars minimum, apply to functions, classes, constants, options, transients, meta keys. Avoid `wp_`, `__`, `_`.\n\n```php\n\u002F\u002F GOOD\nfunction mypl_init() {}\nclass MyPL_Settings {}\nadd_option( 'mypl_option', 'value' );\n\n\u002F\u002F BAD - Will conflict\nfunction init() {}\nclass Settings {}\n```\n\n### Step 2: Check Capabilities, Not Admin Status\n\n```php\n\u002F\u002F WRONG\nif ( is_admin() ) { \u002F* SECURITY HOLE *\u002F }\n\n\u002F\u002F CORRECT\nif ( current_user_can( 'manage_options' ) ) { \u002F* Secure *\u002F }\n```\n\n**Common Capabilities**: `manage_options` (Admin), `edit_posts` (Editor), `publish_posts` (Author)\n\n### Step 3: The Security Trinity\n\n**Input → Processing → Output** (Sanitize → Validate → Escape):\n\n```php\n\u002F\u002F SANITIZATION (Input)\n$name = sanitize_text_field( $_POST['name'] );\n$email = sanitize_email( $_POST['email'] );\n$url = esc_url_raw( $_POST['url'] );\n$html = wp_kses_post( $_POST['content'] );\n\n\u002F\u002F VALIDATION (Logic)\nif ( ! is_email( $email ) ) wp_die( 'Invalid email' );\n\n\u002F\u002F ESCAPING (Output)\necho esc_html( $name );\necho '\u003Ca href=\"' . esc_url( $url ) . '\">' . esc_html( $text ) . '\u003C\u002Fa>';\n```\n\n**Rule**: Sanitize INPUT, escape OUTPUT. Never trust user data.\n\n### Step 4: Nonces (CSRF Protection)\n\nOne-time tokens proving requests came from your site.\n\n```php\n\u002F\u002F Form\n\u003Cform method=\"post\">\n    \u003C?php wp_nonce_field( 'mypl_action', 'mypl_nonce' ); ?>\n    \u003Cinput type=\"text\" name=\"data\" \u002F>\n\u003C\u002Fform>\n\n\u002F\u002F Verify\nif ( ! wp_verify_nonce( $_POST['mypl_nonce'], 'mypl_action' ) ) wp_die( 'Security check failed' );\n\n\u002F\u002F AJAX\ncheck_ajax_referer( 'mypl-ajax-nonce', 'nonce' );\n```\n\n### Step 5: Prepared Statements for Database\n\n**CRITICAL**: Always use `$wpdb->prepare()` for user input.\n\n```php\n\u002F\u002F WRONG - SQL Injection\n$wpdb->get_results( \"SELECT * FROM {$wpdb->prefix}table WHERE id = {$_GET['id']}\" );\n\n\u002F\u002F CORRECT\n$wpdb->get_results( $wpdb->prepare( \"SELECT * FROM {$wpdb->prefix}table WHERE id = %d\", $_GET['id'] ) );\n```\n\n**Placeholders**: `%s` (String), `%d` (Integer), `%f` (Float)\n\n**LIKE Queries**: Use `$wpdb->esc_like()` before adding wildcards:\n```php\n$search = '%' . $wpdb->esc_like( $term ) . '%';\n$wpdb->get_results( $wpdb->prepare( \"... WHERE title LIKE %s\", $search ) );\n```\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Use unique prefix** (4-5 chars) for all global code (functions, classes, options, transients)\n✅ **Add ABSPATH check** to every PHP file: `if ( ! defined( 'ABSPATH' ) ) exit;`\n✅ **Check capabilities** (`current_user_can()`) not just `is_admin()`\n✅ **Verify nonces** for all forms and AJAX requests\n✅ **Use $wpdb->prepare()** for all database queries with user input\n✅ **Sanitize input** with `sanitize_*()` functions before saving\n✅ **Escape output** with `esc_*()` functions before displaying\n✅ **Flush rewrite rules** on activation when registering custom post types\n✅ **Use uninstall.php** for permanent cleanup (not deactivation hook)\n✅ **Follow WordPress Coding Standards** (tabs for indentation, Yoda conditions)\n\n### Never Do\n\n❌ **Never use extract()** - Creates security vulnerabilities\n❌ **Never trust $_POST\u002F$_GET** without sanitization\n❌ **Never concatenate user input into SQL** - Always use prepare()\n❌ **Never use `is_admin()` alone** for permission checks\n❌ **Never output unsanitized data** - Always escape\n❌ **Never use generic function\u002Fclass names** - Always prefix\n❌ **Never use short PHP tags** `\u003C?` or `\u003C?=` - Use `\u003C?php` only\n❌ **Never delete user data on deactivation** - Only on uninstall\n❌ **Never register uninstall hook repeatedly** - Only once on activation\n❌ **Never use `register_uninstall_hook()` in main flow** - Use uninstall.php instead\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **20** documented issues:\n\n### Issue #1: SQL Injection\n**Error**: Database compromised via unescaped user input\n**Source**: https:\u002F\u002Fpatchstack.com\u002Farticles\u002Fsql-injection\u002F (15% of all vulnerabilities)\n**Why It Happens**: Direct concatenation of user input into SQL queries\n**Prevention**: Always use `$wpdb->prepare()` with placeholders\n\n```php\n\u002F\u002F VULNERABLE\n$wpdb->query( \"DELETE FROM {$wpdb->prefix}table WHERE id = {$_GET['id']}\" );\n\n\u002F\u002F SECURE\n$wpdb->query( $wpdb->prepare( \"DELETE FROM {$wpdb->prefix}table WHERE id = %d\", $_GET['id'] ) );\n```\n\n### Issue #2: XSS (Cross-Site Scripting)\n**Error**: Malicious JavaScript executed in user browsers\n**Source**: https:\u002F\u002Fpatchstack.com (35% of all vulnerabilities)\n**Why It Happens**: Outputting unsanitized user data to HTML\n**Prevention**: Always escape output with context-appropriate function\n\n```php\n\u002F\u002F VULNERABLE\necho $_POST['name'];\necho '\u003Cdiv class=\"' . $_POST['class'] . '\">';\n\n\u002F\u002F SECURE\necho esc_html( $_POST['name'] );\necho '\u003Cdiv class=\"' . esc_attr( $_POST['class'] ) . '\">';\n```\n\n### Issue #3: CSRF (Cross-Site Request Forgery)\n**Error**: Unauthorized actions performed on behalf of users\n**Source**: https:\u002F\u002Fblog.nintechnet.com\u002F25-wordpress-plugins-vulnerable-to-csrf-attacks\u002F\n**Why It Happens**: No verification that requests originated from your site\n**Prevention**: Use nonces with `wp_nonce_field()` and `wp_verify_nonce()`\n\n```php\n\u002F\u002F VULNERABLE\nif ( $_POST['action'] == 'delete' ) {\n    delete_user( $_POST['user_id'] );\n}\n\n\u002F\u002F SECURE\nif ( ! wp_verify_nonce( $_POST['nonce'], 'mypl_delete_user' ) ) {\n    wp_die( 'Security check failed' );\n}\ndelete_user( absint( $_POST['user_id'] ) );\n```\n\n### Issue #4: Missing Capability Checks\n**Error**: Regular users can access admin functions\n**Source**: WordPress Security Review Guidelines\n**Why It Happens**: Using `is_admin()` instead of `current_user_can()`\n**Prevention**: Always check capabilities, not just admin context\n\n```php\n\u002F\u002F VULNERABLE\nif ( is_admin() ) {\n    \u002F\u002F Any logged-in user can trigger this\n}\n\n\u002F\u002F SECURE\nif ( current_user_can( 'manage_options' ) ) {\n    \u002F\u002F Only administrators can trigger this\n}\n```\n\n### Issue #5: Direct File Access\n**Error**: PHP files executed outside WordPress context\n**Source**: WordPress Plugin Handbook\n**Why It Happens**: No ABSPATH check at top of file\n**Prevention**: Add ABSPATH check to every PHP file\n\n```php\n\u002F\u002F Add to top of EVERY PHP file\nif ( ! defined( 'ABSPATH' ) ) {\n    exit;\n}\n```\n\n### Additional Issues (#6-20)\n\n**For comprehensive error coverage beyond the Top 5**, load `references\u002Ferror-catalog.md` which includes:\n- **Functionality**: Prefix collision, rewrite rules not flushed, deprecated functions, text domain mismatch, plugin dependencies, autosave triggers\n- **Performance**: Scripts loaded everywhere, transients not cleaned, admin-ajax.php performance\n- **Security**: Missing sanitization on save, incorrect LIKE queries, using extract(), missing REST API permission callbacks, uninstall hook issues\n- **Data Integrity**: Data deleted on deactivation\n\nEach issue includes: error description, source, why it happens, prevention code, impact severity, and frequency.\n\n---\n\n## Plugin Architecture Patterns\n\nChoose the right architecture for your plugin size and complexity:\n\n### Decision Guide\n\n**Simple (Functions Only)**\n- **When**: Small plugins (\u003C5 functions), single feature\n- **Pros**: Easy to start, minimal boilerplate\n- **Cons**: Doesn't scale, hard to organize beyond ~5 functions\n- **Example**: Simple shortcode plugin, basic widget\n\n**OOP (Singleton Pattern)**\n- **When**: Medium plugins (5-20 functions), related functionality\n- **Pros**: Better organization, encapsulation, testable\n- **Cons**: More boilerplate than simple, not using modern PHP features\n- **Example**: Custom post type plugin, admin settings page\n\n**PSR-4 (Namespaced + Composer)**\n- **When**: Large\u002Fmodern plugins, team development, 2025+ standard\n- **Pros**: Modern PHP, namespaces, autoloading, best practices\n- **Cons**: Requires Composer, more initial setup\n- **Example**: E-commerce extension, multi-feature plugin\n\n### Complete Examples\n\nFor full implementation examples with directory structure, activation hooks, and code patterns, load `references\u002Fplugin-architectures.md`.\n\n---\n\n## Common Implementation Patterns\n\nThis skill provides production-ready patterns for 8 common WordPress plugin features:\n\n1. **Custom Post Types** - Register CPTs with Gutenberg support, flush rewrite rules\n2. **Custom Taxonomies** - Hierarchical (categories) or flat (tags) taxonomies\n3. **Meta Boxes** - Save custom fields with proper security (nonces, capabilities, autosave checks)\n4. **Settings API** - WordPress-native settings pages with sanitization\n5. **REST API Endpoints** - Modern API endpoints with permission callbacks and validation\n6. **AJAX Handlers** - Legacy admin-ajax.php pattern (use REST API for new projects)\n7. **Custom Database Tables** - Create tables with dbDelta, versioning\n8. **Transients for Caching** - Cache expensive operations, clear on updates\n\n**For complete implementation code**, load `references\u002Fcommon-patterns.md` when implementing any of these features. Each pattern includes:\n- Full working code examples\n- Security requirements checklist\n- Common mistakes to avoid\n- Best practices and performance tips\n\n---\n\n\n---\n\n## Distribution & Auto-Updates\n\nPlugins hosted outside WordPress.org can provide automatic updates using **Plugin Update Checker** by YahnisElsts (recommended).\n\n**Quick Solutions:**\n- **Public Repos**: Plugin Update Checker (GitHub\u002FGitLab\u002FBitBucket)\n- **Private Plugins**: Plugin Update Checker + authentication token\n- **Commercial Plugins**: Freemius or Custom Update Server\n- **No Coding**: Git Updater plugin\n\n**For complete implementation**, load `references\u002Fgithub-auto-updates.md` which includes:\n- Plugin Update Checker setup (5 minutes)\n- GitHub Releases workflow\n- Private repository authentication\n- Security best practices (checksums, tokens, rate limiting)\n- Alternative solutions comparison\n- ZIP structure requirements\n\n---\n\n## Dependencies\n\n**Required**:\n- WordPress 5.9+ (recommend 6.7+)\n- PHP 7.4+ (recommend 8.0+)\n\n**Optional**:\n- Composer 2.0+ - For PSR-4 autoloading\n- WP-CLI 2.0+ - For command-line plugin management\n- Query Monitor - For debugging and performance analysis\n\n---\n\n## Official Documentation\n\n- **WordPress Plugin Handbook**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fplugins\u002F\n- **WordPress Coding Standards**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fcoding-standards\u002F\n- **WordPress REST API**: https:\u002F\u002Fdeveloper.wordpress.org\u002Frest-api\u002F\n- **WordPress Database Class ($wpdb)**: https:\u002F\u002Fdeveloper.wordpress.org\u002Freference\u002Fclasses\u002Fwpdb\u002F\n- **WordPress Security**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fapis\u002Fsecurity\u002F\n- **Settings API**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fplugins\u002Fsettings\u002Fsettings-api\u002F\n- **Custom Post Types**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fplugins\u002Fpost-types\u002F\n- **Transients API**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fapis\u002Ftransients\u002F\n- **Context7 Library ID**: \u002Fwebsites\u002Fdeveloper_wordpress\n\n---\n\n## Troubleshooting\n\n**Fatal Errors**: Enable `WP_DEBUG`, check `wp-content\u002Fdebug.log`, verify prefixed names\n\n**404 on CPTs**: Flush rewrite rules (add `flush_rewrite_rules();` temporarily in wp-admin)\n\n**Nonce Failures**: Check matching names, correct action, 24-hour expiration\n\n**AJAX Returns 0\u002F-1**: Verify action name matches `wp_ajax_{action}`, nonce sent\u002Fverified, handler hooked\n\n**HTML Stripped**: Use `wp_kses_post()` instead of `sanitize_text_field()`\n\n**DB Queries Fail**: Always use `$wpdb->prepare()`, include `$wpdb->prefix`, verify syntax\n\n---\n\n## When to Load References\n\nThis skill uses **progressive disclosure** - main file contains essentials, reference files have detailed implementation. Load references based on your current task:\n\n### `references\u002Fcommon-patterns.md` (465 lines)\n**Load when**: Implementing specific WordPress features\n**Contains**:\n- Custom Post Types (registration, Gutenberg support, rewrite rules)\n- Custom Taxonomies (hierarchical vs flat, REST API)\n- Meta Boxes (security requirements, save hooks, autosave checks)\n- Settings API (register_setting, sections, fields hierarchy)\n- REST API Endpoints (permission callbacks, validation, responses)\n- AJAX Handlers (nonce verification, wp_ajax hooks, JavaScript integration)\n- Custom Database Tables (dbDelta, character encoding, versioning)\n- Transients for Caching (cache patterns, invalidation, expiration)\n\n### `references\u002Fplugin-architectures.md` (220 lines)\n**Load when**: Choosing plugin structure or migrating between patterns\n**Contains**:\n- Simple Pattern (functions only, \u003C5 functions)\n- OOP Pattern (singleton, encapsulation, medium plugins)\n- PSR-4 Pattern (namespaces, Composer autoloading, modern standard)\n- Decision tree for pattern selection\n- Complete directory structures with all files\n- Activation\u002Fdeactivation hook examples\n- Migration paths between patterns\n\n### `references\u002Ferror-catalog.md` (Issues #6-20, 573 lines)\n**Load when**: Debugging issues beyond Top 5 security vulnerabilities\n**Contains**:\n- Functionality issues (prefix collision, rewrite rules, deprecated functions, text domains, dependencies, autosave)\n- Performance issues (scripts everywhere, transients cleanup, admin-ajax.php alternatives)\n- Security issues (sanitization, extract(), REST permissions, uninstall hooks)\n- Data integrity issues (deactivation vs uninstall)\n**Each issue includes**: Error description, source\u002Freference, why it happens, prevention code, impact severity, frequency\n\n### `references\u002Fadvanced-topics.md` (150 lines)\n**Load when**: Implementing i18n, WP-CLI, cron jobs, or dependency checking\n**Contains**:\n- Internationalization (i18n) - load_plugin_textdomain(), translation workflow, .pot\u002F.po\u002F.mo files\n- WP-CLI Commands - custom command creation, progress bars, output functions\n- Scheduled Events (Cron) - wp_schedule_event(), custom schedules, activation hooks\n- Plugin Dependencies Check - version requirements, soft dependencies, user-friendly error messages\n\n### `references\u002Fsecurity-checklist.md` (527 lines)\n**Load when**: Performing security audit or reviewing code for vulnerabilities\n**Contains**:\n- Complete security audit checklist\n- OWASP Top 10 for WordPress\n- Code examples for each vulnerability type\n- Testing procedures and tools\n- Security plugin recommendations\n\n### `references\u002Fgithub-auto-updates.md` (1,224 lines)\n**Load when**: Setting up auto-updates for plugins hosted outside WordPress.org\n**Contains**:\n- Plugin Update Checker (recommended) - 5-minute setup\n- GitHub Releases workflow and automation\n- Private repository authentication (tokens, wp-config.php)\n- Alternative solutions (Git Updater, Custom Server, Freemius)\n- Security best practices (checksums, signing, rate limiting)\n- ZIP structure requirements and common mistakes\n- Deployment automation examples\n\n### `references\u002Fcommon-hooks.md` (234 lines)\n**Load when**: Working with WordPress hooks and need hook reference\n**Contains**:\n- Action hooks reference (init, admin_menu, save_post, etc.)\n- Filter hooks reference (the_content, post_type_args, etc.)\n- Hook priority and execution order\n- Common hook combinations and patterns\n\n---\n\n## Complete Setup Checklist\n\nUse this checklist to verify your plugin:\n\n- [ ] Plugin header complete with all fields\n- [ ] ABSPATH check at top of every PHP file\n- [ ] All functions\u002Fclasses use unique prefix\n- [ ] All forms have nonce verification\n- [ ] All user input is sanitized\n- [ ] All output is escaped\n- [ ] All database queries use $wpdb->prepare()\n- [ ] Capability checks (not just is_admin())\n- [ ] Custom post types flush rewrite rules on activation\n- [ ] Deactivation hook only clears temporary data\n- [ ] uninstall.php handles permanent cleanup\n- [ ] Text domain matches plugin slug\n- [ ] Scripts\u002Fstyles only load where needed\n- [ ] WP_DEBUG enabled during development\n- [ ] Tested with Query Monitor for performance\n- [ ] No deprecated function warnings\n- [ ] Works with latest WordPress version\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Ferror-catalog.md` for additional issues #6-20\n2. Verify all steps in the security foundation\n3. Check official docs: https:\u002F\u002Fdeveloper.wordpress.org\u002Fplugins\u002F\n4. Enable WP_DEBUG and check debug.log\n5. Use Query Monitor plugin to debug hooks and queries\n","# WordPress Plugin Development (Core)\n\n**Status**: Production Ready\n**Last Updated**: 2025-11-27\n**Dependencies**: None (WordPress 5.9+, PHP 7.4+)\n**Latest Versions**: WordPress 6.7+, PHP 8.0+ recommended\n\n---\n\n## Quick Start (10 Minutes)\n\n### 1. Choose Plugin Structure\n\nThree architecture patterns available (see `references\u002Fplugin-architectures.md` for detailed examples):\n- **Simple** (functions only) - Small plugins \u003C5 functions\n- **OOP** - Medium plugins with related functionality\n- **PSR-4** (Namespaced + Composer) - Modern standard (2025), most maintainable\n\n### 2. Create Plugin Header\n\nEvery plugin MUST have a header comment in the main file:\n\n```php\n\u003C?php\n\u002F**\n * Plugin Name:       My Awesome Plugin\n * Description:       Brief description.\n * Version:           1.0.0\n * Requires at least: 5.9\n * Requires PHP:      7.4\n * Text Domain:       my-plugin\n *\u002F\n\nif ( ! defined( 'ABSPATH' ) ) exit;\n```\n\n**CRITICAL**: Plugin Name is required, Text Domain must match plugin slug exactly.\n\n### 3. Security Foundation (5 Essentials)\n\n```php\n\u002F\u002F 1. Unique Prefix (4-5 chars)\nfunction mypl_init() { \u002F* code *\u002F }\nadd_action( 'init', 'mypl_init' );\n\n\u002F\u002F 2. ABSPATH Check (every file)\nif ( ! defined( 'ABSPATH' ) ) exit;\n\n\u002F\u002F 3. Nonces for Forms\nwp_nonce_field( 'mypl_action', 'mypl_nonce' );\n\n\u002F\u002F 4. Sanitize Input, Escape Output\n$clean = sanitize_text_field( $_POST['input'] );\necho esc_html( $output );\n\n\u002F\u002F 5. Prepared Statements\n$wpdb->get_results( $wpdb->prepare( \"SELECT * FROM {$wpdb->prefix}table WHERE id = %d\", $id ) );\n```\n\n---\n\n## The 5-Step Security Foundation\n\n### Step 1: Use Unique Prefix for Everything\n\n**Rules**: 4-5 chars minimum, apply to functions, classes, constants, options, transients, meta keys. Avoid `wp_`, `__`, `_`.\n\n```php\n\u002F\u002F GOOD\nfunction mypl_init() {}\nclass MyPL_Settings {}\nadd_option( 'mypl_option', 'value' );\n\n\u002F\u002F BAD - Will conflict\nfunction init() {}\nclass Settings {}\n```\n\n### Step 2: Check Capabilities, Not Admin Status\n\n```php\n\u002F\u002F WRONG\nif ( is_admin() ) { \u002F* SECURITY HOLE *\u002F }\n\n\u002F\u002F CORRECT\nif ( current_user_can( 'manage_options' ) ) { \u002F* Secure *\u002F }\n```\n\n**Common Capabilities**: `manage_options` (Admin), `edit_posts` (Editor), `publish_posts` (Author)\n\n### Step 3: The Security Trinity\n\n**Input → Processing → Output** (Sanitize → Validate → Escape):\n\n```php\n\u002F\u002F SANITIZATION (Input)\n$name = sanitize_text_field( $_POST['name'] );\n$email = sanitize_email( $_POST['email'] );\n$url = esc_url_raw( $_POST['url'] );\n$html = wp_kses_post( $_POST['content'] );\n\n\u002F\u002F VALIDATION (Logic)\nif ( ! is_email( $email ) ) wp_die( 'Invalid email' );\n\n\u002F\u002F ESCAPING (Output)\necho esc_html( $name );\necho '\u003Ca href=\"' . esc_url( $url ) . '\">' . esc_html( $text ) . '\u003C\u002Fa>';\n```\n\n**Rule**: Sanitize INPUT, escape OUTPUT. Never trust user data.\n\n### Step 4: Nonces (CSRF Protection)\n\nOne-time tokens proving requests came from your site.\n\n```php\n\u002F\u002F Form\n\u003Cform method=\"post\">\n    \u003C?php wp_nonce_field( 'mypl_action', 'mypl_nonce' ); ?>\n    \u003Cinput type=\"text\" name=\"data\" \u002F>\n\u003C\u002Fform>\n\n\u002F\u002F Verify\nif ( ! wp_verify_nonce( $_POST['mypl_nonce'], 'mypl_action' ) ) wp_die( 'Security check failed' );\n\n\u002F\u002F AJAX\ncheck_ajax_referer( 'mypl-ajax-nonce', 'nonce' );\n```\n\n### Step 5: Prepared Statements for Database\n\n**CRITICAL**: Always use `$wpdb->prepare()` for user input.\n\n```php\n\u002F\u002F WRONG - SQL Injection\n$wpdb->get_results( \"SELECT * FROM {$wpdb->prefix}table WHERE id = {$_GET['id']}\" );\n\n\u002F\u002F CORRECT\n$wpdb->get_results( $wpdb->prepare( \"SELECT * FROM {$wpdb->prefix}table WHERE id = %d\", $_GET['id'] ) );\n```\n\n**Placeholders**: `%s` (String), `%d` (Integer), `%f` (Float)\n\n**LIKE Queries**: Use `$wpdb->esc_like()` before adding wildcards:\n```php\n$search = '%' . $wpdb->esc_like( $term ) . '%';\n$wpdb->get_results( $wpdb->prepare( \"... WHERE title LIKE %s\", $search ) );\n```\n\n---\n\n## Critical Rules\n\n### Always Do\n\n✅ **Use unique prefix** (4-5 chars) for all global code (functions, classes, options, transients)\n✅ **Add ABSPATH check** to every PHP file: `if ( ! defined( 'ABSPATH' ) ) exit;`\n✅ **Check capabilities** (`current_user_can()`) not just `is_admin()`\n✅ **Verify nonces** for all forms and AJAX requests\n✅ **Use $wpdb->prepare()** for all database queries with user input\n✅ **Sanitize input** with `sanitize_*()` functions before saving\n✅ **Escape output** with `esc_*()` functions before displaying\n✅ **Flush rewrite rules** on activation when registering custom post types\n✅ **Use uninstall.php** for permanent cleanup (not deactivation hook)\n✅ **Follow WordPress Coding Standards** (tabs for indentation, Yoda conditions)\n\n### Never Do\n\n❌ **Never use extract()** - Creates security vulnerabilities\n❌ **Never trust $_POST\u002F$_GET** without sanitization\n❌ **Never concatenate user input into SQL** - Always use prepare()\n❌ **Never use `is_admin()` alone** for permission checks\n❌ **Never output unsanitized data** - Always escape\n❌ **Never use generic function\u002Fclass names** - Always prefix\n❌ **Never use short PHP tags** `\u003C?` or `\u003C?=` - Use `\u003C?php` only\n❌ **Never delete user data on deactivation** - Only on uninstall\n❌ **Never register uninstall hook repeatedly** - Only once on activation\n❌ **Never use `register_uninstall_hook()` in main flow** - Use uninstall.php instead\n\n---\n\n## Known Issues Prevention\n\nThis skill prevents **20** documented issues:\n\n### Issue #1: SQL Injection\n**Error**: Database compromised via unescaped user input\n**Source**: https:\u002F\u002Fpatchstack.com\u002Farticles\u002Fsql-injection\u002F (15% of all vulnerabilities)\n**Why It Happens**: Direct concatenation of user input into SQL queries\n**Prevention**: Always use `$wpdb->prepare()` with placeholders\n\n```php\n\u002F\u002F VULNERABLE\n$wpdb->query( \"DELETE FROM {$wpdb->prefix}table WHERE id = {$_GET['id']}\" );\n\n\u002F\u002F SECURE\n$wpdb->query( $wpdb->prepare( \"DELETE FROM {$wpdb->prefix}table WHERE id = %d\", $_GET['id'] ) );\n```\n\n### Issue #2: XSS (Cross-Site Scripting)\n**Error**: Malicious JavaScript executed in user browsers\n**Source**: https:\u002F\u002Fpatchstack.com (35% of all vulnerabilities)\n**Why It Happens**: Outputting unsanitized user data to HTML\n**Prevention**: Always escape output with context-appropriate function\n\n```php\n\u002F\u002F VULNERABLE\necho $_POST['name'];\necho '\u003Cdiv class=\"' . $_POST['class'] . '\">';\n\n\u002F\u002F SECURE\necho esc_html( $_POST['name'] );\necho '\u003Cdiv class=\"' . esc_attr( $_POST['class'] ) . '\">';\n```\n\n### Issue #3: CSRF (Cross-Site Request Forgery)\n**Error**: Unauthorized actions performed on behalf of users\n**Source**: https:\u002F\u002Fblog.nintechnet.com\u002F25-wordpress-plugins-vulnerable-to-csrf-attacks\u002F\n**Why It Happens**: No verification that requests originated from your site\n**Prevention**: Use nonces with `wp_nonce_field()` and `wp_verify_nonce()`\n\n```php\n\u002F\u002F VULNERABLE\nif ( $_POST['action'] == 'delete' ) {\n    delete_user( $_POST['user_id'] );\n}\n\n\u002F\u002F SECURE\nif ( ! wp_verify_nonce( $_POST['nonce'], 'mypl_delete_user' ) ) {\n    wp_die( 'Security check failed' );\n}\ndelete_user( absint( $_POST['user_id'] ) );\n```\n\n### Issue #4: Missing Capability Checks\n**Error**: Regular users can access admin functions\n**Source**: WordPress Security Review Guidelines\n**Why It Happens**: Using `is_admin()` instead of `current_user_can()`\n**Prevention**: Always check capabilities, not just admin context\n\n```php\n\u002F\u002F VULNERABLE\nif ( is_admin() ) {\n    \u002F\u002F Any logged-in user can trigger this\n}\n\n\u002F\u002F SECURE\nif ( current_user_can( 'manage_options' ) ) {\n    \u002F\u002F Only administrators can trigger this\n}\n```\n\n### Issue #5: Direct File Access\n**Error**: PHP files executed outside WordPress context\n**Source**: WordPress Plugin Handbook\n**Why It Happens**: No ABSPATH check at top of file\n**Prevention**: Add ABSPATH check to every PHP file\n\n```php\n\u002F\u002F Add to top of EVERY PHP file\nif ( ! defined( 'ABSPATH' ) ) {\n    exit;\n}\n```\n\n### Additional Issues (#6-20)\n\n**For comprehensive error coverage beyond the Top 5**, load `references\u002Ferror-catalog.md` which includes:\n- **Functionality**: Prefix collision, rewrite rules not flushed, deprecated functions, text domain mismatch, plugin dependencies, autosave triggers\n- **Performance**: Scripts loaded everywhere, transients not cleaned, admin-ajax.php performance\n- **Security**: Missing sanitization on save, incorrect LIKE queries, using extract(), missing REST API permission callbacks, uninstall hook issues\n- **Data Integrity**: Data deleted on deactivation\n\nEach issue includes: error description, source, why it happens, prevention code, impact severity, and frequency.\n\n---\n\n## Plugin Architecture Patterns\n\nChoose the right architecture for your plugin size and complexity:\n\n### Decision Guide\n\n**Simple (Functions Only)**\n- **When**: Small plugins (\u003C5 functions), single feature\n- **Pros**: Easy to start, minimal boilerplate\n- **Cons**: Doesn't scale, hard to organize beyond ~5 functions\n- **Example**: Simple shortcode plugin, basic widget\n\n**OOP (Singleton Pattern)**\n- **When**: Medium plugins (5-20 functions), related functionality\n- **Pros**: Better organization, encapsulation, testable\n- **Cons**: More boilerplate than simple, not using modern PHP features\n- **Example**: Custom post type plugin, admin settings page\n\n**PSR-4 (Namespaced + Composer)**\n- **When**: Large\u002Fmodern plugins, team development, 2025+ standard\n- **Pros**: Modern PHP, namespaces, autoloading, best practices\n- **Cons**: Requires Composer, more initial setup\n- **Example**: E-commerce extension, multi-feature plugin\n\n### Complete Examples\n\nFor full implementation examples with directory structure, activation hooks, and code patterns, load `references\u002Fplugin-architectures.md`.\n\n---\n\n## Common Implementation Patterns\n\nThis skill provides production-ready patterns for 8 common WordPress plugin features:\n\n1. **Custom Post Types** - Register CPTs with Gutenberg support, flush rewrite rules\n2. **Custom Taxonomies** - Hierarchical (categories) or flat (tags) taxonomies\n3. **Meta Boxes** - Save custom fields with proper security (nonces, capabilities, autosave checks)\n4. **Settings API** - WordPress-native settings pages with sanitization\n5. **REST API Endpoints** - Modern API endpoints with permission callbacks and validation\n6. **AJAX Handlers** - Legacy admin-ajax.php pattern (use REST API for new projects)\n7. **Custom Database Tables** - Create tables with dbDelta, versioning\n8. **Transients for Caching** - Cache expensive operations, clear on updates\n\n**For complete implementation code**, load `references\u002Fcommon-patterns.md` when implementing any of these features. Each pattern includes:\n- Full working code examples\n- Security requirements checklist\n- Common mistakes to avoid\n- Best practices and performance tips\n\n---\n\n\n---\n\n## Distribution & Auto-Updates\n\nPlugins hosted outside WordPress.org can provide automatic updates using **Plugin Update Checker** by YahnisElsts (recommended).\n\n**Quick Solutions:**\n- **Public Repos**: Plugin Update Checker (GitHub\u002FGitLab\u002FBitBucket)\n- **Private Plugins**: Plugin Update Checker + authentication token\n- **Commercial Plugins**: Freemius or Custom Update Server\n- **No Coding**: Git Updater plugin\n\n**For complete implementation**, load `references\u002Fgithub-auto-updates.md` which includes:\n- Plugin Update Checker setup (5 minutes)\n- GitHub Releases workflow\n- Private repository authentication\n- Security best practices (checksums, tokens, rate limiting)\n- Alternative solutions comparison\n- ZIP structure requirements\n\n---\n\n## Dependencies\n\n**Required**:\n- WordPress 5.9+ (recommend 6.7+)\n- PHP 7.4+ (recommend 8.0+)\n\n**Optional**:\n- Composer 2.0+ - For PSR-4 autoloading\n- WP-CLI 2.0+ - For command-line plugin management\n- Query Monitor - For debugging and performance analysis\n\n---\n\n## Official Documentation\n\n- **WordPress Plugin Handbook**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fplugins\u002F\n- **WordPress Coding Standards**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fcoding-standards\u002F\n- **WordPress REST API**: https:\u002F\u002Fdeveloper.wordpress.org\u002Frest-api\u002F\n- **WordPress Database Class ($wpdb)**: https:\u002F\u002Fdeveloper.wordpress.org\u002Freference\u002Fclasses\u002Fwpdb\u002F\n- **WordPress Security**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fapis\u002Fsecurity\u002F\n- **Settings API**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fplugins\u002Fsettings\u002Fsettings-api\u002F\n- **Custom Post Types**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fplugins\u002Fpost-types\u002F\n- **Transients API**: https:\u002F\u002Fdeveloper.wordpress.org\u002Fapis\u002Ftransients\u002F\n- **Context7 Library ID**: \u002Fwebsites\u002Fdeveloper_wordpress\n\n---\n\n## Troubleshooting\n\n**Fatal Errors**: Enable `WP_DEBUG`, check `wp-content\u002Fdebug.log`, verify prefixed names\n\n**404 on CPTs**: Flush rewrite rules (add `flush_rewrite_rules();` temporarily in wp-admin)\n\n**Nonce Failures**: Check matching names, correct action, 24-hour expiration\n\n**AJAX Returns 0\u002F-1**: Verify action name matches `wp_ajax_{action}`, nonce sent\u002Fverified, handler hooked\n\n**HTML Stripped**: Use `wp_kses_post()` instead of `sanitize_text_field()`\n\n**DB Queries Fail**: Always use `$wpdb->prepare()`, include `$wpdb->prefix`, verify syntax\n\n---\n\n## When to Load References\n\nThis skill uses **progressive disclosure** - main file contains essentials, reference files have detailed implementation. Load references based on your current task:\n\n### `references\u002Fcommon-patterns.md` (465 lines)\n**Load when**: Implementing specific WordPress features\n**Contains**:\n- Custom Post Types (registration, Gutenberg support, rewrite rules)\n- Custom Taxonomies (hierarchical vs flat, REST API)\n- Meta Boxes (security requirements, save hooks, autosave checks)\n- Settings API (register_setting, sections, fields hierarchy)\n- REST API Endpoints (permission callbacks, validation, responses)\n- AJAX Handlers (nonce verification, wp_ajax hooks, JavaScript integration)\n- Custom Database Tables (dbDelta, character encoding, versioning)\n- Transients for Caching (cache patterns, invalidation, expiration)\n\n### `references\u002Fplugin-architectures.md` (220 lines)\n**Load when**: Choosing plugin structure or migrating between patterns\n**Contains**:\n- Simple Pattern (functions only, \u003C5 functions)\n- OOP Pattern (singleton, encapsulation, medium plugins)\n- PSR-4 Pattern (namespaces, Composer autoloading, modern standard)\n- Decision tree for pattern selection\n- Complete directory structures with all files\n- Activation\u002Fdeactivation hook examples\n- Migration paths between patterns\n\n### `references\u002Ferror-catalog.md` (Issues #6-20, 573 lines)\n**Load when**: Debugging issues beyond Top 5 security vulnerabilities\n**Contains**:\n- Functionality issues (prefix collision, rewrite rules, deprecated functions, text domains, dependencies, autosave)\n- Performance issues (scripts everywhere, transients cleanup, admin-ajax.php alternatives)\n- Security issues (sanitization, extract(), REST permissions, uninstall hooks)\n- Data integrity issues (deactivation vs uninstall)\n**Each issue includes**: Error description, source\u002Freference, why it happens, prevention code, impact severity, frequency\n\n### `references\u002Fadvanced-topics.md` (150 lines)\n**Load when**: Implementing i18n, WP-CLI, cron jobs, or dependency checking\n**Contains**:\n- Internationalization (i18n) - load_plugin_textdomain(), translation workflow, .pot\u002F.po\u002F.mo files\n- WP-CLI Commands - custom command creation, progress bars, output functions\n- Scheduled Events (Cron) - wp_schedule_event(), custom schedules, activation hooks\n- Plugin Dependencies Check - version requirements, soft dependencies, user-friendly error messages\n\n### `references\u002Fsecurity-checklist.md` (527 lines)\n**Load when**: Performing security audit or reviewing code for vulnerabilities\n**Contains**:\n- Complete security audit checklist\n- OWASP Top 10 for WordPress\n- Code examples for each vulnerability type\n- Testing procedures and tools\n- Security plugin recommendations\n\n### `references\u002Fgithub-auto-updates.md` (1,224 lines)\n**Load when**: Setting up auto-updates for plugins hosted outside WordPress.org\n**Contains**:\n- Plugin Update Checker (recommended) - 5-minute setup\n- GitHub Releases workflow and automation\n- Private repository authentication (tokens, wp-config.php)\n- Alternative solutions (Git Updater, Custom Server, Freemius)\n- Security best practices (checksums, signing, rate limiting)\n- ZIP structure requirements and common mistakes\n- Deployment automation examples\n\n### `references\u002Fcommon-hooks.md` (234 lines)\n**Load when**: Working with WordPress hooks and need hook reference\n**Contains**:\n- Action hooks reference (init, admin_menu, save_post, etc.)\n- Filter hooks reference (the_content, post_type_args, etc.)\n- Hook priority and execution order\n- Common hook combinations and patterns\n\n---\n\n## Complete Setup Checklist\n\nUse this checklist to verify your plugin:\n\n- [ ] Plugin header complete with all fields\n- [ ] ABSPATH check at top of every PHP file\n- [ ] All functions\u002Fclasses use unique prefix\n- [ ] All forms have nonce verification\n- [ ] All user input is sanitized\n- [ ] All output is escaped\n- [ ] All database queries use $wpdb->prepare()\n- [ ] Capability checks (not just is_admin())\n- [ ] Custom post types flush rewrite rules on activation\n- [ ] Deactivation hook only clears temporary data\n- [ ] uninstall.php handles permanent cleanup\n- [ ] Text domain matches plugin slug\n- [ ] Scripts\u002Fstyles only load where needed\n- [ ] WP_DEBUG enabled during development\n- [ ] Tested with Query Monitor for performance\n- [ ] No deprecated function warnings\n- [ ] Works with latest WordPress version\n\n---\n\n**Questions? Issues?**\n\n1. Check `references\u002Ferror-catalog.md` for additional issues #6-20\n2. Verify all steps in the security foundation\n3. Check official docs: https:\u002F\u002Fdeveloper.wordpress.org\u002Fplugins\u002F\n4. Enable WP_DEBUG and check debug.log\n5. Use Query Monitor plugin to debug hooks and queries\n",{"name":5,"license":15,"metadata":24,"description":7},{"keywords":25},[26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47],"wordpress plugin development","wordpress security","wordpress hooks","wordpress filters","wordpress database","wpdb prepare","sanitize_text_field","esc_html","wp_nonce","custom post type","register_post_type","settings api","rest api","admin-ajax","wordpress sql injection","wordpress xss","wordpress csrf","plugin header","activation hook","deactivation hook","wordpress coding standards","wordpress plugin architecture","main","c475fc64e94e803b50d14a791dfee8853fbb2c5c","integrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory","https:\u002F\u002Fgithub.com\u002FElogic360","2026-11-08 22:21:22",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":66},[56,59,62],{"tool":57,"command":58},"npx","npx skills add Elogic360\u002Fsoftware-factory --skill wordpress-plugin-core",{"tool":60,"command":61},"bunx","bunx skills add Elogic360\u002Fsoftware-factory --skill wordpress-plugin-core",{"tool":63,"command":64},"pnpm","pnpm dlx skills add Elogic360\u002Fsoftware-factory --skill wordpress-plugin-core","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002FSKILL.md",true,[68,74,80,86,90,94,98,102,106,110,114,120,124,128,132,136,140,144,148,152,156,160,164,168,172,176,180,184,188,192,196,199,203,207],{"path":69,"resourceType":70,"resourceTypeDesc":71,"sizeBytes":72,"sourceHtmlUrl":73},"assets\u002Fexample-template.txt","ASSET","资产文件",416,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Fassets\u002Fexample-template.txt",{"path":75,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":78,"sourceHtmlUrl":79},"examples\u002Fgithub-updater.php","OTHER","其他",15649,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Fexamples\u002Fgithub-updater.php",{"path":81,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":84,"sourceHtmlUrl":85},"references\u002Fadvanced-topics.md","REFERENCE","参考文档",16960,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Freferences\u002Fadvanced-topics.md",{"path":87,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":88,"sourceHtmlUrl":89},"references\u002Fcommon-hooks.md",2815,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Freferences\u002Fcommon-hooks.md",{"path":91,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":92,"sourceHtmlUrl":93},"references\u002Fcommon-patterns.md",13370,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Freferences\u002Fcommon-patterns.md",{"path":95,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":96,"sourceHtmlUrl":97},"references\u002Ferror-catalog.md",16688,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Freferences\u002Ferror-catalog.md",{"path":99,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":100,"sourceHtmlUrl":101},"references\u002Fexample-reference.md",760,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Freferences\u002Fexample-reference.md",{"path":103,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":104,"sourceHtmlUrl":105},"references\u002Fgithub-auto-updates.md",31045,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Freferences\u002Fgithub-auto-updates.md",{"path":107,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":108,"sourceHtmlUrl":109},"references\u002Fplugin-architectures.md",21516,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Freferences\u002Fplugin-architectures.md",{"path":111,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":112,"sourceHtmlUrl":113},"references\u002Fsecurity-checklist.md",11991,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Freferences\u002Fsecurity-checklist.md",{"path":115,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":118,"sourceHtmlUrl":119},"scripts\u002Fexample-script.sh","SCRIPT","脚本",302,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Fscripts\u002Fexample-script.sh",{"path":121,"resourceType":116,"resourceTypeDesc":117,"sizeBytes":122,"sourceHtmlUrl":123},"scripts\u002Fscaffold-plugin.sh",4962,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Fscripts\u002Fscaffold-plugin.sh",{"path":125,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":126,"sourceHtmlUrl":127},"templates\u002Fexamples\u002Fajax-handler.php",8242,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fexamples\u002Fajax-handler.php",{"path":129,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":130,"sourceHtmlUrl":131},"templates\u002Fexamples\u002Fcustom-post-type.php",9679,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fexamples\u002Fcustom-post-type.php",{"path":133,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":134,"sourceHtmlUrl":135},"templates\u002Fexamples\u002Fmeta-box.php",6423,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fexamples\u002Fmeta-box.php",{"path":137,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":138,"sourceHtmlUrl":139},"templates\u002Fexamples\u002Frest-endpoint.php",8892,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fexamples\u002Frest-endpoint.php",{"path":141,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":142,"sourceHtmlUrl":143},"templates\u002Fexamples\u002Fsettings-page.php",8098,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fexamples\u002Fsettings-page.php",{"path":145,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":146,"sourceHtmlUrl":147},"templates\u002Fplugin-oop\u002Fmy-oop-plugin.php",12848,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-oop\u002Fmy-oop-plugin.php",{"path":149,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":150,"sourceHtmlUrl":151},"templates\u002Fplugin-oop\u002FREADME.md",7589,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-oop\u002FREADME.md",{"path":153,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":154,"sourceHtmlUrl":155},"templates\u002Fplugin-oop\u002Funinstall.php",929,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-oop\u002Funinstall.php",{"path":157,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":158,"sourceHtmlUrl":159},"templates\u002Fplugin-oop\u002Fviews\u002Fadmin-settings.php",2101,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-oop\u002Fviews\u002Fadmin-settings.php",{"path":161,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":162,"sourceHtmlUrl":163},"templates\u002Fplugin-psr4\u002Fcomposer.json",706,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Fcomposer.json",{"path":165,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":166,"sourceHtmlUrl":167},"templates\u002Fplugin-psr4\u002Fmy-psr4-plugin.php",1734,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Fmy-psr4-plugin.php",{"path":169,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":170,"sourceHtmlUrl":171},"templates\u002Fplugin-psr4\u002FREADME.md",9957,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002FREADME.md",{"path":173,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":174,"sourceHtmlUrl":175},"templates\u002Fplugin-psr4\u002Fsrc\u002FAdmin\u002FSettings.php",5193,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Fsrc\u002FAdmin\u002FSettings.php",{"path":177,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":178,"sourceHtmlUrl":179},"templates\u002Fplugin-psr4\u002Fsrc\u002FAPI\u002FBookEndpoints.php",5381,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Fsrc\u002FAPI\u002FBookEndpoints.php",{"path":181,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":182,"sourceHtmlUrl":183},"templates\u002Fplugin-psr4\u002Fsrc\u002FFrontend\u002FAssets.php",2078,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Fsrc\u002FFrontend\u002FAssets.php",{"path":185,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":186,"sourceHtmlUrl":187},"templates\u002Fplugin-psr4\u002Fsrc\u002FPlugin.php",2410,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Fsrc\u002FPlugin.php",{"path":189,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":190,"sourceHtmlUrl":191},"templates\u002Fplugin-psr4\u002Fsrc\u002FPostTypes\u002FBook.php",4993,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Fsrc\u002FPostTypes\u002FBook.php",{"path":193,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":194,"sourceHtmlUrl":195},"templates\u002Fplugin-psr4\u002Fsrc\u002FTaxonomies\u002FGenre.php",1924,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Fsrc\u002FTaxonomies\u002FGenre.php",{"path":197,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":154,"sourceHtmlUrl":198},"templates\u002Fplugin-psr4\u002Funinstall.php","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-psr4\u002Funinstall.php",{"path":200,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":201,"sourceHtmlUrl":202},"templates\u002Fplugin-simple\u002Fmy-simple-plugin.php",7550,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-simple\u002Fmy-simple-plugin.php",{"path":204,"resourceType":82,"resourceTypeDesc":83,"sizeBytes":205,"sourceHtmlUrl":206},"templates\u002Fplugin-simple\u002FREADME.md",4742,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-simple\u002FREADME.md",{"path":208,"resourceType":76,"resourceTypeDesc":77,"sizeBytes":209,"sourceHtmlUrl":210},"templates\u002Fplugin-simple\u002Funinstall.php",1334,"https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fintegrations\u002Fclaude-skills-secondsky\u002Fplugins\u002Fwordpress-plugin-core\u002Fskills\u002Fwordpress-plugin-core\u002Ftemplates\u002Fplugin-simple\u002Funinstall.php",[212,220,227,234,241,248],{"skillNo":213,"name":214,"nameZh":6,"description":215,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":216,"licenseFileUrl":6,"sourceHtmlUrl":217,"categories":218,"keywords":219,"publishedAt":19},"01M79G206MT3J6S0GY3C45P2KV","vss-summarize-video","Use to summarize a recorded video via the LVS summarization microservice (HITL-gated) with a VLM fallback. Not for report generation or live RTSP captioning.","Apache-2.0","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-summarize-video\u002FSKILL.md",[],[],{"skillNo":221,"name":222,"nameZh":6,"description":223,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":216,"licenseFileUrl":6,"sourceHtmlUrl":224,"categories":225,"keywords":226,"publishedAt":19},"01M79G1WN63PGRE8CKD47WEBQ5","vss-setup-video-analytics-api","Use to deploy the vss-video-analytics-api REST service standalone (config-source, data-log bind, Elasticsearch, optional Kafka). Not for full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-video-analytics-api\u002FSKILL.md",[],[],{"skillNo":228,"name":229,"nameZh":6,"description":230,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":216,"licenseFileUrl":6,"sourceHtmlUrl":231,"categories":232,"keywords":233,"publishedAt":19},"01M79G1S9F7VY3EF6H53PRP5AN","vss-setup-behavior-analytics","Use to deploy the vss-behavior-analytics service standalone (entrypoint, config-source, optional calibration). Not for the full warehouse deploy.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-setup-behavior-analytics\u002FSKILL.md",[],[],{"skillNo":235,"name":236,"nameZh":6,"description":237,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":216,"licenseFileUrl":6,"sourceHtmlUrl":238,"categories":239,"keywords":240,"publishedAt":19},"01M79G1N1S1Y27PFZPYMNK1MTQ","vss-search-archive","Use this skill to run top-level VSS fusion search on archived video, or to ingest video files \u002F RTSP streams for search. Do NOT use for ad-hoc visual Q&A (use vss-ask-video), live captioning (use vss-deploy-dense-captioning), or video summarization and reports (use vss-summarize-video).","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-search-archive\u002FSKILL.md",[],[],{"skillNo":242,"name":243,"nameZh":6,"description":244,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":216,"licenseFileUrl":6,"sourceHtmlUrl":245,"categories":246,"keywords":247,"publishedAt":19},"01M79G1H6WN0Q6C0VCAXCZX6B7","vss-query-analytics","Use this skill when reading video-analytics metrics, incidents, alerts, and sensor data via the VA-MCP server (port 9901). Not for live VLM or incident-range narrative reports.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-query-analytics\u002FSKILL.md",[],[],{"skillNo":249,"name":250,"nameZh":6,"description":251,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":216,"licenseFileUrl":6,"sourceHtmlUrl":252,"categories":253,"keywords":254,"publishedAt":19},"01M79G1DYPNXQS7QHZ0AAF5FX5","vss-manage-video-io-storage","Use to call the VIOS REST API (sensor list, timelines, clip extraction, snapshots, add\u002Fdelete sensors and streams). Not for VLM inference or search.","https:\u002F\u002Fgithub.com\u002FElogic360\u002Fsoftware-factory\u002Fblob\u002Fmain\u002Fskills\u002Fnvidia\u002Fvss-manage-video-io-storage\u002FSKILL.md",[],[]]