Command Palette

Search for a command to run...

UnylyUnyly
Назад к скиллам

ingest-url

БесплатноЗапускает вложенные скриптыНе проверен

Ingest a URL into the wiki. Use when the user provides a URL (Atlassian/Confluence, web articles, documentation) and wants to add it to their research wiki…

l-linот l-lin★ 17 звёзд на GitHub

Об этом скилле

Ingest URL

Fetches content from a URL, converts it to markdown, extracts assets, saves to /raw/, and runs the wiki ingest workflow.

Supported URL Types

URL Pattern Handler Notes
*.atlassian.net/wiki/* Atlassian MCP Confluence Cloud pages
confluence.* Atlassian MCP Verify instance access; request an export if unsupported
Everything else scripts/fetch-url.sh Uses defuddle for extraction

Workflow

Step 1: Detect URL Type and Fetch Content

For Atlassian/Confluence URLs:

  1. Use Atlassian MCP directly.
  2. Parse the page ID from /wiki/spaces/SPACE/pages/PAGE_ID/title or the pageId query parameter. For /wiki/x/TINY_ID links, use TINY_ID as the page ID. If no ID is available, ask the user for it.
  3. Fetch the body and metadata with getConfluencePage, passing the site hostname as cloudId, the extracted pageId, and contentFormat: "markdown". If the hostname is not accepted, use getAccessibleAtlassianResources to find the matching site's cloud ID and retry. Do not substitute another site.
  4. Preserve the returned markdown structure. If macros or assets are missing, fetch contentFormat: "html" to inspect them and convert relevant content to markdown.
  5. After category and slug selection, save the markdown with source URL and available metadata in YAML frontmatter to raw/{category}/{slug}.md. Download accessible embedded assets to raw/assets/{slug}-*.{ext} and update references to local paths.

For regular web URLs — use the bundled script:

./scripts/fetch-url.sh "<url>" "raw/<category>" "<slug>"

The script uses defuddle to:

  • Extract clean content (strips nav, ads, boilerplate)
  • Get metadata (title, author, published date, word count)
  • Convert to markdown with proper structure
  • Download images to raw/assets/ with prefixed names
  • Output markdown with YAML frontmatter

Script output (JSON):

{
  "output_file": "raw/specs/example.md",
  "title": "Page Title",
  "assets_downloaded": 3,
  "word_count": 1500,
  "slug": "example"
}

Step 2: Determine Category and Slug

Ask the user which category fits best (or infer from URL patterns):

Category Use for URL hints
specs/ Technical specifications, API docs, architecture docs.*, developer.*, api.*
papers/ Research papers, whitepapers, academic articles arxiv.org, *.edu, research.*
vendor/ Vendor documentation, product docs Product/company domains

Generate slug from page title:

  • Lowercase, hyphen-separated
  • Include date if relevant: gdpr-guide-2024.md
  • Keep short but descriptive

Step 3: Run the Fetch Script (for web URLs)

./scripts/fetch-url.sh "<url>" "raw/<category>" "<slug>"

The script automatically:

  • Saves markdown with frontmatter to raw/{category}/{slug}.md
  • Downloads images to raw/assets/{slug}-*.{ext}
  • Updates image references to local paths

Step 4: Run Wiki Ingest Workflow

Follow the ingest workflow from AGENTS.md:

  1. Read the saved markdown file
  2. Discuss key takeaways with the user
  3. Create summary page in wiki/summaries/{slug}.md
  4. Update/create entity pages for systems, vendors, standards mentioned
  5. Update/create concept pages for patterns, principles discussed
  6. Cross-reference — link related pages
  7. Update wiki/index.md with new pages
  8. Update wiki/overview.md if this changes the big picture
  9. Log the ingest in wiki/log.md

Example Usage

User says:

ingest https://confluence.company.com/wiki/spaces/HEALTH/pages/12345/FHIR-Integration-Guide

Claude does:

  1. Detects Confluence URL → uses Atlassian MCP
  2. Fetches page content and metadata with getConfluencePage
  3. Uses the returned markdown, fetching HTML if needed for macros or assets
  4. Downloads embedded diagrams to raw/assets/
  5. Asks: "This looks like a technical spec. Save to raw/specs/fhir-integration-guide.md?"
  6. After confirmation, saves the file
  7. Creates wiki/summaries/fhir-integration-guide.md
  8. Creates/updates entity pages (e.g., wiki/entities/fhir-standard.md)
  9. Creates/updates concept pages (e.g., wiki/concepts/healthcare-interoperability.md)
  10. Updates index and log

Handling Edge Cases

Authentication required:

  • For Confluence: ask the user to connect or reauthorize Atlassian MCP. If the instance is unsupported or the page remains inaccessible, report the blocker and ask for an export or manual copy-paste.
  • For other sites: inform user, suggest manual copy-paste

Content too large:

  • If page is very long, ask user if they want the full content or a specific section
  • Consider splitting into multiple files if appropriate

Assets fail to download:

  • Log the failure
  • Keep the original URL in markdown as fallback
  • Note in summary which assets are missing

Duplicate source:

  • Check if URL already exists in
Полный SKILL.md на GitHub

Установить ingest-url в Claude Code и Claude Desktop

Зарегайся, чтобы установить скилл

Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.

  • Открой команду установки в одну строку
  • Сохраняй скиллы в синхронизируемую библиотеку
  • Уведомления, когда скиллы обновляются
Зарегаться бесплатноУ меня уже есть аккаунт

Разрешённые инструменты

Инструменты, которые скиллу разрешено вызывать.

Без ограничений — скилл может использовать любой инструмент.

Вложенные файлы

scripts/fetch-url.sh

FAQ

Что делает скилл ingest-url?

Ingest a URL into the wiki. Use when the user provides a URL (Atlassian/Confluence, web articles, documentation) and wants to add it to their research wiki. Handles fetching, markdown conversion, asset extraction, and runs the full wiki ingest workflow. Triggers on "ingest <url>", "add this to the wiki", or when user shares a URL in the context of wiki research.

Как установить скилл ingest-url?

Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.

Скилл ingest-url запускает скрипты?

Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.

Похожие скиллы

Сравнить ingest-url с