volcengine/searchcli/vs-crawler
Claude Code and agent skill by volcengine/searchcli
- community
Checking that the SKILL.md file is still in the repository.
Crawl websites (news, blogs, papers, GitHub, product docs, RSS feeds) into a fixed-schema JSONL file, then create a dataset and a searchable application in Viking AI Search. Supports one-time crawl and scheduled recurring crawl with automatic incremental sync.
Install
npx vskill@latest install volcengine/searchcli/vs-crawlerSKILL.md
Viking Content Crawler
When to Use
Use this skill when the user wants to crawl content from websites and import it into Viking AI Search to build a searchable knowledge base. This covers news sites, blogs, academic papers, GitHub repositories, product documentation, RSS feeds, and similar web content sources.
The agent writes crawler code tailored to the target sites, outputs data in a fixed JSONL schema, and then hands off to the vs-item-onboarding skill for dataset creation and import.
Do not use this skill when:
- The user already has a local file ready to import (use
vs-item-onboardingdirectly). - The user wants to import from a database (use
vs-item-onboardingdirectly with MySQL).
Version Check
Before starting this skill workflow, run vs version check --json. Continue only when status is up-to-date. If status is update-available, stop and tell the user to update the cloned vs repository, then run git pull --ff-only, bash ./scripts/install.sh, and bash ./scripts/install-skills.sh all --target auto --force (PowerShell: scripts/install.ps1 and scripts/install-skills.ps1). If the status is unknown, stop and report that the CLI version could not be verified.
Fixed Schema
All crawled records MUST conform to this schema. Every record is a flat JSON object written as one line in a JSONL file.
| Field | Type | Required | Description | |
|---|---|---|---|---|
id | string | yes | Unique identifier. Use a source-native stable ID (e.g., arXiv ID, GitHub owner/repo, post slug) when available; otherwise derive a deterministic ID from title + author + published_at. Must be deterministic so re-crawling the same item produces the same ID. | |
title | string | yes | Content title (headline, post title, paper title, repo name, doc page title). | |
summary | string | yes | Short abstract or description (100-500 characters recommended). | |
content | string | yes | Full text body with HTML stripped to plain text. For GitHub repos, concatenate README content. For PDF/DOC documents, extract the text content directly into this field. | |
category | string | yes | One of: news, blog, paper, github, docs, other. | |
source | string | yes | Human-readable source name, e.g. "Hacker News", "arXiv", "Viking Docs". | |
author | string | no | Author name(s); multiple authors separated by commas. | |
published_at | string | no | ISO 8601 datetime, e.g. "2026-07-16T10:30:00Z". Use crawl time if unavailable. | |
tags | array\<string\> | no | Tags, keywords, or topics. | |
language | string | no | ISO 639-1 code: "en", "zh", etc. | |
source_url | string | no | Canonical URL of the source page (the URL the record was crawled from). Must be a fully-qualified URL with scheme and host. | |
metadata | object | no | Structured key-value data. Must be flat (one level deep, no nested objects). Values must be scalar (string, number, boolean) — no arrays or objects inside. Only the standard keys listed below are allowed; do not add custom keys. All sources must use the same metadata schema. |
Example Record
Standard Metadata Fields
Only these keys are allowed in `metadata`. Do not add custom keys — every crawled record, regardless of source or category, must use exactly these keys when the data is available, and omit keys whose data is unavailable. This guarantees schema consistency across all crawl sources so downstream consumers (schema inference, search relevance tuning) see a uniform shape.
| Key | Type | Category | Description | |
|---|---|---|---|---|
read_time | string | content | Estimated reading time, e.g. "8 min". | |
word_count | number | content | Word count of the article / document body. | |
views | number | engagement | View count or page view count. | |
likes | number | engagement | Like / upvote / thumbs-up count. | |
comments | number | engagement | Comment count. | |
shares | number | engagement | Share count. | |
stars | number | repo / paper | GitHub stars (for github category) or citation-equivalent metric. | |
forks | number | repo | GitHub fork count (for github category). | |
citations | number | paper | Citation count (for paper category). | |
venue | string | paper | Publication venue, e.g. "NeurIPS 2025", "arXiv". | |
doi | string | paper | Digital Object Identifier, e.g. "10.1234/abcde". |
Values must be flat scalars (string / number / boolean). No nested objects, no arrays. If a data point does not map to any standard key, omit it rather than inventing a new key.
Preconditions
vsCLI >= 0.2.0 is installed and authenticated (vs auth statusandvs doctorsucceed).- The crawl target is reachable from the execution environment.
- A suitable runtime is available (Python 3.8+ with
requestsandbeautifulsoup4recommended).
Commands
This skill delegates dataset creation and import to vs-item-onboarding. The crawler workflow itself uses:
| Stage | Action | Purpose | |
|---|---|---|---|
| Crawl | Run agent-written crawler script | Fetch content and write JSONL | |
| Onboard | Invoke vs-item-onboarding skill | Create dataset, infer schema, import data, optionally start sync | |
| Schedule | Set up cron/launchd wrapper | For scheduled mode: periodically re-crawl and append new lines |
Workflow
Run in strict order.
- Confirm crawl mode — resolve whether the user wants one-time crawl or scheduled recurring crawl. Only skip the question when the request contains an explicit, unambiguous signal (apply detection to whatever language the user is writing in):
- Explicit one-time: phrases carrying "once", "one-time", "just this time", or equivalent single-crawl semantics.
- Explicit scheduled: phrases carrying "daily", "scheduled", "keep updated", "auto-crawl", "sync", "incremental", or equivalent recurring semantics.
- If the request is neutral — e.g. "crawl X", bare "crawl", mentions target sites but says nothing about scheduling/once — you MUST ask the user to choose. The bare crawl verb is NOT a one-time signal; it is ambiguous. Never silently default to one-time.
- Identify crawl targets and write the crawler. Based on the user's target sites, write a crawler script. The crawler MUST:
- Output records conforming to the Fixed Schema as JSONL (one record per line).
- Write output to a stable path:
/tmp/viking/crawler/<job-name>/items.jsonl. - For scheduled mode: support incremental crawling — track the last crawl cursor (most recent
published_ator last seen item IDs) in/tmp/viking/crawler/<job-name>/state.jsonso subsequent runs only fetch new content. - Deduplicate by
idwithin each run and against previous state. - Strip HTML to plain text; never include raw HTML in
content. - When encountering PDF, DOC, or other document links, download the document and extract its text content directly into the
contentfield. Use available libraries (e.g.PyPDF2/pypdffor PDF,python-docxfor DOCX,beautifulsoup4for HTML) to extract readable text. Do not store document links in records; put the extracted full text incontent. - Be polite: set a descriptive User-Agent, respect
robots.txt, add 1-3 second delays between requests, retry transient errors with backoff. - Prefer structured sources (RSS/Atom feeds > sitemap.xml > official APIs > HTML scraping).
- Log per-item errors and continue; do not abort on single-page failures.
- Strictly follow the Fixed Schema defined above — the same field names, types, and
metadatakey set, regardless of the source. Do not add source-specific top-level fields or metadata keys. Print a summary to stdout: crawled count, new count, output path.
- Run the crawler to produce the initial JSONL file at
/tmp/viking/crawler/<job-name>/items.jsonl.
- Hand off to vs-item-onboarding. Invoke the
vs-item-onboardingskill with the following context:
- Source type: JSONL file
- File path:
/tmp/viking/crawler/<job-name>/items.jsonl - Import mode: one-time import if the user chose one-time crawl; one-time import + ongoing incremental sync if the user chose scheduled crawl.
- App creation: required — the user wants both a dataset AND an application so the crawled content is immediately searchable. Tell
vs-item-onboardingto run through app creation and dataset attachment (steps 12–13) rather than stopping after dataset creation. - Schema confirmation: auto-confirm — the crawler outputs a fixed, well-defined schema (see Fixed Schema above). When
vs-item-onboardingreaches the Schema Confirmation step (step 7), automatically replyyesto proceed without surfacing the confirmation prompt to the user. Only surface it if the backend returns warnings that indicate actual schema problems (e.g. missing PK BizAttr). - Readiness: do NOT block waiting for Ready. After
vs-item-onboardingprints its hand-off block with console links, the workflow is complete. Do not runvs app wait-ready, do not poll for readiness, do not add any extra waiting steps. The user will check the console themselves. - Let
vs-item-onboardinghandle all subsequent steps (schema inference, confirmation, dataset creation, data write, app creation, dataset attach, optional sync start, console hand-off). - Do NOT re-implement the onboarding steps yourself — defer entirely to
vs-item-onboarding.
- (Scheduled mode only) Set up recurring crawl + sync. After
vs-item-onboardingcompletes successfully and the dataset is created:
- The JSONL connector sync (set up by
vs-item-onboardingduring step 4) already watches the JSONL file for new lines and imports them automatically. You do NOT need to separately configurevs connector init/runfor the file —vs-item-onboardinghandles this when it chooses the sync path. - Create a wrapper script that:
- Runs the crawler in incremental mode (using
state.jsonto skip already-crawled content), appending new records to/tmp/viking/crawler/<job-name>/items.jsonl. - Exits cleanly if no new records are found.
- Schedule the wrapper script using the platform-appropriate mechanism:
- cron (macOS/Linux): add a crontab entry. Recommended interval: 30 minutes to a few hours depending on how frequently the source updates.
- launchd (macOS): create a LaunchAgent plist with
StartInterval. - Surface the schedule info, log file path, and how to stop/inspect the job in the hand-off.
Customer Environment Principle
- In customer environments, assume repository source code is unavailable.
- Execute tasks using only the installed skills, the packaged
vsCLI surface (--help, command output, observed runtime behavior), and explicit user-provided information. - If the installed CLI behavior conflicts with a skill, trust the installed CLI behavior first.
Constraints
This is the start of the file. Read the full SKILL.md on GitHub.
Security
- Security scanPassed, 93 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/vs-crawler/SKILL.md
Popularity
- Repository stars
- 1,151
- Repository forks
- 27
- 7-day trend score
- 35
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/volcengine/searchcli/vs-crawler)