spatie-package-skeleton

Scaffold Laravel packages using Spatie's skeleton templates.

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

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Creates a standardized starting point for Laravel package development by templating Spatie's skeleton, reducing boilerplate and setup time.

Core Features & Use Cases

  • Structured starter: Provides a complete package scaffold with naming conventions, tests, and configuration.
  • Fast onboarding: Accelerates new package creation for teams and OSS projects.
  • Use Case: When starting a new PHP package, use the skeleton to bootstrap repository layout and initial files.

Quick Start

Create a new Laravel package repository using Spatie's package skeleton template and begin customizing it.

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 Laravel package using a standardized template?

Scaffolding a Laravel package with this Skill uses Spatie's skeleton templates to generate a complete repository layout, including tests and configuration files. It prompts for vendor name, package name, description, and visibility to customize the initial package structure for development.

What is the best way to bootstrap a PHP package for Laravel to reduce setup time?

Bootstrapping a PHP package is best handled by templating Spatie's skeleton, which provides a structured starter with established naming conventions and tests. This approach reduces boilerplate and accelerates new package creation for teams and open-source projects requiring a consistent, production-ready structure.

What do I need to scaffold a Laravel package using Spatie's skeleton template?

Scaffolding a Laravel package requires gh CLI, PHP, Composer, and git installed in your environment. You must also provide a vendor name, package name, description, and visibility preference to generate the customized repository structure.

Can I use this Laravel package skeleton for open-source PHP projects?

Yes, you can use this Laravel package skeleton for open-source PHP projects. It applies specifically to developers starting new OSS projects who want a consistent, production-ready structure to accelerate package creation and team onboarding.

What are the limitations of using a predefined skeleton template for Laravel package development?

Using a predefined skeleton template for Laravel package development enforces a specific repository layout and naming convention. Developers must adapt custom logic into this fixed structure, limiting flexibility for projects requiring a non-standard directory configuration.