---
name: Package Skill Generator
slug: package-skill-generator
category: AI Engineering
description: Package Skill Generator creates or updates a Claude Code Skill for an npm or local package from its public API and current docs. Use it when you want a package-specific skill with versioned guidance, examples, and citations.
github: "https://github.com/skilld-dev/skilld/tree/main/skills/generate-package-skill"
language: Rust
stars: 308
forks: 9
install: "npx degit https://github.com/skilld-dev/skilld/tree/main/skills/generate-package-skill ~/.claude/skills/generate-package-skill"
installs_to: ~/.claude/skills/generate-package-skill
source_path: skills/generate-package-skill/SKILL.md
collection_size: 11
category_size: 2793
collection_url: "https://dirskills.com/collections/skilld-dev/skilld"
added: 2026-09-03T06:03:35.592Z
last_synced: 2026-09-03T06:03:35.592Z
canonical_url: "https://dirskills.com/skills/package-skill-generator"
---

# Package Skill Generator

Package Skill Generator creates or updates a Claude Code Skill for an npm or local package from its public API and current docs. Use it when you want a package-specific skill with versioned guidance, examples, and citations.

**Install:**

```bash
npx degit https://github.com/skilld-dev/skilld/tree/main/skills/generate-package-skill ~/.claude/skills/generate-package-skill
```

## README

# Generate a package Skill

Create a focused Skill that helps an Agent use one package correctly.

## Inputs

Ask for a package name, package directory, or prepared package source.
Ask for the destination only when the request does not provide one.

## Research

1. Record the exact installed or prepared package version.
2. Read the package manifest and every exported entry point.
3. Read public type entry points and their source definitions.
4. Read current official documentation and runnable examples.
5. Check release notes and migration guides for the exact version.
6. Prefer public exports over internal files.
7. Record advice only when the prepared source or official documentation proves it.

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.

## Output

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:

```yaml
---
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.

## Quality checks

- Keep instructions specific to the package.
- Use current APIs and package vocabulary.
- Include small examples for common tasks.
- State environment or version limits.
- Cite public APIs, version limits, and migration advice.
- Link each reference from `SKILL.md`.
- Remove generated filler and repeated prose.
- Do not copy large documentation sections.
- Do not include credentials, caches, build output, or dependency directories.

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.
