Skip to content
Back to skills

Libformat

ASecurity

libformat - Markdown formatting utilities. toHtml converts markdown to sanitized HTML safe for web display. toTerminal converts markdown to ANSI terminal output with colors. createToHtml and createToTerminal are factories for dependency injection. Use for rendering markdown in web apps and CLI tools.

  • 4 stars
  • 0 votes
  • 0 copies
  • 4 views
  • Added September 12, 2026
toolsjavascriptjava

Works with

  • terminal
  • cli

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 12, 2026

npx -y skills add aibot88/sec_skill_store --skill libformat --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Libformat?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Libformat
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/aibot88-libformat/badge)](https://www.skillsdirectory.com/skills/aibot88-libformat)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: libformat
description: >
  libformat - Markdown formatting utilities. toHtml converts markdown to
  sanitized HTML safe for web display. toTerminal converts markdown to ANSI
  terminal output with colors. createToHtml and createToTerminal are factories
  for dependency injection. Use for rendering markdown in web apps and CLI
  tools.
---

# libformat Skill

## When to Use

- Rendering markdown as HTML in web applications
- Formatting CLI output with colors and styling
- Converting agent responses for display
- Sanitizing user-generated markdown content

## Key Concepts

**toHtml**: Converts markdown to HTML with sanitization to prevent XSS attacks.

**toTerminal**: Converts markdown to terminal output with ANSI escape codes for
colors and formatting.

## Usage Patterns

### Pattern 1: Web rendering

```javascript
import { toHtml } from "@copilot-ld/libformat";

const html = toHtml("# Hello **World**");
// Returns: <h1>Hello <strong>World</strong></h1>
```

### Pattern 2: Terminal output

```javascript
import { toTerminal } from "@copilot-ld/libformat";

const output = toTerminal("# Hello **World**");
console.log(output); // Colored terminal output
```

## Integration

Used by Web extension to format agent responses. Used by CLI tools for terminal
output.

Files in this skill

  • SKILL.md1.3 KB
  • source.json790 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.