| name | description | allowed-tools |
|---|---|---|
create-pr |
This skill should be used when the user asks to "create a PR", "open a pull request",
"make a PR", "submit a PR", "push a PR", or any variation of creating/opening a pull request.
The skill focuses on extracting the INTENT behind changes and creating meaningful PR descriptions.
|
Bash Read Write Grep Glob AskUserQuestion |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| language: ruby | |
| before_install: | |
| - "export DISPLAY=:99.0" | |
| - "sh -e /etc/init.d/xvfb start" | |
| before_script: | |
| - cp config/database.travis.yml config/database.yml | |
| - RAILS_ENV=test bundle exec rake db:create db:migrate | |
| notifications: | |
| email: | |
| - interstellar.team@railsware.com |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'rails/application/route_inspector' | |
| all_routes = Rails.application.routes.routes.select { |r| r.defaults[:controller] =~ /api\/v1/ } | |
| inspector = Rails::Application::RouteInspector.new | |
| pp inspector.format(all_routes, 'api/v1/inboxes').map { |x| x.split(' ') } | |
| # [["api_v1_inbox", | |
| # "POST", | |
| # "/api/v1/inboxes/:id(.:format)", | |
| # "api/v1/inboxes#update"], | |
| # ["api_v1_inboxes", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def to_lambda &block | |
| obj = Object.new | |
| obj.define_singleton_method(:_, &block) | |
| return obj.method(:_).to_proc | |
| end | |
| def with_file(name, &block) | |
| l = to_lambda(&block) | |
| puts "Open file" | |
| f = File.open(name, "r") |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| require 'net/smtp' | |
| (0..9).each do |i| | |
| message = <<-END.split("\n").map!(&:strip).join("\n") | |
| From: Private Person <me@fromdomain.com> | |
| To: A Test User <test@todomain.com> | |
| Subject: #{i} message | |
| This is a test e-mail message. | |
| END |
- TL; DR
- Why?
- When?
- How?
4.1. Enumerator (skip if familiar with)
4.2. Lazy enumerator
4.3. C patch - Conclusion
TL; DR