spatie-package-skeleton

Scaffold Laravel and PHP packages using Spatie skeleton templates.

Updated Mar 5, 2026
One-click install
npx skills add https://github.com/stephanesoares/dotfiles --skill spatie-package-skeleton-stephanesoares
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: spatie-package-skeleton
Source: https://github.com/stephanesoares/dotfiles/tree/main/config/claude/skills/spatie-package-skeleton
Command: npx skills add https://github.com/stephanesoares/dotfiles --skill spatie-package-skeleton-stephanesoares

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Guides developers in quickly scaffolding PHP and Laravel packages using Spatie's skeleton templates, reducing boilerplate and ensuring best practices.

Core Features & Use Cases

  • Template-driven scaffolding: Create ready-to-use package skeletons for Laravel and PHP projects.
  • Guided customization: Steps to customize vendor, package name, namespace, and class naming.
  • Use cases: Ideal for starting new open-source packages or internal libraries with proven patterns.

Quick Start

Install and run the scaffold template to generate a new package skeleton with sensible defaults.

Frequently Asked Questions about spatie-package-skeleton

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

FAQPage Schema
How do I scaffold a new Laravel package using Spatie templates?

Scaffolding a Laravel package with Spatie templates automates boilerplate creation by guiding you through vendor name, package name, namespace, and class naming conventions. This produces a ready-to-push package skeleton with sensible defaults.

What is the best way to reduce boilerplate when starting a PHP package?

Reducing boilerplate when starting a PHP package is best achieved through template-driven scaffolding. Using Spatie's skeleton templates ensures proven patterns and best practices are applied, quickly generating a ready-to-use package skeleton for new open-source or internal libraries.

Does this scaffolding tool work for both Laravel and generic PHP packages?

Yes, this scaffolding tool works for both Laravel and generic PHP packages. It uses Spatie's skeleton templates to guide the customization of vendor and package names, ensuring proper namespace and class naming conventions for any new PHP library.

How do I customize the namespace and class names when creating a package skeleton?

Customizing the namespace and class names during package creation involves a guided workflow of manual replacements. The skill specifies exact naming conventions and template usage steps to ensure your vendor and package names are correctly applied throughout the generated package skeleton.

Can I use this to scaffold internal libraries, or is it only for open-source packages?

You can use this to scaffold both internal libraries and open-source packages. The template-driven scaffolding provides proven patterns and sensible defaults suitable for starting any new PHP or Laravel package, regardless of its intended distribution context.