Promptr is a powerful CLI tool that transforms plain language instructions into filesystem commands using a liquidjs templating system. Ideal for refactoring, code generation, and experimentation, it enhances coding efficiency and creativity.
claude install ferrislucas/promptrhttps://github.com/ferrislucas/promptr
Automate repetitive code refactoring tasks to improve code quality and maintainability.
Generate boilerplate code for new components or modules, saving time on setup.
Create custom scripts for experimentation, allowing for rapid prototyping and testing of new ideas.
Simplify command-line interactions by using plain language instructions instead of complex commands.
claude install ferrislucas/promptrgit clone https://github.com/ferrislucas/promptrCopy the install command above and run it in your terminal.
Launch Claude Code, Cursor, or your preferred AI coding agent.
Use the prompt template or examples below to test the skill.
Adapt the skill to your specific use case and workflow.
Using Promptr, generate a set of filesystem commands to [ACTION] in the [PROJECT_NAME] repository. The commands should follow these rules: [RULES]. Ensure the output is compatible with [FILESYSTEM_TYPE] and includes error handling for [ERROR_CONDITIONS].
Here's a set of filesystem commands generated by Promptr to refactor the 'user_authentication' module in the 'E-commerce_Platform' repository: ```bash # Create a new directory for the refactored module mkdir -p ./src/modules/user_authentication/v2 # Move all authentication-related files to the new directory mv ./src/modules/user_authentication/*.py ./src/modules/user_authentication/v2/ # Update import statements in the main application file sed -i 's/from modules.user_authentication./from modules.user_authentication.v2./g' ./src/main.py # Create a new virtual environment for testing the refactored module python -m venv ./venv_refactor_test # Install required dependencies in the new virtual environment ./venv_refactor_test/bin/pip install -r ./requirements.txt # Add a pre-commit hook to run tests before committing changes echo '#!/bin/sh ./venv_refactor_test/bin/pytest ./src/modules/user_authentication/v2/' > .git/hooks/pre-commit chmod +x .git/hooks/pre-commit ``` These commands will help streamline the refactoring process, ensuring that the new module is properly isolated and tested before being merged into the main codebase.
An AI playground for exploring and learning.
Orchestrate workloads with multi-cloud support, job scheduling, and integrated service discovery features.
Serverless MySQL database platform
Design, document, and generate code for APIs with interactive tools for developers.
Manage CI/CD processes efficiently with build configuration as code and multi-language support.
Enhance performance monitoring and root cause analysis with real-time distributed tracing.