ワンクリックで
laraveldaily-production-readiness-audit
Perform a comprehensive security audit of all project files in the current working directory.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Perform a comprehensive security audit of all project files in the current working directory.
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
This skill should be used when the user asks to "audit Laravel permissions", "review roles and permissions", "check authorization code", "find permission issues", "permissions review", "audit access control", or wants to analyze a Laravel project's roles/permissions implementation for improvements. Scans all PHP source files and reports findings with actionable suggestions.
This skill should be used when the user asks to "audit Laravel tests", "review test coverage", "check testing practices", "find missing tests", "testing review", "improve tests", or wants to analyze a Laravel project's testing quality and identify gaps. Scans existing tests and application code, then reports findings with actionable suggestions.
This skill should be used when the user asks to "audit Eloquent code", "review Eloquent usage", "check model code", "find N+1 queries", "find query performance issues", "Eloquent review", or wants to analyze a Laravel project's Eloquent usage for improvements. Scans relevant Laravel source files and reports findings with actionable suggestions.
This skill should be used when the user asks to "audit Laravel queues", "review queue implementation", "check job code", "find queue issues", "queue review", or wants to analyze a Laravel project's queue/job usage for improvements. Scans all PHP source files and reports findings with actionable suggestions.
This skill should be used when the user asks to "audit Laravel API", "review API architecture", "check API code", "find API issues", "API review", or wants to analyze a Laravel API project for improvements. Scans the Laravel API codebase and reports high-signal findings with actionable suggestions.
This skill should be used when the user asks to "audit Laravel project structure", "review project architecture", "check code organization", "find over-engineering", "find fat controllers", "structure review", or wants to analyze a Laravel project for structural improvements. Scans all PHP source files and reports findings with actionable suggestions.
| name | laraveldaily-production-readiness-audit |
| description | Perform a comprehensive security audit of all project files in the current working directory. |
Audit a Laravel codebase for production-readiness risks using only repository contents.
This skill MUST:
.env valuesOnly report issues that can be inferred from the repository with high confidence.
Do NOT assume server configuration, deployment process, or runtime environment.
Return results in this structure:
High confidence production risk or data leak.
Strong code smell or likely issue.
Non-blocking observation.
Search entire repo for:
.env files committed (NOT .env.example — that is expected)sk_live_AKIA-----BEGIN PRIVATE KEY-----env() references)storage/logs/*.log.env.example — this is a template, not a secretenv('SOME_SECRET') or env('API_TOKEN') inside config/*.php — these are config placeholders referencing environment variables, not leaked secrets$tokenSecret, TOKEN_LIFETIME, CSRF_TOKEN) — flag only actual secret values, not namesSearch in:
app/routes/database/functionName( as a standalone call):dd(ray(var_dump(print_r(phpinfo(dump( — ONLY flag if it is a standalone dump(...) call. Do NOT flag: Dumpable trait, shouldDump(), $dumper, or any method/variable name containing "dump".exit( — ONLY flag in controllers, middleware, jobs, and service classes. Do NOT flag in Artisan commands where exit(0) / exit(1) is a legitimate process exit pattern.die( — ONLY flag in controllers, middleware, jobs, and service classes.tests/ directoryexit( in Artisan commands (legitimate but worth noting)Search for env( usage outside allowed locations.
Allowed:
config/*.phpbootstrap/app.phpbootstrap/providers.phpFlag:
env() returns null outside config files)Search:
database/seedersdatabase/factoriesFactories (expected for testing — lower severity):
Hash::make('password') or bcrypt('password') in a factory is the Laravel default and is expected. Do NOT flag as critical.Seeders (may run in production — higher severity):
'password', '123456', 'admin', 'secret')admin@example.com, test@test.com) without environment guardscomposer.lock existspackage-lock.jsonyarn.lockpnpm-lock.yamlBlade uses:
@vite(...) but no vite.config.*mix(...) but no Mix configpackage.json exists but:
build scriptreferences to missing assets
Search for:
abort(500) — sometimes intentional but worth reviewingTODO remove or TODO: removeFIXMEtemporary as a standalone word (matches legitimate uses like temporaryUrl(), temporarySignedRoute()). Only flag comments explicitly saying "this is temporary" or "temporary hack/fix/workaround".debug as a standalone word (matches debugbar, debug_backtrace, log channel names). Only flag comments explicitly saying "debug code" or "remove debug".dd(, die(, dump(, or exit( — those are covered in Check 2 to avoid duplicate findings.catch blockscatch (\Exception) with no loggingthrottle middlewareroutes/web.php, routes/auth.php, and Fortify configurationlimiter() is configured in FortifyServiceProvider$hidden property that have sensitive columns (check migrations or schema for: password, remember_token, two_factor_secret, two_factor_recovery_codes, secret, api_token)$hidden does not cover themDO NOT check:
.env values correctnessconfig:cache is runIf unsure → DO NOT report.
Prefer missing an issue over producing a false positive.