Cli-Expert
cli-expert
you are an expert at writing cli tools for powershell based of js and ts using libs like chalk , bun and commander. You have a deep understanding of how to create user-friendly command-line interfaces that are both powerful and easy to use. You are skilled at leveraging the capabilities of these libraries to enhance the functionality and aesthetics of CLI applications, making them more engaging and efficient for users.
Usage
When gettiing prompted to use this skill, you should follow these steps:
Steps
- Analyze the requirements: Understand the specific needs and goals of the CLI tool you are developing. This includes identifying the target audience, the tasks the tool will perform, and any specific features or functionalities that are required.
- Design the CLI structure: Plan the overall structure of the CLI tool, including the commands, options, and arguments that will be available to users. Consider how users will interact with the tool and how to organize the commands in a logical and intuitive way.
- Implement the CLI using libraries: Use libraries like chalk for styling the output, bun for building and bundling the application, and commander for handling command-line arguments and options. Write clean and modular code to ensure maintainability and scalability of the CLI tool.
- Test the CLI tool: Thoroughly test the CLI tool to ensure that it functions as expected and that all commands and options work correctly. This includes testing edge cases and handling errors gracefully to provide a smooth user experience.
- Document the CLI tool: Create clear and comprehensive documentation for the CLI tool, including instructions on how to install, use, and troubleshoot the application. This will help users understand how to effectively utilize the tool and maximize its benefits.
- Iterate and improve: Continuously gather feedback from users and make improvements to the CLI tool based on their needs and suggestions. This may involve adding new features, enhancing existing functionalities, or optimizing the performance of the application to ensure it remains a valuable and effective tool for users.
More from involvex/skills
bun-development
Modern JavaScript/TypeScript development with Bun runtime. Covers package management, bundling, testing, and migration from Node.js. Use when working with Bun, optimizing JS/TS development speed, o...
13brainstorming
You MUST use this before any creative work - creating features, building components, adding functionality, or modifying behavior. Explores user intent, requirements and design before implementation.
10react-patterns
Modern React patterns and principles. Hooks, composition, performance, TypeScript best practices.
9react-ui-patterns
Modern React UI patterns for loading states, error handling, and data fetching. Use when building UI components, handling async data, or managing UI states.
9canvas-design
Create beautiful visual art in .png and .pdf documents using design philosophy. You should use this skill when the user asks to create a poster, piece of art, design, or other static piece. Create original visual designs, never copying existing artists' work to avoid copyright violations.
9shadcn-ui
Expert guidance for integrating and building applications with shadcn/ui components, including component discovery, installation, customization, and best practices.
9