Token导航 LogoToken导航TokenDH.com
研究检索操作浏览器github未标认证来源可访问许可证需确认审计异常

crawlercrawler 命令行

Agent Skill

crawler 用于处理浏览器自动化、网页检查和页面信息提取,适合在 Codex、Claude、Cursor、Gemini CLI 中需要让 Agent 打开页面、读取网页或验证前端流程时使用。可结合来源仓库、安装命令和原始 README 继续核验具体用法。安装前建议确认权限范围、维护状态,以及是否会触发联网、命令执行或文件读写。

总安装

924

周安装

37

GitHub Stars

3

下载量

299
CodexClaudeCursorGemini CLI

安装说明

本站只整理中文说明和来源信息,不托管安装包,也不代用户安装。

GitHub

来源数

2

许可证

unknown

最后核验

2026-05-01

来源状态

来源可访问

安装方式

通过对话安装

复制提示词发给支持本地命令或 Skills 的 AI 助手,先确认命令和权限,再让它执行。

请帮我安装这个 Agent Skill:crawler(crawler 命令行)
来源仓库:https://github.com/alpoxdev/hypercore
仓库路径:skills/crawler
安装命令:
npx skills add https://github.com/alpoxdev/hypercore --skill crawler
安装前请先检查当前环境是否支持对应 CLI,并向我确认将要执行的命令、安装目录、联网范围和文件读写权限;确认后再执行。

命令行安装

复制命令到本机终端执行。该命令会通过 npx skills 从第三方来源获取 Skill;本站只展示命令,不托管安装包,也不自动执行。

skills.shnpx skills
npx skills add https://github.com/alpoxdev/hypercore --skill crawler

简介

crawler 实现浏览器自动化与网页内容提取,支持 CDP 证据捕获与 API 逆向工程。

  • 适用于构建可复用的爬取流程、站点结构分析或前端接口探测任务。
  • 使用 .hypercore/crawler/<ACTION>.json 持久化中间状态,支持断点续爬。
  • 非一次性页面点击类操作,需明确交付物为可运行爬虫代码而非临时结果。
  • crawler 属于研究检索类 Skill,可作为该场景下的辅助能力补充。

SKILL.md

Crawler Skill

Playwriter exploration -> CDP evidence capture -> Documentation -> Code generation

Use crawler when the user wants a reusable crawling flow, site extraction plan, API reverse engineering for crawling, or analysis-backed crawler code.

For resumable or multi-step crawl work, treat .hypercore/crawler/<ACTION>.json as the durable context file that preserves intent, current state, evidence pointers, and the next step.

Do not use crawler for generic browser automation, one-off page clicking, or document rewriting with no crawl deliverable.

For quick one-off extraction with no reusable crawler, keep the work lightweight and avoid forcing the full artifact set unless the request expands into crawl design.

Templates: document-templates.md · code-templates.md Checklists: pre-crawl-checklist.md · anti-bot-checklist.md References: playwriter-commands.md · cdp-capture.md · crawling-patterns.md · selector-strategies.md · network-crawling.md · action-manifest.md


<trigger_examples>

Positive examples:

  • "Scrape product cards from this shop, inspect the API first, then generate a crawler."
  • "Figure out how this logged-in dashboard loads data and document the cookies and headers."
  • "Analyze this Cloudflare-protected site and recommend the safest crawl approach."

Negative examples:

  • "Open this site and click through the signup flow."
  • "Rewrite this crawl runbook for readability."

Boundary example:

  • "Grab three prices from this public page right now." Prefer lightweight extraction unless the user asks for a reusable crawler or site-wide strategy.

</trigger_examples>


<trigger_conditions>

TriggerAction
Reusable crawling, scraping, or site-wide extractionRun immediately
Site investigation or API reverse engineering for crawlingStart discovery and API interception
One-off extraction from a single pageTreat as a boundary case and keep the workflow lightweight unless reusable crawl work is requested
Anti-bot bypass or Cloudflare-heavy targetStart with risk checks and Anti-Detect guidance

</trigger_conditions>


<support_file_routing>

Read support files in this order:

  1. Start with pre-crawl-checklist.md before making crawl or code decisions.
  2. Use playwriter-commands.md when you need session control, page interaction, visual inspection, or selector validation.
  3. Use cdp-capture.md when you need structured network, cookie, token, storage, or rate-limit evidence with lower token cost.
  4. Use network-crawling.md when turning Playwriter/CDP evidence into API.md, NETWORK.md, and raw evidence files.
  5. Use selector-strategies.md when DOM extraction is still on the table.
  6. Use crawling-patterns.md when pagination, authentication, lazy loading, or retries shape the approach.
  7. Use anti-bot-checklist.md when the target shows blocks, CAPTCHA, Cloudflare, or explicit anti-detect requirements.
  8. Use action-manifest.md when the run needs a durable state file under .hypercore/crawler/<ACTION>.json.
  9. Use document-templates.md when writing .hypercore/crawler/[site]/ artifacts.
  10. Use code-templates.md only after the method is chosen and the discovery evidence is documented.

</support_file_routing>


<mandatory_reasoning>

Mandatory Sequential Thinking

  • Always use the sequential-thinking tool before starting crawl design, extraction strategy, or code generation decisions.
  • Run sequential-thinking for each major phase: discovery, method selection, and implementation planning.
  • If sequential-thinking is unavailable, stop and report the blocker instead of continuing without structured reasoning.

</mandatory_reasoning>


<execution_defaults>

  • Do discovery before code generation, selector lock-in, or auth assumptions.
  • Use Playwriter to reproduce the user-visible flow, then prefer CDP for structured network/auth evidence capture.
  • Prefer an API-backed crawler when CDP or fallback browser-network evidence shows a stable endpoint and manageable auth.
  • Keep large DOM or accessibility snapshots rare; use them for structure checks and selector validation, not as the default capture surface.
  • If CDP attach fails, document the limitation in ANALYSIS.md and use Playwriter interception only when the fallback evidence is still sufficient.
  • Stop and report blockers when legal constraints, repeated 403/429/503, CAPTCHA, or strong anti-bot signals make automation unsafe.
  • Do not promise CRAWLER.ts until the method, auth material, and rate-limit posture are documented.

</execution_defaults>


PhaseTaskCommand/Method
1. SessionCreate session + open pageplaywriter session new
2. ExploreReproduce the page flow with PlaywriteraccessibilitySnapshot, screenshotWithAccessibilityLabels
3. CaptureAttach CDP and collect network/auth evidenceNetwork.*, Storage.*, Runtime.evaluate
4. AnalyzeDecide API-first vs DOM-firstnetwork-crawling.md, selector-strategies.md
5. DocumentSave findings under .hypercore/crawler/[site]/Write
6. CodeGenerate crawler implementationcode-templates.md

<method_selection>

ConditionMethodNotes
API found via CDP or fallback browser-network evidence + simple authfetchFastest
API + cookie/token requiredfetch + CookieRequires expiry handling
Strong bot detectionNstbrowserAnti-Detect
No API (SSR)Playwright DOMParse directly

</method_selection>


<output_structure>

.hypercore/crawler/<ACTION>.json

  • ACTION.json preserves intent, current status, capture mode, blockers, output pointers, and the next step.
  • .hypercore/crawler/[site-name]/ preserves detailed evidence, analysis, and generated code for that site.
.hypercore/crawler/
├── <ACTION>.json              # durable action context
└── [site-name]/
    ├── ANALYSIS.md
    ├── SELECTORS.md
    ├── API.md
    ├── NETWORK.md
    ├── raw/
    │   ├── network-summary.json
    │   ├── auth-signals.json
    │   └── endpoint-candidates.json
    └── CRAWLER.ts

Site artifact contract:

.hypercore/crawler/[site-name]/
├── ANALYSIS.md      # Site structure
├── SELECTORS.md     # DOM selectors
├── API.md           # API endpoints
├── NETWORK.md       # Auth/network details
├── raw/
│   ├── network-summary.json      # normalized request/response evidence
│   ├── auth-signals.json         # cookies/storage/header evidence
│   └── endpoint-candidates.json  # deduped API candidates
└── CRAWLER.ts       # Generated crawler code

Minimum artifact contract:

  • .hypercore/crawler/<ACTION>.json is required for reusable, blocked, or resumable crawl work.
  • ANALYSIS.md is always required for reusable crawl work.
  • SELECTORS.md is required when DOM extraction is used or kept as a fallback path.
  • API.md is required when API discovery was attempted; document discovered endpoints or the absence of a usable API.
  • NETWORK.md is required when cookies, tokens, headers, rate limits, or bot-detection signals affect the method.
  • raw/network-summary.json, raw/auth-signals.json, and raw/endpoint-candidates.json are recommended when CDP capture is available, and should back the human-readable docs instead of replacing them.
  • CRAWLER.ts is required only after discovery evidence is written and the chosen method is justified.

Starter interaction commands live in playwriter-commands.md. CDP evidence capture lives in cdp-capture.md. Durable action-state rules live in action-manifest.md. Keep the core focused on method choice, output gates, and stop conditions.

Templates: document-templates.md

</output_structure>


<blocked_outcomes>

For blocked or unsafe runs:

  • write ANALYSIS.md with the blocker, the evidence that triggered the stop, and the safest next step
  • write NETWORK.md when auth signals, block responses, or anti-bot findings affected the decision
  • write any available raw evidence files even when the run is blocked, so the stop is auditable
  • update ACTION.json so status, capture_mode, blockers, and output pointers match the blocked state
  • omit CRAWLER.ts until the blocker is resolved or the method becomes safe to automate

</blocked_outcomes>


✅ Playwriter session created
✅ `ACTION.json` created when the run is reusable, blocked, or resumable
✅ Structure analyzed with limited Playwriter snapshots
✅ CDP capture attempted for network/auth evidence
✅ raw evidence files recorded when CDP capture is available, or the fallback limitation documented when it is not
✅ Selector extraction validated
✅ Findings documented under .hypercore/crawler/
✅ Crawler code generated
✅ sequential-thinking trace recorded for major phases
✅ legal, rate-limit, and bot-detection blockers documented before scaling
✅ blocked runs reported explicitly when crawler code is unsafe or premature
✅ `ACTION.json` status and `site_dir` match the actual run outputs
✅ completed runs leave `ACTION.json.next_step` empty or terminal and point outputs at final files

CategoryForbidden
AnalysisGuess selectors without structure analysis
ApproachUse DOM-only flow without checking APIs
DocumentationSkip documenting analysis results
NetworkIgnore rate limiting

# User: /crawler crawl products from https://shop.example.com

# 1. Create durable action context
# .hypercore/crawler/extract-products.json

# 2. Session
playwriter session new  # => 1
playwriter -s 1 -e "state.page = await context.newPage(); await state.page.goto('https://shop.example.com/products')"

# 3. Structure analysis
playwriter -s 1 -e "console.log(await accessibilitySnapshot({ page: state.page }))"
# => list "Products" [ref=e5]: listitem [ref=e6]: link "Product A" [ref=e7]

# 4. CDP capture
playwriter -s 1 -e $'
const client = await state.page.context().newCDPSession(state.page);
await client.send("Network.enable");
state.cdpHits = [];
client.on("Network.responseReceived", (event) => {
  if (event.response.url.includes("/api/")) state.cdpHits.push(event.response.url);
});
'
playwriter -s 1 -e "await state.page.evaluate(() => window.scrollTo(0, 9999))"
playwriter -s 1 -e "console.log(state.cdpHits)"
# => ["/api/products?page=2"]

# 5. Update extract-products.json -> status=running, capture_mode=cdp
# 6. Documentation -> .hypercore/crawler/shop-example-com/ + raw/network-summary.json
# 7. Generate API-based crawler

适合场景

01

用户想查找某类 Agent Skill 时

02

需要根据任务场景推荐可安装能力包时

03

需要对比不同来源的安装命令和来源信息时

能力概览

能力 1

按任务关键词查找相关 Skills

能力 2

展示可复制的安装命令

能力 3

保留来源站点、仓库和原始说明,方便继续核验

能力 4

展示第三方安全扫描或审计结果

安装后应在对应宿主中按原始 README 的触发条件使用;具体调用方式请以来源页面和 README 为准。

平台分布

Codex

37.08%
按下载量换算111

Claude

27.7%
按下载量换算83

Cursor

18.6%
按下载量换算56

Gemini CLI

9.96%
按下载量换算30

安全审计

Gen Agent Trust Hub

可疑

Socket

未通过

Snyk

未通过

权限和风险

操作浏览器

该 Skill 可能涉及浏览器控制能力,使用时可能读取或操作网页内容,需要在受控环境中确认权限边界。

安装前确认

本站仅展示第三方公开信息,不托管安装包,不提供自动安装或运行环境。安装前应自行审查源码、依赖和命令行为。来源安全扫描存在 warning/failed 结果,不能写成本站确认安全。当前只有一个来源,正式发布前建议补源仓库或其他目录站核验。

来源信息

继续浏览同类 Skills