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★ 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:
- Use Atlassian MCP directly.
- Parse the page ID from
/wiki/spaces/SPACE/pages/PAGE_ID/titleor thepageIdquery parameter. For/wiki/x/TINY_IDlinks, useTINY_IDas the page ID. If no ID is available, ask the user for it. - Fetch the body and metadata with
getConfluencePage, passing the site hostname ascloudId, the extractedpageId, andcontentFormat: "markdown". If the hostname is not accepted, usegetAccessibleAtlassianResourcesto find the matching site's cloud ID and retry. Do not substitute another site. - Preserve the returned markdown structure. If macros or assets are missing, fetch
contentFormat: "html"to inspect them and convert relevant content to markdown. - 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 toraw/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:
- Read the saved markdown file
- Discuss key takeaways with the user
- Create summary page in
wiki/summaries/{slug}.md - Update/create entity pages for systems, vendors, standards mentioned
- Update/create concept pages for patterns, principles discussed
- Cross-reference — link related pages
- Update
wiki/index.mdwith new pages - Update
wiki/overview.mdif this changes the big picture - 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:
- Detects Confluence URL → uses Atlassian MCP
- Fetches page content and metadata with
getConfluencePage - Uses the returned markdown, fetching HTML if needed for macros or assets
- Downloads embedded diagrams to
raw/assets/ - Asks: "This looks like a technical spec. Save to
raw/specs/fhir-integration-guide.md?" - After confirmation, saves the file
- Creates
wiki/summaries/fhir-integration-guide.md - Creates/updates entity pages (e.g.,
wiki/entities/fhir-standard.md) - Creates/updates concept pages (e.g.,
wiki/concepts/healthcare-interoperability.md) - 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
Установить ingest-url в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
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 запускает скрипты?
Да, скилл несёт исполняемые скрипты. Проверь исходник перед установкой.
Похожие скиллы
agent-skill-stack
Find, evaluate, and assemble the smallest compatible set of AI Agent Skills for an end-to-end natural-language goal. Use when a user wants Skills for a…
от GitHubbuild-evidence-map
Build an auditable evidence map for a contested technical choice, research synthesis, proposal review, or consequential decision. Use when Copilot must…
от GitHubpinecone-rag
Build production RAG pipelines and persistent agent memory using Pinecone as the vector database backend. ALWAYS USE THIS SKILL when the user mentions…
от GitHubqdrant-monitoring-debugging
Diagnoses Qdrant production issues using metrics and observability tools. Use when someone reports 'optimizer stuck', 'indexing too slow', 'memory too high'…
от GitHub