Claude-code-in-avinyc is a collection of AI agent skills for Ruby, Rails, and SaaS development. It automates repetitive tasks, enhances code quality, and accelerates development workflows. Ideal for operations teams, it integrates with existing development tools and workflows.
git clone https://github.com/aviflombaum/claude-code-in-avinyc.gitThe claude-code-in-avinyc skill is a curated collection of Claude Code plugins designed to enhance automation capabilities within various workflows. This intermediate-level skill allows developers and AI practitioners to integrate multiple automation tools seamlessly, facilitating a more efficient development process. By leveraging these plugins, users can automate repetitive tasks, thus freeing up valuable time for more complex problem-solving activities. One of the key benefits of the claude-code-in-avinyc skill is its ability to streamline workflow automation. Although specific time savings are not quantified, users can expect to significantly reduce the time spent on manual tasks. This skill is particularly beneficial for developers and product managers who are looking to enhance their productivity and optimize their project timelines. By implementing this skill, teams can focus on innovation rather than routine operations, leading to better resource allocation and faster project delivery. This automation skill is well-suited for developers and AI practitioners who are familiar with intermediate coding concepts and are looking to enhance their AI agent skills. It can be particularly useful in software development environments where automation can lead to improved efficiency and reduced errors. For instance, a developer could use this skill to automate the testing of code changes, ensuring that new features are deployed faster and with higher reliability. Implementing the claude-code-in-avinyc skill requires approximately 30 minutes, making it a quick addition to any developer's toolkit. Its intermediate complexity means that users should have a foundational understanding of coding and automation principles. By incorporating this skill into their AI-first workflows, teams can leverage the power of automation to drive innovation and maintain a competitive edge in the rapidly evolving tech landscape.
[{"step":"Identify the Ruby on Rails task to automate","action":"Determine which repetitive development task needs automation (e.g., generating reports, running tests, cleaning up logs). Customize the [ACTION] placeholder in the prompt template to match your specific need.","tip":"Focus on tasks that are performed weekly or daily to maximize time savings. Common candidates include database backups, log rotation, or report generation."},{"step":"Set up the Sortd shared inbox","action":"Create a shared inbox in Sortd (e.g., '[email protected]') to track task completions. Configure the inbox to receive email notifications from your Rails application.","tip":"Use descriptive inbox names like '[email protected]' to make it clear what type of tasks are being logged. Set up filters in Sortd to automatically categorize these emails."},{"step":"Customize the script for your project","action":"Replace [PROJECT_NAME] and [ACTION] in the prompt template with your specific project name and task description. Modify the database queries, file paths, and email configurations to match your setup.","tip":"Test the script in a development environment first. Use Rails console to verify that your database queries return the expected data before implementing the full automation."},{"step":"Integrate with Sortd (optional)","action":"If using the Sortd API, generate an API key from your Sortd account settings and uncomment the API integration section in the script. Alternatively, manually log completions by appending to a log file that Sortd monitors.","tip":"For API integration, start with a simple POST request to create cards in your Sortd board. Gradually add more details like due dates or assignees as you become comfortable with the API."},{"step":"Schedule and monitor the task","action":"Use the `whenever` gem or cron jobs to schedule the task. Monitor the Sortd inbox and application logs to ensure the automation runs smoothly.","tip":"Set up alerts in Sortd for tasks that fail or take longer than expected. Use the Sortd mobile app to check on task status while away from your desk."}]
No install command available. Check the GitHub repository for manual installation instructions.
git clone https://github.com/aviflombaum/claude-code-in-avinycCopy 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 claude-code-in-avinyc to automate a Ruby on Rails development task. Write a script that [ACTION] for [PROJECT_NAME]. Include steps to integrate with Sortd (ai-assistant) for tracking progress in Gmail. Example: 'Write a Rake task to automatically generate weekly reports for the 'AnalyticsPro' Rails project. The task should export data from PostgreSQL, format it as CSV, and email the report to the sales team. Integrate with Sortd to log the task completion in a shared inbox labeled '[email protected]'.'
```ruby
# File: lib/tasks/weekly_analytics_report.rake
namespace :analytics do
desc "Generate and distribute weekly sales analytics report from PostgreSQL"
task :weekly_report => :environment do
require 'csv'
require 'net/smtp'
# Configuration
project_name = "AnalyticsPro"
report_date = Date.today.strftime("%Y-%m-%d")
csv_path = Rails.root.join("tmp", "reports", "weekly_sales_#{report_date}.csv")
recipient_email = "[email protected]"
shared_inbox = "[email protected]"
# Fetch data from PostgreSQL
puts "Fetching weekly sales data for #{project_name}..."
sales_data = ActiveRecord::Base.connection.execute(
"SELECT
DATE_TRUNC('week', created_at) AS week_start,
COUNT(*) AS total_orders,
SUM(amount) AS total_revenue,
AVG(amount) AS avg_order_value
FROM orders
WHERE created_at >= NOW() - INTERVAL '7 days'
GROUP BY DATE_TRUNC('week', created_at)"
).to_a
# Generate CSV report
CSV.open(csv_path, "wb") do |csv|
csv << ["Week Start", "Total Orders", "Total Revenue", "Avg Order Value"]
sales_data.each do |row|
csv << [
row["week_start"].to_date,
row["total_orders"].to_i,
"$#{row['total_revenue'].to_f.round(2)}",
"$#{row['avg_order_value'].to_f.round(2)}"
]
end
end
puts "Report generated at #{csv_path}"
# Send email via SMTP
puts "Sending report to sales team..."
Net::SMTP.start('smtp.gmail.com', 587, 'localhost', '[email protected]', 'your_password', 'your_password') do |smtp|
smtp.send_message(
<<~MESSAGE
From: [email protected]
To: #{recipient_email}
Subject: Weekly Sales Analytics Report - #{report_date}
MIME-Version: 1.0
Content-Type: multipart/mixed; boundary="NextPart"
--NextPart
Content-Type: text/plain
Hi Sales Team,
Please find attached the weekly sales analytics report for #{project_name}.
Key metrics:
- Total Orders: #{sales_data[0]['total_orders']}
- Total Revenue: $#{sales_data[0]['total_revenue'].to_f.round(2)}
- Average Order Value: $#{sales_data[0]['avg_order_value'].to_f.round(2)}
Best regards,
Analytics Team
--NextPart
Content-Type: text/csv
Content-Disposition: attachment; filename="weekly_sales_#{report_date}.csv"
MESSAGE
+ File.read(csv_path),
'[email protected]',
recipient_email
)
end
# Log completion in Sortd shared inbox
puts "Logging task completion in Sortd..."
File.open("tmp/sortd_log.txt", "a") do |f|
f.puts "[#{Time.now}] Weekly report generated and sent for #{project_name}"
end
# Optional: Use Sortd API to create a card (if API key is available)
# sortd_api_key = ENV['SORTD_API_KEY']
# if sortd_api_key
# require 'httparty'
# response = HTTParty.post(
# "https://api.sortd.com/v1/cards",
# headers: {"Authorization" => "Bearer #{sortd_api_key}"},
# body: {
# title: "Weekly Report Generated - #{project_name}",
# description: "Report sent to [email protected]. Data exported from PostgreSQL.",
# board_id: "dev-reports"
# }.to_json
# )
# puts "Sortd API response: #{response.code}"
# end
puts "Weekly analytics report task completed successfully!"
end
end
```
### How to Use This Script:
1. **Save the file** as `lib/tasks/weekly_analytics_report.rake` in your Rails project.
2. **Configure SMTP**: Update the SMTP settings in the script with your Gmail credentials or use a service like SendGrid.
3. **Set up Sortd**:
- Create a shared inbox in Sortd labeled `[email protected]`.
- Uncomment and configure the Sortd API section if you have an API key.
- Alternatively, manually log completions by appending to `tmp/sortd_log.txt`.
4. **Run the task**: Execute `rails analytics:weekly_report` in your terminal.
5. **Verify results**: Check your Gmail inbox for the report and Sortd for the logged task.
### Tips for Better Results:
- **Customize the SQL query** to match your database schema and reporting needs.
- **Add error handling** for cases where the database query fails or email sending errors occur.
- **Schedule the task** using `whenever` gem or `cron` for automated weekly runs.
- **Test with a small dataset** before running in production to ensure the CSV format is correct.
- **Use environment variables** for sensitive data like SMTP credentials and Sortd API keys.
This script demonstrates how claude-code-in-avinyc can automate routine Rails tasks while integrating with Sortd for visibility in your Gmail workflow. The automation reduces manual effort and ensures consistent reporting across your team.AI assistant built for thoughtful, nuanced conversation
Get more done every day with Microsoft Teams – powered by AI
Automate security compliance and monitor real-time security posture seamlessly.
Automate your spreadsheet tasks with AI power
Agentic AI Workflow platform
Connected workspace for docs, wikis, and projects
Take a free 3-minute scan and get personalized AI skill recommendations.
Take free scan