laravel:documentation-best-practices

Document Laravel project rationale with PHPDoc annotations and structured templates.

Updated Apr 7, 2026
One-click install
npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-documentation-best-practices-sivanwol
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: laravel:documentation-best-practices
Source: https://github.com/Sivanwol/sabo-platfom/tree/main/.agents/skills/laravel-documentation-best-practices
Command: npx skills add https://github.com/Sivanwol/sabo-platfom --skill laravel-documentation-best-practices-sivanwol

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Documentation complexity arises when the rationale behind decisions is unclear, leading to maintenance challenges. This skill emphasizes documenting WHY, not just WHAT, and fosters practices that capture complex business logic and architecture decisions.

Core Features & Use Cases

  • Emphasize rationale over code comments to improve long-term maintainability.
  • Use descriptive naming, self-documenting code techniques, and PHPDoc to convey intent.
  • Capture architecture decisions, complex business rules, and API contracts with templates and examples.

Quick Start

Document a Laravel module by explaining the rationale behind each design choice in clear, example-driven guidance.

Frequently Asked Questions about laravel:documentation-best-practices

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I document the reasoning behind Laravel architecture choices?

Document Laravel architecture choices by capturing the rationale behind design decisions using descriptive naming, self-documenting code, and PHPDoc. This approach shifts focus from basic code comments to explaining why specific business rules and service layers were chosen.

What is self-documenting code in Laravel and when do I need it?

Self-documenting code in Laravel uses descriptive naming conventions and structured templates to convey intent without relying solely on comments. You need it when maintaining complex data models, API contracts, and service layers where decision rationale must be clear for long-term maintainability.

How to write PHPDoc annotations that explain business logic in Laravel?

Write PHPDoc annotations that explain business logic by applying structured templates to capture intent, constraints, and trade-offs. Use these annotations alongside descriptive naming to document complex business rules and API contracts within your Laravel controllers and data models.

Does this Laravel documentation approach work for existing codebases?

Yes, this documentation approach applies to existing Laravel codebases requiring clear reasoning. It helps retrofit rationale behind established architecture choices, service layers, and data models by promoting best practices through structured templates and self-documenting code techniques.

What's the best way to capture API contracts and trade-offs in Laravel projects?

The best way to capture API contracts and trade-offs is by emphasizing rationale over standard code comments. Use structured templates and PHPDoc to document the intent and constraints behind your Laravel API design, ensuring long-term maintainability for complex project reasoning.