generate_skills
Generate ranked skill packages from any URL (video, article, PDF, image). Outputs skill files ready to save and reuse with Claude Code.
Instructions
Extract structured skill packages from any content source.
Analyzes a YouTube video, article, PDF, or image URL and returns ranked skill packages — each with a SKILL.md (principles, failure modes, implementation steps), README.md, reference files, and a test script.
Skill files are ready to save to .claude/skills/ so Claude Code can apply them directly on future tasks, reducing token usage on repeated patterns.
Billing: this tool calls /api/v1/skills/generate with the LORETO_API_KEY from the environment. For pay-per-call without a key, use the x402 endpoint /api/v1/skills/x402/generate directly via the x402 Python SDK (flat $0.75/call in USDC on Base mainnet — see https://loreto.io/docs-x402). The response shape is identical; both paths return a generation_id you can pass to verify_artifacts.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| source | Yes | URL to analyze — YouTube video, article, public PDF, or image URL. | |
| source_type | No | Content type. Use "auto" to detect automatically, or specify "youtube", "article", "pdf", or "image". | auto |
| test_language | No | Language for the generated test script. One of "python" (default), "typescript", or "javascript". | python |
| include_visuals | No | When True (default), embeds Mermaid diagrams in SKILL.md. | |
| context | No | Optional 1–3 sentence hint to guide what kind of skill to extract (max 500 characters). Does not override extraction — used to disambiguate framing only. | |
| themes_to_process | No | For follow-up calls only. Pass skill_name values from a previous response's queued themes (max 3 names). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |