PHPackages                             truthanb/laravel-ai-skills - PHPackages - PHPackages  [Skip to content](#main-content)[PHPackages](/)[Directory](/)[Categories](/categories)[Trending](/trending)[Leaderboard](/leaderboard)[Changelog](/changelog)[Analyze](/analyze)[Collections](/collections)[Log in](/login)[Sign up](/register)

1. [Directory](/)
2. /
3. [Utility &amp; Helpers](/categories/utility)
4. /
5. truthanb/laravel-ai-skills

ActiveLibrary[Utility &amp; Helpers](/categories/utility)

truthanb/laravel-ai-skills
==========================

Agent Skills (agentskills.io) support for Laravel AI

v0.2.0(2mo ago)224MITPHPPHP ^8.4

Since Feb 7Pushed 2mo agoCompare

[ Source](https://github.com/truthanb/laravel-ai-skills)[ Packagist](https://packagist.org/packages/truthanb/laravel-ai-skills)[ RSS](/packages/truthanb-laravel-ai-skills/feed)WikiDiscussions main Synced 1mo ago

READMEChangelogDependencies (4)Versions (3)Used By (0)

Laravel AI Skills
=================

[](#laravel-ai-skills)

Agent Skills ([agentskills.io](https://agentskills.io)) support for [Laravel AI](https://github.com/laravel/ai). Load, register, and wire skill-based instructions and tools into your AI agents.

Installation
------------

[](#installation)

```
composer require truthanb/laravel-ai-skills
```

Quick Start
-----------

[](#quick-start)

### 1. Create a Skill Directory

[](#1-create-a-skill-directory)

Create a skill directory with a `SKILL.md` file following the [Agent Skills specification](https://agentskills.io):

```
resources/skills/
└── customer-support/
    ├── SKILL.md
    ├── scripts/
    │   └── triage.sh
    └── references/
        └── TEMPLATES.md

```

The `SKILL.md` file uses YAML frontmatter:

```
---
name: customer-support
description: Handle customer support inquiries and ticket routing.
license: MIT
---

# Customer Support Skill

Use this skill when handling customer inquiries...
```

### 2. Use the `HasSkills` Trait

[](#2-use-the-hasskills-trait)

Add the `HasSkills` trait to your agent and call `skillPrompt()` in your instructions and `skillTools()` in your tools:

```
