跳到正文
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.

中文简介正在准备中。当前显示原文说明。

集成工具Playwright
查看安装方法

包含的文件(1)

  • SKILL.md5.0 KB

SKILL.md(原文)

安装前可以查看交给 AI 代理的指令内容。

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

评价

还没有评价。欢迎分享你的使用感受。

评论

无需登录即可发表。欢迎分享使用感受、提问,或说明在哪些环境下无法运行。

还没有评论。来写第一条吧。

提交后会立即公开。请勿填写邮箱、电话等个人信息。URL 最多 2 个。

0 / 1000 字

此表单受 reCAPTCHA 保护,适用 Google 的隐私权政策和服务条款。

同一仓库的技能

Distills enduring architectural decisions and design rationale from wave orchestration plans or historical git changes into structured, tracked Architecture Decision Records (ADRs). Use pre-wave to resolve active architectural constraints or post-wave to record enduring decisions in docs/decisions/.

中文简介正在准备中。当前显示原文说明。

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

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-usda72026年10月22日 更新

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-usda72026年10月22日 更新

Migrates ArcPy and ArcGIS Pro workflows to explicit, testable open-source Python geospatial workflows. Use when removing ArcPy dependencies, porting geoprocessing scripts, or documenting ArcGIS behavior that will not be migrated.

中文简介正在准备中。当前显示原文说明。

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

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-usda72026年10月22日 更新

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-usda72026年10月22日 更新

查看 AndrewBrown-USDA 的全部技能

报告此技能的问题