# Create Laravel Package

> Use when creating a Laravel package with Composer metadata, service provider, config publishing, commands, tests, CI, and release docs.

- **Type:** Skill
- **Install:** `agentstack add skill-alizharb-agent-skills-create-laravel-package`
- **Verified:** Yes — security-reviewed for prompt injection and unsafe behavior
- **Seller:** [AlizHarb](https://agentstack.voostack.com/s/alizharb)
- **Installs:** 0
- **Category:** [Developer Tools](https://agentstack.voostack.com/c/developer-tools)
- **Latest version:** 0.1.0
- **License:** MIT
- **Upstream author:** [AlizHarb](https://github.com/AlizHarb)
- **Source:** https://github.com/AlizHarb/agent-skills/tree/main/resources/boost/skills/create-laravel-package

## Install

```sh
agentstack add skill-alizharb-agent-skills-create-laravel-package
```

Requires the [AgentStack CLI](https://agentstack.voostack.com/docs/cli). Works with Claude Code, Cursor, and any MCP-compatible agent.

## About

# Create Laravel Package

## When To Use

Use this skill when starting or converting a repository into a reusable Laravel package.

## Workflow

1. Inspect existing package conventions, composer metadata, namespaces, and service providers.
2. Add or update `composer.json` with author, license, autoloading, support links, keywords, and Laravel auto-discovery.
3. Create a service provider that registers config, commands, views, translations, assets, or migrations only when needed.
4. Add config publishing and avoid forcing application files into the host app.
5. Add Pest/Testbench tests for package boot, command registration, config publishing, and core behavior.
6. Add CI for Composer validation, Pint, PHPStan, and tests.
7. Document installation, usage, configuration, testing, and release process.

## Verification

- Run `composer validate`.
- Run `vendor/bin/pint --test`.
- Run `vendor/bin/pest`.
- Run `vendor/bin/phpstan analyse`.

## Common Mistakes

- Hardcoding app paths instead of publishing configuration.
- Missing Laravel auto-discovery.
- Shipping examples that do not match supported Laravel versions.

## Source & license

This open-source skill is cataloged on AgentStack and links to its original source — we do not rehost the code.

- **Author:** [AlizHarb](https://github.com/AlizHarb)
- **Source:** [AlizHarb/agent-skills](https://github.com/AlizHarb/agent-skills)
- **License:** MIT

Install and usage instructions live in the source repository linked above.

## Pricing

- **Free** — Free

## Security capabilities

Automated source analysis of v0.1.0 — what this tool can access:

- **Network access:** no
- **Filesystem access:** no
- **Shell / process execution:** no
- **Environment & secrets:** no
- **Dynamic code execution:** no

*"Yes" means the capability is present in the source — more access means more to trust, not that it is unsafe.*


## Versions

- **0.1.0** — security scan: passed — Imported from the upstream source.

## Links

- Listing page: https://agentstack.voostack.com/l/skill-alizharb-agent-skills-create-laravel-package
- Seller: https://agentstack.voostack.com/s/alizharb
- Browse the marketplace: https://agentstack.voostack.com/browse

---
Listed on AgentStack — the marketplace for AI agent skills and MCP servers. Every listing is security-reviewed. Creators keep 70%.
