Commit for me (cfme) automates the generation of conventional commit messages using AI, enhancing your git workflow. By analyzing staged changes, it offers meaningful suggestions that can be reviewed and customized before committing. Embrace consistency and accuracy in your commit history while adapting to team standards effortlessly.
cfme is an innovative tool designed to streamline the commit message generation process by utilizing artificial intelligence. By running cfme after staging changes in your Git repository, it automatically generates meaningful commit messages based on the conventional commits standard, while offering customization options to suit your specific needs.
fzf, allowing for easy review and editing before finalizing the commit.<__MY_VARIABLE__> syntax for injecting git diffs, specific instructions, or command outputs into your prompts.-i "Your Instruction Here" option without needing to edit prompt files.-r or -m to output messages for integration with a variety of tools and workflows.Generate and manage commit messages seamlessly using the following command examples:
cfme # Generate, review, and commit using default settings.
cfme -i "Address user login issue" # Provide additional instructions for better AI context.
cfme -p "path/to/custom-prompt.md" # Use a custom prompt file for specific message styles.
cfme -v "path/to/custom-variables.yaml" # Load custom variables for the prompt.
cfme -m # Output the reviewed commit message instead of committing.
cfme -rs # Suppress output while generating a commit message.
If the default prompts and variables do not meet requirements, cfme allows for custom prompt creation and variable definitions. Simply define your prompt in markdown format and your variables in YAML, ensuring compatibility with cfme’s syntax. This flexibility enables tailored commit message formatting to fit a variety of development and organizational standards.
cfme can be integrated into various tools, such as Lazygit, providing a user-friendly experience when generating commit messages within a TUI. Configuration steps and examples are available for embedding cfme into existing workflows, enhancing productivity beyond simple commit message generation.
For developers and teams looking to reduce the cognitive load of writing commit messages while maintaining a high level of consistency and clarity, cfme presents a robust solution.
No comments yet.
Sign in to be the first to comment.