SourceInfo (cli/source_detector.py)

mperkins0155/Skill_Seekers · files, Files / Storage

Source type detection for unified create command. Auto-detects source type from user input — supports web URLs, GitHub repos, local directories, and 14+ file types (PDF, DOCX, EPUB, IPYNB, HTML, YAML/OpenAPI, AsciiDoc, PPTX, RSS/Atom, man pages, video files, and config JSON). Not

# Source: https://github.com/mperkins0155/Skill_Seekers | License: MIT | Copyright 2025 Yusuf Karaaslan
# Provided via justclaw.it.com; keep this notice with the code.
"""Source type detection for unified create command.

Auto-detects source type from user input — supports web URLs, GitHub repos,
local directories, and 14+ file types (PDF, DOCX, EPUB, IPYNB, HTML, YAML/OpenAPI,
AsciiDoc, PPTX, RSS/Atom, man pages, video files, and config JSON).

Note: Confluence, Notion, and Slack/Discord chat sources are API/export-based
and cannot be auto-detected from a single argument. Use their dedicated
subcommands (``skill-seekers confluence``, ``notion``, ``chat``) instead.
"""

import os
import re
from dataclasses import dataclass
from typing import Any
from urllib.parse import urlparse
import log

... (truncated -- full source via MCP)

See the full source, get the GitHub permalink, and search 40K more like it.

Get a free API key