[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6GKWA4GG2BZRFXCR9E73VR7":3,"skill-same:01M6GKWA4GG2BZRFXCR9E73VR7":81},{"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":39,"linkOnly":40,"markdownContent":41,"markdownBody":42,"frontMatter":43,"refName":44,"commitSha":45,"skillDirectory":46,"forksCount":47,"repositoryHtmlUrl":48,"repositoryHomepageUrl":49,"ownerHtmlUrl":50,"ownerBlogUrl":51,"ownerDescription":6,"updatedAt":52,"install":53,"resources":66},"01M6GKWA4GG2BZRFXCR9E73VR7","wp-security-escaping",null,"Use when writing or reviewing code that outputs data, handles input or checks permissions in a WordPress + Acorn project - Blade {{ }} vs {!! !!}, esc_html, esc_attr, esc_url, wp_kses_post, \"&#038; in the URL\", double escaping, sanitize_text_field, nonces, current_user_can, map_meta_cap, permission_callback, $wpdb->prepare, whereRaw, file uploads, escaping ACF values, secrets in .env. For route middleware use acorn-routes-api; for ACF validation use acf-native; for Livewire actions use acorn-livewire.","hekivo\u002Fkivo-wise","hekivo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F278159278?v=4","01M6GKH8S3Z4CAJ9RRR607G1WJ","Hekivo","01M6GKH8XNM7HTVF4DC86MA8RG",14,"MIT","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-security-escaping\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"security","wp security escaping","wp security","route","writing","routes-api","URL","native","middleware","code","project","map","permissions","cap","text","livewire","secrets","api","Meta","actions","2026-11-10 10:12:30",false,"---\nname: wp-security-escaping\ndescription: Use when writing or reviewing code that outputs data, handles input or checks permissions in a WordPress + Acorn project - Blade {{ }} vs {!! !!}, esc_html, esc_attr, esc_url, wp_kses_post, \"&#038; in the URL\", double escaping, sanitize_text_field, nonces, current_user_can, map_meta_cap, permission_callback, $wpdb->prepare, whereRaw, file uploads, escaping ACF values, secrets in .env. For route middleware use acorn-routes-api; for ACF validation use acf-native; for Livewire actions use acorn-livewire.\n---\n\n# Security: escape once, sanitise in, authorise always\n\nThree rules cover most findings in Acorn projects: escape output **exactly once** (Blade or WordPress, never both), sanitise and validate input at the entry point, and pair every state change with a capability check (a nonce proves intent, a capability proves authority).\n\nRunner placeholders come from the session context: `{{runner.wp}}` (Lando default `lando wp`), `{{runner.test}}` (the project's test command), `{{runner.cache}}`. Never run `wp`, `composer` or `php` on the host.\n\n## When to use\n\n- Any Blade view, component or block render template that prints dynamic data.\n- Form handlers, AJAX handlers, REST callbacks, Acorn controllers, Livewire actions.\n- Roles, custom capabilities, CPT capability mapping, REST `permission_callback`.\n- Raw SQL through `$wpdb` or the query builder, file uploads, secrets.\n- A final security pass over code another skill produced.\n\n## Inputs required\n\n- The file(s) and context: Blade view, component, block render, provider, controller, REST callback.\n- Who can reach the code: anonymous visitor, logged-in user, editor, admin, CLI.\n- The active profile and app path (session context) to know where views and routes live.\n\n## Procedure\n\n### 1. Escape output once\n\nBlade `{{ $x }}` compiles to `e($x)`: `htmlspecialchars(…, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8', double_encode = true)`. WordPress escapers already return HTML-safe text. Wrapping one in the other escapes twice: `{{ esc_url($url) }}` turns `?a=1&b=2` into a visible `&#038;` and breaks the link.\n\n| Value | Write | Never |\n|---|---|---|\n| Plain text from PHP | `{{ $title }}` | `{{ esc_html($title) }}` |\n| Text that may already hold entities (`get_the_title()`, ACF formatted text) | `{!! esc_html($title) !!}` (WordPress does not double-encode) | `{{ get_the_title() }}` when you see `&amp;amp;` |\n| URL in `href` \u002F `src` | `{!! esc_url($url) !!}` | `{{ esc_url($url) }}` |\n| Attribute from WordPress | `{!! esc_attr($label) !!}` or `{{ $label }}` | `{{ esc_attr($label) }}` |\n| Trusted rich HTML (post content, WYSIWYG) | `{!! wp_kses_post($html) !!}` | `{!! $html !!}` unfiltered |\n| Data for JavaScript | `@json($data)` (hex-escapes `\u003C`, `>`, `'`, `\"`, `&`), or `wp_add_inline_script()` with `wp_json_encode()` | string-built JS |\n| Component attributes | `$attributes->merge(['href' => $url])` escapes the defaults with `e()`; pass `false` as the second argument when the value comes from `esc_url()` \u002F `esc_attr()` | merging an `esc_url()` value with escaping on |\n\nBound attributes on a component tag (`\u003Cx-link :href=\"$url\">`) that land in the attribute bag are already escaped with `e()` at compile time; do not pass `esc_url()` output there either. Details and a guard test: [references\u002Fblade-escaping.md](references\u002Fblade-escaping.md).\n\n### 2. Sanitise and validate input\n\n- Read explicit keys, never the whole `$_POST`; `wp_unslash()` before sanitising superglobals.\n- Pick the sanitiser by type (`sanitize_text_field`, `sanitize_textarea_field`, `sanitize_email`, `absint`, `sanitize_key`, `esc_url_raw`, `wp_kses_post`). In Acorn controllers, `$request->validate([...])` checks shape; still sanitise what you store.\n- ACF: `acf_save_post()` already filters posted values with `wp_kses_post_deep()` for users without `unfiltered_html`; add `acf\u002Fupdate_value\u002Fkey=…` for type-specific sanitising and `acf\u002Fvalidate_value` for rules (acf-native). Without ACF, `register_post_meta()` with `sanitize_callback` and `auth_callback`.\n- Table of sanitisers, uploads and secrets: [references\u002Finput-and-sql.md](references\u002Finput-and-sql.md).\n\n### 3. Verify intent and authority\n\n- Forms and admin-post: `wp_nonce_field('action', '_name')` + `check_admin_referer('action', '_name')` or `wp_verify_nonce()`; AJAX: `check_ajax_referer()`; REST with cookie auth: the `X-WP-Nonce` header (`wp_rest` nonce) is checked by core.\n- Then `current_user_can()` with the most specific capability (meta capabilities like `edit_post` take the object ID).\n- REST routes: always a real `permission_callback` (WordPress logs `_doing_it_wrong` when it is missing); `__return_true` only for public reads.\n- `wp_ajax_nopriv_*` and public Acorn routes are attacker-controlled traffic: validate everything, expose nothing private.\n- Roles, custom capabilities and CPT mapping: [references\u002Fcapabilities.md](references\u002Fcapabilities.md).\n\n### 4. Prepare every query\n\n`$wpdb->prepare()` with `%s`, `%d`, `%f`, and `%i` for identifiers; `$wpdb->esc_like()` for `LIKE`. Eloquent and the query builder bind parameters; `DB::raw()`, `whereRaw()` and `selectRaw()` must take bindings (`whereRaw('title = ?', [$input])`).\n\n### Profiles\n\n| | `sage-theme` | `acorn-mu-plugin` | `radicle-app` |\n|---|---|---|---|\n| Views to audit | theme `resources\u002Fviews\u002F**` | plugin `resources\u002Fviews\u002F**` (namespaced views) | project `resources\u002Fviews\u002F**`, including native block render views |\n| Extra input surface | ACF fields, theme forms | ACF fields, Livewire components, plugin REST\u002FAcorn routes | block attributes saved from the editor (escape them at render), REST\u002FAcorn routes; no ACF by default |\n| Meta sanitising | ACF hooks | ACF hooks | `register_post_meta()` `sanitize_callback` \u002F `auth_callback` |\n| Guard test location | theme tests | plugin `tests\u002F` | project `tests\u002F` (Pest) |\n\n## Verification\n\n- Grep for double escaping: `rg -n \"\\{\\{\\s*esc_(url|attr|html|textarea|js)(__|_x)?\\(\" \u003Capp>\u002Fresources\u002Fviews` returns nothing; better, keep the guard test from the reference running in `{{runner.test}}`.\n- Grep for unfiltered raw output: `rg -n \"\\{!!\" \u003Capp>\u002Fresources\u002Fviews` and justify each hit (an `esc_*`, `wp_kses*`, `@json`, or a trusted Htmlable).\n- Every handler that writes data shows a nonce (or REST auth) check **and** `current_user_can()`.\n- `rg -n \"\\$wpdb->(query|get_(results|row|var|col))\\(\" \u003Capp>\u002Fapp` hits all go through `prepare()`.\n- Hit protected endpoints as anonymous and as a low-role user (`{{runner.wp}} user create test-sub sub@example.test --role=subscriber`); expect 401\u002F403.\n\n## Failure modes\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| `&#038;` or `&amp;amp;` visible in links or titles | Escaped twice (`{{ esc_url() }}`, or `{{ }}` on text that already has entities) | `{!! esc_url($url) !!}` \u002F `{!! esc_html($text) !!}`; add the guard test |\n| XSS through a WYSIWYG or block attribute | `{!! $html !!}` without filtering | `{!! wp_kses_post($html) !!}` or `wp_kses()` with an allow-list |\n| CSRF on an Acorn `web` route | Acorn's default `web` middleware group ships with the CSRF middleware commented out; `@csrf` alone verifies nothing | Use WordPress nonces in the controller, or append the CSRF middleware with `withMiddleware()` (see acorn-routes-api) |\n| Subscriber can call an admin action | Nonce checked, capability not | Add `current_user_can()` before acting |\n| REST route open to everyone | `permission_callback` missing or `__return_true` on a write | Capability-based callback |\n| `current_user_can('edit_project', $id)` always false | CPT with custom `capability_type` and `map_meta_cap` false | Set `map_meta_cap => true` and grant the primitive caps |\n| SQL injection | Interpolated input in `$wpdb` or `whereRaw()` | `prepare()` \u002F bindings |\n| Secret in the repo | Hard-coded key or committed `.env` | Move to the environment, rotate the key, check `.gitignore` |\n\n## Escalation\n\n- A vulnerability in production code: tell the user immediately with severity, affected endpoint and the fix; do not wait for the end of the task.\n- A third-party plugin is the source: report it to the user with the evidence; suggest updating or replacing it (wp-composer-plugins).\n- Route middleware, auth guards or API design: acorn-routes-api. Livewire action authorisation: acorn-livewire. ACF validation and save flow: acf-native.\n\n\u003C!-- verified:\nvendor\u002Filluminate\u002Fview\u002FCompilers\u002FBladeCompiler.php:124 — echo format 'e(%s)'; vendor\u002Filluminate\u002Fsupport\u002Fhelpers.php:124-138 — e() = htmlspecialchars ENT_QUOTES|ENT_SUBSTITUTE, doubleEncode true;\nwp\u002Fwp-includes\u002Fformatting.php:4587 — esc_url display context turns &amp; into &#038;; :945 _wp_specialchars double_encode false (esc_html\u002Fesc_attr);\nvendor\u002Filluminate\u002Fview\u002FComponentAttributeBag.php:237-243 — merge($defaults, $escape = true) escapes defaults with e(); Compilers\u002FConcerns\u002FCompilesComponents.php:211-219 + ComponentTagCompiler.php:790-795 — bound attributes escaped with e();\nvendor\u002Filluminate\u002Fview\u002FCompilers\u002FConcerns\u002FCompilesJson.php:12 — @json uses JSON_HEX_TAG|APOS|AMP|QUOT;\nadvanced-custom-fields-pro\u002Fincludes\u002Facf-form-functions.php:139-149 — wp_kses_post_deep on $_POST['acf'] without unfiltered_html; includes\u002Fapi\u002Fapi-template.php:26,103-139 — get_field $escape_html, the_field escapes;\nvendor\u002Froots\u002Facorn\u002Fsrc\u002FRoots\u002FAcorn\u002FConfiguration\u002FMiddleware.php:88 (acorn 6.2.0) — PreventRequestForgery commented out of the web group;\nwp\u002Fwp-includes\u002Frest-api.php:122-129 — _doing_it_wrong when permission_callback missing; class-wpdb.php:656-685 — %i identifier placeholder;\nwp\u002Fwp-includes\u002Fclass-wp-post-type.php:610-619 — map_meta_cap defaults true only for capability_type post\u002Fpage;\na Blade single-escape guard test in the reference acorn-mu-plugin project — guard test pattern (generalised in references\u002Fblade-escaping.md).\n-->\n","# Security: escape once, sanitise in, authorise always\n\nThree rules cover most findings in Acorn projects: escape output **exactly once** (Blade or WordPress, never both), sanitise and validate input at the entry point, and pair every state change with a capability check (a nonce proves intent, a capability proves authority).\n\nRunner placeholders come from the session context: `{{runner.wp}}` (Lando default `lando wp`), `{{runner.test}}` (the project's test command), `{{runner.cache}}`. Never run `wp`, `composer` or `php` on the host.\n\n## When to use\n\n- Any Blade view, component or block render template that prints dynamic data.\n- Form handlers, AJAX handlers, REST callbacks, Acorn controllers, Livewire actions.\n- Roles, custom capabilities, CPT capability mapping, REST `permission_callback`.\n- Raw SQL through `$wpdb` or the query builder, file uploads, secrets.\n- A final security pass over code another skill produced.\n\n## Inputs required\n\n- The file(s) and context: Blade view, component, block render, provider, controller, REST callback.\n- Who can reach the code: anonymous visitor, logged-in user, editor, admin, CLI.\n- The active profile and app path (session context) to know where views and routes live.\n\n## Procedure\n\n### 1. Escape output once\n\nBlade `{{ $x }}` compiles to `e($x)`: `htmlspecialchars(…, ENT_QUOTES | ENT_SUBSTITUTE, 'UTF-8', double_encode = true)`. WordPress escapers already return HTML-safe text. Wrapping one in the other escapes twice: `{{ esc_url($url) }}` turns `?a=1&b=2` into a visible `&#038;` and breaks the link.\n\n| Value | Write | Never |\n|---|---|---|\n| Plain text from PHP | `{{ $title }}` | `{{ esc_html($title) }}` |\n| Text that may already hold entities (`get_the_title()`, ACF formatted text) | `{!! esc_html($title) !!}` (WordPress does not double-encode) | `{{ get_the_title() }}` when you see `&amp;amp;` |\n| URL in `href` \u002F `src` | `{!! esc_url($url) !!}` | `{{ esc_url($url) }}` |\n| Attribute from WordPress | `{!! esc_attr($label) !!}` or `{{ $label }}` | `{{ esc_attr($label) }}` |\n| Trusted rich HTML (post content, WYSIWYG) | `{!! wp_kses_post($html) !!}` | `{!! $html !!}` unfiltered |\n| Data for JavaScript | `@json($data)` (hex-escapes `\u003C`, `>`, `'`, `\"`, `&`), or `wp_add_inline_script()` with `wp_json_encode()` | string-built JS |\n| Component attributes | `$attributes->merge(['href' => $url])` escapes the defaults with `e()`; pass `false` as the second argument when the value comes from `esc_url()` \u002F `esc_attr()` | merging an `esc_url()` value with escaping on |\n\nBound attributes on a component tag (`\u003Cx-link :href=\"$url\">`) that land in the attribute bag are already escaped with `e()` at compile time; do not pass `esc_url()` output there either. Details and a guard test: [references\u002Fblade-escaping.md](references\u002Fblade-escaping.md).\n\n### 2. Sanitise and validate input\n\n- Read explicit keys, never the whole `$_POST`; `wp_unslash()` before sanitising superglobals.\n- Pick the sanitiser by type (`sanitize_text_field`, `sanitize_textarea_field`, `sanitize_email`, `absint`, `sanitize_key`, `esc_url_raw`, `wp_kses_post`). In Acorn controllers, `$request->validate([...])` checks shape; still sanitise what you store.\n- ACF: `acf_save_post()` already filters posted values with `wp_kses_post_deep()` for users without `unfiltered_html`; add `acf\u002Fupdate_value\u002Fkey=…` for type-specific sanitising and `acf\u002Fvalidate_value` for rules (acf-native). Without ACF, `register_post_meta()` with `sanitize_callback` and `auth_callback`.\n- Table of sanitisers, uploads and secrets: [references\u002Finput-and-sql.md](references\u002Finput-and-sql.md).\n\n### 3. Verify intent and authority\n\n- Forms and admin-post: `wp_nonce_field('action', '_name')` + `check_admin_referer('action', '_name')` or `wp_verify_nonce()`; AJAX: `check_ajax_referer()`; REST with cookie auth: the `X-WP-Nonce` header (`wp_rest` nonce) is checked by core.\n- Then `current_user_can()` with the most specific capability (meta capabilities like `edit_post` take the object ID).\n- REST routes: always a real `permission_callback` (WordPress logs `_doing_it_wrong` when it is missing); `__return_true` only for public reads.\n- `wp_ajax_nopriv_*` and public Acorn routes are attacker-controlled traffic: validate everything, expose nothing private.\n- Roles, custom capabilities and CPT mapping: [references\u002Fcapabilities.md](references\u002Fcapabilities.md).\n\n### 4. Prepare every query\n\n`$wpdb->prepare()` with `%s`, `%d`, `%f`, and `%i` for identifiers; `$wpdb->esc_like()` for `LIKE`. Eloquent and the query builder bind parameters; `DB::raw()`, `whereRaw()` and `selectRaw()` must take bindings (`whereRaw('title = ?', [$input])`).\n\n### Profiles\n\n| | `sage-theme` | `acorn-mu-plugin` | `radicle-app` |\n|---|---|---|---|\n| Views to audit | theme `resources\u002Fviews\u002F**` | plugin `resources\u002Fviews\u002F**` (namespaced views) | project `resources\u002Fviews\u002F**`, including native block render views |\n| Extra input surface | ACF fields, theme forms | ACF fields, Livewire components, plugin REST\u002FAcorn routes | block attributes saved from the editor (escape them at render), REST\u002FAcorn routes; no ACF by default |\n| Meta sanitising | ACF hooks | ACF hooks | `register_post_meta()` `sanitize_callback` \u002F `auth_callback` |\n| Guard test location | theme tests | plugin `tests\u002F` | project `tests\u002F` (Pest) |\n\n## Verification\n\n- Grep for double escaping: `rg -n \"\\{\\{\\s*esc_(url|attr|html|textarea|js)(__|_x)?\\(\" \u003Capp>\u002Fresources\u002Fviews` returns nothing; better, keep the guard test from the reference running in `{{runner.test}}`.\n- Grep for unfiltered raw output: `rg -n \"\\{!!\" \u003Capp>\u002Fresources\u002Fviews` and justify each hit (an `esc_*`, `wp_kses*`, `@json`, or a trusted Htmlable).\n- Every handler that writes data shows a nonce (or REST auth) check **and** `current_user_can()`.\n- `rg -n \"\\$wpdb->(query|get_(results|row|var|col))\\(\" \u003Capp>\u002Fapp` hits all go through `prepare()`.\n- Hit protected endpoints as anonymous and as a low-role user (`{{runner.wp}} user create test-sub sub@example.test --role=subscriber`); expect 401\u002F403.\n\n## Failure modes\n\n| Symptom | Cause | Fix |\n|---|---|---|\n| `&#038;` or `&amp;amp;` visible in links or titles | Escaped twice (`{{ esc_url() }}`, or `{{ }}` on text that already has entities) | `{!! esc_url($url) !!}` \u002F `{!! esc_html($text) !!}`; add the guard test |\n| XSS through a WYSIWYG or block attribute | `{!! $html !!}` without filtering | `{!! wp_kses_post($html) !!}` or `wp_kses()` with an allow-list |\n| CSRF on an Acorn `web` route | Acorn's default `web` middleware group ships with the CSRF middleware commented out; `@csrf` alone verifies nothing | Use WordPress nonces in the controller, or append the CSRF middleware with `withMiddleware()` (see acorn-routes-api) |\n| Subscriber can call an admin action | Nonce checked, capability not | Add `current_user_can()` before acting |\n| REST route open to everyone | `permission_callback` missing or `__return_true` on a write | Capability-based callback |\n| `current_user_can('edit_project', $id)` always false | CPT with custom `capability_type` and `map_meta_cap` false | Set `map_meta_cap => true` and grant the primitive caps |\n| SQL injection | Interpolated input in `$wpdb` or `whereRaw()` | `prepare()` \u002F bindings |\n| Secret in the repo | Hard-coded key or committed `.env` | Move to the environment, rotate the key, check `.gitignore` |\n\n## Escalation\n\n- A vulnerability in production code: tell the user immediately with severity, affected endpoint and the fix; do not wait for the end of the task.\n- A third-party plugin is the source: report it to the user with the evidence; suggest updating or replacing it (wp-composer-plugins).\n- Route middleware, auth guards or API design: acorn-routes-api. Livewire action authorisation: acorn-livewire. ACF validation and save flow: acf-native.\n\n\u003C!-- verified:\nvendor\u002Filluminate\u002Fview\u002FCompilers\u002FBladeCompiler.php:124 — echo format 'e(%s)'; vendor\u002Filluminate\u002Fsupport\u002Fhelpers.php:124-138 — e() = htmlspecialchars ENT_QUOTES|ENT_SUBSTITUTE, doubleEncode true;\nwp\u002Fwp-includes\u002Fformatting.php:4587 — esc_url display context turns &amp; into &#038;; :945 _wp_specialchars double_encode false (esc_html\u002Fesc_attr);\nvendor\u002Filluminate\u002Fview\u002FComponentAttributeBag.php:237-243 — merge($defaults, $escape = true) escapes defaults with e(); Compilers\u002FConcerns\u002FCompilesComponents.php:211-219 + ComponentTagCompiler.php:790-795 — bound attributes escaped with e();\nvendor\u002Filluminate\u002Fview\u002FCompilers\u002FConcerns\u002FCompilesJson.php:12 — @json uses JSON_HEX_TAG|APOS|AMP|QUOT;\nadvanced-custom-fields-pro\u002Fincludes\u002Facf-form-functions.php:139-149 — wp_kses_post_deep on $_POST['acf'] without unfiltered_html; includes\u002Fapi\u002Fapi-template.php:26,103-139 — get_field $escape_html, the_field escapes;\nvendor\u002Froots\u002Facorn\u002Fsrc\u002FRoots\u002FAcorn\u002FConfiguration\u002FMiddleware.php:88 (acorn 6.2.0) — PreventRequestForgery commented out of the web group;\nwp\u002Fwp-includes\u002Frest-api.php:122-129 — _doing_it_wrong when permission_callback missing; class-wpdb.php:656-685 — %i identifier placeholder;\nwp\u002Fwp-includes\u002Fclass-wp-post-type.php:610-619 — map_meta_cap defaults true only for capability_type post\u002Fpage;\na Blade single-escape guard test in the reference acorn-mu-plugin project — guard test pattern (generalised in references\u002Fblade-escaping.md).\n-->\n",{"name":5,"description":7},"main","4045a2f672c1d4c1b4a5a5712b468c5d73ca6724","skills\u002Fwp-security-escaping",0,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise","https:\u002F\u002Fhekivo.github.io\u002Fkivo-wise\u002F","https:\u002F\u002Fgithub.com\u002Fhekivo","https:\u002F\u002Fhekivo.dev","2026-11-08 06:10:39",{"source":8,"skillName":5,"commands":54,"prompt":64,"zipAvailable":65},[55,58,61],{"tool":56,"command":57},"npx","npx skills add hekivo\u002Fkivo-wise --skill wp-security-escaping",{"tool":59,"command":60},"bunx","bunx skills add hekivo\u002Fkivo-wise --skill wp-security-escaping",{"tool":62,"command":63},"pnpm","pnpm dlx skills add hekivo\u002Fkivo-wise --skill wp-security-escaping","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-security-escaping\u002FSKILL.md",true,[67,73,77],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fblade-escaping.md","REFERENCE","参考文档",4279,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-security-escaping\u002Freferences\u002Fblade-escaping.md",{"path":74,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":75,"sourceHtmlUrl":76},"references\u002Fcapabilities.md",4060,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-security-escaping\u002Freferences\u002Fcapabilities.md",{"path":78,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":79,"sourceHtmlUrl":80},"references\u002Finput-and-sql.md",3472,"https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-security-escaping\u002Freferences\u002Finput-and-sql.md",[82,106,121,140,164,184],{"skillNo":83,"name":84,"nameZh":6,"description":85,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":86,"categories":87,"keywords":88,"publishedAt":39},"01M6GKWJDFKQM27HTFXX20QVTP","wp-rest-api","Use when building, extending, or debugging WordPress REST API endpoints\u002Froutes: register_rest_route, WP_REST_Controller\u002Fcontroller classes, schema\u002Fargument validation, permission_callback\u002Fauthentication, response shaping, register_rest_field\u002Fregister_meta, or exposing CPTs\u002Ftaxonomies via show_in_rest.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fthird-party\u002Fwp-rest-api\u002FSKILL.md",[],[89,36,90,91,92,93,94,95,37,96,97,98,99,100,101,102,22,103,104,105],"REST","wp rest api","rest api","wordpress","workflows","debugging","authentication","controller","Bash","shaping","filesystem","use","schema","show","register","with","wp-cli",{"skillNo":107,"name":108,"nameZh":6,"description":109,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":112,"publishedAt":39},"01M6GKWEA5BMJZ2RPPEEJTCC3N","wp-abilities-api","Use when working with the WordPress Abilities API (wp_register_ability, wp_register_ability_category, \u002Fwp-json\u002Fwp-abilities\u002Fv1\u002F*, @wordpress\u002Fabilities) including defining abilities, categories, meta, REST exposure, and permissions checks for clients.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fthird-party\u002Fwp-abilities-api\u002FSKILL.md",[],[36,113,114,92,93,31,37,89,97,115,116,99,117,100,103,118,119,104,120,105],"wp abilities api","cli","php","json","node","targets","clients","categories",{"skillNo":122,"name":123,"nameZh":6,"description":124,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":125,"categories":126,"keywords":127,"publishedAt":39},"01M6GKW6VVY73BMZ3JNDMR4CWZ","wp-phpstan","Use when configuring, running or fixing PHPStan in a WordPress project that uses Acorn - phpstan.neon, baseline, szepeviktor\u002Fphpstan-wordpress stubs, larastan, level raising, \"Cannot access property on mixed\", get_field() types, paths for app\u002F. For Pint or Mago formatting use testing-wp; for runtime errors use roots-debugging.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-phpstan\u002FSKILL.md",[],[128,129,92,94,130,131,100,29,132,133,134,135,136,137,138,139],"wp phpstan","testing","baseline","access","get","neon","runtime","formatting","app","paths","types","errors",{"skillNo":141,"name":142,"nameZh":6,"description":143,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":144,"categories":145,"keywords":146,"publishedAt":39},"01M6GKW3JRSRS9N112QFA3SEGT","wp-performance","Use when a WordPress page, query or request is slow or needs profiling - TTFB, slow or N+1 queries, Query Monitor, Server-Timing, wp profile and wp doctor, autoloaded options, Redis object cache hit rate, transients, WP_CACHE_KEY_SALT. Adds the runner and Redis notes on top of the official procedure. For Eloquent query design use acorn-data; for PHP type errors use wp-phpstan.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-performance\u002FSKILL.md",[],[147,148,149,92,150,151,152,153,154,155,156,157,158,100,159,160,161,162,163,139],"performance","wp performance","design","query design","official","notes","monitor","doctor","cache","server","redis","page","queries","runner","query","type","timing",{"skillNo":165,"name":166,"nameZh":6,"description":167,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":168,"categories":169,"keywords":170,"publishedAt":39},"01M6GKVZN243XQB5QWZ5ZKMG7P","wp-hooks-lifecycle","Use when adding, moving or debugging WordPress actions and filters in an Acorn project - add_action\u002Fadd_filter priority and accepted_args, where a hook belongs (setup or filters files vs a provider boot()), load order (mu-plugins, plugins_loaded, after_setup_theme, init), when Acorn boots per profile, hooks that never fire on Acorn routes, REST or Livewire requests (template_redirect, wp_head), save_post firing twice in the block editor, the_content priorities. For ACF hooks use acf-native; for provider structure use acorn-stack.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-hooks-lifecycle\u002FSKILL.md",[],[171,172,173,92,174,175,94,38,89,176,34,100,177,178,179,180,181,29,182,183],"lifecycle","hooks","wp hooks lifecycle","init","boot","stack","never","filters","files","provider","structure","filter","theme",{"skillNo":185,"name":186,"nameZh":6,"description":187,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":188,"categories":189,"keywords":190,"publishedAt":39},"01M6GKVW81V1Q6HV5DK4B0HTS5","wp-composer-plugins","Use when adding, removing, updating or patching WordPress plugins, mu-plugins or themes through Composer - \"install plugin\", wpackagist versus wp-packages.org, installer-paths, a premium or private plugin zip as a Composer package, Composer patches, DISALLOW_FILE_MODS. For Acorn packages use the matching acorn-* skill; for Lando command wiring use lando-wp.","https:\u002F\u002Fgithub.com\u002Fhekivo\u002Fkivo-wise\u002Fblob\u002Fmain\u002Fskills\u002Fwp-composer-plugins\u002FSKILL.md",[],[191,192,193,92,194,195,196,197,198,199,200,201,100,202,203,204,137,205,206,207],"plugins","composer","wp composer plugins","plugin","packages","package","file","patching","command","install plugin","install","installer","matching","as","themes","org","zip"]