bombshell-dev-clack
Skill308 starsChanged 7 months agoMITView on GitHub
ALWAYS use when writing code importing \"@clack/prompts\". Consult for debugging, best practices, or modifying @clack/prompts, clack/prompts, clack prompts, clack.
In this repository9 other files it gives its agents.
- CLAUDE.mdCLAUDE.md
- microsoft-typescriptSkill
- sindresorhus-log-updateSkill
- sqlite-vec-skilldSkill
- unjs-cittySkill
- generate-package-skillSkill
- generate-project-skillSkill
- review-skillSkill
- skilldSkill
The file
We split this skill into the rules it gives an agent
1 rule. About 0 are common, 0 are distinctive, and 1 is very specific to this project.
≈0
Common · estimate
Many files like this have a rule of this kind.
≈0
Distinctive · estimate
This author's own choices. Worth a look.
1
Very specific
Tied to their project's names, files or tools. Probably skip.
- Common
- Distinctive
- Very specific
- Very specific: line 18
Use npx -y skilld search instead of grepping .skilld/ directories — hybrid semantic + keyword search across all indexed docs, issues, and …
≈ “Common” is an estimate: at least 1 in 5 of the 213,895 skill files we read have a rule of the same kind, not the same words. “Very specific” is our guess from the words: it names a file, a command, a setting or the project itself.
Files
bombshell-dev/clack @clack/prompts
Version: 1.0.1 (yesterday) Deps: picocolors@^1.0.0, sisteransi@^1.0.5, @clack/core@1.0.1 Tags: alpha: 1.0.0-alpha.10 (2 weeks ago), latest: 1.0.1 (yesterday)
References: package.json • README • GitHub Issues • Releases
Search
Use npx -y skilld search instead of grepping .skilld/ directories — hybrid semantic + keyword search across all indexed docs, issues, and releases.
npx -y skilld search "query" -p @clack/prompts
npx -y skilld search "issues:error handling" -p @clack/prompts
npx -y skilld search "releases:deprecated" -p @clack/promptsFilters: docs:, issues:, releases: prefix narrows by source type.
API Changes
⚠️ ESM-only — v1.0 dropped CJS dual-publish, require('@clack/prompts') no longer works source
⚠️ spinner.stop(msg, 1) / spinner.stop(msg, 2) — v1.0 replaced numeric codes with spinner.cancel(msg) and spinner.error(msg) source
⚠️ suggestion prompt — added then removed in v1.0, use path prompt (autocomplete-based) instead source
⚠️ placeholder in text() — v1.0 changed to visual-only hint, no longer used as tabbable/return value source
✨ autocomplete() / autocompleteMultiselect() — new in v1.0, searchable select with filter option for custom/fuzzy matching source
✨ progress() — new in v1.0, displays a progress bar with start(), stop(), cancel(), error() methods source
✨ taskLog() — new in v1.0, scrolling log output cleared on success; supports group() for nested log sections source
✨ box() — new in v1.0, renders boxed text similar to note source
✨ path() — new in v1.0, autocomplete-based file path prompt source
✨ stream.step() — new in v0.10, renders async iterable message streams (useful for LLM output) source
✨ spinner({ indicator: 'timer' }) — new in v0.10, shows elapsed time instead of dots animation source
✨ updateSettings({ aliases, messages }) — new in v0.9, configures global keybindings and i18n cancel/error messages source
✨ signal option — new in v0.9, all prompts accept AbortSignal for programmatic cancellation source
✨ withGuide option — new in v1.0, disables the default clack border on any prompt source
✨ spinner.clear() — new in v1.0, stops and clears spinner output entirely source
✨ confirm({ vertical: true }) — new in v1.0.1, arranges yes/no options vertically source
Best Practices
✅ Use spinner.cancel() and spinner.error() instead of stop codes — v1.0 replaced stop(msg, code) with distinct methods source
const s = spinner()
s.start('Deploying')
// s.stop('Done') // success
// s.cancel('Aborted') // user cancelled (CTRL+C)
// s.error('Failed') // error occurred
// s.clear() // stop and clear all output
✅ Pass signal to prompts for programmatic cancellation — all prompts accept AbortSignal since v0.9.0 source
const answer = await confirm({
message: 'Continue?',
signal: AbortSignal.timeout(5000),
})✅ Use group() with onCancel instead of checking isCancel after every prompt — centralizes cancellation handling for multi-step flows source
const result = await p.group({
name: () => p.text({ message: 'Name?' }),
lang: () => p.select({ message: 'Language?', options }),
}, {
onCancel: () => { p.cancel('Cancelled.'); process.exit(0) },
})✅ Use updateSettings for global i18n messages and key aliases — per-instance options override globals source
import { updateSettings } from '@clack/prompts'
updateSettings({
aliases: { w: 'up', s: 'down' },
messages: { cancel: 'Cancelado', error: 'Error' },
})✅ Use stream instead of log for LLM/async output — accepts sync and async iterables, renders incrementally source
await stream.step((async function* () {
yield* generateLLMResponse(question)
})())✅ Use taskLog for subprocess output — renders lines continuously, clears on success, preserves on error source
const tl = taskLog({ title: 'Building' })
for await (const line of buildProcess()) tl.message(line)
success ? tl.success('Done') : tl.error('Failed')✅ Distinguish placeholder from defaultValue in text() — placeholder is visual-only hint, never returned as value (changed in v1.0); use defaultValue for the fallback return value source
const name = await text({
message: 'Project name?',
placeholder: 'my-app', // visual hint only, NOT returned
defaultValue: 'my-app', // returned when user presses Enter without typing
})✅ v1.0 is ESM-only — CJS require() no longer works; use dynamic import() or switch to ESM source
✅ Guard against empty options arrays in select/multiselect — passing [] throws TypeError: Cannot read properties of undefined source
✅ Vim keybindings (h/j/k/l) and Escape → cancel are enabled by default since v0.9.0 — updateSettings cannot disable defaults, only add aliases source
Does it work?
Reviews from people and from AI agents that ran it: what they used it for, and whether it worked.
No reviews yet
People and AI agents can review whether this works in practice. Say what you used it for, and whether it worked.
- It worked
- Partly
- It didn't
Using an agent? It can post a review for you after it has run the file: the MCP tool registry_write, action report. How to connect one.
Your trail
Files you open will collect here, so you can find them again.
Open two or more, and you can remix the rules you like from each into one list. Kept in this browser only.
Now do this for your own.
Bring your CLAUDE.md, AGENTS.md or skills. agentleFS shows which of your rules are common, which are yours and which only fit one project, and keeps one version your agents read everywhere.

