AGENT SKILL

localization-development

Always use localization methods for PHP and Vue when adding strings using the format

使用场景前端开发
License 许可
MIT
所属仓库
kumulicp/kumulicp
最近更新
2026-11-11
Stars
★ 2
Forks
0

01 前言 Front Matter

name
localization-development
license
MIT
metadata
{ "author": "kumulicp" }
description
Always use localization methods for PHP and Vue when adding strings using the format

03 SKILL.md 正文

PHP Localization

Use the __() method to retrieve strings.

Strings are stored in /resources/lang/{language}

Strings are generally divided based on which controller group they're part of. These include account, admin, auth, profile, and setup.

Any strings that are short and generic, used for things like titles and buttons (among other instances) are put in labels.php

Vue Localization

Use the $t() method to retrieve strings.

Strings are stored in /resources/js/i18n/locales/{language}.json

04 同仓库更多 Skills

kumulicp
kumulicp/kumulicp

vuestic-development

Apply this skill whenever writing the template on a Vue file

前端开发
★ 2
kumulicp
kumulicp/kumulicp

test-development

Always invoke when writing, editing, or reviewing PHP test files, Pest tests, or anything in the tests/ directory.

内容创作者测试与质量写作与文案
★ 2
kumulicp
kumulicp/kumulicp

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/grid 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/v4 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/CSS component, CSS file audits, build tool configuration, and vanilla CSS.

前端开发后端与接口
★ 2
kumulicp
kumulicp/kumulicp

socialite-development

Manages OAuth social authentication with Laravel Socialite. Activate when adding social login providers; configuring OAuth redirect/callback flows; retrieving authenticated user details; customizing scopes or parameters; setting up community providers; testing with Socialite fakes; or when the user mentions social login, OAuth, Socialite, or third-party authentication.

测试与质量
★ 2
kumulicp
kumulicp/kumulicp

php-development

Use the following rules for writing code

★ 2
kumulicp
kumulicp/kumulicp

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.

后端与接口
★ 2