add-api

Generate RESTful API scaffolds for existing Bespoke packages.

Updated Aug 27, 2026
One-click install
npx skills add https://github.com/bespoke-uk/bespoke-mono --skill add-api-bespoke-uk
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: add-api
Source: https://github.com/bespoke-uk/bespoke-mono/tree/main/.claude/skills/add-api
Command: npx skills add https://github.com/bespoke-uk/bespoke-mono --skill add-api-bespoke-uk

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Automatically adds a complete RESTful API scaffold to an existing Bespoke package, eliminating repetitive boilerplate and speeding up API delivery.

Core Features & Use Cases

  • Contracts, Controllers, Requests, and Resources scaffolded under standard Bespoke structure.
  • Routes & ServiceProvider updates to wiring API endpoints and bindings.
  • Works for a given package path and generates the necessary files and configurations to expose a RESTful API.

Quick Start

Provide the target package path to scaffold the API and review the generated files and endpoints.

Frequently Asked Questions about add-api

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

FAQPage Schema
How do I add a RESTful API to an existing Laravel package without writing boilerplate?

To add a RESTful API without boilerplate, this scaffolding tool automatically generates Contracts, Controllers, Requests, Resources, and Routes for your existing package, producing a report of all created files and available endpoints.

What files are generated when scaffolding a REST API for a package?

Scaffolding a REST API generates Contracts, Controllers, Requests, Resources, and Routes, while also updating the ServiceProvider to wire API endpoints and bindings automatically within the standard package structure.

Can I use this API scaffolding tool with any Laravel package path?

Yes, this API scaffolding tool applies to a given package path. You provide the target path, and it generates the necessary files and configurations to expose a RESTful API under the standard structure.

What is the best way to automate RESTful API codegen for a Bespoke package?

The best way to automate RESTful API codegen is using this scaffolding tool, which eliminates repetitive boilerplate by generating controllers, requests, resources, routes, and service provider updates in one pass.

How do I review which API endpoints were created after scaffolding my package?

After scaffolding your package, you can review the available API endpoints by checking the generated report, which lists all created and modified files alongside the newly exposed RESTful API endpoints.

Do I need to manually update my ServiceProvider after generating API routes?

No, you do not need to manually update your ServiceProvider. The scaffolding process automatically updates the ServiceProvider to wire API endpoints and contract bindings for the generated controllers.