一键导入
laravel-prompt-structure
Structure prompts for clarity—separate concerns, prioritize requests, specify acceptance criteria, and break work into testable increments
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Structure prompts for clarity—separate concerns, prioritize requests, specify acceptance criteria, and break work into testable increments
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | laravel:prompt-structure |
| description | Structure prompts for clarity—separate concerns, prioritize requests, specify acceptance criteria, and break work into testable increments |
Well-structured prompts get complete, actionable responses. Poor structure leads to back-and-forth clarifications and incomplete solutions.
"Update the User model to add email verification and also create an API endpoint for password reset and add validation for the profile update form"
Break into focused requests:
Each request has one clear goal. Easier to review, test, and iterate.
"Need authentication, user dashboard, admin panel, and email notifications"
"Let's build authentication first:
Once auth works, we'll add the user dashboard, then admin features, then notifications."
Sequence matters. Build foundation first, then features that depend on it.
"Make the checkout process work"
"Implement checkout process with these requirements:
Clear criteria = clear implementation.
"Build a complete blog system with posts, comments, categories, tags, and search"
"Let's start with core post functionality:
Phase 1: Basic Posts
Phase 2: Categories
Phase 3: Comments (and so on...)
Each phase is testable and deliverable."
"This code is messy, clean it up"
"Refactor UserController@store:
Current problem:
Desired improvements:
Explain the problem and the desired state.
"Add social login"
"Add GitHub OAuth login:
Acceptance criteria:
Testable increments:
Break it down. Make it testable.
Structure your prompts:
Clear structure = clear results.
Build AI features with the first-party Laravel AI SDK (Laravel 13+); agents, embeddings, images, audio, and tool calling with provider-agnostic APIs
Use API Resources with pagination and conditional fields; keep response shapes stable and cache-friendly
Compose UIs with Blade components, slots, and layouts; keep templates pure and testable
Request effective code reviews—specify focus areas, provide context, ask for architectural feedback, reference Laravel conventions
Practical daily checklist for Laravel projects; bring services up, run migrations, queues, quality gates, and tests
Create effective debugging prompts—include error messages, stack traces, expected vs actual behavior, logs, and attempted solutions