本文へ移動
cccskills
無料GitHub で公開

web-source-bundler

Captures web sources and compiles deterministic Markdown reference bundles with metadata and checksums. Use when asked to capture URLs, research web links, bundle search results, or archive web pages into an LLM-ready reference document.

インストール方法を見る

含まれるファイル(1)

  • SKILL.md5.0 KB

SKILL.md(原文)

インストールする前に、エージェントに与えられる指示の中身を確認できます。

Web Source Bundler

Capture URLs, file lists, or search results into deterministic, verifiable Markdown reference bundles with SHA-256 provenance using web-source-bundler.

Installation & Setup

web-source-bundler requires Python 3.10+ and Playwright.

  1. Install from GitHub repository:

    pip install git+https://github.com/AndrewBrown-USDA/web-source-bundler.git
    

    (Or if developing locally within the repository workspace: pip install -e .)

  2. Install Playwright browser binaries:

    python -m playwright install chromium
    

Both web-source-bundler and source-bundler CLI entrypoints are available once installed.

Execution Workflow

  1. Extract source inputs from user prompt:
    • Explicit URLs: https://...
    • URL list files (plain text .txt with one URL per line)
    • Search result lists (JSON containing url or link, title, and optional snippet)
  2. Determine execution options:
    • Output destination: --out <dir> (defaults to ./source-bundle-<timestamp>)
    • Interactive prompt: --interactive if user requested manual selection
    • Artifacts: --no-screenshot, --no-pdf, --include-raw-html
    • Data privacy: --redact-pattern "<regex>" if sensitive tokens/PII are mentioned
    • Link indexing: --include-links-table if an appendix of all extracted links is requested
  3. Run web-source-bundler command:
    • Direct URLs:
      web-source-bundler urls https://example.com https://another.com --out ./bundle
      
    • URL list file:
      web-source-bundler file urls.txt --out ./bundle
      
    • Search results JSON:
      web-source-bundler search-results results.json --out ./bundle
      
  4. Inspect output bundle:
    • Read manifest.json to verify capture status and review any reported errors.
    • Reference combined.md for conversational grounding and reference citation by Source ID (e.g., Source 001).
  5. Report summary to the user:
    • State the bundle ID, output path, count of captured sources, and cite the primary contents from combined.md.

Deterministic Artifact Layout

A complete bundle follows this directory structure:

source-bundle-20260918-120000/
+-- manifest.json              # Provenance metadata, capture config, and error logs
+-- combined.md                # Single consolidated reference file for AI prompts
+-- checksums.sha256           # SHA-256 hashes of all files in bundle
+-- sources/
    +-- 001/
    |   +-- metadata.json      # Source metadata, HTTP status, and timings
    |   +-- readable.md        # Clean Markdown with YAML front matter
    |   +-- rendered.html      # Rendered DOM HTML
    |   +-- ast.json           # Block AST of extracted text
    |   +-- screenshot.png     # Full-page screenshot (if enabled)
    |   +-- page.pdf           # Vector PDF printout (if enabled)
    |   +-- raw.html           # Raw HTTP body (with --include-raw-html)
    |   +-- response_headers.json # HTTP headers (with --include-raw-html)
    +-- 002/
        +-- metadata.json
        +-- readable.md

Combined Markdown (combined.md)

combined.md joins all sources into one document for AI prompts:

# Source Bundle

Bundle ID: source-bundle-20260918-120000
Created: 2026-09-18T12:00:00Z
Tool: web-source-bundler 0.1.0

Use this document as the reference source bundle. Cite material by source ID.

---

## Source 001: Example Domain

- Input URL: https://example.com
- Final URL: https://example.com/
- Fetched: 2026-09-18T12:00:05Z
- SHA-256 readable Markdown: sha256:e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855

### Content

---
source_id: 001
title: "Example Domain"
input_url: https://example.com
final_url: https://example.com/
fetched_at: 2026-09-18T12:00:05Z
http_status: 200
---

Example Domain

This domain is for use in illustrative examples in documents.

Anti-Patterns to Avoid

Anti-PatternWhy It's BadFix
Ad-hoc unchecksummed scrapingMisses dynamic JS rendering, screenshots, and PDFsInstall and run web-source-bundler with headless Playwright
Silent error swallowingCorrupts audit records and leads to hallucinated sourcesCheck manifest.json and report any failed URLs
Omitting Source ID citationsLoses verifiable traceability back to original web sourceAlways cite findings by Source ID (e.g. Source 001) from combined.md
Unstructured output dumpsFragile for downstream LLM reasoning and indexingAlways output standardized manifest.json and combined.md

レビュー

まだレビューはありません。使ってみた感想をお寄せください。

同じリポジトリのスキル

概要と使いどころ

Create and maintain AGENTS.md files for project onboarding and grounding. Use when initialized in a new project, when project structure changes significantly, or when creating subfolder-level AGENTS.md files for complex monorepos.

日本語の概要は準備中です。原文の説明を表示しています。

AndrewBrown-USDA/aigb-skills-usda52026年10月10日 更新

Audit and update an arbitrary codebase to follow the Code.mil federal open-source licensing model (MIT with 17 U.S.C. Section 105 disclaimers and INTENT.md), including CRAN/R package DESCRIPTION setup.

日本語の概要は準備中です。原文の説明を表示しています。

AndrewBrown-USDA/aigb-skills-usda52026年10月10日 更新

caveman

無料

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

日本語の概要は準備中です。原文の説明を表示しています。

AndrewBrown-USDA/aigb-skills-usda52026年10月10日 更新

Review the changes since a fixed point (commit, branch, tag, or merge-base) along two axes - Standards (does the code follow this repo's documented coding standards?) and Spec (does the code match what the originating issue/spec asked for?). Runs both reviews in parallel sub-agents and reports them side by side. Use when the user wants to review a branch, a PR, work-in-progress changes, or asks to "review since X".

日本語の概要は準備中です。原文の説明を表示しています。

AndrewBrown-USDA/aigb-skills-usda52026年10月10日 更新

Reads Copilot conversation history and extracts executive-ready success stories. Use when the user asks to study prior Copilot sessions, summarize what was done before, mine evidence, or quantify time, cost, risk, and priority alignment from GitHub Copilot history in any workspace or repository.

日本語の概要は準備中です。原文の説明を表示しています。

AndrewBrown-USDA/aigb-skills-usda52026年10月10日 更新

Comprehensive investigation of complex multi-domain narratives (technology, theology, policy, finance). Systematically decouples factual claims from speculation through iterative verification, multi-source comparison, and contradiction resolution. Use for investigations requiring institutional knowledge, historical context, and handling of conflicting incentives.

日本語の概要は準備中です。原文の説明を表示しています。

AndrewBrown-USDA/aigb-skills-usda52026年10月10日 更新

AndrewBrown-USDA のスキルをすべて見る

このスキルの問題を報告する