htmlqhtmlcss

htmlq is a command-line tool that extracts content from HTML using CSS selectors—essentially a jq for HTML. Written in Rust, it lets you pipe HTML through CSS selectors to extract text, attributes, and structured content directly from the terminal.

Installation

Review the source and dependencies with a prompt. A package is available to download.

Install with an AI assistant

Copy the prompt so your assistant can review the pinned revision and dependencies first.

View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "htmlqhtmlcss" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d22e353c704250df6997424b18bd33235f11acc83ca636511b4436b8df4f15d3. Verify the upstream source and version against https://skillhub.cn/skills/user_3c6cb52e/htmlq-command-line-html-content-extractor-css-selectors before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.

Source and setup

skillhub.cn

Setup guidance pending

See the original source for supported tools, dependencies, and permissions.

Installation test pending

htmlq is a command-line tool that extracts content from HTML using CSS selectors—essentially a jq for HTML. Written in Rust, it lets you pipe HTML through CSS selectors to extract text, attributes, and structured content directly from the terminal.

0 Downloads

Introduction source: third_party · user_3c6cb52e · 1.0.0 Reference

SkillPi interpretation

Tasks
Translation pending; see source documentation.
Software, accounts and paid services
Rust (cargo) or Homebrew
Testing
Not tested

Browse files

Browse files at the source ↗

Original SKILL.md

Open original ↗
Frontmatter
name: "htmlq 命令行 HTML 内容提取器,支持 CSS 选择器"
slug: "htmlq-command-line-html-content-extractor-css-selectors"
version: "1.0.0"
displayName: "htmlq 命令行 HTML 内容提取器,支持 CSS 选择器"
summary: "htmlq 是一个命令行工具,使用 CSS 选择器从 HTML 中提取内容,相当于 jq 的 HTML 版本。该工具用 Rust 编写,允许你通过 CSS 选择器将 HTML 管道化,直接从终端提取文本、属性和结构化内容。"
license: "MIT"
description: "htmlq 是一个命令行工具,使用 CSS 选择器从 HTML 中提取内容,相当于 jq 的 HTML 版本。该工具使用 Rust 编写,允许你通过 CSS 选择器将 HTML 管道化,直接从终端提取文本、属性和结构化内容。"
github_stars: 7514
verification: "security_reviewed"
source: "https://github.com/1991513ccie-png/skills"
author: "1991513ccie-png"
publisher_type: "individual"
category: "Data Extraction & Transformation"
framework: "Multi-Framework"
tool_ecosystem:
  github_repo: "1991513ccie-png/skills"
  github_stars: 7514

htmlq 命令行 HTML 内容提取器,支持 CSS 选择器

htmlq is a command-line tool for extracting content from HTML using CSS selectors, functioning as the HTML equivalent of jq. Written in Rust, it lets you pipe HTML through CSS selectors to extract text, attributes, and structured content directly from the terminal.

Prerequisites

Rust (cargo) or Homebrew

Installation

Use the upstream install or setup path that matches your environment:

  • cargo install htmlq
  • brew install htmlq

Requirements and caveats from upstream:

  • Remove a node before output

Basic usage or getting-started notes:

Documentation

Current listing version

1.0.0

Verify the source revision ↗

Safety and assessment details

Quality assessment

Out of 100 · Assessment report from SkillPi LAB.

Scenario Value75/100

Highlights

  • 介绍了一个实用的命令行工具 htmlq,具有明确的技术应用场景
  • 适用于开发者、数据处理人员等用户群体,属于数据提取与转换类别
Trigger Precision65/100

Areas to improve

  • 触发词不够精准 Reported severity: Minor

    description 内容完整但触发词较为宽泛,未明确说明具体使用场景和边界条件

    Recommendation: 建议补充具体的使用场景示例和边界条件说明,提高触发精准度

Highlights

  • description 内容完整描述了工具的核心功能
Structure and Standards60/100

Areas to improve

  • 缺少 When to Use 章节 Reported severity: Minor

    文档缺少 When to Use 章节,用户难以理解适用场景

    Recommendation: 建议补充 When to Use 章节,明确说明适用场景和使用时机

Highlights

  • 文档包含基本的 Prerequisites、Installation、Documentation 结构
  • frontmatter 完整,单文件长度适中
Execution Reliability65/100

Areas to improve

  • 异常处理覆盖不足 Reported severity: Minor

    未覆盖主要异常情况(如安装失败处理、网络问题等),不可逆操作确认机制不明确

    Recommendation: 建议补充异常处理说明和不可逆操作的确认机制

Highlights

  • 提供了工具来源(GitHub)、安装方式(cargo、brew)和官方文档链接
  • 参数说明基本正确,工具来源明确
Evidence Verifiability (mean of the first four)66/100

The arithmetic mean of the first four original scores, rounded to a whole number.

Static text checks

100 / 100 · skillpi-20261123-no-r3-v1

No current rules matched the text.

This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.

Permissions and checks before use

Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.

  • Install or fetch external dependencies

    Use official sources and pin versions. Check install scripts in an isolated environment. This document check does not cover code downloaded later.

    Mentioned in main document · lines 33
Domains or addresses referenced in the document

These addresses may be documentation links or examples, not an approved network allowlist. Verify actual destinations and outgoing data before use.

  • crates.io
  • github.com
  • raw.githubusercontent.com
  • www.freshports.org

These notices grant no permissions. Your host tool must still confirm file changes, secrets, external transfers or costs as needed.

Security rating and access scope

safe · Static evidence review; not a runtime safety guarantee.

Rust (cargo) or Homebrew

Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.