---
title: "xq Command-Line XML and HTML Beautifier and Content Extractor"
description: "xq is a command-line XML and HTML beautifier and content extractor written in Go. It provides syntax highlighting, automatic formatting, XPath and CSS selector queries, and JSON output conversion for XML and HTML documents."
verification: "security_reviewed"
source: "https://github.com/sibprogrammer/xq"
author: "sibprogrammer"
publisher_type: "Individual Developer"
category:
  - "Data Extraction & Transformation"
framework:
  - "Multi-Framework"
tool_ecosystem:
  github_repo: "sibprogrammer/xq"
  github_stars: 1100
---

# xq Command-Line XML and HTML Beautifier and Content Extractor

xq is a command-line XML and HTML beautifier and content extractor written in Go. It provides syntax highlighting, automatic formatting, XPath and CSS selector queries, and JSON output conversion for XML and HTML documents.

## Prerequisites

Go 1.21+ or Homebrew

## Installation

Choose whichever fits your setup:

1. Copy this skill folder into your local skills directory.
2. Clone the repo and symlink or copy the skill into your agent workspace.
3. Add the repo as a git submodule if you manage shared skills centrally.
4. Install it through your internal provisioning or packaging workflow.
5. Download the folder directly from GitHub and place it in your skills collection.

Install command or upstream instructions:

```
brew install xq
```

## Documentation

- https://github.com/sibprogrammer/xq#readme

## Source

- [Agent Skill Exchange](https://agentskillexchange.com/skills/xq-command-line-xml-html-beautifier-content-extractor/)
