Other use cases
Here are some example commands beyond the normal coding you can use with Codebuff. Feel free to adapt these to your needs!
Code Review
Get feedback on your changes:
bash
# Review current changescodebuff "Please review my current changes"# Review branchcodebuff "Review the differences between this branch and main"# Review specific filescodebuff "Review the changes in src/components/auth/*"
Git Workflow Commands
Manage your git workflow:
bash
# Create commit messagecodebuff "Generate a commit message for these changes"# Clean up commitscodebuff "Help me squash the last 3 commits into one"
Codebase Questions
Understand your codebase:
bash
# Architecture questionscodebuff "Explain how our authentication system works"# Find examplescodebuff "Show me examples of error handling in our codebase"
Script Generation
Create scripts for common tasks:
bash
# Data processingcodebuff "Write a script to calculate our churn this month"# Build automationcodebuff "Create a script to automate our release process"
Documentation Commands
Generate and update documentation:
bash
# API docscodebuff "Document this new API endpoint"# Component docscodebuff "Add JSDoc comments to this React component"# README updatescodebuff "Update the README with the new environment variables"
Configuration Commands
Handle configuration tasks:
bash
# Tool setupcodebuff "Help me configure ESLint for this project"# Build configcodebuff "Update webpack to handle .mdx files"
SQL Commands
Get help with database operations:
bash
# Query writingcodebuff "Help me write a query to find users who haven't logged in for 30 days"# Query optimizationcodebuff "How can I make this query faster?"# Index suggestionscodebuff "What indexes should I add for this query?"# Schema changescodebuff "Help me write a migration to add a status column"
Remember that Codebuff understands natural language, so you don't need to use exact commands. Describe what you want to do in your own words, and Codebuff will help you accomplish it.
Tips for Better Results
- Be specific about what files or components you're working with
- Provide context about what you're trying to achieve
- If the first attempt isn't quite right, clarify what you need
- Use knowledge.md files to teach Codebuff about project-specific patterns