Agent Skills Generator
Convert documentation websites into Markdown skills optimized for AI agents and LLMs.
This repository contains two projects:
- VS Code Extension: A GUI-based tool to manage and generate skills directly within VS Code.
- Go CLI: A robust command-line tool for high-performance crawling and generation.
1. VS Code Extension
Code located in vscode-extension/.
A Visual Studio Code extension that provides a dedicated "Agent Skills" side panel to manage your crawling rules and generate skills.
Features
- Visual Rule Management: Add, edit, and delete URL patterns via a clean UI.
- One-Click Generation: Fetch skills directly from VS Code.
- State Persistence: Rules and settings are saved between sessions.
- Import/Export: Share configurations via JSON files.
- Configurable: Set output directory, file naming, and structure preferences.
Installation
- Clone this repository.
- Open the
vscode-extensionfolder in VS Code. - Run
npm installto install dependencies. - Press
F5to start the extension in a debug window.
Usage
- Open the Agent Skills view in the Activity Bar.
- Add URL patterns (e.g.,
https://docs.flutter.dev/). - Configure Include/Ignore and Subpaths.
- Click Fetch Skills.
2. Go CLI
Code located in go-cli/.
A high-performance CLI tool written in Go for recursive crawling and Markdown conversion.
Features
- Recursive Crawling: Configurable depth and filtering.
- HTML to Markdown: Clean conversion optimized for token efficiency.
- Metadata Extraction: Frontmatter with original URL, title, and dates.
- Flat Storage: Option to save as flat structures for RAG compatability.
Installation
cd go-cli
go build -o agent-skills-generator main.go
Usage
Basic Crawl:
./agent-skills-generator crawl --config skills.yaml
Configuration (skills.yaml):
output: .agent/skills
flat: true
rules:
- url: "https://docs.flutter.dev/"
subpaths: true
action: "include"
For full CLI documentation, see go-cli/README.md.