stolt/skill-md
Composer 安装命令:
composer require stolt/skill-md
包简介
A library abstracting a SKILL.md file.
README 文档
README
A PHP library to abstract a SKILL.md file.
Installation
composer require stolt/skill-md
Usage
Creating a SKILL.md representation from an array
$skillMdData = [ 'name' => 'Code Review', 'description' => 'Performs automated code reviews.', 'body' => '# Some longer, skill describing Markdown content.', 'version' => '1.0.0', 'tags' => ['php', 'qa'], ]; $skillMd = SkillMd::fromArray($skillMdData);
Creating a SKILL.md representation via class properties
$skillMd = new SkillMd( 'Code Review', 'Performs automated code reviews.', '# Some longer, skill describing Markdown content.', ['version' => '1.0.0', 'license' => 'MIT', 'tags' => ['php', 'qa']] ); $skillMdViaFactory = SkillMd::create( 'Code Review', 'Performs automated code reviews.', '# Some longer, skill describing Markdown content.', ['version' => '1.0.0', 'license' => 'MIT', 'tags' => ['php', 'qa']] );
Accessing SKILL.md data
$skillName = $skillMd->name(); $skillDescription = $skillMd->description(); $skillBody = $skillMd->body(); $skillVersion = $skillMd->version(); $skillTags = $skillMd->tags(); $skillLicense = $skillMd->get('license'); if ($skill->has('unsupported-field') === false) { echo 'This field is not supported.'; } if ($skill->get('unsupported-field') === null) { echo 'This field is not supported and has no value.'; }
Turning a SKILL.md representation into Markdown
The programmatical representation:
$skillMd = new SkillMd( 'Code Review', 'Performs automated code reviews.', '# Some longer, skill describing Markdown content', ['version' => '1.0.0', 'license' => 'MIT', 'tags' => ['php', 'qa']] ); $markdown = $skillMd->toMarkdown();
The Markdown representation:
--- name: code-review description: Performs automated code reviews. version: 1.0.0 license: MIT tags: - php - qa --- # Some longer, skill describing Markdown content
Running tests
composer test
License
This library 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.
stolt/skill-md 适用场景与选型建议
stolt/skill-md 是一款 基于 PHP 开发的 Composer 扩展包,目前已累计 37 次下载、GitHub Stars 达 1, 最近一次更新时间为 2026 年 05 月 11 日, 在 PHP 生态内属于活跃度较高的组件。
它主要适用于以下技术方向: 「php」 「file」 「abstraction」 「content」 「ai」 「agent-skills」 等业务场景。在实际项目中,围绕这些方向常见需要落地的问题包括:接口对接、性能调优、并发安全、与既有框架(Laravel / ThinkPHP / Yii / Webman 等)的兼容适配,以及生产环境的日志埋点与稳定性保障。
我们在过去多个企业项目中使用过 stolt/skill-md 或与其功能相近的方案,如果你在选型或落地过程中遇到问题,例如 版本兼容、二次改造、私有化封装、与内部系统对接、生产 BUG 排查,欢迎联系我们协助评估。
基于 stolt/skill-md 在你已有业务上做功能扩展、字段裁剪、UI 适配、与内部账号 / 权限 / 日志系统的深度对接。
线上偶发问题、内存泄漏、慢查询、并发异常等排查修复;针对高流量场景做缓存、队列、索引层面的调优。
承接完整的项目从需求 → 设计 → 开发 → 上线 → 长期运维;也可按月提供技术保姆服务。
与 stolt/skill-md 相关的其它包
同方向 / 同关键字的高下载量 PHP Composer 包推荐,方便对比选型:
The file manager intended for using Laravel with CKEditor / TinyMCE / Colorbox
Powerful PHP database abstraction layer (DBAL) with many features for database schema introspection and management.
ADOdb is a PHP database abstraction layer library
Slimmed down concise interfaces and query builder for database queries and transactions which can be layered / decorated.
Laravel Media Popup to upload/view the files
PMVC Plugin for File information
统计信息
- 总下载量: 37
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 43
- 依赖项目数: 1
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2026-05-11