360 Secure SkillHub
360 安全技能中心

Console

这是一款控制台输出与调试参考工具,核心涵盖ANSI转义码、日志级别规范、浏览器/Node.js控制台API、CLI输出模式及调试技巧等。典型场景包括美化终端输出、搭建日志系统、调试前端/Node.js代码、开发专业CLI工具等。用户可执行指定bash脚本命令,获取对应领域的详细参考内容与最佳实践。

bytesagain1
bytesagain1
热度 61.61
最近更新 2026-05-11 17:34:47
分类:开发依赖:纯提示词应用场景:调试排错 / DevOps / 概念解释

安装技能

复制下面的话术发给你的 Agent,它会通过 secure-skills 检索并安装该技能。

执行命令安装此 skill: npx secure-skills-cli add console
Metadata
name
console
version
1.0.0
description
Console & terminal output reference — logging levels, ANSI colors, debugging techniques, formatters. Use when styling terminal output, implementing log systems, or debugging with console tools.
author
BytesAgain
homepage
https://bytesagain.com
source
https://github.com/bytesagain/ai-skills
tags
["console","terminal","logging","ansi","debug","output","devtools","cli"]
category
devtools

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

scripts/script.sh intro

Overview of console output — streams, TTY detection, output principles.

ansi

scripts/script.sh ansi

ANSI escape codes — colors, styles, cursor control, 256-color and truecolor.

logging

scripts/script.sh logging

Log levels and best practices — DEBUG, INFO, WARN, ERROR, FATAL.

browser

scripts/script.sh browser

Browser console API — log, table, group, time, profile, assert.

node

scripts/script.sh node

Node.js console and util — inspect, format, debug module, chalk.

cli

scripts/script.sh cli

CLI output patterns — progress bars, spinners, tables, prompts.

debug

scripts/script.sh debug

Debugging techniques — breakpoints, stack traces, conditional logging.

tools

scripts/script.sh tools

Console tools and libraries — chalk, winston, pino, log4j, structlog.

help

scripts/script.sh help

version

scripts/script.sh version

Configuration

Variable Description
CONSOLE_DIR Data directory (default: ~/.console/)

Powered by BytesAgain | bytesagain.com | hello@bytesagain.com