Skip to content
Back to skills

Redact

ASecurity

Masks sensitive content with a configurable character, keeping first and last characters visible. Click to toggle visibility.

  • 4 stars
  • 0 votes
  • 0 copies
  • 3 views
  • Added May 27, 2026
developmenttypescriptapi

Works with

  • cursor
  • cli
  • api

Security analysis

A100/100

Scanned May 27, 2026

npx -y skills add reaviz/skills --skill redact --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Redact?

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

Security grade badge for Redact
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/reaviz-redact/badge)](https://www.skillsdirectory.com/skills/reaviz-redact)

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
# Redact

Masks sensitive content with a configurable character, keeping first and last characters visible. Click to toggle visibility.

## Import

```tsx
import { Redact } from 'reablocks';
```

## Redact Props

| Prop | Type | Default | Description |
|------|------|---------|-------------|
| `value` | `string` | — | Text to mask |
| `allowToggle` | `boolean` | `true` | Allow clicking to reveal/hide content |
| `compactLength` | `number` | `8` | Number of characters in masked output |
| `character` | `string` | `'*'` | Masking character |
| `tooltipText` | `string` | `'Click to toggle sensitive content'` | Hover title text |
| `className` | `string` | — | Additional CSS classes |
| `theme` | `RedactTheme` | — | Per-instance theme override |

## Basic Usage

```tsx
<Redact value="my-secret-api-key-12345" />
{/* Renders: "m******5" — click to toggle */}
```

## Non-Toggleable

```tsx
<Redact value="sensitive-data" allowToggle={false} />
{/* Always masked, not clickable */}
```

## Custom Masking

```tsx
<Redact value="secret" character="•" compactLength={6} />
{/* "s••••t" */}
```

## RedactTheme Interface

```typescript
interface RedactTheme {
  base: string;         // Base styles (cursor-text)
  interactive: string;  // Styles when allowToggle is true (cursor-pointer, hover:underline)
}
```

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.

View all in development →

Comments

Loading comments…

Newsletter

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