Agent Skills
Package-published Agent Skills, or package skills, are versioned Markdown guidance in an @lpm.dev/* package. They help an AI coding agent use the public API, conventions, and migration paths of that package.
This page covers package skills: .md files directly in the lpm-skills/ directory of an LPM.dev Registry package. Standalone SKILL.md directories from GitHub or a local directory use a separate LPM CLI workflow. The LPM CLI skills documentation describes both workflows.
How package skills work
- The publisher writes Markdown files directly in
lpm-skills/and commits them with the package source. - The LPM CLI validates the files before upload.
- LPM.dev Registry validates the files again and stores them with the package version.
- In a Free, Pool, or Marketplace package, consumers get the skills only after the publication review and the skill review finish.
- The LPM CLI writes the approved skills into a consuming project.
The LPM CLI writes installed package skills to .lpm/skills/<owner.package>/ and leaves them there. It does not convert them into standalone skills. It does not link them into the directory of Codex, Claude Code, Cursor, or another agent. If you want an agent to use these skills, point the agent at the package directory.
Authoring format
Each skill is a .md file directly in the lpm-skills/ directory at the package root:
lpm-skills/
├── usage.md
└── migration.md
The LPM CLI rejects Markdown files in subdirectories, such as lpm-skills/guides/usage.md. Do not put authored skills in .lpm/. That directory holds local LPM CLI state. The LPM CLI never publishes it, and Git ignores it.
Each file must have YAML frontmatter and then a Markdown body:
---
name: package-usage
description: Use the package through its supported public API.
version: "1.4.0"
globs:
- "src/**/*.ts"
---
# Package usage
Import the public client, initialize it once, and reuse that instance. Follow the package's documented error handling and configuration conventions whenever you change an existing integration.
| Field | Required | Rules |
|---|---|---|
name | Yes | Lowercase letters, numbers, and hyphens. No hyphen at the start or end. |
description | Yes | 10 to 500 characters |
version | No | The package version that the skill was written for |
globs | No | An array of file patterns where the skill applies |
The version field belongs to the skill. A later package release that ships the same skill keeps the same version value.
Limits
| Rule | Limit |
|---|---|
| Skills in one package version | 10 |
| Size of one skill file | 15 KiB |
| Total skill size in one package version | 100 KiB |
| Markdown body | At least 100 characters |
| Stored skill content across one author or organization | 10 MiB |
Each skill name must also be unique in the package version.
Validate and publish
Before you publish, validate the skills:
lpm skills validate
lpm publish
The validation covers the file layout, the frontmatter, file sizes, duplicate names, and fixed security patterns. The patterns cover shell commands and code execution, access to secrets, prompt injection, and destructive file system commands. A match for any pattern blocks the publish.
Valid skill files ship in lpm-skills/ in the package, even if package.json > files does not list the directory. lpm publish does not change package.json. Other files in lpm-skills/ never ship. LPM.dev Registry validates uploaded skills with the same rules and messages as lpm skills validate.
Review and availability
In a Private package, valid skills are available at once to the personal owner or the organization. No AI review runs on them.
In a Free, Pool, or Marketplace package:
- The package version must pass the publication review first. That review judges the package's code and leaves the text of its skills to the skill review.
- Then its skills go to the skill review, a separate security review.
- Consumers cannot get the skills while a review is pending.
- Consumers get only approved skills. This includes skills approved with a warning.
If the skill review finds a risk that is not an attack, it approves the skill with a warning. It withholds a malicious skill. Examples are a skill that tries to override the safety rules of the agent, hide what it does, or steal credentials. The skill review withholds only that skill, and the package version stays available. An LPM.dev Registry admin sees every withheld skill and can quarantine the version, for example when the skill shows that its author means harm. A quarantined version no longer installs.
If a new version has the same semantic skill content as the previous version, the publish response shows a warning. The warning asks the author to make sure that the skills are still accurate. It does not block the publish.
Install package guidance
By default, lpm install installs the approved skills of a direct @lpm.dev/* dependency:
lpm install @lpm.dev/acme.ui-kit
The LPM CLI writes the skills to this directory:
.lpm/skills/acme.ui-kit/
These automatic updates apply to direct LPM.dev Registry dependencies. They run when you install, upgrade, or remove the package.
To preview or fetch the skills of one package, run lpm skills add:
lpm skills add @lpm.dev/acme.ui-kit --dry-run
lpm skills add @lpm.dev/acme.ui-kit --yes
lpm skills install is an alias for lpm skills add.
Configure automatic installation
Automatic installation of package skills is on by default. The first command below turns it off for every later install. The other two commands override the setting for one install:
lpm config lpm-skills --set false
lpm install @lpm.dev/acme.ui-kit --no-skills
lpm install @lpm.dev/acme.ui-kit --skills
The setting applies to later installs. It does not delete skill files that the project already has. It does not block lpm skills add.
Clean installed package skills
Preview the cleanup, then apply it:
lpm skills clean --dry-run
lpm skills clean
The cleanup removes a package directory only if its files still match a valid LPM CLI ownership manifest. It keeps these items:
- publisher-authored files
- modified or untracked content
- directories with an invalid manifest
- symlinks
- standalone managed skills
- agent links
To restore removed package skills, run lpm install again.
Quality score
Approved package skills add 5 points to the quality score. A package version earns them with at least one approved skill, even if the skill review withheld others. Skills that wait for the skill review or that the review withholds earn no points.