Instruction file imported from Pranav-Karra-3301/tuck (
.cursor/rules/general.mdc). Copyright stays with the author.
General Project Rules
Project Identity
tuck is a modern, beautiful dotfiles manager CLI built with TypeScript. It prioritizes:
- Safety - Never lose user data
- Beauty - Polished terminal experience
- Git-native - Built on git, abstracts complexity
- Zero-config - Works immediately
Tech Stack
- Runtime: Node.js 18+ (ESM only)
- Language: TypeScript 5.x (strict mode)
- Package Manager: pnpm 9+ (NEVER npm or yarn)
- CLI Framework: Commander.js
- Prompts: @clack/prompts
- Styling: chalk, boxen, ora
- Git: simple-git
- Validation: Zod
- Testing: Vitest
- Build: tsup
Key Principles
- Always validate user input
- Create backups before destructive operations
- Confirm dangerous actions with user
- Provide helpful error messages
- Show progress for long operations
- End commands with next step suggestions
Package Manager
ALWAYS use pnpm commands:
pnpm installnotnpm installpnpm testnotnpm testpnpm buildnotnpm build