npx skills add ...
npx skills add philschmid/self-learning-skill --skill self-learning
Autonomous skill generator that learns new technologies from the web. Use when, users want to learn about a new library/framework/tool, need to create a skill for an unfamiliar technology, want to research and document a technology's usage patterns, or invoke with `/learn <topic>`. This skill uses web search and browser tools to discover, extract, and synthesize documentation into a reusable skill.
npx skills add philschmid/self-learning-skill --skill self-learning
Autonomously research and learn new technologies from the web, then generate a reusable skill.
If <topic> is missing, show usage. If topic is ambiguous, ask to clarify:
Normalize to kebab-case for filenames.
Use web search tool to find authoritative documentation:
Search queries to try:
<topic> official documentation<topic> getting started guide<topic> API reference<topic> GitHub repositorySource prioritization:
Select 3–5 high-quality URLs maximum.
If no credible sources found, ask user to provide a URL.
For each selected URL, read the content:
Extract only relevant sections:
Skip irrelevant content:
If reading the content fails (JavaScript-heavy sites), fall back to browser agent:
Record scrape timestamp for each source (use current date: YYYY-MM-DD format).
Skills are modular, self-contained packages. Every skill consists of a required SKILL.md file and optional bundled resources:
references/skill_creation_guide.md to understand the format and principles.Antigravity supports two types of skills, save a global-workspace if asked.
.agent/skills/<skill-folder>/ Workspace-specific~/.gemini/antigravity/skills/<skill-folder>/ Global (all workspaces)Create directory if it doesn't exist, warn user before overwriting existing skill.
Report:
search_web: Discover documentation URLsread_url_content: Extract content from static pagesbrowser_subagent: Extract content from JavaScript-heavy siteswrite_to_file: Save the generated skill✓ Created skill: <topic>
Sources scraped: <N>
Saved to: .agent/skills/<topic>/SKILL.md
This skill will auto-trigger when working with <topic>.