laravel-development-workflow
Skill này làm gì
Công cụ này giúp thực hiện các thay đổi đúng đắn và dễ bảo trì trong một ứng dụng Laravel. Nó đảm bảo các bản sửa lỗi và tính năng mới phù hợp với dự án hiện có và được kiểm thử kỹ lưỡng.
Khi nào nên dùng
- ✓Khi bạn thêm một tính năng mới vào dự án Laravel.
- ✓Khi bạn sửa lỗi trong ứng dụng Laravel.
- ✓Khi một thay đổi cần được kiểm thử để đảm bảo không làm hỏng các phần khác của hệ thống.
Liên kết skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/laravel-development-workflow/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Sửa lỗi khiến người dùng không thể đăng nhập và thêm một bài kiểm thử để đảm bảo điều này không lặp lại.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Công cụ trước tiên tìm hiểu cách ứng dụng hoạt động, xác định chính xác nguyên nhân của vấn đề hoặc vị trí phù hợp cho tính năng mới. Sau đó, nó thực hiện thay đổi theo quy tắc của dự án và thêm kiểm thử để xác nhận mọi thứ hoạt động như mong đợi.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
Laravel Development Workflow
Make the requested Laravel behavior correct, maintainable within the existing application, and supported by evidence that matches the change's risk.
When to Use
- Use when implementing a feature in an existing Laravel application.
- Use when diagnosing and fixing a Laravel bug at its actionable root cause.
- Use when a Laravel change needs regression coverage and proportionate verification.
- Use when the project already has architectural or testing conventions that must be preserved.
Establish the Contract
Before editing:
- Read the repository instructions and inspect the relevant routes, models, controllers, actions or services, requests, policies, jobs, events, tests, and schema.
- Trace the current behavior far enough to identify the actual change boundary and existing conventions.
- Turn the request into a compact set of scenarios, important edge cases, and verifiable acceptance criteria. Keep this analysis in the working notes unless the user requests a separate artifact.
- Identify authorization, validation, transaction, queue, cache, and concurrency concerns only where they can affect this behavior.
Scale the analysis to the task. A focused validation fix does not need the same ceremony as a new multi-role workflow.
Fix Bugs at the Cause
For a bug:
- Reproduce the failure through the narrowest reliable path.
- Trace the data and control flow to the actionable root cause.
- Add or update a regression test that fails for that cause when practical.
- Implement the smallest fix that restores the intended invariant.
- Demonstrate that the regression test passes and that nearby behavior still works.
Do not substitute retries, broad exception handling, disabled validation, extra timeouts, or error suppression for a root-cause fix. If the failure cannot be reproduced locally, state what evidence is missing and use the strongest available static or targeted verification.
Build Features in the Existing Shape
- Reuse the application's established patterns and naming.
- Keep business rules in the layer where this codebase already places comparable rules.
- Use Eloquent relationships, form requests, policies, actions, services, events, or jobs when they improve this change or match local conventions—not as mandatory ceremony.
- Treat authorization and validation as explicit behavior at the system boundary.
- Preserve backwards compatibility unless the request requires a breaking change.
- Keep migrations reversible and safe for the application's supported database engines.
Create factories, seeders, fixtures, or a disposable command only when realistic data is needed for development or durable test coverage. Do not leave one-off scaffolding in the product solely to exercise a small change.
Verify Proportionately
Discover the project's supported commands from its configuration and documentation. Prefer this order:
- Run the narrowest affected test or reproduce the original failure.
- Run the relevant feature, unit, or integration test group.
- Run static analysis, formatting, and linting configured by the repository.
- Run the broader suite when the change's reach or project policy warrants it.
Cover the critical observable behavior, including the happy path and whichever edge cases, validation rules, permissions, database effects, events, notifications, jobs, or API contracts are actually affected. Avoid tests that only mirror implementation details.
Common commands may include:
php artisan test --filter=RelevantTest
vendor/bin/pest --filter=RelevantTest
vendor/bin/phpstan analyse
vendor/bin/pint --dirty
Use the commands the project provides; do not install or configure tools merely because they appear in this example.
Preserve the User's Environment
- Keep the change inside the requested application behavior and preserve unrelated working-tree changes.
- Do not run destructive database operations, production commands, deployments, credential changes, or external account actions unless the user or repository instructions explicitly place them in scope.
- Avoid exposing secrets in commands, logs, test output, or completion evidence.
- Prefer local, reversible verification and narrowly targeted data changes.
Completion Evidence
Before handing off, verify each acceptance criterion against current behavior. Report:
- what changed and why it fixes or implements the requested behavior;
…
Câu hỏi thường gặp
Laravel là gì?
Laravel là một 'framework' (bộ khung làm việc) phổ biến để xây dựng ứng dụng web bằng ngôn ngữ lập trình PHP.
'Chẩn đoán nguyên nhân gốc' (root-cause diagnosis) nghĩa là gì?
Nghĩa là tìm ra nguyên nhân thực sự khiến vấn đề xảy ra, thay vì chỉ xử lý các triệu chứng bề ngoài.
'Regression tests' là gì?
Đây là các bài kiểm thử đảm bảo một thay đổi ở phần này của code không làm hỏng các phần khác vốn đã hoạt động tốt.
Chi tiết
Mô tả gốc của tác giả
Build and fix existing Laravel applications through root-cause diagnosis, repository-native implementation, regression coverage, and risk-based verification.
Độ phổ biến
- Sao GitHub
- 48k
- Vị trí xếp hạng
- #5027
- Giấy phép
- MIT
- Cập nhật
- 15/10/2026
Bình luận
- …
Thêm skill từ kho mã này
00-andruia-consultant
48kGiúp agent của bạn bắt đầu hoặc cải thiện các dự án AI. Phân tích mã, gợi ý công cụ và lập kế hoạch hành động bằng tiếng Tây Ban Nha.
007
48kCho phép agent của bạn thực hiện kiểm toán bảo mật và mô hình hóa mối đe dọa. Hữu ích để bảo vệ dự án khỏi các cuộc tấn công và lỗ hổng.
10-andruia-skill-smith
48kGiúp agent của bạn tạo hoặc cải thiện các công cụ AI. Xác định cách công cụ hoạt động, viết tài liệu và kiểm tra cấu trúc.
20-andruia-niche-intelligence
48kGiúp agent của bạn tạo bản tóm tắt về một ngành cụ thể. Hữu ích để hiểu bối cảnh, quy tắc, cách người dùng tương tác và rủi ro của dự án.
Skill tương tự
api-connector-builder
280kGiúp agent của bạn xây dựng kết nối API mới theo đúng mẫu đã có, dùng khi bạn cần thêm một tích hợp mà không tạo cách làm mới.
api-design
280kGiúp agent của bạn thiết kế REST API theo các thực hành tốt nhất, hữu ích để định nghĩa cách API giao tiếp, hiển thị lỗi và tổ chức dữ liệu.
backend-patterns
280kGiúp agent của bạn với các mẫu kiến trúc phía máy chủ và tối ưu cơ sở dữ liệu, hữu ích khi xây dựng hoặc rà soát code chạy trên máy chủ.