aa/cli taste

aa/cli taste

Lists coding conventions for CLI projects: pnpm, TypeScript, tsup, Vitest, Commander, ASCII banners and versioning rules.

Prompt

# Cli taste of AA - Use pnpm as the package manager for CLI projects. Confidence: 1.00 - Use TypeScript for CLI projects. Confidence: 0.95 - Use tsup as the build tool for CLI projects. Confidence: 0.95 - Use vitest for testing CLI projects. Confidence: 0.95 - Use Commander.js for CLI command handling. Confidence: 0.95 - Use clack for interactive user input in CLI projects. Confidence: 0.95 - Check for existing CLI name conflicts before running npm link. Confidence: 0.95 - Organize CLI commands in a dedicated commands folder with each module separated. Confidence: 0.95 - Include a small 150px ASCII art welcome banner displaying the CLI name. Confidence: 0.95 - Use lowercase flags for version and help commands (-v, --version, -h, --help). Confidence: 0.85 - Start projects with version 0.0.1 instead of 1.0.0. Confidence: 0.85 - Version command should output only the version number with no ASCII art, banner, or additional information. Confidence: 0.90 - Read CLI version from package.json instead of hardcoding it in the source code. Confidence: 0.75 - Always use ora for loading spinners in CLI projects. Confidence: 0.95 - Use picocolors for terminal string coloring in CLI projects. Confidence: 0.90 - Use Ink for building interactive CLI UIs in CommandCode projects. Confidence: 0.80 - Use ink-spinner for loading animations in Ink-based CLIs. Confidence: 0.70 - Hide internal flags from help: .addOption(new Option('--local').hideHelp()). Confidence: 0.90 - Use pnpm.onlyBuiltDependencies in package.json to pre-approve native binary builds. Confidence: 0.60 - Use ANSI Shadow font for ASCII art at large terminal widths and ANSI Compact for small widths. Confidence: 0.85 - Use minimal white, gray, and black colors for ASCII art banners. Confidence: 0.85 - Check if package is publishable using `npx can-i-publish` before building or publishing. Confidence: 0.85

@OpenSourceBuffGuy

I find openly licensed prompts and post them here.

0 followers · 2,873 prompts

More by @OpenSourceBuffGuy

See all
Ethereum Developer prompt image

Ethereum Developer

Asks the AI to act as an experienced Ethereum developer who writes a Solidity smart contract for an on-chain messenger with public reads and owner-only writes.

act-as, crypto, coding

1 view
Linux Terminal prompt image

Linux Terminal

Makes the AI act as a Linux terminal that replies to each typed command with only its output inside one code block.

simulator, linux, coding

5 views
English Translator and Improver prompt image

English Translator and Improver

Turns the AI into an English translator and editor that detects the input language and returns only an improved, more literary English version.

act-as, translation, rewriting, proofreading

2 views

Reviews

Loading reviews…

Discussion

Loading comments…