lc:api-docs

Generate API documentation from Laravel routes, controllers, and form requests.

12|2|Updated Apr 8, 2026
One-click install
npx skills add https://github.com/edulazaro/laraclaude --skill lc-api-docs
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: lc:api-docs
Source: https://github.com/edulazaro/laraclaude/tree/main/skills/api-docs
Command: npx skills add https://github.com/edulazaro/laraclaude --skill lc-api-docs

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This skill eliminates the manual effort of writing and maintaining API documentation by automatically parsing your Laravel routes, controllers, and form requests to generate accurate, up-to-date documentation.

Core Features & Use Cases

  • Automated Route Analysis: Automatically detects HTTP methods, URIs, and middleware from your route files.
  • Request & Response Mapping: Extracts validation rules from Form Requests and infers response structures from JsonResources and controller return statements.
  • Use Case: When you update your API endpoints, run this skill to instantly refresh your documentation, ensuring your frontend team or external consumers always have the latest integration details.

Quick Start

Use the lc:api-docs skill to generate comprehensive documentation for all your API routes.

Frequently Asked Questions about lc:api-docs

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

FAQPage Schema
How do I automatically generate API documentation from Laravel code?

Generate API documentation from Laravel code by analyzing route definitions, controller methods, and form request validation rules. The skill parses existing application source code to extract endpoint details, request parameters, and response schemas automatically.

Can I extract validation rules from Laravel Form Requests for API docs?

Yes, you can extract validation rules from Laravel Form Requests. The skill maps these rules to document request parameters, and also infers response structures from JsonResources and controller return statements.

Do I need to run artisan commands to document Laravel API routes?

Yes, you need the ability to execute artisan commands for route discovery. The skill requires read access to your application source code and uses artisan to detect HTTP methods, URIs, and middleware from your route files.

What is the best way to keep Laravel API documentation updated?

The best way to keep Laravel API documentation updated is running an automated parsing skill against your codebase. This instantly refreshes integration details by extracting endpoint changes directly from routes and controllers.

Does this Laravel documentation generator work with existing project structures?

Yes, the documentation generator operates on existing Laravel project structures. It requires read access to application source code to analyze current route definitions, controller methods, and form requests without modifying your files.