360 Secure SkillHub
360 安全技能中心

Console

该 Skill 通过本地脚本提供多主题速查:终端流与 TTY、ANSI 颜色和光标控制、日志级别、浏览器与 Node.js 控制台 API、CLI 输出模式、调试技巧及常用工具库。适合作为开发时的终端输出与调试参考,不生成或修改项目代码。

分类:开发
bytesagain1
bytesagain1
热度 41.06
最近更新 2026-05-11 17:34:47

安装

发给 Agent
帮我安装这个技能:npx secure-skills-cli add bytesagain1/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