# Console

> Console & terminal output reference — logging levels, ANSI colors, debugging techniques, formatters. Use when styling terminal output, implementing log systems, or debugging with console tools.

- Skill: `bytesagain/console` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add bytesagain/console`
- Raw SKILL.md: https://api.skillmd.com/api/skills/bytesagain/console/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: bytesagain (https://skillmd.com/u/bytesagain)
- Updated: 2026-09-09
- Page: https://skillmd.com/skills/bytesagain/console

---


# Console — Console Output & Debugging Reference

Quick-reference skill for console output formatting, logging systems, ANSI escape codes, and debugging techniques.

## When to Use

- Formatting terminal output with colors and styles
- Implementing a logging system with proper levels
- Debugging with browser/Node.js console methods
- Building CLI tools with professional output
- Understanding ANSI escape codes and terminal capabilities

## Commands

### `intro`

```bash
scripts/script.sh intro
```

Overview of console output — streams, TTY detection, output principles.

### `ansi`

```bash
scripts/script.sh ansi
```

ANSI escape codes — colors, styles, cursor control, 256-color and truecolor.

### `logging`

```bash
scripts/script.sh logging
```

Log levels and best practices — DEBUG, INFO, WARN, ERROR, FATAL.

### `browser`

```bash
scripts/script.sh browser
```

Browser console API — log, table, group, time, profile, assert.

### `node`

```bash
scripts/script.sh node
```

Node.js console and util — inspect, format, debug module, chalk.

### `cli`

```bash
scripts/script.sh cli
```

CLI output patterns — progress bars, spinners, tables, prompts.

### `debug`

```bash
scripts/script.sh debug
```

Debugging techniques — breakpoints, stack traces, conditional logging.

### `tools`

```bash
scripts/script.sh tools
```

Console tools and libraries — chalk, winston, pino, log4j, structlog.

### `help`

```bash
scripts/script.sh help
```

### `version`

```bash
scripts/script.sh version
```

## Configuration

| Variable | Description |
|----------|-------------|
| `CONSOLE_DIR` | Data directory (default: ~/.console/) |

---

*Powered by BytesAgain | bytesagain.com | hello@bytesagain.com*

