davila7/claude-code-templates / cli-tool/components/skills/business-marketing/app-builder/templates
templates
VerifiedProject scaffolding templates for new applications. Use when creating new projects from scratch. Contains 12 templates for various tech stacks.
| File | Kind | Size |
|---|---|---|
| SKILL.md | skill md | 1.5 KB |
| astro-static/TEMPLATE.md | markdown | 1.7 KB |
| chrome-extension/TEMPLATE.md | markdown | 1.9 KB |
| cli-tool/TEMPLATE.md | markdown | 1.7 KB |
| electron-desktop/TEMPLATE.md | markdown | 1.8 KB |
| express-api/TEMPLATE.md | markdown | 1.7 KB |
| flutter-app/TEMPLATE.md | markdown | 1.8 KB |
| monorepo-turborepo/TEMPLATE.md | markdown | 1.8 KB |
| nextjs-fullstack/TEMPLATE.md | markdown | 1.6 KB |
| nextjs-saas/TEMPLATE.md | markdown | 2.2 KB |
| nextjs-static/TEMPLATE.md | markdown | 2.0 KB |
| nuxt-app/TEMPLATE.md | markdown | 2.1 KB |
| python-fastapi/TEMPLATE.md | markdown | 1.7 KB |
| react-native-app/TEMPLATE.md | markdown | 1.9 KB |
cli-tool/TEMPLATE.md
View on GitHub---
name: cli-tool
description: Node.js CLI tool template principles. Commander.js, interactive prompts.
---
# CLI Tool Template
## Tech Stack
| Component | Technology |
|-----------|------------|
| Runtime | Node.js 20+ |
| Language | TypeScript |
| CLI Framework | Commander.js |
| Prompts | Inquirer.js |
| Output | chalk + ora |
| Config | cosmiconfig |
---
## Directory Structure
```
project-name/
├── src/
│ ├── index.ts # Entry point
│ ├── cli.ts # CLI setup
│ ├── commands/ # Command handlers
│ ├── lib/
│ │ ├── config.ts # Config loader
│ │ └── logger.ts # Styled output
│ └── types/
├── bin/
│ └── cli.js # Executable
└── package.json
```
---
## CLI Design Principles
| Principle | Description |
|-----------|-------------|
| Subcommands | Group related actions |
| Options | Flags with defaults |
| Interactive | Prompts when needed |
| Non-interactive | Support --yes flags |
---
## Key Components
| Component | Purpose |
|-----------|---------|
| Commander | Command parsing |
| Inquirer | Interactive prompts |
| Chalk | Colored output |
| Ora | Spinners/loading |
| Cosmiconfig | Config file discovery |
---
## Setup Steps
1. Create project directory
2. `npm init -y`
3. Install deps: `npm install commander @inquirer/prompts chalk ora cosmiconfig`
4. Configure bin in package.json
5. `npm link` for local testing
---
## Publishing
```bash
npm login
npm publish
```
---
## Best Practices
- Provide helpful error messages
- Support both interactive and non-interactive modes
- Use consistent output styling
- Validate inputs with Zod
- Exit with proper codes (0 success, 1 error)
Related skills
| Skill | Stars | Updated | Works with | Status | Install |
|---|---|---|---|---|---|
| slack-gif-creatoranthropics/skillsKnowledge and utilities for creating animated GIFs optimized for Slack. Provides constraints, validation tools, and animation concepts. Use when users request animated GIFs for Slack like "make me a GIF of X doing Y for Slack." | Stars: 197k | Updated | Claude CodeCodex | Verified | Install |
| ponytailDietrichGebert/ponytailLazy senior dev mode for any coding task: the smallest change that fully solves it, and a reply a busy human understands in one read. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailHarvest every shortcut: comment into one debt ledger, so deferrals get tracked instead of forgotten. One-shot report. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |
| ponytail-debtDietrichGebert/ponytailList every `shortcut:` comment (and older `ponytail:` ones) as a debt ledger. One-shot report, changes nothing. Use for "ponytail debt", "what did ponytail defer", "list the shortcuts", /ponytail-debt. | Stars: 194k | Updated | Claude CodeCodex | Verified | Install |