Generate or update an Agent Skill for an npm or local package using its public API and current documentation.
npx skills add https://github.com/skilld-dev/skilld --skill generate-package-skill
Create a focused Skill that helps an Agent use one package correctly.
Ask for a package name, package directory, or prepared package source.
Ask for the destination only when the request does not provide one.
For an npm package, use the installed or prepared package source first.
Use current official documentation when the prepared source lacks required details.
For each version-specific rule, cite the source path or official documentation URL.
Use path:line citations for prepared source when line numbers add value.
Write one directory whose name matches the Skill name.
The directory must contain SKILL.md.
Put detailed or conditional material in references/.
Put reusable commands or code in scripts/ when execution adds value.
The SKILL.md frontmatter must contain only:
---
name: package-name
description: Clear trigger conditions and the result this Skill provides.
---
Use lowercase letters, numbers, and single hyphens in the name.
Keep the name at 64 characters or fewer.
Keep the description at 1024 characters or fewer.
SKILL.md.For a direct run, show the generated files for user review.
Replace an existing Skill only after the user approves the files.
Do not claim that the Skill passed Harness checks.
Take skilld-dev/generate-package-skill from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.