Self-Learning Skill Generator
Autonomously research and learn new technologies from the web, then generate a reusable skill.
Usage
```
/learn
If `
Normalize to kebab-case for filenames.
2. Discover Sources (Web Search)
Use web search tool to find authoritative documentation:
Search queries to try: 1. `Select 3–5 high-quality URLs maximum.
If no credible sources found, ask user to provide a URL.
---
3. Extract Content (URL Reading)
For each selected URL, read the content:
Extract only relevant sections:If reading the content fails (JavaScript-heavy sites), fall back to browser agent:
```
Task: Navigate to
Record scrape timestamp for each source (use current date: YYYY-MM-DD format).
---
4. Generate Skill
Skills are modular, self-contained packages. Every skill consists of a required `SKILL.md` file and optional bundled resources:
``` skill-name/ ├── SKILL.md (required) │ ├── YAML frontmatter metadata (required) │ │ ├── name: (required) │ │ └── description: (required) │ └── Markdown instructions (required) └── Bundled Resources (optional) ├── scripts/ - Executable code (Python/Bash/etc.) ├── references/ - Documentation intended to be loaded into context as needed └── assets/ - Files used in output (templates, icons, fonts, etc.) ```
1. Read `references/skill_creation_guide.md` to understand the format and principles. 2. Synthesize the learned and extracted information into a new skill. - Trigger: Write a description that clearly defines when to use it. - Workflow: Create step-by-step instructions. - Format: Ensure valid YAML frontmatter and proper file structure.
5. Save the Skill
Antigravity supports two types of skills, save a global-workspace if asked.
Create directory if it doesn't exist, warn user before overwriting existing skill.
---
6. Confirm to User
Report:
```
✓ Created skill:
---
Tool Reference
Critical Rules
1. Never hallucinate documentation: Only include information from scraped sources. 2. Never invent APIs: If documentation is unclear, ask the user what to do. 3. Ask for URLs: If automated discovery fails, ask user for specific URLs. 4. Verify sources: Prefer official sources over third-party tutorials.