LS

laiso/site2skill

Developer tools

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。 原文を見る

78 stars 品質 63 トレンド 18MIT

site2skillは、ドキュメントWebサイトをスクレイピングし、それをMarkdownに変換し、適切なSKILL.mdエントリポイントでClaude Agent Skill(ZIP形式)としてパッケージ化するツールです.

概要

site2skillは、ドキュメントWebサイトをスクレイピングし、それをMarkdownに変換し、適切なSKILL.mdエントリポイントでClaude Agent Skill(ZIP形式)としてパッケージ化するツールです。 エージェントスキルは、Claude がオンデマンドで使用する知識モジュールを動的に読み込まれています。 Claudeコード、Claudeアプリ、API で動作します。 これは、Python 3.10 +と wget を必要とする安定した Python バージョン (0.1.x) をインストールします。 Rust に書き換えると、ベータ版として利用できます。 〜4倍速く、ウィジェット依存性がなく、単一のバイナリとして出荷されます。 安定したバージョンは --version フラグがないので、バージョンの文字列が表示された場合は Rust ベータです。 1. : 組み込みの非同期HTTPクローラー(robots.txt準拠、同時並列)でドキュメントサイトをクロールします。 2. :スクレーパーとhtmdを使用してHTMLページをMarkdownに変換します。 3. : 相対リンクを絶対URLに解決します。 4。 : スキル構造とサイズ制限を確認します。 5. : SKILL.mdを生成し、.skillファイルにすべてをzip化します。 ツールはスキルディレクトリを生成します.

概要(AI 翻訳)

Claude Agent Skill にドキュメントのウェブサイトを読み込みます。

[[site2skill]は、ドキュメントウェブサイトをスクレイピングし、それをマークダウンに変換し、適切な[[SKILL.md]エントリポイントでClaude Agent Skill(ZIP形式)としてパッケージ化するツールです。

エージェントスキルは、Claude がオンデマンドで使用する知識モジュールを動的に読み込まれています。 Claudeコード、Claudeアプリ、API で動作します。

インストール

PyPI からインストール (stable)

これは、Python 3.10 +と wget を必要とする安定した Python バージョン (0.1.x) をインストールします。

##Rustベータを試す

Rust に書き換えると、ベータ版として利用できます。 〜4倍速く、ウィジェット依存性がなく、単一のバイナリとして出荷されます。

またはバージョンをピン留めします。

Rustバージョンを実行していることを確認してください。

安定版は--versionフラグがないので、バージョン文字列が表示された場合は、Rustのベータ版です。

安定したに戻るため:

インストールなしで実行する

ソースからビルドする

使用法

CLIオプション

使い方

1.Fetch:組み込みの非同期HTTPクローラー(robots.txt準拠、同時)でドキュメントサイトをクロールします。 2.Convert:スクレーパーとhtmdを使用してHTMLページをMarkdownに変換します。 3.Normalize: 相対リンクを絶対URLに解決します。 4.

このページは AI により自動翻訳されています。技術的な詳細は原文をご確認ください。

README

以下は原文 README の抜粋です。原文を見る。

site2skill

Turn any documentation website into a Claude Agent Skill.

site2skill is a tool that scrapes a documentation website, converts it to Markdown, and packages it as a Claude Agent Skill (ZIP format) with a proper SKILL.md entry point.

Agent Skills are dynamically loaded knowledge modules that Claude uses on demand. They work across Claude Code, Claude apps, and the API.

Installation

Install from PyPI (stable)

pip install site2skill

This installs the stable Python version (0.1.x), which requires Python 3.10+ and wget.

Try the Rust beta

A rewrite in Rust is available as a beta. It’s ~4x faster, has no wget dependency, and ships as a single binary.

pip install --pre site2skill

Or pin the version:

pip install 'site2skill==0.2.0b2'

Verify you’re running the Rust version:

site2skill --version
# site2skill 0.2.0-beta.2

The stable version has no --version flag, so if you see a version string, you’re on the Rust beta.

To go back to stable:

pip install 'site2skill<0.2'

Run without Installation

# Beta (Rust)
uvx --pre site2skill  

# Stable (Python, from legacy branch)
uvx --from 'git+https://github.com/laiso/site2skill@legacy' site2skill  

Build from Source

git clone https://github.com/laiso/site2skill.git
cd site2skill
cargo build --release
./target/release/site2skill --help

Usage

# Basic usage
site2skill  

# Example: Create a skill for PAY.JP
site2skill https://docs.pay.jp/v1/ payjp

# Example: Create a skill for uv documentation
site2skill https://docs.astral.sh/uv/ uv-docs

# Target specific agent (sets default output directory)
site2skill   --target claude-desktop

CLI Options

site2skill   [options]

Options:
  --target           Target agent (claude|claude-desktop|cursor|gemini|codex). Sets default output directory
  --output, -o       Base output directory for skill structure (overrides target default)
  --skill-output     Output directory for .skill file (default: .)
  --temp-dir         Temporary directory for processing (default: build)
  --max-concurrency  Maximum number of HTTP requests to run at once (default: 10)
  --skip-fetch       Skip the download step (use existing files in temp dir)
  --clean            Clean up temporary directory after completion
  --version          Print version (Rust beta only)

How it works

  1. Fetch: Crawls the documentation site with a built-in async HTTP crawler (robots.txt compliant, concurrent).
  2. Convert: Converts HTML pages to Markdown using scraper and htmd.
  3. Normalize: Resolves relative links to absolute URLs.
  4. Validate: Checks the skill structure and size limits.
  5. Package: Generates SKILL.md and zips everything into a .skill file.

Output

GitHub で README 全文を見る

推奨ツール

別のキーワードを試すか、フィルタを外してください。

インストール

npx skillfish add laiso/site2skill
MCP 初心者?mcpskill.org のガイドから始めましょう →