[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M72WM195HXWH4RWWH8P1282A":3,"skill-same:01M72WM195HXWH4RWWH8P1282A":78},{"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":25,"commitSha":26,"skillDirectory":27,"forksCount":14,"repositoryHtmlUrl":28,"repositoryHomepageUrl":6,"ownerHtmlUrl":29,"ownerBlogUrl":30,"ownerDescription":6,"updatedAt":31,"install":32,"resources":45},"01M72WM195HXWH4RWWH8P1282A","wp-plugin-development",null,"Use when developing WordPress plugins: architecture and hooks, activation\u002Fdeactivation\u002Funinstall, admin UI and Settings API, data storage, cron\u002Ftasks, security (nonces\u002Fcapabilities\u002Fsanitization\u002Fescaping), and release packaging.","procyon-creative\u002Fwp-dario-provider","procyon-creative","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F108539561?v=4","01M72WGVJQCTY3JENE9DDREJ61","Procyon Creative","01M72WGVKC11SWCNQBV05FHJ6D",0,"GPL-2.0","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002FSKILL.md",[],[],"2026-11-10 22:39:42",false,"---\nname: wp-plugin-development\ndescription: \"Use when developing WordPress plugins: architecture and hooks, activation\u002Fdeactivation\u002Funinstall, admin UI and Settings API, data storage, cron\u002Ftasks, security (nonces\u002Fcapabilities\u002Fsanitization\u002Fescaping), and release packaging.\"\ncompatibility: \"Targets WordPress 7.0+ (PHP 7.4.0+). Filesystem-based agent with bash + node. Some workflows require WP-CLI.\"\n---\n\n# WP Plugin Development\n\n## When to use\n\nUse this skill for plugin work such as:\n\n- creating or refactoring plugin structure (bootstrap, includes, namespaces\u002Fclasses)\n- adding hooks\u002Factions\u002Ffilters\n- activation\u002Fdeactivation\u002Funinstall behavior and migrations\n- adding settings pages \u002F options \u002F admin UI (Settings API)\n- security fixes (nonces, capabilities, sanitization\u002Fescaping, SQL safety)\n- packaging a release (build artifacts, readme, assets)\n\n## Inputs required\n\n- Repo root + target plugin(s) (path to plugin main file if known).\n- Where this plugin runs: single site vs multisite; WP.com conventions if applicable.\n- Target WordPress + PHP versions (affects available APIs and placeholder support in `$wpdb->prepare()`).\n\n## Procedure\n\n### 0) Triage and locate plugin entrypoints\n\n1. Run triage:\n   - `node skills\u002Fwp-project-triage\u002Fscripts\u002Fdetect_wp_project.mjs`\n2. Detect plugin headers (deterministic scan):\n   - `node skills\u002Fwp-plugin-development\u002Fscripts\u002Fdetect_plugins.mjs`\n\nIf this is a full site repo, pick the specific plugin under `wp-content\u002Fplugins\u002F` or `mu-plugins\u002F` before changing code.\n\n### 1) Follow a predictable architecture\n\nGuidelines:\n\n- Keep a single bootstrap (main plugin file with header).\n- Avoid heavy side effects at file load time; load on hooks.\n- Prefer a dedicated loader\u002Fclass to register hooks.\n- Keep admin-only code behind `is_admin()` (or admin hooks) to reduce frontend overhead.\n\nSee:\n- `references\u002Fstructure.md`\n\n### 2) Hooks and lifecycle (activation\u002Fdeactivation\u002Funinstall)\n\nActivation hooks are fragile; follow guardrails:\n\n- register activation\u002Fdeactivation hooks at top-level, not inside other hooks\n- flush rewrite rules only when needed and only after registering CPTs\u002Frules\n- uninstall should be explicit and safe (`uninstall.php` or `register_uninstall_hook`)\n\nSee:\n- `references\u002Flifecycle.md`\n\n### 3) Settings and admin UI (Settings API)\n\nPrefer Settings API for options:\n\n- `register_setting()`, `add_settings_section()`, `add_settings_field()`\n- sanitize via `sanitize_callback`\n\nSee:\n- `references\u002Fsettings-api.md`\n\n### 4) Security baseline (always)\n\nBefore shipping:\n\n- Validate\u002Fsanitize input early; escape output late.\n- Use nonces to prevent CSRF *and* capability checks for authorization.\n- Avoid directly trusting `$_POST` \u002F `$_GET`; use `wp_unslash()` and specific keys.\n- Use `$wpdb->prepare()` for SQL; avoid building SQL with string concatenation.\n\nSee:\n- `references\u002Fsecurity.md`\n\n### 5) Data storage, cron, migrations (if needed)\n\n- Prefer options for small config; custom tables only if necessary.\n- For cron tasks, ensure idempotency and provide manual run paths (WP-CLI or admin).\n- For schema changes, write upgrade routines and store schema version.\n\nSee:\n- `references\u002Fdata-and-cron.md`\n\n## Verification\n\n- Plugin activates with no fatals\u002Fnotices.\n- Settings save and read correctly (capability + nonce enforced).\n- Uninstall removes intended data (and nothing else).\n- Run repo lint\u002Ftests (PHPUnit\u002FPHPCS if present) and any JS build steps if the plugin ships assets.\n\n## Failure modes \u002F debugging\n\n- Activation hook not firing:\n  - hook registered incorrectly (not in main file scope), wrong main file path, or plugin is network-activated\n- Settings not saving:\n  - settings not registered, wrong option group, missing capability, nonce failure\n- Security regressions:\n  - nonce present but missing capability checks; or sanitized input not escaped on output\n\nSee:\n- `references\u002Fdebugging.md`\n\n## Escalation\n\nFor canonical detail, consult the Plugin Handbook and security guidelines before inventing patterns.\n","# WP Plugin Development\n\n## When to use\n\nUse this skill for plugin work such as:\n\n- creating or refactoring plugin structure (bootstrap, includes, namespaces\u002Fclasses)\n- adding hooks\u002Factions\u002Ffilters\n- activation\u002Fdeactivation\u002Funinstall behavior and migrations\n- adding settings pages \u002F options \u002F admin UI (Settings API)\n- security fixes (nonces, capabilities, sanitization\u002Fescaping, SQL safety)\n- packaging a release (build artifacts, readme, assets)\n\n## Inputs required\n\n- Repo root + target plugin(s) (path to plugin main file if known).\n- Where this plugin runs: single site vs multisite; WP.com conventions if applicable.\n- Target WordPress + PHP versions (affects available APIs and placeholder support in `$wpdb->prepare()`).\n\n## Procedure\n\n### 0) Triage and locate plugin entrypoints\n\n1. Run triage:\n   - `node skills\u002Fwp-project-triage\u002Fscripts\u002Fdetect_wp_project.mjs`\n2. Detect plugin headers (deterministic scan):\n   - `node skills\u002Fwp-plugin-development\u002Fscripts\u002Fdetect_plugins.mjs`\n\nIf this is a full site repo, pick the specific plugin under `wp-content\u002Fplugins\u002F` or `mu-plugins\u002F` before changing code.\n\n### 1) Follow a predictable architecture\n\nGuidelines:\n\n- Keep a single bootstrap (main plugin file with header).\n- Avoid heavy side effects at file load time; load on hooks.\n- Prefer a dedicated loader\u002Fclass to register hooks.\n- Keep admin-only code behind `is_admin()` (or admin hooks) to reduce frontend overhead.\n\nSee:\n- `references\u002Fstructure.md`\n\n### 2) Hooks and lifecycle (activation\u002Fdeactivation\u002Funinstall)\n\nActivation hooks are fragile; follow guardrails:\n\n- register activation\u002Fdeactivation hooks at top-level, not inside other hooks\n- flush rewrite rules only when needed and only after registering CPTs\u002Frules\n- uninstall should be explicit and safe (`uninstall.php` or `register_uninstall_hook`)\n\nSee:\n- `references\u002Flifecycle.md`\n\n### 3) Settings and admin UI (Settings API)\n\nPrefer Settings API for options:\n\n- `register_setting()`, `add_settings_section()`, `add_settings_field()`\n- sanitize via `sanitize_callback`\n\nSee:\n- `references\u002Fsettings-api.md`\n\n### 4) Security baseline (always)\n\nBefore shipping:\n\n- Validate\u002Fsanitize input early; escape output late.\n- Use nonces to prevent CSRF *and* capability checks for authorization.\n- Avoid directly trusting `$_POST` \u002F `$_GET`; use `wp_unslash()` and specific keys.\n- Use `$wpdb->prepare()` for SQL; avoid building SQL with string concatenation.\n\nSee:\n- `references\u002Fsecurity.md`\n\n### 5) Data storage, cron, migrations (if needed)\n\n- Prefer options for small config; custom tables only if necessary.\n- For cron tasks, ensure idempotency and provide manual run paths (WP-CLI or admin).\n- For schema changes, write upgrade routines and store schema version.\n\nSee:\n- `references\u002Fdata-and-cron.md`\n\n## Verification\n\n- Plugin activates with no fatals\u002Fnotices.\n- Settings save and read correctly (capability + nonce enforced).\n- Uninstall removes intended data (and nothing else).\n- Run repo lint\u002Ftests (PHPUnit\u002FPHPCS if present) and any JS build steps if the plugin ships assets.\n\n## Failure modes \u002F debugging\n\n- Activation hook not firing:\n  - hook registered incorrectly (not in main file scope), wrong main file path, or plugin is network-activated\n- Settings not saving:\n  - settings not registered, wrong option group, missing capability, nonce failure\n- Security regressions:\n  - nonce present but missing capability checks; or sanitized input not escaped on output\n\nSee:\n- `references\u002Fdebugging.md`\n\n## Escalation\n\nFor canonical detail, consult the Plugin Handbook and security guidelines before inventing patterns.\n",{"name":5,"description":7,"compatibility":24},"Targets WordPress 7.0+ (PHP 7.4.0+). Filesystem-based agent with bash + node. Some workflows require WP-CLI.","main","f817b1049ffbf34e5609b8222a18dd91365c08fc",".agents\u002Fskills\u002Fwp-plugin-development","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider","https:\u002F\u002Fgithub.com\u002Fprocyon-creative","procyoncreative.com","2026-10-08 08:08:11",{"source":8,"skillName":5,"commands":33,"prompt":43,"zipAvailable":44},[34,37,40],{"tool":35,"command":36},"npx","npx skills add procyon-creative\u002Fwp-dario-provider --skill wp-plugin-development",{"tool":38,"command":39},"bunx","bunx skills add procyon-creative\u002Fwp-dario-provider --skill wp-plugin-development",{"tool":41,"command":42},"pnpm","pnpm dlx skills add procyon-creative\u002Fwp-dario-provider --skill wp-plugin-development","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002FSKILL.md",true,[46,52,56,60,64,68,72],{"path":47,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":50,"sourceHtmlUrl":51},"references\u002Fdata-and-cron.md","REFERENCE","参考文档",678,"https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002Freferences\u002Fdata-and-cron.md",{"path":53,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":54,"sourceHtmlUrl":55},"references\u002Fdebugging.md",559,"https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002Freferences\u002Fdebugging.md",{"path":57,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":58,"sourceHtmlUrl":59},"references\u002Flifecycle.md",854,"https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002Freferences\u002Flifecycle.md",{"path":61,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":62,"sourceHtmlUrl":63},"references\u002Fsecurity.md",1538,"https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002Freferences\u002Fsecurity.md",{"path":65,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":66,"sourceHtmlUrl":67},"references\u002Fsettings-api.md",703,"https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002Freferences\u002Fsettings-api.md",{"path":69,"resourceType":48,"resourceTypeDesc":49,"sizeBytes":70,"sourceHtmlUrl":71},"references\u002Fstructure.md",401,"https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002Freferences\u002Fstructure.md",{"path":73,"resourceType":74,"resourceTypeDesc":75,"sizeBytes":76,"sourceHtmlUrl":77},"scripts\u002Fdetect_plugins.mjs","SCRIPT","脚本",2850,"https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-plugin-development\u002Fscripts\u002Fdetect_plugins.mjs",[79,86,93,100,107,114],{"skillNo":80,"name":81,"nameZh":6,"description":82,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":83,"categories":84,"keywords":85,"publishedAt":19},"01M72WMR8AJ6E3XP3BPW1RVZ6Y","writing-shape","Writing, exploit: shape raw material into an article, paragraph by paragraph.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-shape\u002FSKILL.md",[],[],{"skillNo":87,"name":88,"nameZh":6,"description":89,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":90,"categories":91,"keywords":92,"publishedAt":19},"01M72WMQ162SMJ423XYP93VK0G","writing-fragments","Writing, explore: mine raw fragments, no structure yet.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-fragments\u002FSKILL.md",[],[],{"skillNo":94,"name":95,"nameZh":6,"description":96,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":97,"categories":98,"keywords":99,"publishedAt":19},"01M72WMN27YT9F31ZTTRZ898NN","writing-for-agents","Writing documents for agents. Use when creating or editing skills, or modifying AGENTS.md or CLAUDE.md.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-for-agents\u002FSKILL.md",[],[],{"skillNo":101,"name":102,"nameZh":6,"description":103,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":104,"categories":105,"keywords":106,"publishedAt":19},"01M72WMKJEJQXHR67PW7KEE5YB","writing-beats","Writing, exploit; assemble raw material into a journey of beats, grounding each term before a beat leans on it.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwriting-beats\u002FSKILL.md",[],[],{"skillNo":108,"name":109,"nameZh":6,"description":110,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":111,"categories":112,"keywords":113,"publishedAt":19},"01M72WMHMM3GQD4P2TJ3EQQCC5","wpds","Use when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwpds\u002FSKILL.md",[],[],{"skillNo":115,"name":116,"nameZh":6,"description":117,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":118,"categories":119,"keywords":120,"publishedAt":19},"01M72WMECG0CCPPSQ1BTCFWY7E","wp-wpcli-and-ops","Use when working with WP-CLI (wp) for WordPress operations: safe search-replace, db export\u002Fimport, plugin\u002Ftheme\u002Fuser\u002Fcontent management, cron, cache flushing, multisite, and scripting\u002Fautomation with wp-cli.yml.","https:\u002F\u002Fgithub.com\u002Fprocyon-creative\u002Fwp-dario-provider\u002Fblob\u002Fmain\u002F.agents\u002Fskills\u002Fwp-wpcli-and-ops\u002FSKILL.md",[],[]]