一键导入
skillize-any-lib
Generate SKILL.md for any library by analyzing its source and real-world usage. Supports Rust, Python, JavaScript, Go, C/C++, and more.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Generate SKILL.md for any library by analyzing its source and real-world usage. Supports Rust, Python, JavaScript, Go, C/C++, and more.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
| name | skillize-any-lib |
| description | Generate SKILL.md for any library by analyzing its source and real-world usage. Supports Rust, Python, JavaScript, Go, C/C++, and more. |
| metadata | {"opencode":{"emoji":"📦"}} |
Generate a comprehensive SKILL.md for any library to teach LLMs how to use it properly. The skill analyzes the library source and its dependents to extract real usage patterns.
Use this skill when:
Follow these steps to generate a SKILL.md for any library:
Extract library name from user prompt. Patterns:
skillize the lib {name}skillize {lang} lib {name}skillize crate {name}create skill for {name}Optional: User can specify language with --lang rust|python|js|go|cpp
Query package registries to detect language and get library info:
| Language | Registry API |
|---|---|
| Rust | https://crates.io/api/v1/crates/{lib} |
| Python | https://pypi.org/pypi/{lib}/json |
| JavaScript | https://registry.npmjs.org/{lib} |
| Go | https://pkg.go.dev/{lib} |
| C/C++ | GitHub search only |
Fetch from registry:
Search GitHub for projects using this library:
| Language | Search Query |
|---|---|
| Rust | depends:{lib} in Cargo.toml |
| Python | import {lib} or from {lib} |
| JavaScript | require("{lib}") or from "{lib}" |
| Go | "{lib}" in go.mod |
| C/C++ | #include <{lib}> |
Sort results by stars (descending), take top 5-10.
Present to user:
"I found {N} popular projects on GitHub that use this library. Choose:
- Use these GitHub projects
- Add your own reference projects (provide URLs)
- Use both
- Skip - use only the library's examples/tests"
If user adds custom repos, collect the URLs.
Clone to temp directory (/tmp/skillize-{lib}/):
Extract and analyze:
| What | How |
|---|---|
| README | Find use cases, features |
| Examples | examples/ directory |
| Tests | tests/ directory |
| API usage | Find use/import/require statements |
| Configuration | Cargo.toml, package.json, etc. |
| Feature flags | [features] in Cargo.toml |
For each reference project:
Write to ~/.claude/skills/{lib}-usage/SKILL.md
Use this structure (adapt as needed):
---
name: {lib}-usage
description: {description from registry}
---
# {lib}
{one-line description}
## Quick Reference
| Need | Solution |
|------|----------|
| {common_need_1} | `{solution_1}` |
| {common_need_2} | `{solution_2}` |
## Installation
```{lang}
{package_manager_install_command}
{important_types}
{minimal_example}
{code}
{code}
{complex_example}
### Step 8: Cleanup
Remove temporary cloned repositories from `/tmp/skillize-{lib}/`
## Tips
- If no GitHub dependents found, use the library's own examples/tests
- Extract actual code snippets from real projects, not generated examples
- Include version-specific notes if relevant
- Add "When NOT to use" section if applicable
## Output Location
Generated SKILL.md: `~/.claude/skills/{lib_name}-usage/SKILL.md`