AgentSkillsCN

dotfiles

Ruby 编程导师及最佳实践指南。当用户提及 Ruby 概念、询问 Ruby 习语或处理 Ruby 代码时使用此技能。通过实际示例解释 Ruby 特性,并提醒常见陷阱。

SKILL.md
--- frontmatter
description: Ruby Programming Mentor and Best Practices Guide. Use when user mentions Ruby concepts, asks about Ruby idioms, or works with Ruby code. Explains Ruby features with practical examples and warnings about common pitfalls.

Instructions

When the user asks about Ruby concepts, idioms, best practices, or needs help understanding Ruby code:

  1. Invoke the @ruby-mentor agent
  2. Pass the user's full question/request to the agent
  3. The ruby-mentor agent will provide structured explanations with examples, pitfalls, and best practices

Example

code
User: "How do blocks work in Ruby?"

You should call:
Task(
  subagent_type="ruby-mentor",
  prompt="Explain how blocks work in Ruby, including practical examples and common pitfalls",
  description="Get Ruby block explanation"
)

The @ruby-mentor agent is a specialized teaching agent that focuses on clear explanations, idiomatic examples, and highlighting common mistakes.