[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7BSH0NC40FGPHKXVW3C2WCE":3,"skill-same:01M7BSH0NC40FGPHKXVW3C2WCE":56},{"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":28,"commitSha":29,"skillDirectory":30,"forksCount":31,"repositoryHtmlUrl":32,"repositoryHomepageUrl":6,"ownerHtmlUrl":33,"ownerBlogUrl":6,"ownerDescription":34,"updatedAt":35,"install":36,"resources":49},"01M7BSH0NC40FGPHKXVW3C2WCE","php-best-practices",null,"PHP 8.x modern patterns, PSR standards, and SOLID principles. Use when reviewing PHP code, checking type safety, auditing code quality, or ensuring PHP best practices. Triggers on \"review PHP\", \"check PHP code\", \"audit PHP\", or \"PHP best practices\".","om-scogo\u002Fskillsh-scraper","om-scogo","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F160466840?v=4","01M79AWB6DFVCQ7RK70CS34B96","Om Achrekar","01M79AWB6ZM9SKR8KDH1WSSM22",0,"MIT","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fasyrafhussin-agent-skills\u002Fphp-best-practices\u002FSkill.md",[],[],"2026-11-15 14:19:17",false,"---\nname: php-best-practices\ndescription: PHP 8.x modern patterns, PSR standards, and SOLID principles. Use when reviewing PHP code, checking type safety, auditing code quality, or ensuring PHP best practices. Triggers on \"review PHP\", \"check PHP code\", \"audit PHP\", or \"PHP best practices\".\nlicense: MIT\nmetadata:\n  author: php-community\n  version: \"2.1.0\"\n  phpVersion: \"8.0 - 8.5\"\n---\n\n# PHP Best Practices\n\nModern PHP 8.x patterns, PSR standards, type system best practices, and SOLID principles. Contains 51 rules for writing clean, maintainable PHP code.\n\n## Step 1: Detect PHP Version\n\n**Always check the project's PHP version before giving any advice.** Features vary significantly across 8.0 - 8.5. Never suggest syntax that doesn't exist in the project's version.\n\nCheck `composer.json` for the required PHP version:\n```json\n{ \"require\": { \"php\": \"^8.1\" } }   \u002F\u002F -> 8.1 rules and below\n{ \"require\": { \"php\": \"^8.3\" } }   \u002F\u002F -> 8.3 rules and below\n{ \"require\": { \"php\": \">=8.4\" } }  \u002F\u002F -> 8.4 rules and below\n```\n\nAlso check the runtime version:\n```bash\nphp -v   # e.g. PHP 8.3.12\n```\n\n### Feature Availability by Version\n\n| Feature | Version | Rule Prefix |\n|---------|---------|-------------|\n| Union types, match, nullsafe, named args, constructor promotion, attributes | 8.0+ | `type-`, `modern-` |\n| Enums, readonly properties, intersection types, first-class callables, never, fibers | 8.1+ | `modern-` |\n| Readonly classes, DNF types, true\u002Ffalse\u002Fnull standalone types | 8.2+ | `modern-` |\n| Typed class constants, `#[\\Override]`, `json_validate()` | 8.3+ | `modern-` |\n| Property hooks, asymmetric visibility, `#[\\Deprecated]`, `new` without parens | 8.4+ | `modern-` |\n| Pipe operator `|>` | 8.5+ | `modern-` |\n\n**Only suggest features available in the detected version.** If the user asks about upgrading or newer features, mention what becomes available at each version.\n\n## When to Apply\n\nReference these guidelines when:\n- Writing or reviewing PHP code\n- Implementing classes and interfaces\n- Using PHP 8.x modern features\n- Ensuring type safety\n- Following PSR standards\n- Applying design patterns\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix | Rules |\n|----------|----------|--------|--------|-------|\n| 1 | Type System | CRITICAL | `type-` | 9 |\n| 2 | Modern PHP Features | CRITICAL | `modern-` | 16 |\n| 3 | PSR Standards | HIGH | `psr-` | 6 |\n| 4 | SOLID Principles | HIGH | `solid-` | 5 |\n| 5 | Error Handling | HIGH | `error-` | 5 |\n| 6 | Performance | MEDIUM | `perf-` | 5 |\n| 7 | Security | CRITICAL | `sec-` | 5 |\n\n## Quick Reference\n\n### 1. Type System (CRITICAL) — 9 rules\n\n- `type-strict-mode` - Declare strict types in every file\n- `type-return-types` - Always declare return types\n- `type-parameter-types` - Type all parameters\n- `type-property-types` - Type class properties\n- `type-union-types` - Use union types effectively\n- `type-intersection-types` - Use intersection types\n- `type-nullable-types` - Handle nullable types properly\n- `type-void-never` - Use void\u002Fnever for appropriate return types\n- `type-mixed-avoid` - Avoid mixed type when possible\n\n### 2. Modern PHP Features (CRITICAL) — 16 rules\n\n**8.0+:**\n- `modern-constructor-promotion` - Constructor property promotion\n- `modern-match-expression` - Match over switch\n- `modern-named-arguments` - Named arguments for clarity\n- `modern-nullsafe-operator` - Nullsafe operator (?->)\n- `modern-attributes` - Attributes for metadata\n\n**8.1+:**\n- `modern-enums` - Enums instead of constants\n- `modern-enums-methods` - Enums with methods and interfaces\n- `modern-readonly-properties` - Readonly for immutable data\n- `modern-first-class-callables` - First-class callable syntax\n- `modern-arrow-functions` - Arrow functions (7.4+, pairs well with 8.1 features)\n\n**8.2+:**\n- `modern-readonly-classes` - Readonly classes\n\n**8.3+:**\n- `modern-typed-constants` - Typed class constants (`const string NAME = 'foo'`)\n- `modern-override-attribute` - `#[\\Override]` to catch parent method typos\n\n**8.4+:**\n- `modern-property-hooks` - Property hooks replacing getters\u002Fsetters\n- `modern-asymmetric-visibility` - `public private(set)` for controlled access\n\n**8.5+:**\n- `modern-pipe-operator` - Pipe operator (`|>`) for functional chaining\n\n### 3. PSR Standards (HIGH) — 6 rules\n\n- `psr-4-autoloading` - Follow PSR-4 autoloading\n- `psr-12-coding-style` - Follow PSR-12 coding style\n- `psr-naming-classes` - Class naming conventions\n- `psr-naming-methods` - Method naming conventions\n- `psr-file-structure` - One class per file\n- `psr-namespace-usage` - Proper namespace usage\n\n### 4. SOLID Principles (HIGH) — 5 rules\n\n- `solid-srp` - Single Responsibility: one reason to change\n- `solid-ocp` - Open\u002FClosed: extend, don't modify\n- `solid-lsp` - Liskov Substitution: subtypes must be substitutable\n- `solid-isp` - Interface Segregation: small, focused interfaces\n- `solid-dip` - Dependency Inversion: depend on abstractions\n\n### 5. Error Handling (HIGH) — 5 rules\n\n- `error-custom-exceptions` - Create specific exceptions for different errors\n- `error-exception-hierarchy` - Organize exceptions into meaningful hierarchy\n- `error-try-catch-specific` - Catch specific exceptions, not generic \\Exception\n- `error-finally-cleanup` - Use finally for guaranteed resource cleanup\n- `error-never-suppress` - Never use @ error suppression operator\n\n### 6. Performance (MEDIUM) — 5 rules\n\n- `perf-avoid-globals` - Avoid global variables, use dependency injection\n- `perf-lazy-loading` - Defer expensive operations until needed\n- `perf-array-functions` - Use native array functions over manual loops\n- `perf-string-functions` - Use native string functions over regex\n- `perf-generators` - Use generators for large datasets\n\n### 7. Security (CRITICAL) — 5 rules\n\n- `sec-input-validation` - Validate and sanitize all external input\n- `sec-output-escaping` - Escape output based on context (HTML, JS, URL)\n- `sec-password-hashing` - Use password_hash\u002Fverify, never MD5\u002FSHA1\n- `sec-sql-prepared` - Use prepared statements for all SQL queries\n- `sec-file-uploads` - Validate file type, size, name; store outside web root\n\n## Essential Guidelines\n\nFor detailed examples and explanations, see the rule files:\n\n- [type-strict-mode.md](rules\u002Ftype-strict-mode.md) - Strict types declaration\n- [modern-constructor-promotion.md](rules\u002Fmodern-constructor-promotion.md) - Constructor property promotion\n- [modern-enums.md](rules\u002Fmodern-enums.md) - PHP 8.1+ enums with methods\n- [solid-srp.md](rules\u002Fsolid-srp.md) - Single responsibility principle\n\n### Key Patterns (Quick Reference)\n\n```php\n\u003C?php\ndeclare(strict_types=1);\n\n\u002F\u002F 8.0+ Constructor promotion + readonly (8.1+)\nclass User\n{\n    public function __construct(\n        public readonly string $id,\n        private string $email,\n    ) {}\n}\n\n\u002F\u002F 8.1+ Enums with methods\nenum Status: string\n{\n    case Active = 'active';\n    case Inactive = 'inactive';\n\n    public function label(): string\n    {\n        return match($this) {\n            self::Active => 'Active',\n            self::Inactive => 'Inactive',\n        };\n    }\n}\n\n\u002F\u002F 8.0+ Match expression\n$result = match($status) {\n    'pending' => 'Waiting',\n    'active' => 'Running',\n    default => 'Unknown',\n};\n\n\u002F\u002F 8.0+ Nullsafe operator\n$country = $user?->getAddress()?->getCountry();\n\n\u002F\u002F 8.3+ Typed class constants + #[\\Override]\nclass PaymentService extends BaseService\n{\n    public const string GATEWAY = 'stripe';\n\n    #[\\Override]\n    public function process(): void { \u002F* ... *\u002F }\n}\n\n\u002F\u002F 8.4+ Property hooks + asymmetric visibility\nclass Product\n{\n    public string $name { set => trim($value); }\n    public private(set) float $price;\n}\n\n\u002F\u002F 8.5+ Pipe operator\n$result = $input\n    |> trim(...)\n    |> strtolower(...)\n    |> htmlspecialchars(...);\n```\n\n## Output Format\n\nWhen auditing code, output findings in this format:\n\n```\nfile:line - [category] Description of issue\n```\n\nExample:\n```\nsrc\u002FServices\u002FUserService.php:15 - [type] Missing return type declaration\nsrc\u002FModels\u002FOrder.php:42 - [modern] Use match expression instead of switch\nsrc\u002FControllers\u002FApiController.php:28 - [solid] Class has multiple responsibilities\n```\n\n## How to Use\n\nRead individual rule files for detailed explanations:\n\n```\nrules\u002Fmodern-constructor-promotion.md\nrules\u002Ftype-strict-mode.md\nrules\u002Fsolid-srp.md\n```\n","# PHP Best Practices\n\nModern PHP 8.x patterns, PSR standards, type system best practices, and SOLID principles. Contains 51 rules for writing clean, maintainable PHP code.\n\n## Step 1: Detect PHP Version\n\n**Always check the project's PHP version before giving any advice.** Features vary significantly across 8.0 - 8.5. Never suggest syntax that doesn't exist in the project's version.\n\nCheck `composer.json` for the required PHP version:\n```json\n{ \"require\": { \"php\": \"^8.1\" } }   \u002F\u002F -> 8.1 rules and below\n{ \"require\": { \"php\": \"^8.3\" } }   \u002F\u002F -> 8.3 rules and below\n{ \"require\": { \"php\": \">=8.4\" } }  \u002F\u002F -> 8.4 rules and below\n```\n\nAlso check the runtime version:\n```bash\nphp -v   # e.g. PHP 8.3.12\n```\n\n### Feature Availability by Version\n\n| Feature | Version | Rule Prefix |\n|---------|---------|-------------|\n| Union types, match, nullsafe, named args, constructor promotion, attributes | 8.0+ | `type-`, `modern-` |\n| Enums, readonly properties, intersection types, first-class callables, never, fibers | 8.1+ | `modern-` |\n| Readonly classes, DNF types, true\u002Ffalse\u002Fnull standalone types | 8.2+ | `modern-` |\n| Typed class constants, `#[\\Override]`, `json_validate()` | 8.3+ | `modern-` |\n| Property hooks, asymmetric visibility, `#[\\Deprecated]`, `new` without parens | 8.4+ | `modern-` |\n| Pipe operator `|>` | 8.5+ | `modern-` |\n\n**Only suggest features available in the detected version.** If the user asks about upgrading or newer features, mention what becomes available at each version.\n\n## When to Apply\n\nReference these guidelines when:\n- Writing or reviewing PHP code\n- Implementing classes and interfaces\n- Using PHP 8.x modern features\n- Ensuring type safety\n- Following PSR standards\n- Applying design patterns\n\n## Rule Categories by Priority\n\n| Priority | Category | Impact | Prefix | Rules |\n|----------|----------|--------|--------|-------|\n| 1 | Type System | CRITICAL | `type-` | 9 |\n| 2 | Modern PHP Features | CRITICAL | `modern-` | 16 |\n| 3 | PSR Standards | HIGH | `psr-` | 6 |\n| 4 | SOLID Principles | HIGH | `solid-` | 5 |\n| 5 | Error Handling | HIGH | `error-` | 5 |\n| 6 | Performance | MEDIUM | `perf-` | 5 |\n| 7 | Security | CRITICAL | `sec-` | 5 |\n\n## Quick Reference\n\n### 1. Type System (CRITICAL) — 9 rules\n\n- `type-strict-mode` - Declare strict types in every file\n- `type-return-types` - Always declare return types\n- `type-parameter-types` - Type all parameters\n- `type-property-types` - Type class properties\n- `type-union-types` - Use union types effectively\n- `type-intersection-types` - Use intersection types\n- `type-nullable-types` - Handle nullable types properly\n- `type-void-never` - Use void\u002Fnever for appropriate return types\n- `type-mixed-avoid` - Avoid mixed type when possible\n\n### 2. Modern PHP Features (CRITICAL) — 16 rules\n\n**8.0+:**\n- `modern-constructor-promotion` - Constructor property promotion\n- `modern-match-expression` - Match over switch\n- `modern-named-arguments` - Named arguments for clarity\n- `modern-nullsafe-operator` - Nullsafe operator (?->)\n- `modern-attributes` - Attributes for metadata\n\n**8.1+:**\n- `modern-enums` - Enums instead of constants\n- `modern-enums-methods` - Enums with methods and interfaces\n- `modern-readonly-properties` - Readonly for immutable data\n- `modern-first-class-callables` - First-class callable syntax\n- `modern-arrow-functions` - Arrow functions (7.4+, pairs well with 8.1 features)\n\n**8.2+:**\n- `modern-readonly-classes` - Readonly classes\n\n**8.3+:**\n- `modern-typed-constants` - Typed class constants (`const string NAME = 'foo'`)\n- `modern-override-attribute` - `#[\\Override]` to catch parent method typos\n\n**8.4+:**\n- `modern-property-hooks` - Property hooks replacing getters\u002Fsetters\n- `modern-asymmetric-visibility` - `public private(set)` for controlled access\n\n**8.5+:**\n- `modern-pipe-operator` - Pipe operator (`|>`) for functional chaining\n\n### 3. PSR Standards (HIGH) — 6 rules\n\n- `psr-4-autoloading` - Follow PSR-4 autoloading\n- `psr-12-coding-style` - Follow PSR-12 coding style\n- `psr-naming-classes` - Class naming conventions\n- `psr-naming-methods` - Method naming conventions\n- `psr-file-structure` - One class per file\n- `psr-namespace-usage` - Proper namespace usage\n\n### 4. SOLID Principles (HIGH) — 5 rules\n\n- `solid-srp` - Single Responsibility: one reason to change\n- `solid-ocp` - Open\u002FClosed: extend, don't modify\n- `solid-lsp` - Liskov Substitution: subtypes must be substitutable\n- `solid-isp` - Interface Segregation: small, focused interfaces\n- `solid-dip` - Dependency Inversion: depend on abstractions\n\n### 5. Error Handling (HIGH) — 5 rules\n\n- `error-custom-exceptions` - Create specific exceptions for different errors\n- `error-exception-hierarchy` - Organize exceptions into meaningful hierarchy\n- `error-try-catch-specific` - Catch specific exceptions, not generic \\Exception\n- `error-finally-cleanup` - Use finally for guaranteed resource cleanup\n- `error-never-suppress` - Never use @ error suppression operator\n\n### 6. Performance (MEDIUM) — 5 rules\n\n- `perf-avoid-globals` - Avoid global variables, use dependency injection\n- `perf-lazy-loading` - Defer expensive operations until needed\n- `perf-array-functions` - Use native array functions over manual loops\n- `perf-string-functions` - Use native string functions over regex\n- `perf-generators` - Use generators for large datasets\n\n### 7. Security (CRITICAL) — 5 rules\n\n- `sec-input-validation` - Validate and sanitize all external input\n- `sec-output-escaping` - Escape output based on context (HTML, JS, URL)\n- `sec-password-hashing` - Use password_hash\u002Fverify, never MD5\u002FSHA1\n- `sec-sql-prepared` - Use prepared statements for all SQL queries\n- `sec-file-uploads` - Validate file type, size, name; store outside web root\n\n## Essential Guidelines\n\nFor detailed examples and explanations, see the rule files:\n\n- [type-strict-mode.md](rules\u002Ftype-strict-mode.md) - Strict types declaration\n- [modern-constructor-promotion.md](rules\u002Fmodern-constructor-promotion.md) - Constructor property promotion\n- [modern-enums.md](rules\u002Fmodern-enums.md) - PHP 8.1+ enums with methods\n- [solid-srp.md](rules\u002Fsolid-srp.md) - Single responsibility principle\n\n### Key Patterns (Quick Reference)\n\n```php\n\u003C?php\ndeclare(strict_types=1);\n\n\u002F\u002F 8.0+ Constructor promotion + readonly (8.1+)\nclass User\n{\n    public function __construct(\n        public readonly string $id,\n        private string $email,\n    ) {}\n}\n\n\u002F\u002F 8.1+ Enums with methods\nenum Status: string\n{\n    case Active = 'active';\n    case Inactive = 'inactive';\n\n    public function label(): string\n    {\n        return match($this) {\n            self::Active => 'Active',\n            self::Inactive => 'Inactive',\n        };\n    }\n}\n\n\u002F\u002F 8.0+ Match expression\n$result = match($status) {\n    'pending' => 'Waiting',\n    'active' => 'Running',\n    default => 'Unknown',\n};\n\n\u002F\u002F 8.0+ Nullsafe operator\n$country = $user?->getAddress()?->getCountry();\n\n\u002F\u002F 8.3+ Typed class constants + #[\\Override]\nclass PaymentService extends BaseService\n{\n    public const string GATEWAY = 'stripe';\n\n    #[\\Override]\n    public function process(): void { \u002F* ... *\u002F }\n}\n\n\u002F\u002F 8.4+ Property hooks + asymmetric visibility\nclass Product\n{\n    public string $name { set => trim($value); }\n    public private(set) float $price;\n}\n\n\u002F\u002F 8.5+ Pipe operator\n$result = $input\n    |> trim(...)\n    |> strtolower(...)\n    |> htmlspecialchars(...);\n```\n\n## Output Format\n\nWhen auditing code, output findings in this format:\n\n```\nfile:line - [category] Description of issue\n```\n\nExample:\n```\nsrc\u002FServices\u002FUserService.php:15 - [type] Missing return type declaration\nsrc\u002FModels\u002FOrder.php:42 - [modern] Use match expression instead of switch\nsrc\u002FControllers\u002FApiController.php:28 - [solid] Class has multiple responsibilities\n```\n\n## How to Use\n\nRead individual rule files for detailed explanations:\n\n```\nrules\u002Fmodern-constructor-promotion.md\nrules\u002Ftype-strict-mode.md\nrules\u002Fsolid-srp.md\n```\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25,"version":26,"phpVersion":27},"php-community","2.1.0","8.0 - 8.5","main","8859218955d9504cd18b59e7892100718039d3b4","data\u002Fskills\u002Fasyrafhussin-agent-skills\u002Fphp-best-practices",1,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper","https:\u002F\u002Fgithub.com\u002Fom-scogo","SDE-1 @ Scogo ","2026-07-18 12:22:46",{"source":8,"skillName":5,"commands":37,"prompt":47,"zipAvailable":48},[38,41,44],{"tool":39,"command":40},"npx","npx skills add om-scogo\u002Fskillsh-scraper --skill php-best-practices",{"tool":42,"command":43},"bunx","bunx skills add om-scogo\u002Fskillsh-scraper --skill php-best-practices",{"tool":45,"command":46},"pnpm","pnpm dlx skills add om-scogo\u002Fskillsh-scraper --skill php-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fasyrafhussin-agent-skills\u002Fphp-best-practices\u002FSkill.md",true,[50],{"path":51,"resourceType":52,"resourceTypeDesc":53,"sizeBytes":54,"sourceHtmlUrl":55},"metadata.json","REFERENCE","参考文档",482,"https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fasyrafhussin-agent-skills\u002Fphp-best-practices\u002Fmetadata.json",[57,64,69,76,81,88],{"skillNo":58,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":61,"categories":62,"keywords":63,"publishedAt":19},"01M7D6MC9FAAEV4CMNYX8W7JTG","arxiv-search","Search arXiv physics, math, and computer science preprints using natural language queries. Powered by Valyu semantic search.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002Fskills\u002Farxiv-search\u002FSKILL.md",[],[],{"skillNo":65,"name":59,"nameZh":6,"description":60,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":66,"categories":67,"keywords":68,"publishedAt":19},"01M7D6M85CKKN87TA98VCQV4H7","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fyorkeccak-scientific-skills\u002Farxiv-search\u002FSkill.md",[],[],{"skillNo":70,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":73,"categories":74,"keywords":75,"publishedAt":19},"01M7D4ZTCS4DR3CE4JY06X84T2","working-with-legacy-code","Safely change and test untested codebases using Feathers' \"Working Effectively with Legacy Code\". Use when the user mentions \"legacy code\", \"no tests\", \"untested codebase\", \"how do I test this\", \"seams\", \"characterization tests\", \"golden master\", \"sprout method\", \"afraid to change this code\", \"monster method\", \"dependency breaking\", or \"inherited a messy codebase\". Also trigger when changing code without tests safely, getting a class under test when constructors, statics, or singletons block it, adding features to tangled modules, or planning incremental test coverage for an old codebase. Covers the legacy-code change algorithm, seams, characterization tests, sprout\u002Fwrap, and dependency-breaking techniques. For refactoring code that already has tests, see refactoring-patterns. For day-to-day code quality, see clean-code.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002Fworking-with-legacy-code\u002FSKILL.md",[],[],{"skillNo":77,"name":71,"nameZh":6,"description":72,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":78,"categories":79,"keywords":80,"publishedAt":19},"01M7D4ZHZKJD2RSNGAF63V14P4","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fworking-with-legacy-code\u002FSkill.md",[],[],{"skillNo":82,"name":83,"nameZh":6,"description":84,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":85,"categories":86,"keywords":87,"publishedAt":19},"01M7D4ZB4CJBFW5JE67CPH2QRV","web-typography","Select, pair, and implement typefaces for web projects. Use when the user mentions \"font pairing\", \"which typeface\", \"line height\", \"responsive typography\", \"web font loading\", \"type hierarchy\", \"variable fonts\", \"FOUT\u002FFOIT\", \"typographic scale\", or \"the text is hard to read\". Also trigger when choosing between system fonts and web fonts, optimizing font-loading performance, or designing readable long-form content. Covers readability evaluation, CSS implementation, and performance optimization. For overall UI design systems, see refactoring-ui. For dramatic typographic experiences, see top-design.","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002Fweb-typography\u002FSKILL.md",[],[],{"skillNo":89,"name":83,"nameZh":6,"description":84,"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},"01M7D4Z4MVYVY3NMJ18BNV6WNA","https:\u002F\u002Fgithub.com\u002Fom-scogo\u002Fskillsh-scraper\u002Fblob\u002Fmain\u002Fdata\u002Fskills\u002Fwondelai-skills\u002Fweb-typography\u002FSkill.md",[],[]]