[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"skill:01M6BX9XB21SQW64SWBTMJSR5K":3,"skill-same:01M6BX9XB21SQW64SWBTMJSR5K":73},{"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":46,"commitSha":47,"skillDirectory":48,"forksCount":49,"repositoryHtmlUrl":50,"repositoryHomepageUrl":6,"ownerHtmlUrl":51,"ownerBlogUrl":52,"ownerDescription":6,"updatedAt":53,"install":54,"resources":66},"01M6BX9XB21SQW64SWBTMJSR5K","infer-conventions",null,"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, API responses), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai\u002Frules` files by hand.","karuhun-developer\u002Ftemplate-laravel-livewire","karuhun-developer","https:\u002F\u002Favatars.githubusercontent.com\u002Fu\u002F169523822?v=4","01M6BX5G1VG24QZX7D5GJBT0NG","Karuhun Developer","01M6BX5G667YMVBX9YKY797ZKA",6,"MIT","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Finfer-conventions\u002FSKILL.md",[],[19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38],"infer conventions","SET","analyze","laravel","tool","onboard","how","open","discovery","api","code review","database","code","run","project conventions","architecture","review","MCP","frontend","testing","2026-11-10 10:12:30",false,"---\nname: infer-conventions\ndescription: \"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, API responses), open-ended house-pattern discovery, conflict reporting, and recording rules scoped to the right paths via the Boost `record-rule` MCP tool. Only run this skill when the user explicitly asks for it; never start a sweep as part of another task. Do not use for one-off code review, enforcing formatting a linter already handles, or editing `.ai\u002Frules` files by hand.\"\ndisable-model-invocation: true\nlicense: MIT\nmetadata:\n  author: laravel\n---\n\n# Infer Conventions\n\nLearn how this application writes Laravel, then record what you learn as durable, path-scoped rules other agents will read. You are documenting reality, not improving it.\n\n## Ground Rules (read before you start)\n\n- Consistency first. The codebase's majority style is the convention. Never judge it, never propose a \"better\" pattern, never record what the code should do. If the app validates inline everywhere, that is the rule, even if Form Requests would be nicer.\n- Skip what an active tool produces, keep what a tool would fight. Inspect the project's Pint and Rector configuration first; a Rector transformation is tooling-owned only when its package and relevant rule or set are installed and enabled. Active tools may rewrite code toward one canonical form: `$casts` to `casts()`, `$fillable` to attributes, magic accessors to the `Attribute` class, pipe-string rules to arrays, `$signature` to `#[Signature]`, named migrations to anonymous, and many more. When the app already sits at an active tool's target form, the tool owns it, so record nothing. But when the app deliberately holds a form an active tool would refactor away, such as legacy `getXxxAttribute()` accessors the `Attribute` class would replace, no tool can reproduce that choice and an agent defaults the other way. That against-the-grain hold is exactly what to record.\n- Record decisions, not defaults. A consistent pattern earns a rule only when it reflects a choice: the app took one valid option where the framework or common practice offered others, or the pattern would surprise a competent agent. Framework defaults steer nothing, so skip them: anonymous migrations, `$signature` commands, `ShouldQueue` jobs, `casts()` on Laravel 11+, named routes, Rule objects in `app\u002FRules`, and `Mail::fake()` or `Bus::fake()` to isolate framework services. A real fork is not enough on its own. Weigh the side the app took, and record only the side an agent would not reach for by itself: inline closures everywhere, legacy accessors, a bespoke query layer. Watch for the false fork too. \"No Mockery\" next to facade fakes is not a choice against Mockery, because they double different things. The test for every candidate: without this rule, would the next agent plausibly write it differently? Only \"yes\" earns a rule.\n- Architecture choices are the gold. Record presence and deliberate absence. The structural pattern the app commits to is the highest-signal convention and the one no tool can decide: Action classes and how they are invoked (`handle` \u002F `execute` \u002F `__invoke`), service objects, dedicated query objects exposing `builder()`, DTOs (spatie\u002Flaravel-data vs readonly classes), Form Request validation vs inline, an events and listeners spine vs direct calls, and domain or module folders. Also record a consistent non-pattern, such as \"query Eloquent directly in controllers, no repository layer\", so the next agent matches the app's altitude instead of over-engineering.\n- Never duplicate `.ai\u002Frules`. Read `.ai\u002Frules\u002Findex.md` and the area files before the sweep. A dimension already covered there is marked done and skipped.\n- Evidence or silence. A convention needs at least 3 consistent examples and no meaningful rival to become a candidate. Every Step 1 verdict applies this bar.\n- The recorded rule states the convention, nothing else. One or two imperative lines: this project does X, so do X here. Keep detection evidence out. No counts, ratios, current usage, file lists, or example paths, because that is proof for the confirm step, not part of the rule. One short syntax fragment at most, and point to `search-docs` for API details.\n\n## Process\n\nEach step ends on a checkable completion criterion. Do not advance until it holds.\n\nFan out when you can. The sweep is embarrassingly parallel. If your environment can spawn subagents (a Task, dispatch, or equivalent tool), do Step 0 yourself, then hand each checklist group (A to J) and the architecture map to its own subagent. Each subagent runs the greps, reads a few representative files, and returns structured verdicts (dimension, verdict, evidence, proposed glob \u002F title \u002F note). You aggregate, dedupe, then run Steps 3 to 5. It is far faster on a real app. No subagents available? Run the steps in sequence, with the same bar and the same output.\n\n### Step 0: Orient\n\nRead `composer.json` (installed packages tell you which checklist groups apply), the `pint.json` \u002F PHPStan \u002F Rector config, `.ai\u002Frules\u002Findex.md` if present, and most important, map the `app\u002F` tree. List every directory under `app\u002F` (and any `Modules\u002F`, `src\u002F`, `packages\u002F`, or domain root). Every folder beyond Laravel's default skeleton (`Http`, `Models`, `Providers`, `Console`, `Exceptions`) is a structural pattern the app committed to and a high-value rule waiting to be written: `Actions`, `Services`, `Data` or DTOs, `Queries`, `Repositories`, `ViewModels`, `Pipelines`, `Support`, `Enums`, `Contracts`, `Observers`, or `Domain` and module roots. Note each one. You will confirm how it is used in Step 2.\n\nThis app ships a frontend stack, so the frontend checklist group applies. Sweep it.\n\nDone when: you have the applicable checklist groups, the dimensions already recorded in `.ai\u002Frules`, and a list of every non-default `app\u002F` directory mapped to the pattern it represents.\n\n### Step 1: Predefined sweep\n\nOpen `references\u002Fchecklist.md` and work every applicable dimension using its search hints. Give each exactly one verdict:\n\n- Pattern. Clears the bar, rival under ~20% of sites, and reflects a real choice (passes the decisions-not-defaults test). A recording candidate. Cite 2 to 3 example files.\n- Conflict. Both styles present in meaningful numbers. Report the split with counts and example files. Never record a preferred winner while the code remains mixed, even in yolo, because that would describe an aspiration rather than reality. Record only if the user identifies a stable path or context boundary that explains both styles; otherwise defer until the code is reconciled.\n- Default. Consistent, but a framework or common-practice default the agent already writes unprompted. Skip it as a no-op, not a convention.\n- No signal. Under the bar: feature unused, or too few examples. Skip silently (one summary line at most).\n- Tooling-owned or Already-recorded. Skip per the ground rules.\n\nDone when: every applicable dimension carries exactly one of those verdicts.\n\n### Step 2: Open-ended pass\n\nFirst, close out the architecture map from Step 0. For every non-default `app\u002F` directory you listed, confirm how the pattern is used and apply the same evidence and decisions-not-defaults tests as Step 1. Generator-standard or sparsely used directories such as `Rules`, `Observers`, `Mail`, and `Notifications` are signals to inspect, not automatic conventions. Make genuine structural patterns candidates: Action classes invoked via `handle` \u002F `execute` \u002F `__invoke`, Services constructor-injected, `Queries` objects exposing `builder(): Builder`, DTOs as readonly classes or spatie\u002Flaravel-data, module or domain folders as the unit of organization. Scope each qualifying pattern to its own directory glob. Also record a consistent deliberate absence, such as \"no repository layer, controllers query Eloquent directly\", so the next agent matches the app's altitude.\n\nThen find what else makes this codebase itself: base or abstract classes most code extends, traits used everywhere, tenancy or authorization scoping woven through queries, naming schemes, and custom helpers. Same evidence bar, cite files. Record every genuine structural pattern, and cap the other house findings at ~5 so the pass stays high-signal.\n\nDone when: every non-default `app\u002F` directory from Step 0 has a verdict, and the pass has produced its cited house findings (or concluded there are none).\n\n### Step 3: Confirm\n\nPresent every candidate in one batch. Per item: dimension, verdict, evidence (counts and files), and the exact proposed `glob` or `globs` \u002F `title` \u002F `note`. Conflicts are presented as questions about an existing context boundary or deferred cleanup, not as a choice of future style.\n\nDefault mode is confirm: record only what the user approves. Switch to yolo only when the invocation said so (\"yolo\", \"don't ask\", \"just record them\"), then record all pattern candidates without asking. Conflicts still go to the user in yolo.\n\nDone when: every candidate is approved, rejected, or (conflicts) decided.\n\n### Step 4: Record\n\nMake one `record-rule` call for each glob an approved convention applies to. Choose the most specific globs that cover the cited evidence from the mapping table below; if a convention spans models and migrations, record it under both domains so agents discover it from either path. The `note` is the bare convention: strip every trace of detection (see the ground rule). If `record-rule` is unavailable (rules disabled), report the full rule text so the user can enable `BOOST_RULES_ENABLED` or add it by hand.\n\nRecord this:\n\n> Accessors and mutators: use the legacy magic-method style (`getXxxAttribute()` \u002F `setXxxAttribute()`), not the `Attribute` class. Match it in models.\n\nNot this:\n\n> Accessors\u002Fmutators use the legacy magic-method style; the `Attribute`-class style is not used anywhere (13 legacy, 0 Attribute-class), e.g. `app\u002FModels\u002FPost.php`. Match the legacy style in existing models.\n\nDone when: every approved item has a successful tool response, and any failure is reported with its rule text.\n\n### Step 5: Summarize\n\nList recorded rules (file and title), conflicts the user deferred, notable no-signals, and remind the user to commit `.ai\u002Frules` so their team and agents share the conventions.\n\n## Glob mapping\n\nAttach each rule to the most specific path that covers its evidence. Never a lazy `app\u002F**` when a subtree fits. Match the glob to where the code actually lives, which is not the same in a default skeleton and in a modular or DDD layout. Use the Step 0 `app\u002F` map to pick the real path.\n\nExamples:\n\n- Models: `app\u002FModels\u002F**` in a default app, or `app\u002FModules\u002FBlog\u002FModels\u002F**` \u002F `src\u002FDomain\u002FBlog\u002F**` in a modular one.\n- Controllers, routing, validation, responses: `app\u002FHttp\u002F**`, or `app\u002FModules\u002F*\u002FHttp\u002F**` when each module owns its HTTP layer.\n- Actions, Services, DTOs: `app\u002FActions\u002F**`, `app\u002FServices\u002F**`, `app\u002FData\u002F**`, or the module path the app actually uses.\n- Tests: `tests\u002F**`.\n- Migrations and database: `database\u002Fmigrations\u002F**`.\n- Truly app-wide (rare, e.g. auth retrieval): `app\u002F**`.\n\n`record-rule` takes one glob. When a convention genuinely spans two domains (e.g. UUID keys touch models and migrations), call it once per domain with the same title and note; mentioning another path in the note does not make the rule discoverable there.\n\n## Edge cases\n\n- Rules disabled or `record-rule` missing: detection is read-only, so Steps 0 to 3 still run, and recording falls back to the manual path in Step 4.\n- Tiny or fresh app: most dimensions land on no-signal. Say so honestly (\"not enough code to infer conventions yet\") and record nothing.\n- Huge app: each dimension is a bounded grep plus a handful of file reads. Sample representative files, do not read everything.\n- Re-runs: reading `.ai\u002Frules` in Step 0 makes re-runs incremental, so only new or undecided dimensions surface.\n- Non-standard layout (modules, DDD): the open-ended pass catches the layout itself as convention #1. Adapt the globs in the mapping table to the observed paths.\n","# Infer Conventions\n\nLearn how this application writes Laravel, then record what you learn as durable, path-scoped rules other agents will read. You are documenting reality, not improving it.\n\n## Ground Rules (read before you start)\n\n- Consistency first. The codebase's majority style is the convention. Never judge it, never propose a \"better\" pattern, never record what the code should do. If the app validates inline everywhere, that is the rule, even if Form Requests would be nicer.\n- Skip what an active tool produces, keep what a tool would fight. Inspect the project's Pint and Rector configuration first; a Rector transformation is tooling-owned only when its package and relevant rule or set are installed and enabled. Active tools may rewrite code toward one canonical form: `$casts` to `casts()`, `$fillable` to attributes, magic accessors to the `Attribute` class, pipe-string rules to arrays, `$signature` to `#[Signature]`, named migrations to anonymous, and many more. When the app already sits at an active tool's target form, the tool owns it, so record nothing. But when the app deliberately holds a form an active tool would refactor away, such as legacy `getXxxAttribute()` accessors the `Attribute` class would replace, no tool can reproduce that choice and an agent defaults the other way. That against-the-grain hold is exactly what to record.\n- Record decisions, not defaults. A consistent pattern earns a rule only when it reflects a choice: the app took one valid option where the framework or common practice offered others, or the pattern would surprise a competent agent. Framework defaults steer nothing, so skip them: anonymous migrations, `$signature` commands, `ShouldQueue` jobs, `casts()` on Laravel 11+, named routes, Rule objects in `app\u002FRules`, and `Mail::fake()` or `Bus::fake()` to isolate framework services. A real fork is not enough on its own. Weigh the side the app took, and record only the side an agent would not reach for by itself: inline closures everywhere, legacy accessors, a bespoke query layer. Watch for the false fork too. \"No Mockery\" next to facade fakes is not a choice against Mockery, because they double different things. The test for every candidate: without this rule, would the next agent plausibly write it differently? Only \"yes\" earns a rule.\n- Architecture choices are the gold. Record presence and deliberate absence. The structural pattern the app commits to is the highest-signal convention and the one no tool can decide: Action classes and how they are invoked (`handle` \u002F `execute` \u002F `__invoke`), service objects, dedicated query objects exposing `builder()`, DTOs (spatie\u002Flaravel-data vs readonly classes), Form Request validation vs inline, an events and listeners spine vs direct calls, and domain or module folders. Also record a consistent non-pattern, such as \"query Eloquent directly in controllers, no repository layer\", so the next agent matches the app's altitude instead of over-engineering.\n- Never duplicate `.ai\u002Frules`. Read `.ai\u002Frules\u002Findex.md` and the area files before the sweep. A dimension already covered there is marked done and skipped.\n- Evidence or silence. A convention needs at least 3 consistent examples and no meaningful rival to become a candidate. Every Step 1 verdict applies this bar.\n- The recorded rule states the convention, nothing else. One or two imperative lines: this project does X, so do X here. Keep detection evidence out. No counts, ratios, current usage, file lists, or example paths, because that is proof for the confirm step, not part of the rule. One short syntax fragment at most, and point to `search-docs` for API details.\n\n## Process\n\nEach step ends on a checkable completion criterion. Do not advance until it holds.\n\nFan out when you can. The sweep is embarrassingly parallel. If your environment can spawn subagents (a Task, dispatch, or equivalent tool), do Step 0 yourself, then hand each checklist group (A to J) and the architecture map to its own subagent. Each subagent runs the greps, reads a few representative files, and returns structured verdicts (dimension, verdict, evidence, proposed glob \u002F title \u002F note). You aggregate, dedupe, then run Steps 3 to 5. It is far faster on a real app. No subagents available? Run the steps in sequence, with the same bar and the same output.\n\n### Step 0: Orient\n\nRead `composer.json` (installed packages tell you which checklist groups apply), the `pint.json` \u002F PHPStan \u002F Rector config, `.ai\u002Frules\u002Findex.md` if present, and most important, map the `app\u002F` tree. List every directory under `app\u002F` (and any `Modules\u002F`, `src\u002F`, `packages\u002F`, or domain root). Every folder beyond Laravel's default skeleton (`Http`, `Models`, `Providers`, `Console`, `Exceptions`) is a structural pattern the app committed to and a high-value rule waiting to be written: `Actions`, `Services`, `Data` or DTOs, `Queries`, `Repositories`, `ViewModels`, `Pipelines`, `Support`, `Enums`, `Contracts`, `Observers`, or `Domain` and module roots. Note each one. You will confirm how it is used in Step 2.\n\nThis app ships a frontend stack, so the frontend checklist group applies. Sweep it.\n\nDone when: you have the applicable checklist groups, the dimensions already recorded in `.ai\u002Frules`, and a list of every non-default `app\u002F` directory mapped to the pattern it represents.\n\n### Step 1: Predefined sweep\n\nOpen `references\u002Fchecklist.md` and work every applicable dimension using its search hints. Give each exactly one verdict:\n\n- Pattern. Clears the bar, rival under ~20% of sites, and reflects a real choice (passes the decisions-not-defaults test). A recording candidate. Cite 2 to 3 example files.\n- Conflict. Both styles present in meaningful numbers. Report the split with counts and example files. Never record a preferred winner while the code remains mixed, even in yolo, because that would describe an aspiration rather than reality. Record only if the user identifies a stable path or context boundary that explains both styles; otherwise defer until the code is reconciled.\n- Default. Consistent, but a framework or common-practice default the agent already writes unprompted. Skip it as a no-op, not a convention.\n- No signal. Under the bar: feature unused, or too few examples. Skip silently (one summary line at most).\n- Tooling-owned or Already-recorded. Skip per the ground rules.\n\nDone when: every applicable dimension carries exactly one of those verdicts.\n\n### Step 2: Open-ended pass\n\nFirst, close out the architecture map from Step 0. For every non-default `app\u002F` directory you listed, confirm how the pattern is used and apply the same evidence and decisions-not-defaults tests as Step 1. Generator-standard or sparsely used directories such as `Rules`, `Observers`, `Mail`, and `Notifications` are signals to inspect, not automatic conventions. Make genuine structural patterns candidates: Action classes invoked via `handle` \u002F `execute` \u002F `__invoke`, Services constructor-injected, `Queries` objects exposing `builder(): Builder`, DTOs as readonly classes or spatie\u002Flaravel-data, module or domain folders as the unit of organization. Scope each qualifying pattern to its own directory glob. Also record a consistent deliberate absence, such as \"no repository layer, controllers query Eloquent directly\", so the next agent matches the app's altitude.\n\nThen find what else makes this codebase itself: base or abstract classes most code extends, traits used everywhere, tenancy or authorization scoping woven through queries, naming schemes, and custom helpers. Same evidence bar, cite files. Record every genuine structural pattern, and cap the other house findings at ~5 so the pass stays high-signal.\n\nDone when: every non-default `app\u002F` directory from Step 0 has a verdict, and the pass has produced its cited house findings (or concluded there are none).\n\n### Step 3: Confirm\n\nPresent every candidate in one batch. Per item: dimension, verdict, evidence (counts and files), and the exact proposed `glob` or `globs` \u002F `title` \u002F `note`. Conflicts are presented as questions about an existing context boundary or deferred cleanup, not as a choice of future style.\n\nDefault mode is confirm: record only what the user approves. Switch to yolo only when the invocation said so (\"yolo\", \"don't ask\", \"just record them\"), then record all pattern candidates without asking. Conflicts still go to the user in yolo.\n\nDone when: every candidate is approved, rejected, or (conflicts) decided.\n\n### Step 4: Record\n\nMake one `record-rule` call for each glob an approved convention applies to. Choose the most specific globs that cover the cited evidence from the mapping table below; if a convention spans models and migrations, record it under both domains so agents discover it from either path. The `note` is the bare convention: strip every trace of detection (see the ground rule). If `record-rule` is unavailable (rules disabled), report the full rule text so the user can enable `BOOST_RULES_ENABLED` or add it by hand.\n\nRecord this:\n\n> Accessors and mutators: use the legacy magic-method style (`getXxxAttribute()` \u002F `setXxxAttribute()`), not the `Attribute` class. Match it in models.\n\nNot this:\n\n> Accessors\u002Fmutators use the legacy magic-method style; the `Attribute`-class style is not used anywhere (13 legacy, 0 Attribute-class), e.g. `app\u002FModels\u002FPost.php`. Match the legacy style in existing models.\n\nDone when: every approved item has a successful tool response, and any failure is reported with its rule text.\n\n### Step 5: Summarize\n\nList recorded rules (file and title), conflicts the user deferred, notable no-signals, and remind the user to commit `.ai\u002Frules` so their team and agents share the conventions.\n\n## Glob mapping\n\nAttach each rule to the most specific path that covers its evidence. Never a lazy `app\u002F**` when a subtree fits. Match the glob to where the code actually lives, which is not the same in a default skeleton and in a modular or DDD layout. Use the Step 0 `app\u002F` map to pick the real path.\n\nExamples:\n\n- Models: `app\u002FModels\u002F**` in a default app, or `app\u002FModules\u002FBlog\u002FModels\u002F**` \u002F `src\u002FDomain\u002FBlog\u002F**` in a modular one.\n- Controllers, routing, validation, responses: `app\u002FHttp\u002F**`, or `app\u002FModules\u002F*\u002FHttp\u002F**` when each module owns its HTTP layer.\n- Actions, Services, DTOs: `app\u002FActions\u002F**`, `app\u002FServices\u002F**`, `app\u002FData\u002F**`, or the module path the app actually uses.\n- Tests: `tests\u002F**`.\n- Migrations and database: `database\u002Fmigrations\u002F**`.\n- Truly app-wide (rare, e.g. auth retrieval): `app\u002F**`.\n\n`record-rule` takes one glob. When a convention genuinely spans two domains (e.g. UUID keys touch models and migrations), call it once per domain with the same title and note; mentioning another path in the note does not make the rule discoverable there.\n\n## Edge cases\n\n- Rules disabled or `record-rule` missing: detection is read-only, so Steps 0 to 3 still run, and recording falls back to the manual path in Step 4.\n- Tiny or fresh app: most dimensions land on no-signal. Say so honestly (\"not enough code to infer conventions yet\") and record nothing.\n- Huge app: each dimension is a bounded grep plus a handful of file reads. Sample representative files, do not read everything.\n- Re-runs: reading `.ai\u002Frules` in Step 0 makes re-runs incremental, so only new or undecided dimensions surface.\n- Non-standard layout (modules, DDD): the open-ended pass catches the layout itself as convention #1. Adapt the globs in the mapping table to the observed paths.\n",{"name":5,"license":15,"metadata":44,"description":7,"disable-model-invocation":45},{"author":22},true,"main","e9bff297aa5ec90d4815836383d540f20dee6717",".github\u002Fskills\u002Finfer-conventions",1,"https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer","https:\u002F\u002Fkaruhundeveloper.com","2026-11-12 11:36:58",{"source":8,"skillName":5,"commands":55,"prompt":65,"zipAvailable":45},[56,59,62],{"tool":57,"command":58},"npx","npx skills add karuhun-developer\u002Ftemplate-laravel-livewire --skill infer-conventions",{"tool":60,"command":61},"bunx","bunx skills add karuhun-developer\u002Ftemplate-laravel-livewire --skill infer-conventions",{"tool":63,"command":64},"pnpm","pnpm dlx skills add karuhun-developer\u002Ftemplate-laravel-livewire --skill infer-conventions","安装技能，技能地址：https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Finfer-conventions\u002FSKILL.md",[67],{"path":68,"resourceType":69,"resourceTypeDesc":70,"sizeBytes":71,"sourceHtmlUrl":72},"references\u002Fchecklist.md","REFERENCE","参考文档",12242,"https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Finfer-conventions\u002Freferences\u002Fchecklist.md",[74,104,135,154,172,185],{"skillNo":75,"name":76,"nameZh":77,"description":78,"descriptionZh":79,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":80,"categories":81,"keywords":92,"publishedAt":39},"01M6BXAN772630D3MJ7GJHJH4A","testing-best-practices","Laravel 测试设计与评审","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.","Laravel 测试设计与评审。适用于选择覆盖范围、测试命名或结构安排、选择断言或测试数据、隔离依赖、测试 HTTP 或安全边界、提升测试套件性能，以及评估测试价值。Pest 和 PHPUnit 语法请使用框架指南或 search-docs 查询。","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftesting-best-practices\u002FSKILL.md",[82,87],{"categoryNo":83,"categoryName":84,"taxonomyType":85,"taxonomyTypeDesc":86},"01M8BQGD5WG86P4AQ5GPSSKBFR","测试工程师","PROFESSION","适用职业",{"categoryNo":88,"categoryName":89,"taxonomyType":90,"taxonomyTypeDesc":91},"01M8BQJH394GT47X57A9Q8G7HX","测试与质量保障","SCENARIO","使用场景",[38,93,94,22,95,96,97,98,99,100,101,102,103,35],"testing best practices","best practices","data","search","docs","framework","http","test","performance","security","design",{"skillNo":105,"name":106,"nameZh":107,"description":108,"descriptionZh":109,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":110,"categories":111,"keywords":118,"publishedAt":39},"01M6BXAJ8TFJXYH8XVWXJ5F5ZJ","tailwindcss-development","Tailwind CSS 界面样式开发","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.","当用户消息以任何形式包含 'tailwind' 时必须调用。以下情形也应调用：构建响应式网格布局（多列卡片网格、商品网格）、flex\u002Fgrid 页面结构（带侧边栏的仪表盘、固定顶栏、移动端切换导航）、UI 组件样式设计（卡片、表格、导航栏、定价区块、表单、输入框、徽章）、添加暗色模式变体、修复间距或排版问题，以及 Tailwind v3\u002Fv4 相关工作。核心用途：在 HTML 模板（Blade、JSX、Vue）中编写或修复 Tailwind 工具类。以下情形跳过：后端 PHP 逻辑、数据库查询、API 路由、不含 HTML\u002FCSS 组件的 JavaScript、CSS 文件审查、构建工具配置，以及原生 CSS。","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Ftailwindcss-development\u002FSKILL.md",[112,115],{"categoryNo":113,"categoryName":114,"taxonomyType":85,"taxonomyTypeDesc":86},"01M8BQ6TQZN6R52WBJ9H8NRMQM","软件开发工程师",{"categoryNo":116,"categoryName":117,"taxonomyType":90,"taxonomyTypeDesc":91},"01M8BRASNPVNJVQQJ4KZX8XM5D","前端开发与界面实现",[119,120,121,28,122,123,124,125,126,30,127,128,129,130,131,23,22,132,133,134],"tailwindcss","development","tailwindcss development","javascript","components","component","core","product","file","ui","templates","Tailwind","build tool","pricing","writing","css",{"skillNo":136,"name":137,"nameZh":138,"description":139,"descriptionZh":140,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":141,"categories":142,"keywords":147,"publishedAt":39},"01M6BXAFCFVQZQTR4V0XQ90Z9G","sluggable-development","Laravel Slug 与自愈 URL 开发","Use when making a field on an Eloquent model sluggable, generating the migration for a slug column, switching to self-healing URLs, or resolving a model from its slug in a route. Trigger when the request mentions slugs, permalinks, the spatie\u002Flaravel-sluggable package, the HasSlug or HasTranslatableSlug trait, the #[Sluggable] attribute, SlugOptions, findBySlug, self-healing URLs, or stale slug redirects in a Laravel project. Covers choosing between the attribute and the trait, generating unique slugs, configuring separator\u002Flength\u002Flanguage\u002Fscope\u002Funiqueness, preventing slug overwrites, translatable slugs via spatie\u002Flaravel-translatable, route model binding through the slug column, self-healing route keys, customizing the 308 redirect through the SelfHealing facade, and overriding the default actions via config\u002Fsluggable.php. Do not use for one-off URL-safe strings, signed URLs, or Laravel's built-in Str::slug helper when the result is not stored on a model.","适用场景：让 Eloquent 模型的某个字段成为 slug、为 slug 列生成迁移、切换到自愈 URL，或在路由中根据 slug 解析模型。当请求提及 slug、永久链接、spatie\u002Flaravel-sluggable 包、HasSlug 或 HasTranslatableSlug trait、#[Sluggable] 特性、SlugOptions、findBySlug、自愈 URL，或 Laravel 项目中的旧 slug 重定向时触发。内容涵盖：特性（attribute）与 trait 的选择、生成唯一 slug、配置分隔符\u002F长度\u002F语言\u002F作用域\u002F唯一性、防止 slug 被覆盖、通过 spatie\u002Flaravel-translatable 实现多语言 slug、基于 slug 列的路由模型绑定、自愈路由键、通过 SelfHealing facade 自定义 308 重定向，以及通过 config\u002Fsluggable.php 覆盖默认操作。不适用于一次性 URL 安全字符串、签名 URL，或结果不存储到模型上的 Laravel 内置 Str::slug 辅助函数。","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fsluggable-development\u002FSKILL.md",[143,144],{"categoryNo":113,"categoryName":114,"taxonomyType":85,"taxonomyTypeDesc":86},{"categoryNo":145,"categoryName":146,"taxonomyType":90,"taxonomyTypeDesc":91},"01M8CAJ4KSFHQBJAJ1YDP4J1H6","PHP\u002FLaravel 开发",[148,120,22,149,150,151,152,153],"sluggable development","safe","config","package","actions","php",{"skillNo":155,"name":156,"nameZh":157,"description":158,"descriptionZh":159,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":160,"categories":161,"keywords":164,"publishedAt":39},"01M6BXACFB94RP29K94ZQB37KN","pulse-development","Laravel Pulse 监控配置与卡片开发","Handles Laravel Pulse setup, configuration, and custom card development. Activates when installing Pulse; configuring the dashboard or authorization gate; setting up recorders and filtering; building custom Livewire cards; optimizing with Redis ingest or sampling; or when the user mentions \u002Fpulse, pulse:check, pulse:work, Pulse::record(), or application monitoring.","处理 Laravel Pulse 的安装配置与自定义卡片开发。在以下情形触发：安装 Pulse；配置仪表盘或授权门禁（Gate）；设置记录器（recorder）与过滤规则；构建自定义 Livewire 卡片；通过 Redis 摄取或采样进行优化；或用户提及 \u002Fpulse、pulse:check、pulse:work、Pulse::record()，以及应用监控相关内容。","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fpulse-development\u002FSKILL.md",[162,163],{"categoryNo":113,"categoryName":114,"taxonomyType":85,"taxonomyTypeDesc":86},{"categoryNo":145,"categoryName":146,"taxonomyType":90,"taxonomyTypeDesc":91},[165,120,166,167,168,169,170,22,171],"pulse development","dashboard","setup","monitoring","redis","authorization","livewire",{"skillNo":173,"name":174,"nameZh":175,"description":176,"descriptionZh":177,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":178,"categories":179,"keywords":182,"publishedAt":39},"01M6BXA9NM9N2HCN4FA0E6W3SC","medialibrary-development","Laravel 媒体库开发","Build and work with spatie\u002Flaravel-medialibrary features including associating files with Eloquent models, defining media collections and conversions, generating responsive images, and retrieving media URLs and paths.","构建并使用 spatie\u002Flaravel-medialibrary 的功能，包括将文件与 Eloquent 模型关联、定义媒体集合与转换、生成响应式图片，以及获取媒体 URL 和路径。","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Fmedialibrary-development\u002FSKILL.md",[180,181],{"categoryNo":113,"categoryName":114,"taxonomyType":85,"taxonomyTypeDesc":86},{"categoryNo":145,"categoryName":146,"taxonomyType":90,"taxonomyTypeDesc":91},[183,120,184,22],"medialibrary development","Media",{"skillNo":186,"name":187,"nameZh":188,"description":189,"descriptionZh":190,"repositoryFullName":8,"ownerLogin":9,"ownerAvatarUrl":10,"ownerAccountNo":11,"ownerDisplayName":12,"repositoryNo":13,"starsCount":14,"licenseSpdxId":15,"licenseFileUrl":6,"sourceHtmlUrl":191,"categories":192,"keywords":195,"publishedAt":39},"01M6BXA6VT29ACMHYG8W2J4ZSB","livewire-development","Livewire 组件开发","Use for any task or question involving Livewire. Activate if user mentions Livewire, wire: directives, or Livewire-specific concepts like wire:model, wire:click, wire:sort, or islands, invoke this skill. Covers building new components, debugging reactivity issues, real-time form validation, drag-and-drop, loading states, migrating from Livewire 3 to 4, converting component formats (SFC\u002FMFC\u002Fclass-based), and performance optimization. Do not use for non-Livewire reactive UI (React, Vue, Alpine-only, Inertia.js) or standard Laravel forms without Livewire.","适用于任何涉及 Livewire 的任务或问题。当用户提及 Livewire、wire: 指令，或 wire:model、wire:click、wire:sort、islands 等 Livewire 专有概念时，调用此技能。涵盖构建新组件、调试响应式问题、实时表单验证、拖放操作、加载状态、从 Livewire 3 迁移到 4、组件格式转换（SFC\u002FMFC\u002F基于类）以及性能优化。不适用于非 Livewire 的响应式 UI（React、Vue、仅 Alpine、Inertia.js），也不适用于不含 Livewire 的标准 Laravel 表单。","https:\u002F\u002Fgithub.com\u002Fkaruhun-developer\u002Ftemplate-laravel-livewire\u002Fblob\u002Fmain\u002F.github\u002Fskills\u002Flivewire-development\u002FSKILL.md",[193,194],{"categoryNo":113,"categoryName":114,"taxonomyType":85,"taxonomyTypeDesc":86},{"categoryNo":145,"categoryName":146,"taxonomyType":90,"taxonomyTypeDesc":91},[196,171,120,123,197,124,198,199,200,128,201,202,203,204,205,22,101],"livewire development","react","debugging","validation","issues","vue","Optimization","real-time","js","performance optimization"]