inquirer
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "inquirer" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-5dca7c28aea4035f6fb32582db61a166eb1d48bbf9748bff50250a4d903d92cb. Verify the upstream source and version against https://github.com/TerminalSkills/skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Build interactive command-line prompts with Inquirer.js. Suitable for creating interactive terminal interfaces, multi-step wizards, form-like command-line inputs, or configuration generators that require user input.
Introduction source: third_party · TerminalSkills · 1.0.0 Reference
SkillPi interpretation
- Testing
- Not tested
Browse files
Frontmatter
name: inquirer
description: >-
Build interactive CLI prompts with Inquirer.js. Use when creating
interactive terminal UIs, multi-step wizards, form-like CLI inputs,
or configuration generators with user input.
license: Apache-2.0
compatibility: 'Node.js 18+'
metadata:
author: terminal-skills
version: 1.0.0
category: development
tags: [inquirer, cli, prompts, interactive, terminal]Inquirer.js
Overview
Inquirer provides interactive prompts for CLIs — text input, confirmations, lists, checkboxes, passwords, and editors. The v2 API is modular (import only what you use) and supports themes, validation, and transformations.
Instructions
Step 1: Prompts
import { input, select, confirm, checkbox, password } from '@inquirer/prompts'
// Text input with validation
const name = await input({
message: 'Project name:',
validate: (v) => v.length >= 2 || 'Name must be at least 2 characters',
})
// Single select
const framework = await select({
message: 'Choose a framework:',
choices: [
{ name: 'Next.js', value: 'nextjs', description: 'Full-stack React' },
{ name: 'Remix', value: 'remix', description: 'Web standards focused' },
{ name: 'Astro', value: 'astro', description: 'Content-first' },
],
})
// Multi-select
const features = await checkbox({
message: 'Select features:',
choices: [
{ name: 'TypeScript', value: 'typescript', checked: true },
{ name: 'ESLint', value: 'eslint', checked: true },
{ name: 'Tailwind CSS', value: 'tailwind' },
{ name: 'Database (Prisma)', value: 'prisma' },
{ name: 'Auth (NextAuth)', value: 'auth' },
],
})
// Confirmation
const proceed = await confirm({ message: 'Create project?', default: true })
// Password (masked)
const apiKey = await password({ message: 'Enter API key:', mask: '*' })
Step 2: Multi-Step Wizard
async function setupWizard() {
console.log('🚀 Project Setup Wizard\n')
const projectName = await input({ message: 'Project name:' })
const template = await select({
message: 'Template:',
choices: [
{ name: 'SaaS Starter', value: 'saas' },
{ name: 'Blog', value: 'blog' },
{ name: 'E-commerce', value: 'ecommerce' },
],
})
const features = await checkbox({
message: 'Features:',
choices: getFeatureChoices(template), // dynamic based on template
})
const useDocker = await confirm({ message: 'Add Docker?', default: false })
console.log('\n📋 Summary:')
console.log(` Name: ${projectName}`)
console.log(` Template: ${template}`)
console.log(` Features: ${features.join(', ')}`)
const ok = await confirm({ message: '\nProceed?', default: true })
if (!ok) { console.log('Cancelled.'); process.exit(0) }
return { projectName, template, features, useDocker }
}
Guidelines
- Import individual prompts (
@inquirer/prompts) not the legacyinquirerpackage. - Use
validatefor input validation — return true or error message string. descriptionin choices shows hint text below the option name.- For non-interactive environments (CI), accept config via flags and skip prompts.
- Pair with Commander for argument parsing + Inquirer for interactive mode.
Current listing version
1.0.0
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Inquirer.js 交互式 CLI 构建能力,适用于多步骤向导、表单式输入、配置生成器等明确开发场景
- 面向开发者工具链,具有广泛实用价值和通用性
Highlights
- description 完整覆盖多种使用场景,触发词精准且边界清晰
- frontmatter 中 description 位置正确,内容完整无截断
Highlights
- 结构清晰完整:Overview → Instructions(分步骤)→ Guidelines
- 包含丰富的代码示例和端到端 wizard 实现,frontmatter 信息完整
Highlights
- 工具来源明确(@inquirer/prompts),参数使用规范
- 覆盖输入验证、非交互式环境处理、操作确认等可靠性要点
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
-
Accounts, secrets or authorization
Use a dedicated least-privilege account. Keep secrets out of public content and command logs; verify the receiving service and tenant.
Mentioned in main document · lines 61
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.