Skip to content
Skills Library
Programming · Conversion & formats

jaspr-convert-html

/jaspr-convert-html

Use when you need to convert / rewrite existing HTML (from a file or url) into Jaspr code.

Repository
blocsignal ↗
Licence
MIT
Last repository change
25.10.2026

Assessment and security

100/ 100Class: good
Format25 / 25
Frontmatter with name and description, valid name, description up to 1,024 characters, name matching the folder.
Discoverability25 / 25
Description explains when to use the skill, has a reasonable length and uses third person.
Content35 / 35
At least 150 words and at most 500 lines, headings, step lists, examples or code.
Hygiene15 / 15
No placeholders such as TODO, no Windows paths, with a licence.
Riskno signals detected in the scan
Files in this package
1
Scripts
0
HTML comments
0
URLs in SKILL.md
1
Deprecation

No signals detected. Repository changed on 25.10.2026, without references to retired models or APIs.

Licence

MIT, open: use and modify while retaining author attribution.

What it does and when to use it

Use when you need to convert / rewrite existing HTML (from a file or url) into Jaspr code.

Original author description

Use when you need to convert / rewrite existing HTML (from a file or url) into Jaspr code.

How it works

  1. Rules
  2. Usage
Original SKILL.md headings · 38 lines, 209 words
SKILL.md preview
---
name: jaspr-convert-html
description: Use when you need to convert / rewrite existing HTML (from a file or url) into Jaspr code.
metadata:
  jaspr_version: 0.23.1
---

## Rules

Converting existing HTML into Jaspr component syntax by hand is prone to errors and wastes time.

- **Rule 1:** You MUST ALWAYS use the `jaspr convert-html` command to convert existing HTML.
- **Rule 2:** You MUST NEVER attempt to convert HTML to Jaspr code manually.
- **Rule 3:** You MUST take the output from the daemon UNCHANGED and use it exactly as provided.

## Usage

To convert HTML to Jaspr code, run one of the following commands in the terminal depending on your source:

**From a local file:**
```bash
jaspr convert-html --file some/path/to/file.html
```

**From a URL:**
```bash
jaspr convert-html --url https://example.com
```

The resulting Jaspr code is printed directly to the console. You can then copy this code directly into your component's `build` method.

### Selecting Specific Elements

If you only need a portion of the HTML, you MUST use the `--query` option with a CSS selector to target specific elements rather than converting the whole file and deleting pieces manually.

```bash
jaspr convert-html --file some/path/to/file.html --query "#my-id"
```
*This will only convert and output the element with the id `my-id`.*

**Tip:** To convert everything inside the `<body>` tag but exclude the `<body>` tag itself, use:
```bash
jaspr convert-html --file some/path/to/file.html --query "body > *"
```

Versions

The database has no other skills named jaspr-convert-html.

Database snapshot: 13.11.2026 · package version 16710a7d7200 (SHA-256 digest of the entire package)

Downloads in the last 30 days: 2 · ranking

Report a problem with this skill: harmful content, incorrect descriptions or an author’s removal request.

Similar skills

  • 100jaspr-fundamentals
    Use when working in a Jaspr project, on Jaspr components, or other Jaspr-related tasks. Contains fundamentals of writing Jaspr components and using HTML components.
  • 100jaspr-styling
    Write type-safe CSS-in-Dart to style Jaspr components. Use this skill when styling components, implementing themes, or using CSS properties.
  • 95html-to-html
    HTML to HTML - fetch a remote HTML page (URL) and convert it to clean structured HTML using MinerU crawl. Use when you want a cleaned-up HTML version of a web page.
  • 100convert-url-to-nextjs
    Use if rebuilding a live URL or .html snapshot as a pixel-faithful AS-IS Next.js project.
  • 100convert-spec
    Convert an existing design/spec file into a SpecForge spec in the store. Use when the user asks to "convert <file> to a spec", "import this design doc", or "turn this markdown/HTML into a SpecForge spec". Handles two cases: an existing SpecForge-style .html is ingested as-is; a…
  • 100html-to-markdown
    Convert HTML to Markdown, Djot, or plain text with structured extraction. Use when writing code that calls html-to-markdown APIs in Rust, Python, TypeScript, Go, Ruby, PHP, Java, C#, Elixir, R, C, or WASM. Covers installation, conversion, configuration, metadata extraction,…

Feedback and reports

Your message goes to Bartosz Sokoliński. An email address is needed only for a reply. See the privacy policy.