highlights
Use when an app uses @pierre/highlights to generate syntax-highlighted HTML or tokens, stream code, incrementally tokenize edits, or apply Zed-compatible themes and CSS variables.
How do I install this agent skill?
npx skills add https://github.com/pierrecomputer/pierre --skill highlightsIs this agent skill safe to install?
- Gen Agent Trust Hubpass
The highlights skill provides documentation and usage examples for the @pierre/highlights library, a high-performance syntax highlighter using WebAssembly. The analysis found no security issues; the library includes standard safety features like automatic HTML escaping and clear disposal methods for its components.
- Socketpass
No alerts
- Snykpass
Risk: LOW · No issues
What does this agent skill do?
@pierre/highlights
Use @pierre/highlights for standalone syntax highlighting with built-in
WebAssembly lexers. Choose HTML for a complete code block, tokens for a custom
renderer, StreamTokenizer for append-only input, or LiveTokenizer for an
editable document.
Install
pnpm add @pierre/highlights
Import from @pierre/highlights. Conditional exports initialize WebAssembly
automatically for Node.js, browsers, and Cloudflare Workers. Highlighting is
synchronous after import; ordinary usage needs no init() or language
registration.
Select a reference
| Task | Reference |
|---|---|
| Generate HTML or tokens, validate a language, or manage a Wasm module | Rendering |
| Load or customize themes, switch CSS variables, or render multiple schemes | Themes |
| Tokenize streamed strings or bytes | Streaming |
| Apply edits, prioritize a viewport, or read packed token records | Incremental editing |
For file, diff, or editor components, read the diffs skill.
How can the creator link this skill?
Add the canonical catalog link to the repository README so users can inspect current installs and available audits. The publishing guide covers the complete discovery path.
<a href="https://skillzs.dev/skills/pierrecomputer/pierre/highlights">View highlights on skillZs</a>