Convert npm package documentation into properly formatted SKILL.md files for the KillerSkills marketplace. Handles TypeScript/JavaScript libraries with examples, API docs, and installation guides.
Converts npm package documentation into properly formatted SKILL.md files for the KillerSkills marketplace.
This skill transforms npm package documentation (READMEs, API docs) into the SKILL.md format required by KillerSkills. It extracts package metadata, installation instructions, usage examples, and API documentation, then structures them into a marketplace-ready skill definition with proper YAML frontmatter and markdown body.
When the user provides an npm package name or documentation content:
1. **Extract Package Metadata**
- Parse package name, version, and description
- Extract keywords/tags from package.json or documentation
- Identify the package's primary category (development, devops, data, etc.)
2. **Analyze Documentation Structure**
- Identify installation section
- Locate quick start or usage examples
- Find API reference sections
- Note any special configuration requirements
- Extract supported runtimes/environments
3. **Generate SKILL.md Frontmatter**
```yaml
---
name: [Descriptive skill name based on package]
description: [Concise description under 500 chars]
version: "1.0.0"
runtimes: [Array of compatible AI coding runtimes]
category: [One of: development, devops, writing, data, design, testing, security, documentation, automation, other]
tags: [Up to 10 relevant tags]
---
```
4. **Structure the Markdown Body**
- Start with a clear title (# Skill Name)
- Write a "What This Skill Does" section explaining the package's purpose
- Create a detailed "Instructions" section with:
- Installation steps
- Basic configuration
- Common usage patterns
- Key API methods or functions
- Code examples with proper syntax highlighting
- Add a "Use Cases" section with practical scenarios
- Include any important constraints or limitations
5. **Code Example Guidelines**
- Use TypeScript or JavaScript syntax highlighting
- Show both simple and advanced usage patterns
- Include imports and setup code
- Demonstrate error handling where relevant
- Keep examples concise but complete
6. **Finalize and Output**
- Ensure all code blocks use proper fencing with language identifiers
- Verify frontmatter YAML is valid
- Check that description is under 500 characters
- Confirm runtimes array includes relevant AI coding tools
- Output ONLY the SKILL.md content (no explanations, no code fences around the output)
```
---
name: Unified LLM API Client
description: Type-safe wrapper for multiple LLM providers (OpenAI, Anthropic, Google, etc.) with automatic model discovery, streaming, tool calling, and cost tracking.
version: "1.0.0"
runtimes:
- claude-code
- cursor
- continue
- copilot
category: development
tags:
- llm
- ai
- openai
- anthropic
- api
- typescript
- streaming
- tools
---
A TypeScript library providing a unified interface for multiple LLM providers with automatic model discovery, streaming support, and built-in cost tracking.
This skill helps you integrate multiple LLM providers into your application using a single, type-safe API...
[Rest of markdown content]
```
Leave a review
No reviews yet. Be the first to review this skill!
# Download SKILL.md from killerskills.ai/api/skills/npm-package-to-skillmd-converter/raw