.claude/skills/ts-chalk-advanced/SKILL.md
Style terminal output with Chalk. Use when adding colors to CLI output, formatting log messages, building styled terminal UIs, or creating developer tools with colored output.
npx skillsauth add eliferjunior/Claude chalk-advancedInstall this skill globally with one command. Works with Claude Code, Cursor, and Windsurf.
3 of 9 scanners reported clean
Some scanners were skipped, did not run, or reported a non-clean status. Review each row below.
Chalk styles terminal strings with colors, bold, underline, and backgrounds. ESM-only since v5. Chain styles fluently. Widely used in CLIs for status messages, errors, and formatted output.
import chalk from 'chalk'
console.log(chalk.green('✓ Success'))
console.log(chalk.red.bold('✗ Error: file not found'))
console.log(chalk.yellow('⚠ Warning: deprecated API'))
console.log(chalk.blue.underline('https://example.com'))
console.log(chalk.gray(' (verbose details)'))
// Background colors
console.log(chalk.bgRed.white.bold(' ERROR ') + ' Something went wrong')
console.log(chalk.bgGreen.black.bold(' PASS ') + ' All tests passed')
// Define reusable styles
const styles = {
error: chalk.red.bold,
success: chalk.green,
warn: chalk.yellow,
info: chalk.blue,
dim: chalk.gray,
highlight: chalk.cyan.bold,
label: chalk.bgBlue.white.bold,
}
function log(level: keyof typeof styles, msg: string) {
const prefix = {
error: '✗', success: '✓', warn: '⚠', info: 'ℹ', dim: '·', highlight: '→',
}
console.log(`${styles[level](prefix[level] || '·')} ${msg}`)
}
log('success', 'Project created')
log('error', 'Build failed')
log('info', `Using ${styles.highlight('TypeScript')} template`)
// Table-like output
function printStats(stats: Record<string, number>) {
const maxKey = Math.max(...Object.keys(stats).map(k => k.length))
for (const [key, value] of Object.entries(stats)) {
const label = chalk.gray(key.padEnd(maxKey))
const val = value > 0 ? chalk.green(value.toString()) : chalk.red(value.toString())
console.log(` ${label} ${val}`)
}
}
printStats({ 'Files changed': 12, 'Lines added': 847, 'Lines removed': 231, Warnings: 0, Errors: 0 })
import chalk from 'chalk', not require.NO_COLOR and FORCE_COLOR env vars automatically.chalk.red.bold.underline('text') — order doesn't matter.chalk`{red Error:} {bold ${message}}`development
Expert guidance for Fireworks AI, the platform for running open-source LLMs (Llama, Mixtral, Qwen, etc.) with enterprise-grade speed and reliability. Helps developers integrate Fireworks' inference API, fine-tune models, and deploy custom model endpoints with function calling and structured output support.
development
Convert any website into clean, structured data with Firecrawl — API-first web scraping service. Use when someone asks to "turn a website into markdown", "scrape website for LLM", "Firecrawl", "extract website content as clean text", "crawl and convert to structured data", or "scrape website for RAG". Covers single-page scraping, full-site crawling, structured extraction, and LLM-ready output.
tools
Expert guidance for Firebase, Google's platform for building and scaling web and mobile applications. Helps developers set up authentication, Firestore/Realtime Database, Cloud Functions, hosting, storage, and analytics using Firebase's SDK and CLI.
development
When the user needs to build file upload functionality for a web application. Use when the user mentions "file upload," "image upload," "upload endpoint," "multipart upload," "presigned URL," "S3 upload," "file validation," "upload to cloud storage," or "accept user files." Handles upload endpoints, file validation (type, size, magic bytes), cloud storage integration, and upload status tracking. For image/video processing after upload, see media-transcoder.