PHPackages                             stolt/skill-md - 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. [File &amp; Storage](/categories/file-storage)
4. /
5. stolt/skill-md

ActiveLibrary[File &amp; Storage](/categories/file-storage)

stolt/skill-md
==============

A library abstracting a SKILL.md file.

v0.0.3(4w ago)137↓100%1MITPHPPHP &gt;=8.2CI passing

Since May 11Pushed 3w agoCompare

[ Source](https://github.com/raphaelstolt/skill-md)[ Packagist](https://packagist.org/packages/stolt/skill-md)[ RSS](/packages/stolt-skill-md/feed)WikiDiscussions main Synced 1w ago

READMEChangelogDependencies (6)Versions (4)Used By (1)

skill-md
========

[](#skill-md)

[![Test Status](https://github.com/raphaelstolt/skill-md/workflows/test/badge.svg)](https://github.com/raphaelstolt/skill-md/workflows/test/badge.svg)[![Lint Status](https://github.com/raphaelstolt/skill-md/workflows/lint/badge.svg)](https://github.com/raphaelstolt/skill-md/workflows/lint/badge.svg)[![Version](https://camo.githubusercontent.com/eed0a403a243ad3fda2a42c02eb147ed32e2826766fa14b7f913f5a4fa6ab005/687474703a2f2f696d672e736869656c64732e696f2f7061636b61676973742f762f73746f6c742f736b696c6c2d6d642e7376673f7374796c653d666c6174)](https://packagist.org/packages/stolt/skill-md)[![Downloads](https://camo.githubusercontent.com/99e445113cb77f2a06b60e5121934ba84d8cca347ea3d0623f3ee2992799853d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73746f6c742f736b696c6c2d6d64)](https://camo.githubusercontent.com/99e445113cb77f2a06b60e5121934ba84d8cca347ea3d0623f3ee2992799853d/68747470733a2f2f696d672e736869656c64732e696f2f7061636b61676973742f64742f73746f6c742f736b696c6c2d6d64)[![PHP Version](https://camo.githubusercontent.com/bee070518258ca00da0973b812d6713d5b4a97a70b8a92b1043436deed97d5dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322b2d6666363962342e737667)](https://camo.githubusercontent.com/bee070518258ca00da0973b812d6713d5b4a97a70b8a92b1043436deed97d5dd/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7068702d382e322b2d6666363962342e737667)[![PDS Skeleton](https://camo.githubusercontent.com/3c7140ee36205075ed977142f25c29eb1fb7809e9b86a865461fc21776ad1665/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f7064732d736b656c65746f6e2d626c75652e7376673f7374796c653d666c6174)](https://github.com/php-pds/skeleton)[![Lean dist package](https://camo.githubusercontent.com/9ef308bdbe7c45e8b0328885c82eb69788f8204f9483a16c8dff3b778346637a/68747470733a2f2f696d672e736869656c64732e696f2f62616467652f6c65616e2d646973742532307061636b6167652d3030666662362e7376673f7374796c653d666c6174)](https://github.com/raphaelstolt/lean-package-validator)

A PHP library to abstract a `SKILL.md` file.

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

[](#installation)

```
composer require stolt/skill-md
```

Usage
-----

[](#usage)

### Creating a `SKILL.md` representation from an array

[](#creating-a-skillmd-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

[](#creating-a-skillmd-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

[](#accessing-skillmd-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

[](#turning-a-skillmd-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

[](#running-tests)

```
composer test
```

### License

[](#license)

This library is licensed under the MIT license. Please see [LICENSE.md](LICENSE.md) for more details.

### Changelog

[](#changelog)

Please see [CHANGELOG.md](CHANGELOG.md) for more details.

### Contributing

[](#contributing)

Please see [CONTRIBUTING.md](.github/CONTRIBUTING.md) for more details.

###  Health Score

40

—

FairBetter than 86% of packages

Maintenance94

Actively maintained with recent releases

Popularity13

Limited adoption so far

Community8

Small or concentrated contributor base

Maturity38

Early-stage or recently created project

 Bus Factor1

Top contributor holds 100% of commits — single point of failure

How is this calculated?**Maintenance (25%)** — Last commit recency, latest release date, and issue-to-star ratio. Uses a 2-year decay window.

**Popularity (30%)** — Total and monthly downloads, GitHub stars, and forks. Logarithmic scaling prevents top-heavy scores.

**Community (15%)** — Contributors, dependents, forks, watchers, and maintainers. Measures real ecosystem engagement.

**Maturity (30%)** — Project age, version count, PHP version support, and release stability.

###  Release Activity

Cadence

Every ~0 days

Total

3

Last Release

28d ago

### Community

Maintainers

![](https://www.gravatar.com/avatar/132faf5713fa951f4263fad02858a62e55c5d832ad775b33e49ba0cda2f2a028?d=identicon)[Raphael Stolt](/maintainers/Raphael%20Stolt)

---

Top Contributors

[![raphaelstolt](https://avatars.githubusercontent.com/u/48225?v=4)](https://github.com/raphaelstolt "raphaelstolt (17 commits)")

---

Tags

phpskill-mdskill-md-abstractionskill-md-libraryphpabstractionaifilecontentagent-skillsSKILL.md

###  Code Quality

TestsPHPUnit

Static AnalysisPHPStan

Code StylePHP CS Fixer

Type Coverage Yes

### Embed Badge

![Health badge](/badges/stolt-skill-md/health.svg)

```
[![Health](https://phpackages.com/badges/stolt-skill-md/health.svg)](https://phpackages.com/packages/stolt-skill-md)
```

###  Alternatives

[blueimp/jquery-file-upload

File Upload widget for jQuery.

141.5M19](/packages/blueimp-jquery-file-upload)

PHPackages © 2026

[Directory](/)[Categories](/categories)[Trending](/trending)[Changelog](/changelog)[Analyze](/analyze)
