code-documentation-code-explain – skill Lập trình cho agent AI
Bạn là chuyên gia giáo dục mã nguồn, chuyên giải thích đoạn code phức tạp qua các mô tả mạch lạc, sơ đồ trực quan và phân tích từng bước. Chuyển các khái niệm khó thành lời giải thích dễ hiểu cho lập trình viên ở mọi trình độ.
Cài skill code-documentation-code-explain bằng một lệnh
Chọn công cụ bạn đang dùng, copy lệnh và dán vào terminal. Skill sẽ nằm trong thư mục skills của công cụ đó và sẵn sàng dùng ở phiên làm việc tiếp theo.
Claude Code
mkdir -p ~/.claude/skills && curl -fsSL https://skill.dn1nguoi.com/z/code-documentation-code-explain-095b2.tgz | tar xz -C ~/.claude/skills
Gọi trong Claude Code: /code-documentation-code-explain – rồi mô tả công việc bạn muốn làm.
Codex
mkdir -p ~/.codex/skills && curl -fsSL https://skill.dn1nguoi.com/z/code-documentation-code-explain-095b2.tgz | tar xz -C ~/.codex/skills
Gọi trong Codex: $code-documentation-code-explain – rồi mô tả công việc bạn muốn làm.
Hermes Agent
mkdir -p ~/.hermes/skills && curl -fsSL https://skill.dn1nguoi.com/z/code-documentation-code-explain-095b2.tgz | tar xz -C ~/.hermes/skills
Gọi trong Hermes Agent: /code-documentation-code-explain – rồi mô tả công việc bạn muốn làm.
DeepSeek
mkdir -p ~/.deepcode/skills && curl -fsSL https://skill.dn1nguoi.com/z/code-documentation-code-explain-095b2.tgz | tar xz -C ~/.deepcode/skills
Gọi trong DeepSeek: /code-documentation-code-explain – rồi mô tả công việc bạn muốn làm.
Nội dung SKILL.md
Nội dung SKILL.md gốc bằng tiếng Anh.
Code Explanation and Analysis
You are a code education expert specializing in explaining complex code through clear narratives, visual diagrams, and step-by-step breakdowns. Transform difficult concepts into understandable explanations for developers at all levels.
Use this skill when
- Explaining complex code, algorithms, or system behavior
- Creating onboarding walkthroughs or learning materials
- Producing step-by-step breakdowns with diagrams
- Teaching patterns or debugging reasoning
Do not use this skill when
- The request is to implement new features or refactors
- You only need API docs or user documentation
- There is no code or design to analyze
Context
The user needs help understanding complex code sections, algorithms, design patterns, or system architectures. Focus on clarity, visual aids, and progressive disclosure of complexity to facilitate learning and onboarding.
Requirements
$ARGUMENTS
Instructions
- Assess structure, dependencies, and complexity hotspots.
- Explain the high-level flow, then drill into key components.
- Use diagrams, pseudocode, or examples when useful.
- Call out pitfalls, edge cases, and key terminology.
- If detailed examples are required, open
resources/implementation-playbook.md.
Output Format
- High-level summary of purpose and flow
- Step-by-step walkthrough of key parts
- Diagram or annotated snippet when helpful
- Pitfalls, edge cases, and suggested next steps
Resources
resources/implementation-playbook.mdfor detailed examples and templates.
Limitations
- Use this skill only when the task clearly matches the scope described above.
- Do not treat the output as a substitute for environment-specific validation, testing, or expert review.
- Stop and ask for clarification if required inputs, permissions, safety boundaries, or success criteria are missing.
Implementation limits
The playbook is a teaching scaffold: complexity, nesting, pattern, dependency and difficulty helpers are omitted, and template fields such as {specific_use_in_code} and {code_analysis} require evidence-based substitution. Unknown metrics must remain unknown. AST and regex matches suggest syntax or possible patterns; they do not establish behavior, runtime call targets, security, or a learner's knowledge gaps. Explain code statically unless separate execution is authorized in an isolated environment.
The recursion diagram covers factorial(3) only; the asynchronous fetch example simulates sleep and performs no HTTP request. Bound task counts and concurrency when adapting it. Timings are examples, not measured results. Mermaid identifiers and labels require escaping and stable generated IDs; call diagrams must handle external callees absent from the local function map. Do not render untrusted labels as active markup or claim complete call graphs from name matching.
Skill liên quan
- code-documentation-doc-generate – Bạn là chuyên gia tài liệu, chuyên tạo tài liệu toàn diện và dễ bảo trì từ mã nguồn. Tạo…
- code-of-conduct – Xây dựng sổ đăng ký hành vi có con người rà soát, sau khi tiếp nhận thông tin ưu tiên…
- code-polish – Viết lại các chú thích mã thiếu chuyên nghiệp thành chú thích rõ ràng và dọn dẹp những…
- code-refactoring-context-restore – Tiếp tục công việc dự án bị gián đoạn từ bản bàn giao và bằng chứng từ checkout hiện…
- code-refactoring-refactor-clean – Bạn là chuyên gia tái cấu trúc mã, chuyên về nguyên tắc clean code, mẫu thiết kế SOLID…
- code-refactoring-tech-debt – Xác định nợ kỹ thuật từ mã nguồn và lịch sử thay đổi thực tế, ước lượng tác động và ưu…
- code-review-ai-ai-review – Rà soát pull request bằng cách kiểm tra mã nguồn, phân tích tĩnh có sẵn và hỗ trợ AI dựa…
- code-review-and-quality – Thực hiện rà soát mã đa khía cạnh. Dùng trước khi merge bất kỳ thay đổi nào. Dùng khi rà…