Crush is an agentic AI coding tool that automates repetitive tasks for operations teams. It connects to workflows like CI/CD pipelines and integrates with tools such as GitHub. Crush enables faster development cycles and reduces manual coding efforts.
git clone https://github.com/charmbracelet/crush.githttps://github.com/charmbracelet/crush
["1. **Connect Crush to Your Tools**: Start by integrating Crush with your CI/CD pipeline and other relevant tools like GitHub. This involves setting up access tokens and permissions.\n2. **Define the Task**: Clearly describe the repetitive task you want to automate. Include all the steps involved and the tools or workflows it connects to.\n3. **Implement the Code**: Use the provided code snippets to implement the automation. Ensure the code is compatible with your existing infrastructure.\n4. **Configure the Workflow**: Set up the task in Crush's workflow editor. Specify the trigger conditions, such as a schedule or manual trigger, to run the task automatically.\n5. **Test and Refine**: Run the automated task and monitor its performance. Make any necessary adjustments to ensure it works seamlessly within your workflow."]
Integrate multiple LLMs to assist in code generation and debugging across different programming languages.
Maintain context while switching between projects, allowing for efficient multitasking in software development.
Utilize LSPs for enhanced code context and suggestions, streamlining the coding process.
Automate repetitive coding tasks by leveraging API integrations with popular LLM providers.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/charmbracelet/crushCopy 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.
Automate the following repetitive task in our CI/CD pipeline using Crush: [DESCRIBE TASK]. The task currently involves [LIST STEPS]. We want to integrate this with our [TOOLS] workflow. Provide the necessary code snippets and configuration steps to implement this automation.
To automate the repetitive task of updating environment variables across multiple services in our CI/CD pipeline, Crush can be configured as follows:
1. **Initial Setup**: First, ensure Crush is connected to your GitHub repository and has the necessary permissions to modify environment variables. This involves setting up a Crush agent with the appropriate access tokens.
2. **Task Definition**: Define the task in Crush's workflow editor. The task should include the following steps:
- Fetch the current environment variables from the `.env` file in the root directory.
- Update the variables based on the new configuration provided in the `config/env_vars.json` file.
- Commit and push the changes back to the repository.
3. **Code Snippets**: Here are the necessary code snippets to implement this automation:
```python
# Fetch current environment variables
import os
from dotenv import load_dotenv
load_dotenv()
current_vars = os.environ
# Update variables based on new configuration
import json
with open('config/env_vars.json', 'r') as f:
new_vars = json.load(f)
for key, value in new_vars.items():
os.environ[key] = value
# Commit and push changes
import subprocess
subprocess.run(['git', 'add', '.env'])
subprocess.run(['git', 'commit', '-m', 'Update environment variables'])
subprocess.run(['git', 'push'])
```
4. **Configuration Steps**: After adding the code snippets, configure the Crush agent to run this task on a schedule or trigger it manually when needed. This can be done through the Crush dashboard by setting up a new workflow and specifying the trigger conditions.
By following these steps, you can automate the task of updating environment variables, reducing manual coding efforts and speeding up the development cycle.Cloud ETL platform for non-technical data integration
IronCalc is a spreadsheet engine and ecosystem
Get more done every day with Microsoft Teams – powered by AI
Customer feedback management made simple
Enterprise workflow automation and service management platform
Automate your spreadsheet tasks with AI power
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan