prompts.chatprompts.chatprompts.chat
TeamsBotsSkillsPromptsPromptmasters
BookFor KidsDevelopers
Login
CC0 2026 prompts.chat
DeepWikiHow to...DocsAPIPrivacyTermsSupportAboutGitHub
All Tags

Terminal Prompts

6 prompts
Terminal UI App taste
Taste

Opinionated conventions for keyboard-first terminal UI apps: TUI frameworks, responsive rendering, accessible colors and scriptable modes.

# Terminal UI App taste of a developer who builds fast, keyboard-first terminal interfaces
- Pick a mature TUI framework (Bubble Tea, Ratatui, Textual, Ink) instead of writing raw escape codes. Confidence: 0.90
- Use an Elm-style model, update and view architecture so state changes are easy to test without a terminal. Confidence: 0.80
- Render in the alternate screen buffer and always restore the terminal on exit, panic or Ctrl+C. Confidence: 0.95
- Make every action reachable by keyboard and show the main shortcuts in a footer bar. Confidence: 0.90
- Offer a ? key that opens a full help overlay listing all key bindings for the current view. Confidence: 0.85
- Support both arrow keys and vim-style hjkl navigation, and never require a mouse, though mouse support is welcome. Confidence: 0.80
- Use q or Esc to go back or quit, and ask for confirmation only before destructive actions. Confidence: 0.85
- Never block the render loop on I/O; run network and disk work in the background and show a spinner or progress bar. Confidence: 0.90
- Redraw only on state changes or at a capped frame rate, not in a busy loop. Confidence: 0.80
- Handle terminal resize events and lay out with flexible constraints that still work at 80x24. Confidence: 0.90
- Respect NO_COLOR, detect color depth, and fall back gracefully from truecolor to 256 and 16 colors. Confidence: 0.85
- Never use color as the only signal; pair it with symbols, labels or bold text. Confidence: 0.85
- Use a small, consistent palette tied to the terminal theme instead of hard-coded bright colors. Confidence: 0.75
- Provide a non-interactive mode (flags, --json output) for every important action so the tool works in scripts and CI. Confidence: 0.90
- Detect when stdout is not a TTY and switch to plain output automatically. Confidence: 0.90
- Add fuzzy filtering with / to any list longer than one screen. Confidence: 0.80
- Write logs to a file (opt-in with --debug), never to the screen the UI is drawing on. Confidence: 0.85
- Store config in the XDG config directory as TOML or YAML, and let users remap key bindings there. Confidence: 0.75
- Test views with golden snapshot files of rendered output at fixed terminal sizes. Confidence: 0.75
- Test in the common terminals (iTerm2, Windows Terminal, GNOME Terminal, tmux) before a release, including Unicode width cases. Confidence: 0.70
- Keep startup under about 100 ms so opening the app feels instant. Confidence: 0.70
- Ship a single static binary or a pipx/npm install path, with a short animated demo GIF in the README. Confidence: 0.70
Best PracticesCLITooling+2
F@f
0
Go CLI taste
Taste

Opinionated preferences for building, testing and shipping fast, script-friendly command-line tools in Go.

# Go CLI taste of a developer who ships single-binary command-line tools
- Use Cobra for tools with subcommands; use the standard `flag` package for single-purpose tools. Confidence: 0.80
- Keep `main.go` tiny: build the root command, run it, and map the returned error to an exit code. Confidence: 0.90
- Put command wiring in `cmd/` and real logic in `internal/` packages that know nothing about flags or the terminal. Confidence: 0.85
- Return errors from `RunE` instead of calling `os.Exit` or `log.Fatal` inside commands. Confidence: 0.90
- Exit with 0 on success, 1 for runtime failures and 2 for usage errors. Confidence: 0.85
- Write results to stdout and diagnostics to stderr; never mix progress output into data streams. Confidence: 0.95
- Offer `--output json` for scripting and keep the JSON shape stable across minor versions. Confidence: 0.85
- Detect a TTY before using colors, spinners or interactive prompts, and respect `NO_COLOR`. Confidence: 0.90
- Read configuration in a clear order: flags, then environment variables, then config file, then defaults. Confidence: 0.85
- Store config files under `os.UserConfigDir()` and caches under `os.UserCacheDir()`, not in the home directory root. Confidence: 0.80
- Pass `context.Context` through every operation and cancel it on SIGINT/SIGTERM with `signal.NotifyContext`. Confidence: 0.90
- Use `log/slog` for debug logging behind a `--verbose` flag; keep default output quiet. Confidence: 0.80
- Inject `io.Writer`s and the environment into commands so they can be tested without touching the real terminal. Confidence: 0.85
- Write table-driven tests for logic and golden-file tests for command output, with an `-update` flag to refresh goldens. Confidence: 0.85
- Build static binaries with `CGO_ENABLED=0` and `-trimpath` whenever the tool doesn't need cgo. Confidence: 0.85
- Embed version, commit and build date via `-ldflags` or `debug.ReadBuildInfo`, and expose them in a `version` command. Confidence: 0.90
- Release with GoReleaser: cross-compiled archives, checksums and a Homebrew tap from one tagged commit. Confidence: 0.80
- Ship shell completions for bash, zsh and fish generated from the command tree. Confidence: 0.80
- Make destructive commands ask for confirmation in a TTY and require `--yes` or `--force` in scripts. Confidence: 0.90
- Keep dependencies few and run `go vet`, `staticcheck` and `govulncheck` in CI. Confidence: 0.85
- Keep startup fast: no network calls or heavy initialization before a command actually needs them. Confidence: 0.80
Best PracticesCLIGo+2
F@f
0
Python CLI taste
Taste

Opinionated conventions for building Python command-line tools that are pleasant to use, easy to test and simple to install.

# Python CLI taste of a tooling developer who ships small, well-behaved command-line apps
- Build the CLI with Typer for typed commands, or Click when fine control over parsing is needed; avoid hand-rolled `argparse` trees for multi-command tools. Confidence: 0.80
- Expose the command through `[project.scripts]` in `pyproject.toml` so it installs as a real executable. Confidence: 0.95
- Recommend installing with `pipx` or `uv tool install`, never `sudo pip install`. Confidence: 0.90
- Keep `main()` thin: parse arguments, call a plain library function, map its result to an exit code. Confidence: 0.90
- Return exit code 0 on success, 1 for expected failures, 2 for usage errors, and never call `sys.exit` deep inside library code. Confidence: 0.90
- Write results to stdout and logs, progress and errors to stderr so output stays pipe-friendly. Confidence: 0.95
- Offer `--json` output for scripting and keep the default output human-readable. Confidence: 0.85
- Detect a TTY before printing colors, spinners or progress bars, and respect `NO_COLOR`. Confidence: 0.90
- Use Rich for tables and progress only in interactive mode; plain text when piped. Confidence: 0.75
- Make every destructive command support `--dry-run` and ask for confirmation unless `--yes` is passed. Confidence: 0.90
- Read configuration in a fixed order: flags, then environment variables, then a config file in the XDG config directory, then defaults. Confidence: 0.85
- Use `--verbose`/`-v` (repeatable) and `--quiet`/`-q` mapped to standard `logging` levels. Confidence: 0.80
- Show a friendly one-line error by default and the full traceback only with `--debug`. Confidence: 0.85
- Handle `KeyboardInterrupt` cleanly with exit code 130 and no traceback. Confidence: 0.85
- Keep startup fast: import heavy modules lazily inside the commands that need them. Confidence: 0.80
- Provide `--version` that reads from `importlib.metadata`, not a hardcoded string. Confidence: 0.90
- Accept `-` as stdin/stdout for file arguments and use `pathlib.Path` everywhere. Confidence: 0.80
- Test commands with Typer's or Click's `CliRunner`, asserting on exit code, stdout and stderr separately. Confidence: 0.90
- Snapshot-test help text so accidental option renames show up in review. Confidence: 0.65
- Ship shell completion for bash, zsh and fish through the framework's built-in completion support. Confidence: 0.75
- Write help text with a short example for every command; examples beat long option descriptions. Confidence: 0.80
- Lock dependencies for releases but keep runtime requirements minimal, ideally a handful of packages. Confidence: 0.75
Best PracticesCLIPython+2
F@f
0
Neovim Config taste
Taste

Opinionated conventions for a fast, maintainable and portable Lua-based Neovim configuration.

# Neovim Config taste of a minimalist terminal-first developer
- Write the whole config in Lua, starting from a single init.lua that requires small modules under lua/config and lua/plugins. Confidence: 0.90
- Use lazy.nvim as the plugin manager and commit lazy-lock.json so every machine gets the same plugin versions. Confidence: 0.90
- Lazy-load plugins by event, command, filetype or key mapping, and keep startup time under 50 ms measured with :Lazy profile. Confidence: 0.80
- Prefer the built-in LSP client with nvim-lspconfig over heavier all-in-one language plugins. Confidence: 0.85
- Install language servers, formatters and linters with mason.nvim, but pin the tool list in config instead of installing by hand. Confidence: 0.80
- Format on save with conform.nvim and lint with nvim-lint, using the same tools and settings the project runs in CI. Confidence: 0.85
- Use nvim-treesitter for highlighting, indentation and text objects, and list the parsers you need explicitly. Confidence: 0.85
- Pick one fuzzy finder, such as telescope.nvim or fzf-lua, and route files, grep, buffers and LSP symbols through it. Confidence: 0.85
- Set the leader key to space before loading any plugin so every mapping uses it. Confidence: 0.90
- Give every custom mapping a desc field so which-key and :map show what it does. Confidence: 0.85
- Group mappings by prefix, like leader f for find, leader g for git and leader l for LSP, and avoid overriding core Vim motions. Confidence: 0.80
- Keep options in one options.lua file using vim.opt, with a short comment for anything that is not obvious. Confidence: 0.80
- Use relative line numbers, a sign column that is always shown, and persistent undo files. Confidence: 0.75
- Use autocommand groups with clear = true so reloading the config never duplicates handlers. Confidence: 0.90
- Respect .editorconfig files and avoid hard-coding indentation per language unless a project has no settings. Confidence: 0.80
- Show git changes in the sign column with gitsigns.nvim and stage hunks from the editor. Confidence: 0.80
- Use the built-in completion engine or blink.cmp, with LSP and snippet sources only, to keep the popup fast and relevant. Confidence: 0.70
- Choose one colorscheme with good Tree-sitter and LSP semantic token support, and do not chase new themes every week. Confidence: 0.65
- Add a plugin only when it replaces a repeated manual step, and remove plugins you have not used in a month. Confidence: 0.80
- Keep machine-specific settings in a git-ignored local.lua file so the main config stays portable. Confidence: 0.75
- Run :checkhealth after upgrades and fix warnings before adding new plugins. Confidence: 0.80
- Store the config in a dotfiles repository and upgrade plugins deliberately, reviewing the lazy.nvim changelog first. Confidence: 0.85
Best PracticesCLIProductivity+1
F@f
0
Shell Scripting taste
Taste

Opinionated conventions for writing safe, readable and maintainable Bash scripts.

# Shell scripting taste of a DevOps engineer
- Start every script with #!/usr/bin/env bash and set -euo pipefail. Confidence: 0.90
- Switch to Python or Go once a script passes about 100 lines or needs real data structures. Confidence: 0.85
- Run ShellCheck in CI and fix warnings instead of silencing them. Confidence: 0.95
- Format scripts with shfmt so diffs stay small. Confidence: 0.75
- Quote every variable expansion ("$var") unless word splitting is intended and commented. Confidence: 0.95
- Use [[ ]] for tests and $(...) for command substitution, never backticks. Confidence: 0.90
- Declare variables inside functions with local. Confidence: 0.85
- Put the logic in functions and call a main "$@" at the bottom of the file. Confidence: 0.80
- Clean up temporary files with mktemp and trap '...' EXIT. Confidence: 0.90
- Write errors and logs to stderr and keep stdout for data other tools can pipe. Confidence: 0.85
- Exit with a non-zero status and a clear message when something fails. Confidence: 0.90
- Provide a usage function and handle -h and --help. Confidence: 0.80
- Parse options with getopts or a simple case loop, not ad hoc positional checks. Confidence: 0.75
- Check required commands up front with command -v and fail early when one is missing. Confidence: 0.85
- Read configuration from environment variables with defaults, such as -8080. Confidence: 0.80
- Never parse ls output; use globs or find -print0 with xargs -0. Confidence: 0.90
- Read files line by line with while IFS= read -r line. Confidence: 0.85
- Use arrays for argument lists instead of building command strings. Confidence: 0.85
- Avoid eval, and never pass untrusted input to it. Confidence: 0.95
- Make scripts idempotent so running them twice is safe. Confidence: 0.85
- Add a --dry-run flag to anything that deletes or changes remote state. Confidence: 0.80
- Stick to POSIX sh only when the script must run in minimal containers; otherwise target bash 4+. Confidence: 0.70
CLILinuxAutomation+2
F@f
0
Rust CLI taste
Taste

Opinionated preferences for building fast, friendly command-line tools in Rust.

# Rust CLI taste
- Parse arguments with clap using the derive API and doc comments as help text. Confidence: 0.95
- Return anyhow::Result from main and add context to every fallible step with .context(). Confidence: 0.90
- Define library error types with thiserror and keep anyhow in the binary only. Confidence: 0.85
- Split the crate into a thin main.rs and a lib.rs that holds the real logic for testing. Confidence: 0.85
- Write normal output to stdout and logs, progress and errors to stderr. Confidence: 0.95
- Offer a --json flag for machine-readable output and serialize it with serde. Confidence: 0.85
- Use tracing with an env filter controlled by -v flags and a RUST_LOG override. Confidence: 0.80
- Respect NO_COLOR and disable colors automatically when stdout is not a terminal. Confidence: 0.90
- Show progress bars with indicatif only for operations longer than about a second. Confidence: 0.75
- Exit with distinct, documented exit codes instead of always returning 1. Confidence: 0.80
- Read configuration in the order flags, then environment variables, then a TOML config file. Confidence: 0.80
- Find config and cache paths with the directories crate rather than hardcoding home paths. Confidence: 0.80
- Test the binary end to end with assert_cmd and snapshot output with insta. Confidence: 0.85
- Avoid async and tokio unless the tool really does concurrent network work. Confidence: 0.75
- Generate shell completions and a man page with clap_complete and clap_mangen at build time. Confidence: 0.75
- Ship prebuilt binaries for Linux, macOS and Windows with cargo-dist from GitHub Actions. Confidence: 0.80
- Run cargo clippy with warnings denied and cargo fmt --check in CI. Confidence: 0.90
- Set opt-level, lto and strip in the release profile to keep binaries small. Confidence: 0.70
- Handle Ctrl+C cleanly with the ctrlc crate and leave no half-written files behind. Confidence: 0.80
CLIToolingTerminal
F@f
0