[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M7FDR13MCDGSBPA98R55P45Y":3,"skill-same:01M7FDR13MCDGSBPA98R55P45Y":85},{"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":26,"commitSha":27,"skillDirectory":28,"forksCount":14,"repositoryHtmlUrl":29,"repositoryHomepageUrl":6,"ownerHtmlUrl":30,"ownerBlogUrl":31,"ownerDescription":6,"updatedAt":32,"install":33,"resources":46},"01M7FDR13MCDGSBPA98R55P45Y","testing-best-practices",null,"Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.","Dommmin\u002Fsh-site","Dommmin","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F93583747?v=4","01M7CDE9G4BYYW0GJCBBYG5N7T","Dominik","01M7FDFT9DG7ZC37NZX6BXMZ5H",0,"MIT","https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002FSKILL.md",[],[],"2026-11-16 10:05:34",false,"---\nname: testing-best-practices\ndescription: \"Laravel test design and review. Use when selecting coverage, naming or structuring tests, choosing assertions or test data, isolating dependencies, testing HTTP or security boundaries, improving suite performance, or reviewing test value. Use framework guidance or search-docs for Pest and PHPUnit syntax.\"\nlicense: MIT\nmetadata:\n  author: laravel\n---\n\n# Testing Best Practices\n\nThis skill provides rules for designing Laravel tests. Each rule file explains what to do and why. Use `search-docs` for Laravel and Pest API syntax.\nThis project uses Pest. Follow the corresponding guidance in each rule.\n\n## Consistency First\n\nRead nearby tests before you choose syntax and organization.\n\nA pattern repeated throughout the project is a convention, and project conventions take precedence over this skill. Follow them and give new tests the same structure.\n\nThese rules govern the tests you write now. An existing test that follows a project convention is not defective merely because it conflicts with this skill. Do not delete or rewrite it. If the convention has drawbacks, explain them and let the user decide.\n\n## What to Test\n\nRead this section before you write a test.\n\n- Test observable behavior and application contracts. A test must pass after an implementation change if the behavior stays the same.\n- Cover every changed decision and each applicable high-value failure mode. A decision is a branch, a validation, a calculation, or an authorization.\n- Exercise declarations through behavior instead of repeating their text.\n- Leave framework behavior to framework tests. Testing project configuration is not testing the framework. A constrained relationship, cast, scope, or validation rule belongs to this project.\n- Keep every test that can detect a distinct defect. When two tests detect the same defect, trim the higher-layer test to one case and report the duplication. Do not delete an existing test.\n- Write a feature test first. Write a unit test only for logic that does not use the framework.\n- Write a feature test for every behavior reachable through a request. Real-browser tests require `pestphp\u002Fpest-plugin-browser` and a browser download, neither of which this project installs. Mention the package only if the user asks for a real-browser test.\n- Judge an architecture test by the convention it protects, not by the rules above. An `arch()` test declares a rule for an entire directory, such as the parent class of every model, the classes that may use an enum, or the methods every factory declares. It intentionally checks declarations and fails when a new file breaks the convention.\n- Use the test tools that the project installs. Add a new test dependency, plugin, or browser only after the user asks for it.\n\n## How to Apply\n\n1. Read the code under test. Read the tests in the same directory. Identify every decision in the code.\n2. Select every applicable branch in the rule index. Read every selected rule file.\n3. Report each defect in the code before you write a test. Examples are a method with no body, a policy that no action calls, and a write action with no validation. Test the actual behavior. Report the defect to the user.\n4. Write the tests. Run the smallest set of tests that covers the change. The tests must pass.\n5. Check every applicable item in `rules\u002Freview.md` and every selected rule file. Resolve every mismatch before completion.\n\n## Rule Index\n\nMost changes need more than one rule file.\n\n| Subject | Rule File |\n| --- | --- |\n| Test framework features that may already do the work | [`rules\u002Ffinding-features.md`](rules\u002Ffinding-features.md) |\n| File layout, test names, and groups | [`rules\u002Fnaming.md`](rules\u002Fnaming.md) |\n| Arrange-act-assert and choosing the correct assertion | [`rules\u002Fassertions.md`](rules\u002Fassertions.md) |\n| Endpoint coverage, authentication, authorization, tenant isolation, validation, and browser tests | [`rules\u002Fendpoint-tests.md`](rules\u002Fendpoint-tests.md) |\n| Factories, test data ownership, and repeated input values | [`rules\u002Ftest-data.md`](rules\u002Ftest-data.md) |\n| Fakes, mocks, outbound HTTP, time, randomness, and databases | [`rules\u002Fisolation.md`](rules\u002Fisolation.md) |\n| Escaping, injection, cross-tenant access, and privilege checks | [`rules\u002Fsecurity.md`](rules\u002Fsecurity.md) |\n| Environment and CI settings for a slow suite | [`rules\u002Fperformance.md`](rules\u002Fperformance.md) |\n| Reviewing a test or suite | [`rules\u002Freview.md`](rules\u002Freview.md) |\n","# Testing Best Practices\n\nThis skill provides rules for designing Laravel tests. Each rule file explains what to do and why. Use `search-docs` for Laravel and Pest API syntax.\nThis project uses Pest. Follow the corresponding guidance in each rule.\n\n## Consistency First\n\nRead nearby tests before you choose syntax and organization.\n\nA pattern repeated throughout the project is a convention, and project conventions take precedence over this skill. Follow them and give new tests the same structure.\n\nThese rules govern the tests you write now. An existing test that follows a project convention is not defective merely because it conflicts with this skill. Do not delete or rewrite it. If the convention has drawbacks, explain them and let the user decide.\n\n## What to Test\n\nRead this section before you write a test.\n\n- Test observable behavior and application contracts. A test must pass after an implementation change if the behavior stays the same.\n- Cover every changed decision and each applicable high-value failure mode. A decision is a branch, a validation, a calculation, or an authorization.\n- Exercise declarations through behavior instead of repeating their text.\n- Leave framework behavior to framework tests. Testing project configuration is not testing the framework. A constrained relationship, cast, scope, or validation rule belongs to this project.\n- Keep every test that can detect a distinct defect. When two tests detect the same defect, trim the higher-layer test to one case and report the duplication. Do not delete an existing test.\n- Write a feature test first. Write a unit test only for logic that does not use the framework.\n- Write a feature test for every behavior reachable through a request. Real-browser tests require `pestphp\u002Fpest-plugin-browser` and a browser download, neither of which this project installs. Mention the package only if the user asks for a real-browser test.\n- Judge an architecture test by the convention it protects, not by the rules above. An `arch()` test declares a rule for an entire directory, such as the parent class of every model, the classes that may use an enum, or the methods every factory declares. It intentionally checks declarations and fails when a new file breaks the convention.\n- Use the test tools that the project installs. Add a new test dependency, plugin, or browser only after the user asks for it.\n\n## How to Apply\n\n1. Read the code under test. Read the tests in the same directory. Identify every decision in the code.\n2. Select every applicable branch in the rule index. Read every selected rule file.\n3. Report each defect in the code before you write a test. Examples are a method with no body, a policy that no action calls, and a write action with no validation. Test the actual behavior. Report the defect to the user.\n4. Write the tests. Run the smallest set of tests that covers the change. The tests must pass.\n5. Check every applicable item in `rules\u002Freview.md` and every selected rule file. Resolve every mismatch before completion.\n\n## Rule Index\n\nMost changes need more than one rule file.\n\n| Subject | Rule File |\n| --- | --- |\n| Test framework features that may already do the work | [`rules\u002Ffinding-features.md`](rules\u002Ffinding-features.md) |\n| File layout, test names, and groups | [`rules\u002Fnaming.md`](rules\u002Fnaming.md) |\n| Arrange-act-assert and choosing the correct assertion | [`rules\u002Fassertions.md`](rules\u002Fassertions.md) |\n| Endpoint coverage, authentication, authorization, tenant isolation, validation, and browser tests | [`rules\u002Fendpoint-tests.md`](rules\u002Fendpoint-tests.md) |\n| Factories, test data ownership, and repeated input values | [`rules\u002Ftest-data.md`](rules\u002Ftest-data.md) |\n| Fakes, mocks, outbound HTTP, time, randomness, and databases | [`rules\u002Fisolation.md`](rules\u002Fisolation.md) |\n| Escaping, injection, cross-tenant access, and privilege checks | [`rules\u002Fsecurity.md`](rules\u002Fsecurity.md) |\n| Environment and CI settings for a slow suite | [`rules\u002Fperformance.md`](rules\u002Fperformance.md) |\n| Reviewing a test or suite | [`rules\u002Freview.md`](rules\u002Freview.md) |\n",{"name":5,"license":15,"metadata":24,"description":7},{"author":25},"laravel","main","1bd2039ce81806502a07c06da654de0f24a52105",".github\u002Fskills\u002Ftesting-best-practices","https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site","https:\u002F\u002Fgithub.com\u002FDommmin","https:\u002F\u002Fdominik-dev.pl\u002F","2026-10-23 18:01:22",{"source":8,"skillName":5,"commands":34,"prompt":44,"zipAvailable":45},[35,38,41],{"tool":36,"command":37},"npx","npx skills add Dommmin\u002Fsh-site --skill testing-best-practices",{"tool":39,"command":40},"bunx","bunx skills add Dommmin\u002Fsh-site --skill testing-best-practices",{"tool":42,"command":43},"pnpm","pnpm dlx skills add Dommmin\u002Fsh-site --skill testing-best-practices","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002FSKILL.md",true,[47,53,57,61,65,69,73,77,81],{"path":48,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":51,"sourceHtmlUrl":52},"rules\u002Fassertions.md","REFERENCE","参考文档",3400,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Fassertions.md",{"path":54,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":55,"sourceHtmlUrl":56},"rules\u002Fendpoint-tests.md",3063,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Fendpoint-tests.md",{"path":58,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":59,"sourceHtmlUrl":60},"rules\u002Ffinding-features.md",2408,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Ffinding-features.md",{"path":62,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":63,"sourceHtmlUrl":64},"rules\u002Fisolation.md",3876,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Fisolation.md",{"path":66,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":67,"sourceHtmlUrl":68},"rules\u002Fnaming.md",2208,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Fnaming.md",{"path":70,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":71,"sourceHtmlUrl":72},"rules\u002Fperformance.md",3407,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Fperformance.md",{"path":74,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":75,"sourceHtmlUrl":76},"rules\u002Freview.md",2961,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Freview.md",{"path":78,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":79,"sourceHtmlUrl":80},"rules\u002Fsecurity.md",1687,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Fsecurity.md",{"path":82,"resourceType":49,"resourceTypeDesc":50,"sizeBytes":83,"sourceHtmlUrl":84},"rules\u002Ftest-data.md",2231,"https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002Frules\u002Ftest-data.md",[86,93,98,105,112,119],{"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},"01M7FDT0M31R8NN2FS655W5W6X","wayfinder-development","Use this skill for Laravel Wayfinder which auto-generates typed functions for Laravel controllers and routes. ALWAYS use this skill when frontend code needs to call backend routes or controller actions. Trigger when: connecting any React\u002FVue\u002FSvelte\u002FInertia frontend to Laravel controllers, routes, building end-to-end features with both frontend and backend, wiring up forms or links to backend endpoints, fixing route-related TypeScript errors, importing from @\u002Factions or @\u002Froutes, or running wayfinder:generate. Use Wayfinder route functions instead of hardcoded URLs. Covers: wayfinder() vite plugin, .url()\u002F.get()\u002F.post()\u002F.form(), query params, route model binding, tree-shaking. Do not use for backend-only task","https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.kiro\u002Fskills\u002Fwayfinder-development\u002FSKILL.md",[],[],{"skillNo":94,"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":95,"categories":96,"keywords":97,"publishedAt":19},"01M7FDSWRP761BD3J1N86CSAY8","https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.kiro\u002Fskills\u002Ftesting-best-practices\u002FSKILL.md",[],[],{"skillNo":99,"name":100,"nameZh":6,"description":101,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":102,"categories":103,"keywords":104,"publishedAt":19},"01M7FDSNHCZHX00Q6XM0Y3FV9B","tailwindcss-development","Always invoke when the user's message includes 'tailwind' in any form. Also invoke for: building responsive grid layouts (multi-column card grids, product grids), flex\u002Fgrid page structures (dashboards with sidebars, fixed topbars, mobile-toggle navs), styling UI components (cards, tables, navbars, pricing sections, forms, inputs, badges), adding dark mode variants, fixing spacing or typography, and Tailwind v3\u002Fv4 work. The core use case: writing or fixing Tailwind utility classes in HTML templates (Blade, JSX, Vue). Skip for backend PHP logic, database queries, API routes, JavaScript with no HTML\u002FCSS component, CSS file audits, build tool configuration, and vanilla CSS.","https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.kiro\u002Fskills\u002Ftailwindcss-development\u002FSKILL.md",[],[],{"skillNo":106,"name":107,"nameZh":6,"description":108,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":109,"categories":110,"keywords":111,"publishedAt":19},"01M7FDSEMS0MY5HJ25VHFZQHBT","laravel-best-practices","Apply this skill whenever writing, reviewing, or refactoring Laravel PHP code. This includes creating or modifying controllers, models, migrations, form requests, policies, jobs, scheduled commands, service classes, and Eloquent queries. Triggers for N+1 and query performance issues, caching strategies, authorization and security patterns, validation, error handling, queue and job configuration, route definitions, and architectural decisions. Also use for Laravel code reviews and refactoring existing Laravel code to follow best practices. Covers any task involving Laravel backend PHP code patterns.","https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.kiro\u002Fskills\u002Flaravel-best-practices\u002FSKILL.md",[],[],{"skillNo":113,"name":114,"nameZh":6,"description":115,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":116,"categories":117,"keywords":118,"publishedAt":19},"01M7FDS543B1WRJH4VM3TRCSRT","infer-conventions","Use this skill to analyze how a Laravel application is actually written and record its conventions as shared rules. Trigger when the user wants to detect, infer, document, or standardize project conventions or coding style, set up or grow `.ai\u002Frules`, resolve mixed or conflicting patterns (e.g. \"are we using Form Requests or inline validation?\"), or onboard agents and teammates to \"how we do things here\". Covers: a systematic sweep of ~49 Laravel convention dimensions (validation, models, architecture, testing, frontend, database, console), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai\u002Frules` files by hand.","https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.kiro\u002Fskills\u002Finfer-conventions\u002FSKILL.md",[],[],{"skillNo":120,"name":121,"nameZh":6,"description":122,"descriptionZh":6,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":123,"categories":124,"keywords":125,"publishedAt":19},"01M7FDRZP6FMVKKT0YR9H4JXK6","inertia-react-development","Develops Inertia.js v3 React client-side applications. Activates when creating React pages, forms, or navigation; using \u003CLink>, \u003CForm>, useForm, useHttp, setLayoutProps, or router; working with deferred props, prefetching, optimistic updates, instant visits, or polling; or when user mentions React with Inertia, React pages, React forms, or React navigation.","https:\u002F\u002Fgithub.com\u002FDommmin\u002Fsh-site\u002Fblob\u002Fmain\u002F.kiro\u002Fskills\u002Finertia-react-development\u002FSKILL.md",[],[]]