spatie-package-skeleton

Bootstrap PHP and Laravel packages using Spatie's skeleton templates.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

This guide helps developers bootstrap PHP and Laravel packages using Spatie's skeleton templates, eliminating manual setup and ensuring a consistent scaffold.

Core Features & Use Cases

  • Provides templates and patterns for package structure, including config, migrations, service providers, and commands.
  • Supports both Laravel and vanilla PHP package scaffolds, enabling rapid prototyping and standardized best practices.
  • Serves as a repeatable workflow for building customizable packages with extensible components (events, models, jobs, actions).

Quick Start

Follow the steps to bootstrap a new PHP or Laravel package using Spatie's skeleton templates.

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's skeleton templates?

To scaffold a Laravel package using Spatie's skeleton templates, you bootstrap the package structure by applying standardized templates for config, migrations, service providers, and commands. This provides a repeatable workflow for package authors.

What's the best way to standardize PHP package structure for open-source development?

Standardizing PHP package structure is achieved by using Spatie's skeleton templates, which provide a consistent scaffold including configuration, migrations, commands, and service providers. This eliminates manual setup and enforces best practices.

Does Spatie's package skeleton support vanilla PHP projects or is it only for Laravel?

Spatie's package skeleton supports both Laravel and vanilla PHP package scaffolds. It enables rapid prototyping and standardized best practices across different PHP project types using extensible components.

Can I include custom commands and service providers when scaffolding a PHP package?

Yes, scaffolding a PHP package with Spatie's templates includes generating a structure with configuration, migrations, commands, and service providers. This applies to package authors needing customizable and extensible package components.

What do I need to bootstrap a PHP package using Spatie's skeleton templates?

Bootstrapping a PHP package requires the Skill's SKILL.md frontmatter containing a name and description. You can also utilize optional scripts, references, and assets directories to coordinate tooling during the scaffolding process.

Why use a package skeleton template for PHP and Laravel package development?

Using a package skeleton template eliminates manual setup and ensures a consistent scaffold for PHP and Laravel packages. It provides a repeatable workflow with templates for config, migrations, and service providers, standardizing package structure.