[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M70DD2XKSJFZ17MCGEQMT2SQ":3,"skill-same:01M70DD2XKSJFZ17MCGEQMT2SQ":84},{"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":37,"linkOnly":38,"markdownContent":39,"markdownBody":40,"frontMatter":41,"refName":42,"commitSha":43,"skillDirectory":44,"forksCount":14,"repositoryHtmlUrl":45,"repositoryHomepageUrl":46,"ownerHtmlUrl":47,"ownerBlogUrl":6,"ownerDescription":48,"updatedAt":49,"install":50,"resources":63},"01M70DD2XKSJFZ17MCGEQMT2SQ","wp-phpstan",null,"Use when configuring, running, or fixing PHPStan static analysis in WordPress projects (plugins\u002Fthemes\u002Fsites): phpstan.neon setup, baselines, WordPress-specific typing, and handling third-party plugin classes.","Spaghetti-Dojo\u002Ftosuto","Spaghetti-Dojo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F171473277?v=4","01M70D7HTSB1T6F7P71CN4CA4K","Spaghetti Dojo","01M70D7HVFH1GMH0R0ZFAZRXM6",0,"GPL-2.0","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-phpstan\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36],"wp phpstan","use","setup","static analysis","third-party","party","plugins","plugin","analysis","when","themes","sites","neon","wordpress","static","projects","typing","running","2026-11-10 10:12:30",false,"---\nname: wp-phpstan\ndescription: \"Use when configuring, running, or fixing PHPStan static analysis in WordPress projects (plugins\u002Fthemes\u002Fsites): phpstan.neon setup, baselines, WordPress-specific typing, and handling third-party plugin classes.\"\n---\n\n# WP PHPStan\n\n## When to use\n\nUse this skill when working on PHPStan in a WordPress codebase, for example:\n\n- setting up or updating `phpstan.neon` \u002F `phpstan.neon.dist`\n- generating or updating `phpstan-baseline.neon`\n- fixing PHPStan errors via WordPress-friendly PHPDoc (REST requests, hooks, query results)\n- handling third-party plugin\u002Ftheme classes safely (stubs\u002Fautoload\u002Ftargeted ignores)\n\n## Inputs required\n\n- `wp-project-triage` output (run first if you haven't)\n- Whether adding\u002Fupdating Composer dev dependencies is allowed (stubs).\n- Whether changing the baseline is allowed for this task.\n\n## Procedure\n\n### 0) Discover PHPStan entrypoints (deterministic)\n1. Inspect PHPStan setup (config, baseline, scripts):\n   - `node skills\u002Fwp-phpstan\u002Fscripts\u002Fphpstan_inspect.mjs`\n\nPrefer the repo’s existing `composer` script (e.g. `composer run phpstan`) when present.\n\n### 1) Ensure WordPress core stubs are loaded\n\n`szepeviktor\u002Fphpstan-wordpress` or `php-stubs\u002Fwordpress-stubs` are effectively required for most WordPress plugin\u002Ftheme repos. Without it, expect a high volume of errors about unknown WordPress core functions.\n\n- Confirm the package is installed (see `composer.dependencies` in the inspect report).\n- Ensure the PHPStan config references the stubs (see `references\u002Fthird-party-classes.md`).\n\n### 2) Ensure a sane `phpstan.neon` for WordPress projects\n\n- Keep `paths` focused on first-party code (plugin\u002Ftheme directories).\n- Exclude generated and vendored code (`vendor\u002F`, `node_modules\u002F`, build artifacts, tests unless explicitly analyzed).\n- Keep `ignoreErrors` entries narrow and documented.\n\nSee:\n- `references\u002Fconfiguration.md`\n\n### 3) Fix errors with WordPress-specific typing (preferred)\n\nPrefer correcting types over ignoring errors. Common WP patterns that need help:\n\n- REST endpoints: type request parameters using `WP_REST_Request\u003C...>`\n- Hook callbacks: add accurate `@param` types for callback args\n- Database results and iterables: use array shapes or object shapes for query results\n- Action Scheduler: type `$args` array shapes for job callbacks\n\nSee:\n- `references\u002Fwordpress-annotations.md`\n\n### 4) Handle third-party plugin\u002Ftheme classes (only when needed)\n\nWhen integrating with plugins\u002Fthemes not present in the analysis environment:\n\n- First, confirm the dependency is real (installed\u002Frequired).\n- Prefer plugin-specific stubs already used in the repo (common examples: `php-stubs\u002Fwoocommerce-stubs`, `php-stubs\u002Facf-pro-stubs`).\n- If PHPStan still cannot resolve classes, add targeted `ignoreErrors` patterns for the specific vendor prefix.\n\nSee:\n- `references\u002Fthird-party-classes.md`\n\n### 5) Baseline management (use as a migration tool, not a trash bin)\n\n- Generate a baseline once for legacy code, then reduce it over time.\n- Do not “baseline” newly introduced errors.\n\nSee:\n- `references\u002Fconfiguration.md`\n\n## Verification\n\n- Run PHPStan using the discovered command (`composer run ...` or `vendor\u002Fbin\u002Fphpstan analyse`).\n- Confirm the baseline file (if used) is included and didn’t grow unexpectedly.\n- Re-run after changing `ignoreErrors` to ensure patterns are not masking unrelated issues.\n\n## Failure modes \u002F debugging\n\n- “Class not found”:\n  - confirm autoloading\u002Fstubs, or add a narrow ignore pattern\n- Huge error counts after enabling PHPStan:\n  - reduce `paths`, add `excludePaths`, start at a lower level, then ratchet up\n- Inconsistent types around hooks \u002F REST params:\n  - add explicit PHPDoc (see references) rather than runtime guards\n\n## Escalation\n\n- If a type depends on a third-party plugin API you can’t confirm, ask for the dependency version or source before inventing types.\n- If fixing requires adding new Composer dependencies (stubs\u002Fextensions), confirm it with the user first.\n","# WP PHPStan\n\n## When to use\n\nUse this skill when working on PHPStan in a WordPress codebase, for example:\n\n- setting up or updating `phpstan.neon` \u002F `phpstan.neon.dist`\n- generating or updating `phpstan-baseline.neon`\n- fixing PHPStan errors via WordPress-friendly PHPDoc (REST requests, hooks, query results)\n- handling third-party plugin\u002Ftheme classes safely (stubs\u002Fautoload\u002Ftargeted ignores)\n\n## Inputs required\n\n- `wp-project-triage` output (run first if you haven't)\n- Whether adding\u002Fupdating Composer dev dependencies is allowed (stubs).\n- Whether changing the baseline is allowed for this task.\n\n## Procedure\n\n### 0) Discover PHPStan entrypoints (deterministic)\n1. Inspect PHPStan setup (config, baseline, scripts):\n   - `node skills\u002Fwp-phpstan\u002Fscripts\u002Fphpstan_inspect.mjs`\n\nPrefer the repo’s existing `composer` script (e.g. `composer run phpstan`) when present.\n\n### 1) Ensure WordPress core stubs are loaded\n\n`szepeviktor\u002Fphpstan-wordpress` or `php-stubs\u002Fwordpress-stubs` are effectively required for most WordPress plugin\u002Ftheme repos. Without it, expect a high volume of errors about unknown WordPress core functions.\n\n- Confirm the package is installed (see `composer.dependencies` in the inspect report).\n- Ensure the PHPStan config references the stubs (see `references\u002Fthird-party-classes.md`).\n\n### 2) Ensure a sane `phpstan.neon` for WordPress projects\n\n- Keep `paths` focused on first-party code (plugin\u002Ftheme directories).\n- Exclude generated and vendored code (`vendor\u002F`, `node_modules\u002F`, build artifacts, tests unless explicitly analyzed).\n- Keep `ignoreErrors` entries narrow and documented.\n\nSee:\n- `references\u002Fconfiguration.md`\n\n### 3) Fix errors with WordPress-specific typing (preferred)\n\nPrefer correcting types over ignoring errors. Common WP patterns that need help:\n\n- REST endpoints: type request parameters using `WP_REST_Request\u003C...>`\n- Hook callbacks: add accurate `@param` types for callback args\n- Database results and iterables: use array shapes or object shapes for query results\n- Action Scheduler: type `$args` array shapes for job callbacks\n\nSee:\n- `references\u002Fwordpress-annotations.md`\n\n### 4) Handle third-party plugin\u002Ftheme classes (only when needed)\n\nWhen integrating with plugins\u002Fthemes not present in the analysis environment:\n\n- First, confirm the dependency is real (installed\u002Frequired).\n- Prefer plugin-specific stubs already used in the repo (common examples: `php-stubs\u002Fwoocommerce-stubs`, `php-stubs\u002Facf-pro-stubs`).\n- If PHPStan still cannot resolve classes, add targeted `ignoreErrors` patterns for the specific vendor prefix.\n\nSee:\n- `references\u002Fthird-party-classes.md`\n\n### 5) Baseline management (use as a migration tool, not a trash bin)\n\n- Generate a baseline once for legacy code, then reduce it over time.\n- Do not “baseline” newly introduced errors.\n\nSee:\n- `references\u002Fconfiguration.md`\n\n## Verification\n\n- Run PHPStan using the discovered command (`composer run ...` or `vendor\u002Fbin\u002Fphpstan analyse`).\n- Confirm the baseline file (if used) is included and didn’t grow unexpectedly.\n- Re-run after changing `ignoreErrors` to ensure patterns are not masking unrelated issues.\n\n## Failure modes \u002F debugging\n\n- “Class not found”:\n  - confirm autoloading\u002Fstubs, or add a narrow ignore pattern\n- Huge error counts after enabling PHPStan:\n  - reduce `paths`, add `excludePaths`, start at a lower level, then ratchet up\n- Inconsistent types around hooks \u002F REST params:\n  - add explicit PHPDoc (see references) rather than runtime guards\n\n## Escalation\n\n- If a type depends on a third-party plugin API you can’t confirm, ask for the dependency version or source before inventing types.\n- If fixing requires adding new Composer dependencies (stubs\u002Fextensions), confirm it with the user first.\n",{"name":5,"description":7},"main","c5c9f6be96a3086970a7b9e89f09a99a9bf5d585",".claude\u002Fskills\u002Fwp-phpstan","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto","https:\u002F\u002Fspaghetti-dojo.github.io\u002Ftosuto\u002F","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo","A place where to experiment","2026-05-27 16:04:29",{"source":8,"skillName":5,"commands":51,"prompt":61,"zipAvailable":62},[52,55,58],{"tool":53,"command":54},"npx","npx skills add Spaghetti-Dojo\u002Ftosuto --skill wp-phpstan",{"tool":56,"command":57},"bunx","bunx skills add Spaghetti-Dojo\u002Ftosuto --skill wp-phpstan",{"tool":59,"command":60},"pnpm","pnpm dlx skills add Spaghetti-Dojo\u002Ftosuto --skill wp-phpstan","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-phpstan\u002FSKILL.md",true,[64,70,74,78],{"path":65,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":68,"sourceHtmlUrl":69},"references\u002Fconfiguration.md","REFERENCE","参考文档",1366,"https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-phpstan\u002Freferences\u002Fconfiguration.md",{"path":71,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":72,"sourceHtmlUrl":73},"references\u002Fthird-party-classes.md",2901,"https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-phpstan\u002Freferences\u002Fthird-party-classes.md",{"path":75,"resourceType":66,"resourceTypeDesc":67,"sizeBytes":76,"sourceHtmlUrl":77},"references\u002Fwordpress-annotations.md",3041,"https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-phpstan\u002Freferences\u002Fwordpress-annotations.md",{"path":79,"resourceType":80,"resourceTypeDesc":81,"sizeBytes":82,"sourceHtmlUrl":83},"scripts\u002Fphpstan_inspect.mjs","SCRIPT","脚本",8033,"https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-phpstan\u002Fscripts\u002Fphpstan_inspect.mjs",[85,103,129,161,183,205],{"skillNo":86,"name":87,"nameZh":6,"description":88,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":89,"categories":90,"keywords":96,"publishedAt":37},"01M70DDJXEN0BM5TZPB5GF9TA6","wpds","Use when building UIs leveraging the WordPress Design System (WPDS) and its components, tokens, patterns, etc.","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwpds\u002FSKILL.md",[91],{"categoryNo":92,"categoryName":93,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000015","视觉设计","SCENARIO","使用场景",[87,32,97,98,99,20,100,28,101,102],"system","tokens","design","design system","patterns","components",{"skillNo":104,"name":105,"nameZh":6,"description":106,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":107,"categories":108,"keywords":112,"publishedAt":37},"01M70DDG4PMCJVM2MAH4BQ4F6C","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\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-wpcli-and-ops\u002FSKILL.md",[109],{"categoryNo":110,"categoryName":111,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000023","Skill与智能体开发",[113,114,115,116,117,118,32,119,120,20,28,121,122,123,26,124,125,126,127,128],"ops","wp wpcli and ops","import","theme","for","db","search","wp-cli","automation","cache","with","cli","scripting","operations","safe","export",{"skillNo":130,"name":131,"nameZh":6,"description":132,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":133,"categories":134,"keywords":143,"publishedAt":37},"01M70DDD8SMSRYCT6CMZAZ79V8","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\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-rest-api\u002FSKILL.md",[135,138],{"categoryNo":136,"categoryName":137,"taxonomyType":94,"taxonomyTypeDesc":95},"01JBSEEDCAT000000000000010","后端与接口",{"categoryNo":139,"categoryName":140,"taxonomyType":141,"taxonomyTypeDesc":142},"01JBSEEDCAT000000000000030","开发工程师","PROFESSION","适用职业",[144,145,146,147,148,149,32,150,151,152,20,153,154,28,155,156,157,158,159,160],"wp rest api","api","REST","rest api","show","register","authentication","Meta","schema","taxonomies","debugging","route","shaping","controller","endpoints","callback","argument",{"skillNo":162,"name":163,"nameZh":6,"description":164,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":165,"categories":166,"keywords":167,"publishedAt":37},"01M70DDB298BG7A74YZ3XEWHQY","wp-project-triage","Use when you need a deterministic inspection of a WordPress repository (plugin\u002Ftheme\u002Fblock theme\u002FWP core\u002FGutenberg\u002Ffull site) including tooling\u002Ftests\u002Fversion hints, and a structured JSON report to guide workflows and guardrails.","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-project-triage\u002FSKILL.md",[],[168,169,170,171,116,172,32,173,174,175,20,176,28,177,178,26,179,180,181,182],"project","wp project triage","triage","deterministic","core","Guardrails","tests","inspection","workflows","you","version","tooling","json","repository","report",{"skillNo":184,"name":185,"nameZh":6,"description":186,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":187,"categories":188,"keywords":190,"publishedAt":37},"01M70DD924A87SK645B5HKE39A","wp-plugin-development","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.","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-plugin-development\u002FSKILL.md",[189],{"categoryNo":136,"categoryName":137,"taxonomyType":94,"taxonomyTypeDesc":95},[191,192,193,26,194,32,195,196,20,28,197,198,145,199,200,201,202,203,25,204],"development","plugin development","wp plugin development","uninstall","packaging","hooks","tasks","architecture","capabilities","admin","storage","release","settings","data storage",{"skillNo":206,"name":207,"nameZh":6,"description":208,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":209,"categories":210,"keywords":211,"publishedAt":37},"01M70DD5JTD6MBJV9KAQBZ5191","wp-playground","Use for WordPress Playground workflows: fast disposable WP instances in the browser or locally via @wp-playground\u002Fcli (server, run-blueprint, build-snapshot), auto-mounting plugins\u002Fthemes, switching WP\u002FPHP versions, blueprints, and debugging (Xdebug).","https:\u002F\u002Fgithub.com\u002FSpaghetti-Dojo\u002Ftosuto\u002Fblob\u002Fmain\u002F.claude\u002Fskills\u002Fwp-playground\u002FSKILL.md",[],[212,213,214,117,32,29,215,20,216,217,154,176,218,219,124,220,221,222,223,25],"playground","wp playground","instances","auto","switching","Blueprint","browser","server","via","build","run","snapshot"]