2.2 KiB
2.2 KiB
name, description, params
| name | description | params | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| generate-cpan-skill | Generate a Claude Skill from CPAN module documentation |
|
Generate CPAN Skill
This command generates a complete Claude Skill specification from CPAN module documentation. It ALWAYS references the actual CPAN module documentation from MetaCPAN to ensure accuracy.
Process
- MetaCPAN Lookup: First fetches the real module documentation from
https://metacpan.org/pod/[MODULE_NAME] - Analysis: Analyzes the actual API, examples, and specifications
- Generation: Creates the skill based on factual documentation
Usage
/generate-cpan-skill --module_name "Result::Simple"
Note: The synopsis parameter is optional since the command will fetch the real description from MetaCPAN.
Parameters
- module_name (required): The name of the CPAN module (will be verified on MetaCPAN)
- synopsis (optional): Override for the module description (otherwise fetched from MetaCPAN)
Verification Process
The command will:
- ✅ Verify the module exists on MetaCPAN
- ✅ Fetch the real SYNOPSIS and DESCRIPTION
- ✅ Extract actual API methods and their signatures
- ✅ Copy verified usage examples
- ✅ Include real dependencies and version info
Example Output
Based on real MetaCPAN documentation, the command will generate:
- Concise skill focused on essential usage
- Core functions with practical examples
- Key helper functions and patterns
- Essential best practices
- Omits: Installation, version history, extensive API docs
Template
The generated skill follows this concise structure:
---
name: [module-name]
description: [Brief purpose]
version: 1.0.0
tags: [perl, cpan, relevant-tags]
---
# [Module] - [Brief Purpose]
## Core Functions
[Essential functions with focused examples]
## Helper Functions
[Key helper functions if any]
## Practical Examples
[Real-world usage patterns]
## Best Practices
[Essential guidelines]