Download the PHP package neuron-core/agent-skills without Composer
On this page you can find all versions of the php package neuron-core/agent-skills. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Download neuron-core/agent-skills
More information about neuron-core/agent-skills
Files in neuron-core/agent-skills
Package agent-skills
Short Description Agent Skills toolkit with pluggable storage for Neuron AI.
License MIT
Informations about the package agent-skills
Neuron AI Skills
[!IMPORTANT] Get early access to new features, exclusive tutorials, and expert tips for building AI agents in PHP. Join a community of PHP developers pioneering the future of AI development. Subscribe to the newsletter
Before moving on, support the Neuron AI community giving a GitHub star ⭐️. Thank you!
Add Agent Skills to your Neuron AI
agents with SkillToolkit. Combine your own skills with community packages and
make them available to the agent through a single toolkit.
The library handles skill discovery and provides tools for loading instructions and supporting resources when needed. It follows the open Agent Skills specification and supports local directories, PDO databases and custom storage.
Installation
Requires PHP 8.1+.
| Agent Skills | Neuron AI |
|---|---|
| 2.x (current) | 4.x |
| 1.x | 4.x |
| 0.x | 3.x |
Quick Start
Find community skills on skills.sh and install one from your application's root:
The Skills CLI requires Node.js/npm and
installs caveman into .agents/skills. Create an agent and register that
directory, replacing your-api-key with your OpenAI API key:
How Skills Work
The agent starts with only the name and description of each skill. When a skill is relevant, it loads the full instructions on demand:
| Tool | Purpose |
|---|---|
skill |
Load a skill's instructions by its declared name. |
skill_resource |
Read one supporting file, such as references/guide.md, from that skill. |
skill_script_prepare |
Make the skill's files available in a local directory before running its scripts. |
Skills can include scripts. The toolkit does not execute them: register an
execution tool such as Neuron's BashTool alongside it.
Filesystem skills run from their original directory. Skills from other storages
are copied to a new directory under sys_get_temp_dir(); the toolkit does not
delete these copies.
Multiple Sources
Pass several storages to combine bundled skills, CLI-installed skills and database skills:
If two skills declare the same name, the agent gets the one from the first storage. Its instructions and files always come from that source, with no fallback to another skill with the same name.
Skills are discovered on first use and then cached. Recreate the toolkit to pick up newly added skills.
Database Storage
DatabaseSkillStorage reads skills from an existing PDO connection. Each row
stores one file of a skill; the complete skill document goes at path SKILL.md.
You create and populate the table, for example:
skill_identifiergroups the rows of one skill. It may differ from thenamedeclared inSKILL.md.skill_identifierandpathmust be compared case-sensitively. SQLite and PostgreSQL do this by default; on MySQL, use a binary collation such asutf8mb4_bin.- The adapter only reads: it never creates or migrates tables. Integration tests run on SQLite.
Accessing Skills Directly
Share a SkillRepository between the toolkit and other features, such as slash
commands or a skill picker:
Other frontmatter fields are preserved and available through loadFrontmatter().
Custom Storage
Implement SkillStorageInterface to
load skills from another backend:
Throw RuntimeException for missing or unreadable files. If the files are
already on the local disk, also implement
LocalSkillStorageInterface so
scripts run from the original directory instead of a temporary copy.
StoragePaths helps validate identifiers and normalize
paths.
Error Handling
Invalid or unreadable skills are skipped; inspect $skills->diagnostics() to
see why. Tools report read failures to the agent. When accessing skills
directly, catch RuntimeException.
Runnable Examples
The examples include interactive demos with filesystem, database and mixed storages, including skills that run scripts.
Contributing
Report bugs and propose changes through GitHub Issues
and pull requests. Development requires PDO and pdo_sqlite:
Neither command requires an API key.
License
MIT.
All versions of agent-skills with dependencies
neuron-core/neuron-ai Version ^4.0
symfony/polyfill-intl-normalizer Version ^1.31
symfony/polyfill-mbstring Version ^1.31
symfony/yaml Version ^6.4 || ^7.0 || ^8.0