guikingone/agent-skills

A library that integrate agent skills standard

Maintainers

Package info

github.com/Guikingone/php-agent-skills

pkg:composer/guikingone/agent-skills

Statistics

Installs: 4

Dependents: 0

Suggesters: 0

Stars: 2

Open Issues: 0

0.3.0 2026-03-18 17:05 UTC

This package is auto-updated.

Last update: 2026-03-18 17:23:46 UTC


README

Make sure Composer is installed globally, as explained in the installation chapter of the Composer documentation.

composer require guikingone/agent-skills

Quick start - Standalone

require_once dirname(__DIR__) . '/vendor/autoload.php';

$loader = new FilesystemSkillLoader([
    __DIR__ . '/.skills',
]);

$skill = $loader->loadSkill('twig-component');

assert($skill instanceof SkillInterface);

# Agent call with the loaded skill

Quick start - Symfony

If symfony/flex is not installed, manually update the config/bundles.php:

// config/bundles.php

return [
    // ...
    AgentSkills\Bridge\Symfony\AI\AgentSkillsBundle::class => ['all' => true],
];

Then configure skills in config/packages/agent_skills.yaml:

# config/packages/agent_skills.yaml
agent_skills:
    skills:
        enabled: true
        agents:
            my_agent:
                directories:
                    - '%kernel.project_dir%/skills'
                active_skills:
                    - 'twig-component'
                    - 'symfony-console'
                include_index: true

Quick start - Laravel

Install the package alongside laravel/ai:

composer require guikingone/agent-skills laravel/ai

The AgentSkillsServiceProvider is auto-discovered by Laravel. If auto-discovery is disabled, register it manually in bootstrap/providers.php:

return [
    // ...
    AgentSkills\Bridge\Laravel\AI\AgentSkillsServiceProvider::class,
];

Publish and configure config/agent-skills.php:

php artisan vendor:publish --tag=agent-skills-config
// config/agent-skills.php
return [
    'skills' => [
        'enabled' => true,
        'agent' => \App\Agents\MyAgent::class,
        'directories' => [
            resource_path('skills'),
        ],
        'active_skills' => [
            'twig-component',
            'symfony-console',
        ],
        'include_index' => true,
    ],
];