Upgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.
日本語の概要は準備中です。原文の説明を表示しています。
Harden Laravel apps with Policies for model authorization, Gate-based RBAC, validated mass assignment, and CSRF protection. Use when creating authorization policies, securing env config access, or preventing mass assignment vulnerabilities.
インストールする前に、エージェントに与えられる指示の中身を確認できます。
php artisan make:policy PostPolicy --model=Post.bool for view, update, delete actions.$this->authorize('update', $post).Gate::before() for admin users in AuthServiceProvider.$request->validated() for Model::create().See implementation examples for Policy class with controller authorization.
php artisan make:policy PostPolicy --model=Post for model-level authorization.update(User $user, Post $post): bool and call $this->authorize('update', $post) in controllers.Gate::define('admin', fn(User $user) => ...) for global permissions. Check with Gate::allows('admin') or Blade @can('admin'). prefer Policies for model-bound checks; use Gates for global permissions.Gate::before(fn($u) => $u->isAdmin() ? true : null) in AuthServiceProvider.config('app.key') in your application code. Never env() in controllers; use config() instead.php artisan config:cache to validate that env() isn't used where it shouldn't .<form> tags. active on web routes by default; use ->except(['/webhook']) only for trusted third-party callbacks.Gate::before for admin bypass; or use spatie/laravel-permission; never inline $user->role === 'admin'.env() outside config files: Access via config() helper.validated().config('app.key'), never env() in controllers.When this skill applies, preserve the following domain terminology or equivalent concrete examples in the answer when relevant:
configuration files,only in configuration,Do not call `env()
@can('admin')
never env() in controllers,use config() in controllers,not in controllers
web routes,web middleware,CSRF middleware
Additional task-grounded exact anchors: config('app.key')
まだレビューはありません。使ってみた感想をお寄せください。
概要と使いどころ
Upgrade an Android project to Android Gradle Plugin (AGP) 9. Use when migrating to AGP 9, updating Gradle build files, migrating to built-in Kotlin, or adopting the new AGP DSL.
日本語の概要は準備中です。原文の説明を表示しています。
Apply Clean Architecture layering, modularization, and Unidirectional Data Flow in Android projects. Use when setting up project structure, placing code in layers, configuring feature/core modules, or implementing UDF patterns; defer Compose state and ViewModel/StateFlow implementation to their specific skills.
日本語の概要は準備中です。原文の説明を表示しています。
Implement WorkManager and background processing correctly on Android. Use when creating Worker classes, scheduling tasks, choosing between WorkManager and Foreground Services, or setting up Hilt in workers; defer FCM and notification delivery to android-notifications.
日本語の概要は準備中です。原文の説明を表示しています。
Build high-performance declarative UI with Jetpack Compose. Use when writing Composable functions, optimizing recomposition, hoisting state, or working with LazyColumn and side effects; defer deep-link and navigation routing to android-navigation.
日本語の概要は準備中です。原文の説明を表示しています。
Migrate an Android XML View to Jetpack Compose following a structured 10-step workflow. Use when converting XML layouts to Compose, setting up Compose in an existing View-based project, or incrementally adopting Compose.
日本語の概要は準備中です。原文の説明を表示しています。
Write correct coroutine scopes, lifecycle collection, and dispatcher injection in Android production code. Use for suspend functions, coroutine scopes, and dispatcher mechanics; defer ViewModel StateFlow/LiveData architecture, Fragment lifecycle recipes, persistence/notifications, and unit-test recipes to their specific skills.
日本語の概要は準備中です。原文の説明を表示しています。