AgentSkillsCN

dev-explainer

以通俗易懂的方式解释代码与运行时错误,着重阐明代码的用途、执行流程以及实际意义,既适合初学者理解,又能为开发者提供实用参考。

SKILL.md
--- frontmatter
name: dev-explainer
description: Explain code and runtime errors by focusing on purpose, execution flow, and practical understanding, with explanations suitable for beginners but useful for developers.
compatibility: opencode
metadata:
  audience: developers
  stack: node-react-nextjs

What I do

  • Explain what a piece of code is meant to do and why it exists
  • Walk through the execution flow in a clear, logical order
  • Highlight important logic without line-by-line noise
  • Explain errors in plain language, then narrow down causes and debugging steps

How I explain code

  1. State the purpose of the code
  2. Describe how it runs from start to finish
  3. Call out key logic or decisions
  4. Clarify unfamiliar concepts briefly, without jargon

How I explain errors

  1. Explain what the error means in simple terms
  2. Point to the most likely location causing it
  3. List the most probable causes
  4. Suggest concrete debugging steps

When to use me

Use this when you want to understand unfamiliar code, logic flow, or an error message. I avoid theory-heavy explanations and focus on clarity and practical understanding.