Zor is an open-source, terminal-based AI pair programmer that assists developers with coding tasks. It benefits software engineers and operations teams by providing real-time code suggestions, debugging help, and automation support. Zor integrates with Python workflows and connects to Claude agents for enhanced functionality.
git clone https://github.com/admincodes7/zor.gitZor is an open-source, terminal-based AI pair programmer that assists developers with coding tasks. It benefits software engineers and operations teams by providing real-time code suggestions, debugging help, and automation support. Zor integrates with Python workflows and connects to Claude agents for enhanced functionality.
1. **Install Zor**: Run `pip install zor` in your terminal or use the Docker image if working in a containerized environment. Ensure Python 3.8+ is installed. 2. **Activate Zor**: Start Zor in your project directory with `zor --project-path /path/to/your/project`. For VS Code users, install the Zor extension to integrate it with your editor. 3. **Define the Task**: Use the prompt template above, replacing [ACTION] and [SPECIFIC_TASK] with your exact requirements (e.g., 'debug a memory leak in a Flask API'). 4. **Review and Apply**: Zor will generate suggestions in your terminal or editor. Review the output, then accept or modify the changes. Use `zor --apply` to auto-apply safe refactorings. 5. **Iterate**: For complex tasks, break them into smaller steps (e.g., 'First optimize the function, then add tests'). Use Zor’s `--context` flag to provide additional files or docs for better context. **Tips**: - Use Zor’s `--diff` flag to see side-by-side comparisons of changes before applying them. - For debugging, pipe error logs to Zor with `cat error.log | zor --debug`. - Combine Zor with Claude by using the `claude-zor` bridge for multi-agent workflows.
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/admincodes7/zorCopy 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.
Use Zor to [ACTION] in a Python project. [SPECIFIC_TASK]. Example: 'Use Zor to refactor a Python function that calculates user engagement metrics. The function is currently 80 lines long and uses nested loops. Suggest improvements for readability and performance.'
Here’s how Zor can help refactor a Python function for calculating user engagement metrics. The original function (80 lines) processes a dataset of 50,000 user sessions with nested loops, which is inefficient and hard to debug. Zor’s output includes:
1. **Performance Optimization**: Suggests replacing nested loops with vectorized operations using NumPy, reducing runtime from 45 seconds to 2.3 seconds for the dataset.
2. **Readability Improvements**: Breaks the function into smaller, modular components (e.g., `calculate_daily_engagement`, `aggregate_metrics`) and adds type hints for better maintainability.
3. **Error Handling**: Introduces validation checks for input data (e.g., ensuring session timestamps are in chronological order) and logs warnings for edge cases.
4. **Testing Guidance**: Provides a pytest script to verify the refactored function against the original output, ensuring no regression in results.
Zor also highlights potential pitfalls, such as memory usage when processing large datasets, and recommends using generators or chunking for scalability. The final output is a 25-line function with 90% fewer lines of code, improved clarity, and a 20x speedup. Example refactored code:
```python
def calculate_daily_engagement(sessions: list[Session]) -> dict[str, float]:
"""Calculate daily engagement metrics using vectorized operations."""
df = pd.DataFrame([s.__dict__ for s in sessions])
daily_metrics = df.groupby('date').agg({
'clicks': 'sum',
'time_spent': 'mean'
}).to_dict('index')
return daily_metrics
```AI assistant built for thoughtful, nuanced conversation
IronCalc is a spreadsheet engine and ecosystem
ITIL-aligned IT service management platform
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