Skip to content

raphaelstolt/list-skills-command

Repository files navigation

list-skills-command

Test Status Lint Status Version Downloads PHP Version PDS Skeleton

A simple drop-in syfmony/console command to list and introspect your AI skill files straight from the command line.

Installation and usage

composer require stolt/list-skills-command

Adding the command to your symfony/console based application

use Stolt\Console\Commands\ListSkillsCommand;
use Symfony\Component\Console\Application;

$application = new Application(
    'your-cli-application-with-custom-boost-skills', 
    A_VERSION_NUMBER
);

# Actual command integration
$application->addCommand(new ListSkillsCommand());

$application->run();

Listing all available skills

Here for llms-txt-php-cli which integrates the list skills command.

php bin/llms-txt-cli list-skills

Available AI skills:
- llms-txt-check-links
- llms-txt-info
- llms-txt-init
- llms-txt-validate

Listing more detailed skill metadata

Use Symfony Console's verbose mode to include the skill name, optional version, and description metadata. Since v1.1.0 it also does some basic validation of the available skill files.

php bin/llms-txt-cli list-skills --verbose|-v

Available AI skills:
- Check links in llms.txt (1.0.0): Validate that all links in an llms.txt file are reachable.
- Show llms.txt info: Display metadata and summary information for an llms.txt file.
- Initialize llms.txt: Create a new llms.txt file for a project.
- Validate llms.txt: Validate the structure and contents of an llms.txt file.

Filtering skills by tag

Use the --tag option to filter the available skills by a specific tag or a comma-separated list of tags.

Filtering skills by stable version

Use the --stable-version option to filter skills having a stable version number i.e. >=1.0.0.

Switching the output format

Use the --format-json option to switch the output format to machine-readable JSON for AI agents or CI environments. Since v1.2.1 this is auto-enabled for AI agentic runs.

Use the --format-md option to render the skills as a Markdown table in the terminal.

Running tests

composer test

License

This command is licensed under the MIT license. Please see LICENSE.md for more details.

Changelog

Please see CHANGELOG.md for more details.

Contributing

Please see CONTRIBUTING.md for more details.

About

A Symfony console command for listing and introspecting available AI skills.

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages